PageSourceSearch

https://www.abn.info.ve/wp-content/themes/trendyblog-theme_new/js/trendyblog.js?ver=1.0.0

js abn.info.ve collected 2026-10-02 10:03:46 UTC 5,163 bytes, 158 lines download raw bytes

1var breakingStart = true; // autostart breaking news
2var breakingSpeed = 40; // breaking msg speed
3
4var breakingScroll = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
5var breakingOffset = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
6var elementsToClone = [true, true, true, true, true, true, true, true, true, true];
7var elementsActive = [];
8var theCount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
9
10jQuery(document).ready(function() {
11
12
13	jQuery(".add_to_cart_button").on("click",function() {
14		setTimeout(function() {
15			var cartItems = jQuery(".df-cart-count", "#header_main");
16			var ItemCount = jQuery(".df-cart ul li", "#header_main").size();
17
18			if(ItemCount==1) {
19				var val = 'one';
20			} else {
21				var val = 'more';
22			}
23			cartItems.html(ItemCount+' '+jQuery(".df-cart-count", "#header_main").data(val));
24		}, 1500);
25	});
26
27
28    //Rating System
29    jQuery('span.meta_likes').on("click","a",function() {
30    	var clicked = jQuery(this);
31    	//var voteVal = jQuery(this).attr("data-val");
32    	var postID = clicked.attr("data-id");
33
34    	if(!jQuery(this).hasClass('voted')) {
35    		if(jQuery.cookie(df.THEME_NAME+'_rating_'+postID)!="set") {
36				jQuery.ajax({
37					url: df.adminUrl,
38					type:"POST",
39					data:"action=df_rating_system&post_id="+ postID,
40					success:function(results) {
41						var tip = clicked.attr('data-tip');
42						var heart = clicked.attr('data-heart');
43						if(results==1) {
44							if (typeof tip !== typeof undefined && tip !== false) {
45								clicked.attr('data-tip',results+" like");
46							}
47							if (typeof heart !== typeof undefined && heart !== false) {
48								clicked.attr('data-heart',results+" like");
49							}
50						} else {
51							if (typeof tip !== typeof undefined && tip !== false) {
52								clicked.attr('data-tip',results+" likes");
53							}
54							if (typeof heart !== typeof undefined && heart !== false) {
55								clicked.attr('data-heart',results+" likes");
56							}
57						}
58						clicked.addClass('voted');
59						if (typeof tip !== typeof undefined && tip !== false) {
60							clicked.html('<i class="fa fa-heart"></i>');
61						}
62						if (typeof heart !== typeof undefined && heart !== false) {
63							clicked.html(results);
64						}
65						jQuery.cookie(df.THEME_NAME+'_rating_'+postID, 'set', { expires: 10, path: '/'});
66					}
67				});
68			} else {
69				alert("You already have liked this post!");	
70			}
71		} else {
72			alert("You already have liked this post!");
73		}
74    });
75
76	// Breaking News Scroller
77    jQuery(".breaking-news .container").mouseenter(function () {
78        var thisindex = jQuery(this).attr("rel");
79        clearTimeout(elementsActive[thisindex]);
80    }).mouseleave(function () {
81        var thisindex = jQuery(this).attr("rel");
82        elementsActive[thisindex] = false;
83    });
84
85    start();
86
87
88});
89
90function start() {
91    var z = 0;
92
93    jQuery('.breaking-block ul').each(function () {
94        var thisitem = jQuery(this), thisindex = z;
95        z = z + 1;
96        if (thisitem.find("li").size() > 0) {
97
98            if (!breakingStart) { return false; }
99            var theBreakingMargin = parseInt(thisitem.find("li").css("margin-right")),
100            	theBreakingWidth = parseInt(thisitem.parent().css("width")),
101
102				itemul = thisitem,
103            	itemtemp = 0,
104            	items = itemul.find("li").each(function(){
105            		itemtemp = itemtemp+parseInt(jQuery(this).width()) + parseInt(jQuery(this).css("padding-right")) + parseInt(jQuery(this).css("margin-right"));
106            	});
107
108            theCount[thisindex] = (itemtemp / 2);
109
110            if (elementsToClone[thisindex]) {
111                jQuery(this).parent().parent().addClass("isscrolling");
112                jQuery('.breaking-block').eq(thisindex).parent().attr("rel", thisindex);
113                thisitem.find("li").clone().appendTo(this);
114
115                elementsToClone[thisindex] = false;
116            }
117            var theNumber = theCount[thisindex] + breakingOffset[thisindex];
118
119            if (Math.abs(theNumber) <= (Math.abs(breakingScroll[thisindex]))) {
120                cloneBreakingLine(thisindex);
121            }
122
123            if (!elementsActive[thisindex]) {
124                elementsActive[thisindex] = setInterval(function () {
125                    beginScrolling(thisitem, thisindex);
126                }, breakingSpeed);
127            }
128        }
129    });
130
131    setTimeout("start()", breakingSpeed);
132}
133
134function beginScrolling(thisitem, thisindex) {
135    breakingScroll[thisindex] = breakingScroll[thisindex] - 1;
136    thisitem.css("left", breakingScroll[thisindex] + 'px');
137}
138
139function cloneBreakingLine(thisindex) {
140    breakingScroll[thisindex] = 0;
141    jQuery('.breaking-block').eq(thisindex).find('ul').css("left", "0px");
142}
143
144jQuery( window ).resize(function() {
145	if(jQuery( window ).width() >= 993) {
146		jQuery("nav.site_navigation ul.menu").css("display", "block");
147		jQuery(".site_navigation_toggle").removeClass('active');
148	} else {
149		jQuery("nav.site_navigation ul.menu").attr("style", "");
150	}
151	if(jQuery( window ).width() >= 993) {
152		jQuery("nav.top_navigation ul.menu").css("display", "block");
153		jQuery(".site_navigation_toggle").removeClass('active');
154	} else {
155		jQuery("nav.top_navigation ul.menu").attr("style", "");
156	}
157
158});

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.