1function Twitter() { 2 var _this = this; 3 var $ = jQuery; 4 this.linkClicked = false; 5 6 this.queueTwitter = function(url) { 7 if (typeof url !== 'undefined' && url.trim() != "") { 8 setTimeout(function() { 9 if (!_this.linkClicked) { 10 window.open(url); 11 } 12 13 _this.linkClicked = false; 14 }, 100); 15 } 16 }; 17 18 (function() { 19 $('.news-item-tweet').click(function () { 20 _this.queueTwitter(this.dataset.url); 21 }); 22 23 $('.news-item-tweet a').click(function (){ 24 _this.linkClicked = true; 25 }); 26 27 setInterval(function() { 28 if (jQuery.inArray(main.getBreak(), ['md', 'lg']) !== -1) { 29 var dtl_elems = jQuery('.news-dtl'); 30 if (dtl_elems.length) { 31 dtl_elems.each(function (i, e) { 32 for (var i = 0; i < 30 && jQuery(e).outerHeight() > jQuery(e).parent().outerHeight(); i++) { 33 var desc_elem = jQuery(e).find('.news-descr p'); 34 if (desc_elem.length) { 35 desc_elem.html(desc_elem.html().substring(0, desc_elem.html().indexOf('...') - 15) + '... <b>Read More</b>'); 36 } 37 } 38 }); 39 } 40 } 41 }); 42 })(); 43}
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.