site url to share button
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
function copyText() {
|
function copyText() {
|
||||||
var tempInput = document.createElement("input");
|
var tempInput = document.createElement("input");
|
||||||
tempInput.style = "position: absolute; left: -1000px; top: -1000px";
|
tempInput.style = "position: absolute; left: -1000px; top: -1000px";
|
||||||
tempInput.value = "https://rowsandall.com/rowers/video/{{ analysis.id|encode }}/";
|
tempInput.value = "{{ siteurl }}/rowers/video/{{ analysis.id|encode }}/";
|
||||||
document.body.appendChild(tempInput);
|
document.body.appendChild(tempInput);
|
||||||
tempInput.select();
|
tempInput.select();
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
@@ -123,7 +123,7 @@ function copyText() {
|
|||||||
{% if analysis %}
|
{% if analysis %}
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<span class="fb-share-button" style="height:20px; vertical-align: top;"
|
<span class="fb-share-button" style="height:20px; vertical-align: top;"
|
||||||
data-href="https://rowsandall.com/rowers/video/{{ analysis.id|encode }}"
|
data-href="{{ siteurl }}/rowers/video/{{ analysis.id|encode }}"
|
||||||
data-layout="button" data-size="small" data-mobile-iframe="false">
|
data-layout="button" data-size="small" data-mobile-iframe="false">
|
||||||
<a class="fb-xfbml-parse-ignore" target="_blank"
|
<a class="fb-xfbml-parse-ignore" target="_blank"
|
||||||
href="https://www.facebook.com/sharer/sharer.php?u=https://rowsandall.com/rowers/video/{{ analysis.id|encode }}/">
|
href="https://www.facebook.com/sharer/sharer.php?u=https://rowsandall.com/rowers/video/{{ analysis.id|encode }}/">
|
||||||
@@ -132,7 +132,7 @@ function copyText() {
|
|||||||
<span>
|
<span>
|
||||||
<a class="twitter-share-button"
|
<a class="twitter-share-button"
|
||||||
href="https://twitter.com/intent/tweet"
|
href="https://twitter.com/intent/tweet"
|
||||||
data-url="https://rowsandall.com/rowers/video/{{ analysis.id|encode }}/"
|
data-url="{{ siteurl }}/rowers/video/{{ analysis.id|encode }}/"
|
||||||
data-text="@rowsandall #rowingdata">Tweet</a>
|
data-text="@rowsandall #rowingdata">Tweet</a>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ def workout_video_view(request,id=''):
|
|||||||
'locked': True,
|
'locked': True,
|
||||||
'metricsform':metricsform,
|
'metricsform':metricsform,
|
||||||
'metricsgroups': metricsgroups,
|
'metricsgroups': metricsgroups,
|
||||||
|
'siteurl': settings.SITE_URL,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@@ -265,6 +266,7 @@ def workout_video_create_view(request,id=0):
|
|||||||
'metrics':metrics,
|
'metrics':metrics,
|
||||||
'metricsgroups': metricsgroups,
|
'metricsgroups': metricsgroups,
|
||||||
'locked': False,
|
'locked': False,
|
||||||
|
'siteurl': settings.SITE_URL,
|
||||||
})
|
})
|
||||||
|
|
||||||
# Show the EMpower Oarlock generated Stroke Profile
|
# Show the EMpower Oarlock generated Stroke Profile
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
}(document, 'script', 'facebook-jssdk'));</script>
|
}(document, 'script', 'facebook-jssdk'));</script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function (){
|
$(document).ready(function (){
|
||||||
FB.XFBML.parse();
|
FB.XFBML.parse();
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user