1jQuery(document).ready(function(){ 2 3 $('ol li input[type="submit"]').button({icons: {primary: "ui-icon-folder-collapsed"}, text: true }); 4 $('ol li input[type="button"]').button({icons: {primary: "ui-icon-folder-collapsed"}, text: true }); 5 6 $(".parteneri a").simpletooltip(); 7 8 9 10 //$( "#multimedia_tabs" ).tabs(); 11 12 $("a.popup").fancybox({ 13 'titleShow' : true, 14 'transitionIn' : 'elastic', 15 'transitionOut' : 'elastic', 16 'titlePosition' : 'over', 17 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { 18 return '<span id="fancybox-title-over">Imaginea ' + (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title +'</span>'; 19 } 20 }); 21 $("a.popup_url").fancybox({ 22 'titleShow' : false, 23 'scrolling' : 'yes', 24 'width':'800', 25 'height':'500', 26 'autoScale' : 'true', 27 'overlayOpacity' : 0.7 , 28 'type':'iframe', 29 'onClosed' : function(){window.location=parent.window.location;} 30 }); 31 32 $("a.popup_url_share").fancybox({ 33 'titleShow' : false, 34 'scrolling' : 'yes', 35 'width':'500', 36 'height':'600', 37 'autoScale' : 'true', 38 'overlayOpacity' : 0.7 , 39 'type':'iframe' 40 }); 41 //$('div.foto_galerie').jqFancyTransitions({ width: 600, height: 450, navigation: true }); 42 43 $('#lnk_open_accesibility').click(function() { 44 $(".accesibility_options").toggleClass("open", 1000); 45 46 }); 47 48 $('#lnk_mare_txt').click(function(){ 49 50 curSize_p = parseInt($('.public_html .container p').css('font-size')) + 2; 51 if(curSize_p<=25){ 52 $('.public_html .container p,.public_html .container li, .public_html .container td').css('font-size', curSize_p); 53 } 54 55 56 curSize_a = parseInt($('.public_html .container a').css('font-size')) + 2; 57 if(curSize_a<=22) 58 $('.public_html .container a').css('font-size', curSize_a); 59 60 }); 61 $('#lnk_mic_txt').click(function(){ 62 63 curSize_p = parseInt($('.public_html .container p').css('font-size')) - 2; 64 if(curSize_p>=12) 65 $('.public_html .container p,.public_html .container li, .public_html .container td').css('font-size', curSize_p); 66 67 curSize_a = parseInt($('.public_html .container a').css('font-size')) - 2; 68 if(curSize_a>=12) 69 $('.public_html .container a').css('font-size', curSize_a); 70 71 }); 72 73 $('#lnk_contrast').click(function() { 74 $(this).toggleClass("active", 1000); 75 $(".public_html ").toggleClass("contrast", 1000); 76 }); 77 78 $('#lnk_ev_lnk').click(function() { 79 $(this).toggleClass("active", 1000); 80 $(".public_html .container a").toggleClass("lnk_evident", 1000); 81 }); 82 83 $('#lnk_citeste_txt').click(function() { 84 speakArt(); 85 }); 86 $('#lnk_citeste_txt_stop').click(function() { 87 pauseArt() 88 }); 89 90 91 92 stopArt(); 93 94 95 96 cur_date=new Date($('#pg_date').val()); 97 //alert (cur_date); 98 $('#pg_date').datepicker(); 99 $('#pg_date').datepicker("setDate", cur_date); 100 $('#pg_date').datepicker('option', {dateFormat: 'yy-mm-dd'}); 101 //$('#pg_date').datepicker('option', {minDate: new Date()}); 102 103 $('#nsl_data').datepicker(); 104 $('#nsl_data').datepicker("setDate", cur_date); 105 $('#nsl_data').datepicker('option', {dateFormat: 'yy-mm-dd'}); 106 107 108 function addMega(){ 109 $(this).addClass("hovering"); 110 } 111 112 function removeMega(){ 113 $(this).removeClass("hovering"); 114 } 115 116 var megaConfig = { 117 interval: 50, 118 sensitivity: 3, 119 over: addMega, 120 timeout: 50, 121 out: removeMega 122 }; 123 124 $("#siteMainMnu ul li.mega").hoverIntent(megaConfig); 125 126 $('#siteMainMnu ul li a, a').hover( 127 function() { $(this).addClass('hover-state'); }, 128 function() { $(this).removeClass('hover-state'); } 129 ); 130 131 setTimeout(function() { $('div.ui-widget#uiwmsgok,div.ui-widget#uiwmsgerror').fadeOut('fast');}, 3500); // inchid mesajele de tip widget dupa 3 sec 132 133 134 135 $('#fileField').change(function() { 136 var nume; 137 var nume_fis; 138 //alert(nume); 139 nume=$('#fileField').val(); 140 nume_fis=nume.substring(nume.lastIndexOf('\\')+1,nume.lastIndexOf('\.')); 141 ext="."+nume.substring(nume.lastIndexOf('\.')+1,nume.length); 142 $('#file_name').val(nume_fis); 143 $('#extensie').html(ext); 144 }); 145 146 ////// CHECK ALL FILES 147 148 $(".parentCheckBox").click(function() { 149 $(this).parents('table:eq(0)').find('.chk_file').attr('checked', this.checked); } 150 ); 151
152 $('.chk_file').click(function() { 153 if ($(this).parents('table:eq(0)').find('.parentCheckBox').attr('checked') == true && this.checked == false) 154 $(this).parents('table:eq(0)').find('.parentCheckBox').attr('checked', false); 155 if (this.checked == true) { 156 var flag = true; 157 $(this).parents('table:eq(0)').find('.chk_file').each( 158 function() { 159 if (this.checked == false) 160 flag = false; 161 } 162 ); 163 $(this).parents('table:eq(0)').find('.parentCheckBox').attr('checked', flag); 164 } 165 } 166 ); 167 /* 168 $('table tr').click(function(event) { 169 if (event.target.type !== 'checkbox') { 170 $('.chk_file', this).trigger('click'); 171 } 172 }); 173 */ 174 ////// CHECK ALL PAGES 175 176 $(".parentCheckBox").click(function() { 177 $(this).parents('table:eq(0)').find('.chk_page').attr('checked', this.checked); } 178 ); 179 180 $('.chk_page').click(function() { 181 if ($(this).parents('table:eq(0)').find('.parentCheckBox').attr('checked') == true && this.checked == false) 182 $(this).parents('table:eq(0)').find('.parentCheckBox').attr('checked', false); 183 if (this.checked == true) { 184 var flag = true; 185 $(this).parents('table:eq(0)').find('.chk_page').each( 186 function() { 187 if (this.checked == false) 188 flag = false; 189 } 190 ); 191 $(this).parents('table:eq(0)').find('.parentCheckBox').attr('checked', flag); 192 } 193 } 194 ); 195 /* 196 $('table tr').click(function(event) { 197 if (event.target.type !== 'checkbox') { 198 $('.chk_page', this).trigger('click'); 199 } 200 }); 201 */ 202 203 $("#lnkcautausr").click(function(){qc=$('#q').val(); window.location='q_'+qc+'_users_pg_0.htm';}); 204 $('#q').keypress(function(e){ if(e.which == 13){ qc=$('#q').val();window.location='q_'+qc+'_users_pg_0.htm'; }}); 205 206 $("#lnkcautapage").click(function(){qc=$('#qp').val(); window.location='q_'+qc+'_pages_pg_0.htm';}); 207 $('#qp').keypress(function(e){ if(e.which == 13){ qc=$('#qp').val();window.location='q_'+qc+'_pages_pg_0.htm'; }}); 208 209 210 $("#lnkcautaab").click(function(){qab=$('#qab').val(); window.location='q_'+qab+'_abonati_pg_0.htm';}); 211 $('#qab').keypress(function(e){ if(e.which == 13){ qab=$('#qab').val();window.location='q_'+qab+'_abonati_pg_0.htm'; }}); 212 213 $("#lnkcautacomm").click(function(){qacomm=$('#qacomm').val(); window.location='q_'+qacomm+'_comments_pg_0.htm';}); 214 $('#qacomm').keypress(function(e){ if(e.which == 13){ qacomm=$('#qacomm').val();window.location='q_'+qacomm+'_comments_pg_0.htm'; }}); 215 216 $("#lnkcautasite").click(function(){qs=$('#qs').val(); window.location='qss_'+qs+'_umpcultura_pg_0.htm';}); 217 $('#qs').keypress(function(e){ if(e.which == 13){ qs=$('#qs').val();window.location='qss_'+qs+'_umpcultura_pg_0.htm'; }}); 218 219 220 $("#select_pg").change(function(){ctg=$('#select_pg option:selected').val(); window.location='ctg_'+ctg+'_pages_pg_0.htm';}); 221 222 $(".multifile").multifile({limit: 0, limitMessage: true, unique: true}); 223 224 225 $('.lnkaddopt').click(function(){ 226 $(this).parent().clone(true).insertAfter($(this).parent()); 227 }); 228 $('.lnkdelopt').click(function(){ 229 $(this).parent().remove(); 230 }); 231 232 233 234 235 236 237 $('#btnSendOf').click(function(){ 238 alert("cvasad"); 239 }); 240 241 242 243//Paging and Slider Function 244rotate = function(){ 245 var triggerID = $active.attr("rel") - 1; //Get number of times to slide 246 var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide 247 248 $(".paging a").removeClass('active'); //Remove all active class 249 $active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function) 250 251 //Slider Animation 252 $(".image_reel").animate({ 253 left: -image_reelPosition 254 }, 1500 ); 255 256}; 257 258//Rotation and Timing Event 259rotateSwitch = function(){ 260 play = setInterval(function(){ //Set timer - this will repeat itself every 7 seconds 261 $active = $('.paging a.active').next(); //Move to the next paging 262 if ( $active.length === 0) { //If paging reaches the end... 263 $active = $('.paging a:first'); //go back to first 264 } 265 rotate(); //Trigger the paging and slider function 266 }, 7000); //Timer speed in milliseconds (7 seconds) 267}; 268 269rotateSwitch(); //Run function on launch 270 271$(".image_reel a").hover(function() { 272 clearInterval(play); //Stop the rotation 273}, function() { 274 rotateSwitch(); //Resume rotation timer 275}); 276 277//On Click 278$(".paging a").click(function() { 279 $active = $(this); //Activate the clicked paging 280 //Reset Timer 281 clearInterval(play); //Stop the rotation 282 rotate(); //Trigger rotation immediately 283 rotateSwitch(); // Resume rotation timer 284 return false; //Prevent browser jump to link anchor 285}); 286 287//Show the paging and activate its first link 288$(".paging").show(); 289$(".paging a:first").addClass("active"); 290 291//Get size of the image, how many images there are, then determin the size of the image reel. 292var imageWidth = $(".window").width(); 293var imageSum = $(".image_reel img").size(); 294var imageReelWidth = imageWidth * imageSum; 295 296//Adjust the image reel to its new size 297$(".image_reel").css({'width' : imageReelWidth}); 298 299 300 301 302$('select#pagecategs').multiselect2side({search: "Cauta: " }); 303 304 305 306 $('#rez_data_r').datepicker(); 307 $('#rez_data_r').datepicker($.datepicker.regional["ro"]); 308 $('#rez_data_r').datepicker('option', {dateFormat: 'dd-mm-yy'}); 309 $('#rez_data_r').datepicker('option', {minDate: new Date()}); 310 311 312 $('#rez_data_p').datepicker(); 313 $('#rez_data_p').datepicker($.datepicker.regional["ro"]); 314 $('#rez_data_p').datepicker('option', {dateFormat: 'dd-mm-yy'}); 315 316 $("#rez_data_r").change(function(){ 317 $('#rez_data_p').datepicker('option', {minDate: $(this).val()}); 318 }); 319 320 321 322}); 323 324 325 326function speakArt() { 327 //alert("Pagina va fi cititÄ automat de robot. "); 328 responsiveVoice.speak($('div.pg_info').text(),'Romanian Female') 329 }; 330 331function pauseArt() { 332 responsiveVoice.pause(); 333 }; 334 335function resumeArt() { 336 responsiveVoice.resume(); 337 }; 338 339function stopArt() { 340 responsiveVoice.cancel(); 341 342 };
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.