PageSourceSearch

https://www.craiovaforum.ro/clientscript/cfvb4v3.js?v=32

js craiovaforum.ro collected 2026-10-01 13:13:51 UTC 13,326 bytes, 395 lines download raw bytes

1function toplinks_dirty_work() {
2	var foo = $(window).width() - 980; //15px overflow de la marginile sidebarului
3	var doit = false;
4	if (foo>0) { doit = true; }
5	if (foo>60) { foo = 60; }
6	if (doit) { $('#after-user-area').css({width: 24+foo, marginRight: 0-foo}); }
7	else { $('#after-user-area').css({width: 24, marginRight: 0}); }
8}
9function dirty_work() {
10	toplinks_dirty_work();
11}
12$(document).ready(dirty_work);
13$(window).resize(dirty_work);
14
15$('.weathertrigger').live("click", function() {
16		$('#vremea-info').empty().html('<img src="/images/cfvb4/ajax-loader-white.gif" border="0" style="margin-top:30px; margin-left:130px;" />');
17		var thislink = $(this);
18		$.ajax({
19			url: 'cfmisc.php?do=vremea&oras=' + thislink.attr('title'), 
20			dataType: 'json',
21			success: function(data) {
22				if(data){
23						$('.oraselinks').addClass('weathertrigger');
24						thislink.removeClass('weathertrigger');
25						$('#vremea-info').empty().html(data.weatherinfobox);
26						$('#current-weather-city').empty().html(data.oras);
27						$('#current-weather-temp').empty().html(data.temp + '&deg;C');
28						$('#current-weather-cond').empty().html('<img src="/images/cfvb4/vreme/small/' + data.pic + '.png" border="0" />');
29						$('#current-weather-cond').attr('title', data.title);
30
31				}
32			}
33		});
34		return false;
35});
36
37var notificationsopen = 0, favoritesopen = 0, notifdetailsloaded = 0, vremecursopen = 0, fetching = 0;
38
39function refreshpopup(type){
40	if(type=='favorites'){
41		obj = $("#open-favorites");
42		req = 'listfav';
43	}
44	else if (type=='notifications'){
45		obj = $("#open-notifications");
46		req = 'listnotif';
47	}
48	else {
49		obj = $("#tab-vreme-curs");
50		req = 'listweather';
51	}
52	if(obj.HasBubblePopup()){
53		if(bubblehtml[type] == ''){
54			obj.SetBubblePopupInnerHtml('<img src="/images/misc/progress.gif" />', true);
55			setTimeout(function(){
56				$.get('/cfmisc.php?do=' + req, function(data) {
57					bubblehtml[type] = data;
58					obj.SetBubblePopupInnerHtml(bubblehtml[type], true);
59				});
60			}, 500);
61		}
62		else {
63			obj.SetBubblePopupInnerHtml(bubblehtml[type], true);
64			if(!notifdetailsloaded && type=='notifications'){
65				//$.ajax({url: '/cfmisc.php?do=notifdetails', success: function(data){
66					//alert(data.o);
67				//}});
68			}
69		}
70	}
71}
72
73function updatebadge(badge, num){
74	var curnumtext = $("#" + badge + "-badge-number").text();
75	if(curnumtext=='') {
76		curnum = 0;
77	} else {
78		curnum = parseInt(curnumtext);
79	}
80	curnum = curnum + num;
81	if (curnum > 0)
82	{
83		$("#" + badge + "-badge").show();
84	}
85	else {
86		$("#" + badge + "-badge").hide();
87	}
88	$("#" + badge + "-badge-number").text(curnum);
89}
90
91$(".favdel").live("click", function(e){
92	e.preventDefault();
93	var thisid = $(this).attr('id').split('-')[1];
94	if(thisid){
95		$("#favlist-row-" + thisid).hide("fast");
96		updatebadge('favorites', -1);
97		$.get("/cfmisc.php?do=delfav&id=" + thisid, function(data) {
98			bubblehtml['favorites'] = data;
99			$("#open-favorites").SetBubblePopupInnerHtml(bubblehtml['favorites'], true);
100		});
101	}
102});
103
104$("#tab-vreme-curs li, #faux-tab-vreme-curs").live("click", function(e) {
105	if (!($.browser.msie && $.browser.version<7)) {
106		e.preventDefault();
107		if(notificationsopen){
108			$("#open-notifications").HideBubblePopup();
109			notificationsopen = 0;
110		}
111		if(favoritesopen){
112			$("#open-favorites").HideBubblePopup();
113			favoritesopen = 0;
114		}
115		if(!vremecursopen){
116			$("#mainbanner").hide();
117			if($("#tab-vreme-curs").HasBubblePopup()){
118				$("#tab-vreme-curs").ShowBubblePopup();
119			} else {
120				$("#tab-vreme-curs").CreateBubblePopup({
121					width:'300px',
122					innerHtml:'', 
123					position:'bottom', 
124					distance: 0,
125					align:'center', 
126					themePath:'/clientscript/bubble3/jquerybubblepopup-themes/', 
127					manageMouseEvents:false, 
128					themeName:'azure', 
129					divStyle: {
130						'margin-top': '4px'
131					},
132					selectable:true,
133					openingSpeed:0,
134
135					innerHtmlStyle: {
136						'text-align': 'left'
137					}
138				}).ShowBubblePopup();
139			}
140			refreshpopup('vremecurs');
141			vremecursopen = 1;
142		}
143		else{
144			$("#tab-vreme-curs").HideBubblePopup();
145			$("#mainbanner").show();
146			vremecursopen = 0;
147		}
148	}
149});
150
151$("#open-favorites a.newpopupctrl").live("click", function(e) {
152	if (!($.browser.msie && $.browser.version<7)) {
153		e.preventDefault();
154		if(notificationsopen){
155			$("#open-notifications").HideBubblePopup();
156			notificationsopen = 0;
157		}
158		if(vremecursopen){
159			$("#tab-vreme-curs").HideBubblePopup();
160			vremecursopen = 0;
161		}
162		if(!favoritesopen){
163			$("#mainbanner").hide();
164			if($("#open-favorites").HasBubblePopup()){
165				$("#open-favorites").ShowBubblePopup();
166			} else {
167				$("#open-favorites").CreateBubblePopup({
168					width:'330px',
169					innerHtml:'', 
170					position:'bottom', 
171					distance: 0,
172					align:'center', 
173					themePath:'/clientscript/bubble3/jquerybubblepopup-themes/', 
174					manageMouseEvents:false, 
175					themeName:'azure', 
176					divStyle: {
177						'margin-top': '4px'
178					},
179					selectable:true,
180					openingSpeed:0,
181
182					innerHtmlStyle: {
183						'text-align': 'left'
184					}
185				}).ShowBubblePopup();
186			}
187			refreshpopup('favorites');
188			favoritesopen = 1;
189		}
190		else{
191			$("#open-favorites").HideBubblePopup();
192			$("#mainbanner").show();
193			favoritesopen = 0;
194		}
195	}
196});
197
198$("#open-notifications a.newpopupctrl").live("click", function(e) {
199	if (!($.browser.msie && $.browser.version<7)) {
200		e.preventDefault();
201		if(vremecursopen){
202			$("#tab-vreme-curs").HideBubblePopup();
203			vremecursopen = 0;
204		}
205		if(favoritesopen){
206			$("#open-favorites").HideBubblePopup();
207			favoritesopen = 0;
208		}
209		if(!notificationsopen){
210			$("#mainbanner").hide();
211			if($("#open-notifications").HasBubblePopup()){
212				$("#open-notifications").ShowBubblePopup();
213			} else {
214				$("#open-notifications").CreateBubblePopup({
215					width:'330px',
216					innerHtml:'', 
217					position:'bottom', 
218					align:'center', 
219					distance: 0,
220					themePath:'/clientscript/bubble3/jquerybubblepopup-themes/', 
221					manageMouseEvents:false, 
222					themeName:'azure', 
223					divStyle: {
224						'margin-top': '4px'
225					},
226					selectable:true,
227					openingSpeed:0,
228
229					innerHtmlStyle: {
230						'text-align': 'left'
231					}
232				}).ShowBubblePopup();
233			}
234			refreshpopup('notifications');
235			notificationsopen = 1;
236		}
237		else{
238			$("#open-notifications").HideBubblePopup();
239			$("#mainbanner").show();
240			notificationsopen = 0;
241		}
242	}
243});
244
245var zoomopen = 0;
246
247$(document).ready(function() {
248	var userlabel = $('#vb_login_username').attr('value');
249	var passlabel = $('#vb_login_password').attr('value');
250	$("#stylechooser li").click(function() {
251		var whatbg = $(this).attr("id").substr(13);
252		var bgcolors = [];
253		var blubtn = [];
254		var stdbtn = [];
255		var submenubg = [];
256		var footercontbgcolors = [];
257		bgcolors[1] = '1e90ff';
258		bgcolors[2] = '2c7ecf'; //'3E73A0';
259		bgcolors[8] = '777777';
260		var navbarshadow = [];
261		var sbinputshadow = [];
262		var navtabsshadow = [];
263		var langshadow = [];
264		var footercontshadow = [];
265		var searchbordertop = [];
266		var layoutpiecessprite = [];
267		navbarshadow[1] = '0 8px 8px #08538E';
268		navbarshadow[2] = '0 8px 8px #2E5473';
269		navbarshadow[8] = '0 8px 8px #454545';
270		langshadow[1] = '2px 2px 2px #08538E';
271		langshadow[2] = '2px 2px 2px #2E5473';
272		langshadow[8] = '2px 2px 2px #454545';
273		sbinputshadow[1] = '7px 1px 7px #2DC8FF';
274		sbinputshadow[2] = '7px 1px 7px #2E5473';
275		sbinputshadow[8] = '7px 1px 7px #454545';
276		navtabsshadow[1] = '0 1px 5px #1b81e4 inset';
277		navtabsshadow[2] = '0 1px 5px #2E5473 inset';
278		navtabsshadow[8] = '0 1px 5px #454545 inset';
279		footercontshadow[1] = '0 0 14px #08538E';
280		footercontshadow[2] = '0 0 14px #2E5473';
281		footercontshadow[8] = '0 0 14px #454545';
282		footercontbgcolors[1] = '#6ea2ce';
283		footercontbgcolors[2] = '#628EB3';
284		footercontbgcolors[8] = '#919599';
285		searchbordertop[1] = '1px solid #2DC8FF';
286		searchbordertop[2] = '1px solid #2E5473';
287		searchbordertop[8] = '1px solid #454545';
288		layoutpiecessprite[1] = '/images/cfvb4/layout-pieces.png';
289		layoutpiecessprite[2] = '/images/cfvb4/dark-layout-pieces.png';
290		layoutpiecessprite[8] = '/images/cfvb4/grey-layout-pieces.png';
291		blubtn[1] = '/images/cfvb4/blue_btn_repeater.png';
292		blubtn[2] = '/images/cfvb4/darkblue_btn_repeater.png';
293		blubtn[8] = '/images/cfvb4/grey_btn_repeater.png';
294		stdbtn[1] = '/images/cfvb4/standard-btn-repeater.png';
295		stdbtn[2] = '/images/cfvb4/dark-standard-btn-repeater.png';
296		stdbtn[8] = '/images/cfvb4/grey-standard-btn-repeater.png';
297		submenubg[1] = '/images/cfvb4/submenubg.png';
298		submenubg[2] = '/images/cfvb4/dark-submenubg.png';
299		submenubg[8] = '/images/cfvb4/grey-submenubg.png';
300		$("html").css("background", "url(\"/images/cfvb4/speech-bubble-pattern" + whatbg + ".jpg\") repeat scroll 0 0 transparent");
301		$(".blockhead, .threadlisthead, .wgo_block h2, .forumbits .forumhead h2, #sb_container #topctrl, .sticky_separator, .postbit .posthead, .postbitlegacy .posthead, .eventbit .eventhead, h2.searchlisthead, .navtabs li.selected ul.floatcontainer, #bottomsearch .navbar_search .textboxcontainer span, #globalsearch").css("background", "#" + bgcolors[whatbg]);
302		$(".navbar").css({"-moz-box-shadow": navbarshadow[whatbg], "-webkit-box-shadow": navbarshadow[whatbg], "box-shadow": navbarshadow[whatbg]});
303		$(".navtabs ul").css({"-moz-box-shadow": navtabsshadow[whatbg], "-webkit-box-shadow": navtabsshadow[whatbg], "box-shadow": navtabsshadow[whatbg]});
304		$("#sb_container #topctrl #inputtext").css({"-moz-box-shadow": sbinputshadow[whatbg], "-webkit-box-shadow": sbinputshadow[whatbg], "box-shadow": sbinputshadow[whatbg]});
305		$(".below_body #footer_continued").css({"background": footercontbgcolors[whatbg], "-moz-box-shadow": footercontshadow[whatbg], "-webkit-box-shadow": footercontshadow[whatbg], "box-shadow": footercontshadow[whatbg]});
306		$("#globalsearch").css({"border-top": searchbordertop[whatbg]});
307		$(".navtabs li.selected ul li.selected span.beforesubmenu, .navtabs li.selected ul li.selected span.aftersubmenu, .globalsearch input.textbox, .leftsbribbon, .rightsbribbon, #bottomsearch, #bottomsearch .navbar_search, .blubtn_start, .blubtn_end, .std_btn_before, .std_btn_after").css({"background-image": "url("+layoutpiecessprite[whatbg]+")"});
308		$("#toplinks ul#ul-lang li").css({"-moz-box-shadow": langshadow[whatbg], "-webkit-box-shadow": langshadow[whatbg], "box-shadow": langshadow[whatbg]});
309		$(".blubtn_start a.textcontrol").css({"background": "url("+blubtn[whatbg]+") repeat-x top left"});
310		$("#postlist_popups .popupmenu h6, .newcontent_textcontrol, .forumdisplaypopups.popupgroup .popupmenu#newthread a, #forumdisplaypopups.popupgroup .popupmenu h6, #search_popups.popupgroup .popupmenu h6").css({"background": "url("+stdbtn[whatbg]+") repeat-x top left"});
311		$(".navtabs li.selected ul li.selected div").css({"background": "url("+submenubg[whatbg]+") repeat-x top left"});
312		$.post("cfmisc.php?do=setbg&bgid=" + whatbg);
313	});
314
315	$(".helpz").CreateBubblePopup({
316		width: '200px',
317		innerHtml:'', 
318		position:'bottom', 
319		distance: 0,
320		themePath:'/clientscript/bubble3/jquerybubblepopup-themes/', 
321		themeName:'azure', 
322		divStyle: {
323			'margin-top': '4px'
324		},
325		openingSpeed:0,
326		innerHtmlStyle: {
327			'text-align': 'left'
328		}
329	});
330	$(".helpz").mouseover(function() {
331		var obj = $(this);
332		var tip = obj.data('help');
333		obj.SetBubblePopupInnerHtml(tip, true);
334	});
335
336	$('#moreusers a').click(function(){
337		tehheight = $('#userswrap .commalist').height();
338		$('#userswrap').animate({'height': tehheight});
339		$(this).remove();			
340		return false;
341	});
342
343	$('#morebirthdays a').click(function(){
344		tehheight = $('#bdaywrap .commalist').height();
345		$('#bdaywrap').animate({'height': tehheight});
346		$(this).remove();					
347		return false;
348	});
349
350	$('#vb_login_username').focus(function() {
351		if($(this).attr('value') == userlabel){
352			$(this).attr('value', '');
353			$(this).css('color', 'black');
354		}
355	});
356	$('#vb_login_username').blur(function() {
357		if(this.value == ''){
358			$(this).attr('value', userlabel);
359			$(this).css('color', '#828282');
360		}
361	});
362	$('#vb_login_password').focus(function() {
363		if($(this).attr('value') == passlabel){
364			$(this).attr('value','');
365			$(this).css('color', 'black');
366		}
367	});
368	$('#vb_login_password').blur(function() {
369		if($(this).attr('value') == ''){
370			$(this).attr('value', passlabel);
371			$(this).css('color', '#828282');
372		}
373	});
374	$('#navbar_loginform').bind('submit', function() {
375		if($('#vb_login_username').attr('value') == userlabel && $('#vb_login_password').attr('value') == passlabel)
376			return false;
377	});
378	$('#vB_Editor_001_save').click(function() {
379		$(this).parents('form:first').submit();
380		$(this).attr('disabled',true);
381	});
382	$('.datecontact').click(function() {
383		if(!fetching){
384			var thisid = $(this).attr('id').split('_')[1];
385			fetching = 1;
386			$.get('/cfmisc.php?do=datecontact&threadid=' + thisid, function(data) {
387					$('#datecontainer_' + thisid).html(data);
388				});
389		}
390		return false;
391	});
392	$('#humanverifyhash').val('b186d19231fd3f649650fb7989004077');
393});
394
395

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.