Gadgets deadspinquotecarrotalignedwbgr

Related Stories:

Gadgets

ceo apple manufacturer confirms iphone wireless charging

deadspinquotecarrotalignedwbgr

dak prescott america pimp terez owens sports gossip blog

heres tyrese thinks fans blasting black queen

ronda rouseys judo coach doesnt fighting again

suck applying job

cars extended teaser introduces next generation racers

vnchy break down

next season fxs american horror story presidential election

england patriots party

Gadgets Mon Jul 03 2017 21:05:21 GMT+0000 (UTC)
rySelectorAll("." + search); } if (d.evaluate) { // IE6, IE7 pattern = ".//*[contains(concat(' ', @class, ' '), ' " + search + " ')]"; elements = d.evaluate(pattern, d, null, 0, null); while ((i = elements.iterateNext())) { results.push(i); } } else { elements = d.getElementsByTagName("*"); pattern = new RegExp("(^|\\s)" + search + "(\\s|$)"); for (i = 0; i < elements.length; i++) { if ( pattern.test(elements[i].className) ) { results.push(elements[i]); } } } return results; } } var LazyLoader = { lazyload: function(container_id, img_classname) { var container = document.getElementById(container_id); if (container) { var images = container.getElementsByClassName(img_classname); var now = Date.now()/1000, datasrc, img, load; var MAX_LOADTIME_SECS = 2; for (var i = 0, len = images.length; i < len; ++i) { img = images[i]; if (img.getBoundingClientRect().top < window.innerHeight + 400) { datasrc = img.getAttribute('data-src'); if (datasrc) { this._onloaders(img); img.src = datasrc; img.removeAttribute('data-src'); } else if (img.offsetHeight <= 35) { load = img.getAttribute('data-load'); if (now - parseInt(load) >= MAX_LOADTIME_SECS) { img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.border = "2px solid #eeeeee"; } } } } } }, _onloaders: function(img) { img.onerror = function() { //console.log("onerror img.src=" + img.src); img.onload = null; img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.background = "#eeeeee"; } img.onabort = function() { //console.log("onabort img.src=" + img.src); img.onload = null; img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.background = "#eeeeee"; } img.onload = function() { //console.log("onload img.src=" + img.src); if (img.offsetHeight <= 35) { img.onload = null; img.src = "http://cheers.ws/images/transparent.gif"; img.style.width = "98%"; img.style.height = "100px"; img.style.background = "#eeeeee"; } } } }; window.onload = resize; window.onresize = resize; resize();