1/*! Customized Jquery from Thementicweb. 2Authors & copyright (c) 2013: Thementic - Megnor Computer Private Limited. */ 3/*! NOTE: This Javascript is licensed under two options: a commercial license, a commercial OEM license and Copyright by Megnor Computer Private Limited - For use Only with Thementic Themes for our Customers*/ 4(function(b) { 5 var a = "waitForImages"; 6 b.waitForImages = { 7 hasImageProperties: ["backgroundImage", "listStyleImage", "borderImage", "borderCornerImage", "cursor"] 8 }; 9 b.expr[":"].uncached = function(d) { 10 if (!b(d).is('img[src!=""]')) { 11 return false 12 } 13 var c = new Image(); 14 c.src = d.src; 15 return !c.complete 16 }; 17 b.fn.waitForImages = function(f, d, e) { 18 var g = 0; 19 var c = 0; 20 if (b.isPlainObject(arguments[0])) { 21 e = arguments[0].waitForAll; 22 d = arguments[0].each; 23 f = arguments[0].finished 24 } 25 f = f || b.noop; 26 d = d || b.noop; 27 e = !!e; 28 if (!b.isFunction(f) || !b.isFunction(d)) { 29 throw new TypeError("An invalid callback was supplied.") 30 } 31 return this.each(function() { 32 var j = b(this); 33 var k = []; 34 var h = b.waitForImages.hasImageProperties || []; 35 var i = /url\(\s*(['"]?)(.*?)\1\s*\)/g; 36 if (e) { 37 j.find("*").addBack().each(function() { 38 var l = b(this); 39 if (l.is("img:uncached")) { 40 k.push({ 41 src: l.attr("src"), 42 element: l[0] 43 }) 44 } 45 b.each(h, function(o, p) { 46 var m = l.css(p); 47 var n; 48 if (!m) { 49 return true 50 } 51 while (n = i.exec(m)) { 52 k.push({ 53 src: n[2], 54 element: l[0] 55 }) 56 } 57 }) 58 }) 59 } else { 60 j.find("img:uncached").each(function() { 61 k.push({ 62 src: this.src, 63 element: this 64 }) 65 }) 66 } 67 g = k.length; 68 c = 0; 69 if (g === 0) { 70 f.call(j[0]) 71 } 72 b.each(k, function(m, l) { 73 var n = new Image(); 74 b(n).on("load." + a + " error." + a, function(o) { 75 c++; 76 d.call(l.element, c, g, o.type == "load"); 77 if (c == g) { 78 f.call(j[0]); 79 return false 80 } 81 }); 82 n.src = l.src 83 }) 84 }) 85 } 86}(jQuery)); 87(function(a) { 88 a.fn.smartColumnsRows = function(b) { 89 var c = a.extend({ 90 defWidthClss: "grid_default_width", 91 subElement: "li", 92 subClass: "product-block", 93 firstClass: "first_item_tm", 94 lastClass: "last_item_tm" 95 }, b); 96 return this.each(function() { 97 var f = a(this); 98 var k = a(this).attr("id"); 99 var g = parseInt(a("." + c.defWidthClss).css("width")); 100 f.css("width", "auto"); 101 var j = f.width(); 102 var i = g; 103 var d = Math.floor(j / i); 104 var e = g * 100 / Math.floor(j / d); 105 if (e <= 75 && e >= 50) { 106 d = d + 1 107 } 108 if (a(window).width() < 380) { 109 d = 1 110 } 111 var h = Math.floor(j / d); 112 f.css("width", j); 113 a("#" + k + " > " + c.subElement).css("width", h); 114 a("#" + k + " > " + c.subElement).removeClass(c.firstClass); 115 a("#" + k + " > " + c.subElement + ":nth-child(" + d + "n+1)").addClass(c.firstClass); 116 a("#" + k + " > " + c.subElement).removeClass(c.lastClass); 117 a("#" + k + " > " + c.subElement + ":nth-child(" + d + "n)").addClass(c.lastClass); 118 f.waitForImages(function() { 119 var l = 0; 120 a("#" + k + " > " + c.subElement + " ." + c.subClass).each(function() { 121 a(this).css("height", "auto"); 122 l = Math.max(l, a(this).height()) 123 }); 124 if (l == 0) { 125 l = "auto" 126 } else { 127 l = l + "px" 128 } 129 a("#" + k + " > " + c.subElement + " ." + c.subClass).css("height", l) 130 }) 131 }) 132 } 133}(jQuery)); 134(function(a) { 135 a.fn.tmMark = function(b) { 136 var c = a.extend({ 137 checkboxCls: "tmpoption-checkbox", 138 radioCls: "tmpoption-radio", 139 checkedCls: "tmpoption-checked", 140 selectedCls: "tmpoption-selected", 141 hideCls: "tmpoption-hide" 142 }, b); 143 return this.each(function() { 144 var e = a(this); 145 var d = e.attr("type") == "checkbox" ? '<div class="' + c.checkboxCls + '">' : '<div class="' + c.radioCls + '">'; 146 if (e.attr("type") == "checkbox") { 147 e.addClass(c.hideCls).wrap(d).change(function() { 148 if (a(this).is(":checked")) { 149 a(this).parent().addClass(c.checkedCls) 150 } else { 151 a(this).parent().removeClass(c.checkedCls) 152 } 153 }); 154 if (e.is(":checked")) { 155 e.parent().addClass(c.checkedCls) 156 } 157 } else { 158 if (e.attr("type") == "radio") { 159 e.addClass(c.hideCls).wrap(d).change(function() { 160 a('input[name="' + a(this).attr("name") + '"]').each(function() { 161 if (a(this).is(":checked")) { 162 a(this).parent().addClass(c.selectedCls) 163 } else { 164 a(this).parent().removeClass(c.selectedCls) 165 } 166 }) 167 }); 168 if (e.is(":checked")) { 169 e.parent().addClass(c.selectedCls) 170 } 171 } 172 } 173 }) 174 } 175}(jQuery)); 176(function(a) { 177 a.fn.responsiveTable = function(b) { 178 var c = a.extend({}, { 179 prefix: "tg", 180 target: "" 181 }, b); 182 return this.each(function() { 183 var f = ""; 184 var e = ""; 185 var h = ""; 186 var d = ""; 187 c.prefix = c.prefix + "_"; 188 columns = []; 189 table_target = a(this); 190 var g = 0; 191 var i = 0; 192 a(table_target).find("tr").each(function() { 193 if (a(this).parent().attr("class") == "table-foot") { 194 var j = 0; 195 d += '<div class="' + c.prefix + "row " + columns[j].replace(/\s+/g, "") + '">\n'; 196 a(this).find("th,td").each(function() { 197 var k = a(this).html(); 198 if (j % 2 == 0) { 199 d += "<label>" + k.replace(/^\s\s*/, "").replace(/\s\s*$/, "") + "</label>\n" 200 } else { 201 d += "<span>" + k.replace(/^\s\s*/, "").replace(/\s\s*$/, "") + "</span>\n" 202 } 203 j++ 204 }); 205 d += "</div>\n" 206 } else { 207 var j = 0; 208 a(this).find("th,td").each(function() { 209 var k = a(this).html(); 210 if (g == 0) { 211 columns.push(a(this).html()) 212 } else { 213 h += '<div class="' + c.prefix + "row " + columns[j].replace(/\s+/g, "") + '">\n'; 214 h += "<label>" + columns[j] + "</label>\n"; 215 h += "<span>" + k.replace(/^\s\s*/, "").replace(/\s\s*$/, "") + "</span>\n"; 216 h += "</div>\n" 217 } 218 j++ 219 }); 220 if (g != 0) { 221 f += '<div class="' + c.prefix + "group " + c.prefix + g + '">\n'; 222 f += h; 223 f += "</div>\n"; 224 h = "" 225 } 226 } 227 g++ 228 }); 229 f = '<div class="' + c.prefix + 'container">\n' + f + "</div>\n"; 230 if (g != 0) { 231 e += '<div class="' + c.prefix + "group " + c.prefix + g + '">\n'; 232 e += d; 233 e += "</div>\n"; 234 d = "" 235 } 236 if (i != 0) { 237 f += '<div class="' + c.prefix + 'container_footer">\n' + e + "</div>\n" 238 } 239 if (c.target.length > 0) { 240 a(c.target).html(f) 241 } else { 242 a(table_target).before(f) 243 } 244 }) 245 } 246})(jQuery);
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.