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
var pausedDueToVisibility = []; | |
function pauseAllActiveWistiaVideos() { | |
window._wq = window._wq || []; | |
window._wq.push({ | |
id: "_all", | |
function (video) { | |
if (video.state() === "playing") { | |
pausedDueToVisibility.push(video); | |
video.pause(); |
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
(function() { | |
if (this.isWorking()) { | |
clapYourHands(); // bottles and cans | |
} | |
}()) |
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
this is a test |
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
<span style="font-size:15px;">My smaller text</span> |
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 full control, the embed shepherd can be dynamically loaded from another script, and the inline script executed | |
after it's loaded. | |
--> | |
<script src="http://fast.wistia.com/static/embed_shepherd-v1.js"></script> | |
<script> | |
wistiaEmbeds.onFind(function(video) { | |
video.bind("conversion", function(type, email) { | |
if (/(pre|mid|post)-roll/.test(type)) { | |
// Using jsonp is a simple way to allow cross-domain data sharing |
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
(function($) { | |
var deNthWordize, mode, nthWordize; | |
nthWordize = function(el) { | |
var $escaper, $this, $tns, textNode, textNodes, _i, _len; | |
$this = $(el); | |
textNodes = $this.find(":not(iframe)").andSelf().contents().filter(function() { | |
return this.nodeType === 3; | |
}); | |
for (_i = 0, _len = textNodes.length; _i < _len; _i++) { | |
textNode = textNodes[_i]; |
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="wistia_036h4wlrgo" class="wistia_embed" style="width:500px;height:281px;" data-video-width="500" data-video-height="281"> </div> | |
<script charset="ISO-8859-1" src="http://fast.wistia.net/static/concat/E-v1%2Cplaylist-v1.js"></script> | |
<script> | |
wistiaPlaylist = Wistia.playlist("036h4wlrgo", { | |
version: "v1", | |
videoOptions: { | |
volumeControl: true, | |
autoPlay: true, | |
videoWidth: 500, | |
videoHeight: 281 |
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
wistiaPlaylist = Wistia.playlist("playlisthashedid", { | |
... the options generated by Wistia ... | |
}); | |
var savedSection, savedVideo; | |
wistiaPlaylist.bind("play", function() { | |
savedSection = wistiaPlaylist.currentSectionIndex(); | |
savedVideo = wistiaPlaylist.currentVideoIndex(); | |
wistiaPlaylist.remove(); | |
wistiaEmbed = Wistia.embed("prerollhashedid", { | |
... whatever options you want ... |
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
<!-- A default Wistia embed code, plus the 'container' attribute so we can have multiples of the same video on the page. --> | |
<div id="wistia_4d8229898d_1" class="wistia_embed" style="width:640px;height:360px;" data-video-width="640" data-video-height="360"> </div> | |
<script charset="ISO-8859-1" src="http://fast.wistia.com/static/concat/E-v1.js"></script> | |
<script> | |
wistiaEmbed1 = Wistia.embed("4d8229898d", { | |
version: "v1", | |
videoWidth: 640, | |
videoHeight: 360, | |
container: "wistia_4d8229898d_1" | |
}); |
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
<a id="my_popover" href="http://fast.wistia.com/embed/iframe/fcf31a497a?autoPlay=true&controlsVisibleOnLoad=true&playerColor=81c2f0&popover=true&version=v1&videoHeight=360&videoWidth=640" class="wistia-popover[height=360,playerColor=81c2f0,width=640]"><img src="http://embed.wistia.com/deliveries/e45e6fd93899ef7abbbd0d1dc643e99e8d2f84d7.jpg?image_play_button=true&image_play_button_color=4991C4e0&image_crop_resized=150x84" alt="" /></a><script charset="ISO-8859-1" src="http://fast.wistia.com/static/popover-v1.js"></script> | |
<script> | |
wistiaJQuery("#my_popover").click(); | |
</script> |
NewerOlder