PageSourceSearch

http://www.transmedia.bg/wp-admin/admin-ajax.php?action=yop_poll_l…=page&unique_id=_yp6ab5c06f12402&ver=5.8.2

js transmedia.bg collected 2026-09-25 00:30:11 UTC 5,650 bytes, 153 lines download raw bytes

1function stripBorder_7_yp6ab5c06f12402(object) {
2	object.each(function() {
3		if( parseInt(jQuery(this).width() ) > 0) {
4			jQuery(this).width(
5				parseInt(
6					jQuery(this).width() ) -
7					parseInt(jQuery(this).css("border-left-width")) -
8					parseInt(jQuery(this).css("border-right-width"))
9			);
10			}
11		else {
12		jQuery(this).css("border-left-width", "0px");
13		jQuery(this).css("border-right-width", "0px");
14		}
15	});
16}
17function stripPadding_7_yp6ab5c06f12402(object) {
18	object.each(function() {
19		jQuery(this).width(
20		parseInt( jQuery(this).width() ) -
21		parseInt(jQuery(this).css("padding-left")) -
22		parseInt(jQuery(this).css("padding-left"))
23		);
24	});
25}
26
27function strip_results_7_yp6ab5c06f12402() {
28	stripPadding_7_yp6ab5c06f12402( jQuery("#yop-poll-container-7_yp6ab5c06f12402 .yop_poll_li_result-7_yp6ab5c06f12402") );
29	stripBorder_7_yp6ab5c06f12402(  jQuery("#yop-poll-container-7_yp6ab5c06f12402 .yop-poll-result-bar-7_yp6ab5c06f12402") );
30}
31
32jQuery(document).ready(function(e) {
33   jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
34	if(typeof window.strip_results_7_yp6ab5c06f12402 == "function")
35		strip_results_7_yp6ab5c06f12402();
36	if(typeof window.tabulate_answers_7_yp6ab5c06f12402 == "function")
37		tabulate_answers_7_yp6ab5c06f12402();
38	if(typeof window.tabulate_results_7_yp6ab5c06f12402 == "function")
39		tabulate_results_7_yp6ab5c06f12402();
40
41
42
43});
44
45function equalWidth_7_yp6ab5c06f12402(obj, cols, findWidest ) {
46
47    findWidest  = typeof findWidest  !== "undefined" ? findWidest  : false;
48    var quest=0;
49    if ( findWidest ) {
50        obj.each(function() {
51            var thisWidth = jQuery(this).width();
52            width = parseInt(thisWidth / cols);
53            jQuery(this).width(width);
54            jQuery(this).css("float", "left");
55        });
56    }
57    else {
58        var widest = 0;
59        var count  = 0;
60        var poz_each_question=0;
61
62        obj.each(function() {
63
64            count++;
65            cols[quest][2]=(jQuery('#yop-poll-answers-7_yp6ab5c06f12402-'+ cols[quest][3] +' li').length);
66            var thisWidth = jQuery(this).width();
67            if(thisWidth > widest) {
68                widest = thisWidth;
69            }
70            if(count<cols[quest][2])
71            { width = parseInt( 300 / cols[quest][0]);
72             if(cols[quest][0]==1)
73                        jQuery(".yop-poll-li-answer-7_yp6ab5c06f12402-"+cols[quest][3]).css("width","100%");
74             else
75                         jQuery(".yop-poll-li-answer-7_yp6ab5c06f12402-"+cols[quest][3]).width(width-20);
76             jQuery(".yop-poll-li-answer-7_yp6ab5c06f12402-"+cols[quest][3]).css("float", "left");
77            }
78            else
79            {
80                count=0;
81
82
83                width = parseInt( 300 / cols[quest][0]);
84                jQuery(".yop-poll-li-answer-7_yp6ab5c06f12402-"+cols[quest][3]).width(width-20);
85                jQuery(".yop-poll-li-answer-7_yp6ab5c06f12402-"+cols[quest][3]).css("float", "left");
86                quest++;
87            }
88
89        });
90}
91}
92
93function equalWidth2_7_yp6ab5c06f12402(obj, cols, findWidest ) {
94    findWidest  = typeof findWidest  !== "undefined" ? findWidest  : false;
95    var quest=0;
96
97    if ( findWidest ) {
98        obj.each(function() {
99            var thisWidth = jQuery(this).width();
100            width = parseInt(thisWidth / cols);
101            jQuery(this).width(width);
102            jQuery(this).css("float", "left");
103        });
104    }
105    else {
106        var widest = 0;
107        var count  = 0;
108        var poz_each_question=0;
109
110        obj.each(function() {
111            count++;
112            cols[quest][2]=(jQuery('#yop-poll-answers-7_yp6ab5c06f12402-'+ cols[quest][3] +' li').length);
113            var thisWidth = jQuery(this).width();
114            if(thisWidth > widest) {
115                widest = thisWidth;
116            }
117            if(count<cols[quest][2])
118            { width = parseInt( 300 / cols[quest][1]);
119             jQuery(".yop-poll-li-result-7_yp6ab5c06f12402-"+cols[quest][3]).width(width-20);
120             jQuery(".yop-poll-li-result-7_yp6ab5c06f12402-"+cols[quest][3]).css("float", "left");
121            }
122            else
123            {
124                count=0;
125
126
127                width = parseInt( 300 / cols[quest][1]);
128                jQuery(".yop-poll-li-result-7_yp6ab5c06f12402-"+cols[quest][3]).width(width-20);
129                jQuery(".yop-poll-li-result-7_yp6ab5c06f12402-"+cols[quest][3]).css("float", "left");
130                quest++;
131            }
132
133        });
134}
135}
136function tabulate_answers_7_yp6ab5c06f12402() {
137
138	equalWidth_7_yp6ab5c06f12402( jQuery("#yop-poll-container-7_yp6ab5c06f12402 .yop-poll-li-answer-7_yp6ab5c06f12402"), [[1,1,"",7]] );
139	//equalWidth_7_yp6ab5c06f12402( jQuery("#yop-poll-container-7_yp6ab5c06f12402 .yop-poll-li-answer-7_yp6ab5c06f12402 .yop-poll-results-bar-7_yp6ab5c06f12402 div "), [[1,1,"",7]], true );
140}
141
142function tabulate_results_7_yp6ab5c06f12402() {
143	equalWidth2_7_yp6ab5c06f12402( jQuery("#yop-poll-container-7_yp6ab5c06f12402 .yop-poll-li-result-7_yp6ab5c06f12402"), [[1,1,"",7]] );
144	//equalWidth_7_yp6ab5c06f12402( jQuery("#yop-poll-container-7_yp6ab5c06f12402 .yop-poll-li-result-7_yp6ab5c06f12402 .yop-poll-results-bar-7_yp6ab5c06f12402 div "), [[1,1,"",7]], true );
145	}
146
147jQuery(document).ready(function(){
148	runOnPollStateChange_7_yp6ab5c06f12402();
149});
150
151function runOnPollStateChange_7_yp6ab5c06f12402() {
152
153};jQuery(document).ready(function(){ jQuery('.yop-poll-li-answer-7_yp6ab5c06f12402').css('float','none');});

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.