Created
November 21, 2013 23:17
-
-
Save trosage/7591648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if video = Video.find(2862) %> | |
<div class="modal modal-forum-tipis featurette" data-featurette="modal" id="forum_tips_modal"> | |
<div class="grid-container"> | |
<div class="grid-60 grid-parent centered"> | |
<div class="contained"> | |
<div class="video-container"> | |
<div class="video-player-container"> | |
<%= video(video) %> | |
</div> | |
</div> | |
<div class="grid-100 secondary-heading" style="padding-bottom: 0"> | |
<h1>Forum Tips</h1> | |
<p style="margin-bottom: 0">The best way to get the answers you're looking for is to learn how to best ask your question. Learn some tips on how to best format your questions in the forum.</p> | |
<a id="close-forum-tips-video" class="close-modal modal-close"><span class="icon icon-close"></span></a> | |
</div> | |
</div> | |
<script type="text/javascript" charset="utf-8"> | |
jQuery(function(){ | |
modal = Featurette.get("forum_tips_modal") | |
video = $('#forum_tips_modal').find('video')[0]; | |
$('.video-trigger').click(function() { | |
video.player.play(); | |
}); | |
$('#close-forum-tips-video').click(function() { | |
video.player.pause(); | |
video.player.setCurrentTime(0); | |
}); | |
}); | |
</script> | |
</div> | |
</div> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment