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
sublimevideo.ready(function() { | |
$$("img.custom_play_button").each(function(img) { | |
img.on("click", function(event) { | |
event.stop(); | |
// Hide the posterframe and prepare and play the video | |
sublimevideo.prepareAndPlay(img.readAttribute("id").replace(/^posterframe_/, "")); | |
img.hide(); | |
}.bind(this)); | |
}.bind(this)); | |
}); |
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
<video class="sublime" poster="posterframe.jpg" width="640" height="360" preload="none"> | |
<source src="video.mp4" /> | |
<source src="video.webm" /> | |
<source src="video.ogv" /> | |
</video> |
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
<img id="posterframe_video1" class="custom_play_button" src="posterframe.jpg" width="640" height="360" /> | |
<video id="video1" style="display:none;" poster="posterframe.jpg" width="640" height="360" preload="none"> | |
<source src="video.mp4" /> | |
<source src="video.ogv" /> | |
</video> |
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
#interactive .video_wrap { | |
width:640px; | |
height:360px; | |
display:none; | |
} | |
#interactive .video_wrap.active { | |
display:block; | |
} | |
#interactive li.active { | |
background:#000; |
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
<div id="interactive"> | |
<div class="video_wrap"> | |
<video id="video1" class="sublime" poster="posterframe1.jpg" | |
width="640" height="360" preload="none"> | |
<source src="video1.mp4" /> | |
<source src="video1.webm" /> | |
<source src="video1.ogv" /> | |
</video> | |
</div> | |
<div class="video_wrap"> |
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
<script type="text/javascript">document.write(unescape("%3Cscript src='" + (("https:" == document.location.protocol) ? "https://4076.voxcdn.com" : "http://cdn.sublimevideo.net") + "/js/YOUR_TOKEN.js' type='text/javascript'%3E%3C/script%3E"));</script> |
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
<!-- Inside the <head> tag --> | |
<script type="text/javascript" src="http://cdn.sublimevideo.net/js/YOUR_TOKEN.js"></script> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['sv._setAccount', 'UA-XXXXX-X']); | |
_gaq.push(['sv._trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
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
# For https://github.com/guard/guard/blob/master/CHANGELOG.md | |
input, output, people = File.read('CHANGELOG.md'), "", {} | |
input.each_line do |line| | |
if found = line.match(/\[@(\w+)\]\(([\w:\/.]+)\)/) | |
user, url = found[1], found[2] | |
people[user] = url unless people.include?(user) | |
end | |
end |
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
<!-- Inside the <head> tag --> | |
<script type="text/javascript" src="http://cdn.sublimevideo.net/js/YOUR_TOKEN.js"></script> | |
<!-- Inside the <body> tag --> | |
<a class="sublime" href="video.mp4"> | |
Click here to view the video | |
</a> | |
<video class="sublime zoom" poster="posterframe.jpg" width="800" height="336" preload="none" style="display:none"> | |
<source src="video.mp4" /> | |
<source src="video.ogv" /> |
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
<!-- Inside the <head> tag --> | |
<script type="text/javascript" src="http://cdn.sublimevideo.net/js/YOUR_TOKEN.js"></script> | |
<style type="text/css" media="screen"> | |
#zoomable a { | |
display:block; | |
width:180px; | |
height:76px; | |
background:#000; | |
position:relative; | |
-webkit-box-shadow:rgba(0,0,0,0.4) 0 4px 10px; |