1//prebaceno sve u core skriptu jer je mala skripta kako ne bismo imali request vise 2/* Loyad load image 3 * https://github.com/ApoorvSaxena/lozad.js 4 * MIT License 5*/ 6 7!function (t, e) { 8 "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.lozad = e() 9}(this, function () { 10 "use strict"; 11 12 function t(t) { 13 t.setAttribute("data-loaded", !0) 14 } 15 16 var e = Object.assign || function (t) { 17 for (var e = 1; e < arguments.length; e++) { 18 var r = arguments[e]; 19 for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]) 20 } 21 return t 22 }, r = document.documentMode, n = { 23 rootMargin: "0px", threshold: 0, load: function (t) { 24 if ("picture" === t.nodeName.toLowerCase()) { 25 var e = document.createElement("img"); 26 r && t.getAttribute("data-iesrc") && (e.src = t.getAttribute("data-iesrc")), t.appendChild(e) 27 } 28 t.getAttribute("data-src") && (t.src = t.getAttribute("data-src")), t.getAttribute("data-srcset") && (t.srcset = t.getAttribute("data-srcset")), t.getAttribute("data-background-image") && (t.style.backgroundImage = "url('" + t.getAttribute("data-background-image") + "')") 29 }, loaded: function () { 30 } 31 }, o = function (t) { 32 return "true" === t.getAttribute("data-loaded") 33 }, a = function (e, r) { 34 return function (n, a) { 35 n.forEach(function (n) { 36 n.intersectionRatio > 0 && (a.unobserve(n.target), o(n.target) || (e(n.target), t(n.target), r(n.target))) 37 }) 38 } 39 }, i = function (t) { 40 return t instanceof Element ? [t] : t instanceof NodeList ? t : document.querySelectorAll(t) 41 }; 42 return function () { 43 var r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ".lozad", 44 d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, u = e({}, n, d), c = u.rootMargin, 45 s = u.threshold, g = u.load, f = u.loaded, l = void 0; 46 return window.IntersectionObserver && (l = new IntersectionObserver(a(g, f), { 47 rootMargin: c, 48 threshold: s 49 })), { 50 observe: function () { 51 for (var e = i(r), n = 0; n < e.length; n++) o(e[n]) || (l ? l.observe(e[n]) : (g(e[n]), t(e[n]), f(e[n]))) 52 }, triggerLoad: function (e) { 53 o(e) || (g(e), t(e), f(e)) 54 } 55 } 56 } 57}); 58if(lozadJsFlag){ 59 lozad('.lozad', { 60 load: function(el) { 61 if (!el.classList.contains('lazy-loaded')) { 62 el.src = el.dataset.originalImg; 63 if(el.src !== undefined){ 64 el.onload = function() { 65 el.classList.add('fade'); 66 } 67 } 68 } 69 } 70 }).observe(); 71} 72
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.