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
// check<Service>Status([ onSuccess, onFailure ]); | |
// i.e checkTaringaStatus(function () { alert('+10'); }); | |
(function () { | |
var checkServiceStatus = function (image, success, error) { | |
return function (success, error) { | |
var img = new Image(); | |
img.onload = success || function () {}; | |
img.onerror = error || function () {}; | |
img.src = image; | |
}; |
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 ($) { | |
"use strict"; | |
var wnd = $(window), | |
lastScrollTop = wnd.scrollTop(), | |
lastScrollLeft = wnd.scrollLeft(); | |
wnd.on("scroll", function (event) { | |
var scrollTop = wnd.scrollTop(), | |
scrollLeft = wnd.scrollLeft(), |
NewerOlder