[ Launch: Chart legend ] 6209407 by first-developer
[ Launch: NVD3 ] 5846554 by first-developer
[ Launch: d3.chart examples ] 5823898 by first-developer
Web workers are great; they provide a powerful way to run background threads on website.
I wanted to create a more convenient way to deal with them in a jQuery-esque way. This code allows you to create a web worker and returns a jQuery.Deferred extended with some of the web worker methods on the instance.
// Alias vendor prefixes to standard.
if (!window.BlobBuilder) {
window.BlobBuilder = window.WebKitBlobBuilder || window.MozBlobBuilder;
[ Launch: Mailboxes data ] 5720665 by first-developer[ Launch: Mailboxes data ] 5697782 by first-developer[ Launch: Tributary inlet ] 5690774 by first-developer
[ Launch: Mailboxes data ] 5697782 by first-developer[ Launch: Tributary inlet ] 5690774 by first-developer
[ Launch: Tributary inlet ] 5690774 by first-developer
| <div class="m"></div> |
| var windowResize = function(fun){ | |
| var oldresize = window.onresize; | |
| window.onresize = function(e) { | |
| if (typeof oldresize == 'function') oldresize(e); | |
| fun(e); | |
| } | |
| }; | |
| var res = function (e) { |
The below configuration will pause the tour after tooltip 2 has appeared (index of 1). In the postStepCallback we check to see if the tour has been paused and fire some code.
<script>
$(window).load(function() {
$('#joyRideTipContent').joyride({
pauseAfter : [1],
postStepCallback : function (index, tip) {
if ($(this).joyride('paused')) {
console.log('Hey there, you\'ve paused the tour.');