padma video, test profile forms
This commit is contained in:
parent
795c65a999
commit
7b2642c5c0
|
@ -93,7 +93,7 @@
|
|||
{% for v in talk.videos.all %}
|
||||
<span class="talkIcon">
|
||||
<a href="/static/{{ v.padmavideo.padma_link }}" class="padmaLink" data-video="http://pad.ma/{{ v.padmavideo.padma_id }}/480p.webm" target="_blank">
|
||||
<img src="/static/images/VideoIcon.jpg" title="<span class='ttTitle'>Video: {{ talk.title }}.</span><span class='rightclickHelp'>(Right click and select 'Save Link As' to download)</span>">
|
||||
<img src="/static/images/VideoIcon.jpg" title="<span class='ttTitle'>Video: {{ talk.title }}.</span><span class='rightclickHelp'>Click to view on page</span>">
|
||||
</a>
|
||||
</span>
|
||||
{% endfor %}
|
||||
|
@ -248,16 +248,28 @@
|
|||
var $video;
|
||||
$('a.padmaLink').toggle(function(e) {
|
||||
e.preventDefault();
|
||||
var videoSrc = $(this).attr("data-video");
|
||||
$video = $('<video>').attr("src", videoSrc).attr("autoplay", "autoplay").attr("controls", "controls").addClass("padmaVideo");
|
||||
$(this).parents('.talks').eq(0).append($video);
|
||||
if ($(this).data("$video") == undefined) {
|
||||
var videoSrc = $(this).attr("data-video");
|
||||
var $video = $('<video>').attr("src", videoSrc).attr("autoplay", "autoplay").attr("controls", "controls").addClass("padmaVideo").css({'maxWidth': '100%', 'marginTop': '6px', 'display': 'block'}).hide();
|
||||
$(this).data("$video", $video);
|
||||
$(this).parents('li').eq(0).append($video);
|
||||
$video.slideDown();
|
||||
} else {
|
||||
$(this).data("$video").slideDown();
|
||||
}
|
||||
//console.log("clicked in");
|
||||
}, function(e) {
|
||||
e.preventDefault();
|
||||
//console.log("clicked out");
|
||||
$video.remove();
|
||||
|
||||
$(this).data("$video").get(0).pause();
|
||||
$(this).data("$video").slideUp();
|
||||
|
||||
});
|
||||
})();
|
||||
|
||||
$('.talkIcon img').tooltip({
|
||||
showURL: false,
|
||||
extraClass: 'myToolTip'
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
@ -5,12 +5,15 @@
|
|||
{% block extra_head %}
|
||||
<link rel="stylesheet" href="/static/css/noel/inner.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/noel/inner-details.css" type="text/css" />
|
||||
<link type="text/css" rel="stylesheet" href="/static/css/jquery.tooltip.css" />
|
||||
<script type="text/javascript" src="/static/js/history/history.js"></script>
|
||||
<script type="text/javascript" src="/static/js/history/amplify.store.js"></script>
|
||||
<script type="text/javascript" src="/static/js/history/history.html4.js"></script>
|
||||
<script type="text/javascript" src="/static/js/history/history.adapter.jquery.js"></script>
|
||||
<script type="text/javascript" src="/static/js/query_parser.js"></script>
|
||||
<script type="text/javascript" src="/static/js/jquery.tooltip.js"></script>
|
||||
<script type="text/javascript" src="/static/js/insidepage.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user