1jQuery(document).ready(function () { 2// ==== Start: Remember previous for checkboxes 3 jQuery("input[type='checkbox'].inpt-ila").each(function() { 4 var mycookie = jQuery.cookie(jQuery(this).attr('id')); 5 if (mycookie && mycookie == "true") { 6 //jQuery(this).prop('checked', true); 7 jQuery(this).click(); 8 //jQuery(this).change(); 9 // Start: adding all the effects 10 // Underline 11 if((jQuery(this).attr('id') == "aunderline-layout-ila") && (mycookie == "true")) { 12 jQuery("body").addClass("aunderline-effect-ila"); 13 } 14 // Magnify 15 if((jQuery(this).attr('id') == "magnify-layout-ila") && (mycookie == "true")) { 16 jQuery("body").addClass("magnify-effect-ila"); 17 } 18 // Headline underline 19 if((jQuery(this).attr('id') == "hunderline-layout-ila") && (mycookie == "true")) { 20 jQuery("body").addClass("hunderline-effect-ila"); 21 } 22 // Animation block 23 if((jQuery(this).attr('id') == "aniblock-layout-ila") && (mycookie == "true")) { 24 jQuery("*").css("-webkit-animation-play-state", "paused"); 25 jQuery("*").css("-moz-animation-play-state", "paused"); 26 jQuery("*").css("-ms-animation-play-state", "paused"); 27 jQuery("*").css("animation-play-state", "paused"); 28 } 29 // Image tooltip 30 if((jQuery(this).attr('id') == "imagetooltip-layout-ila") && (mycookie == "true")) { 31 jQuery(".tooltip-ila").css("visibility", "visible"); 32 jQuery('img').hover(function () { 33 // Hover over code 34 var title = jQuery(this).attr('alt'); 35 jQuery(this).data('tipText', title); 36 jQuery('.tooltip-ila').text(title).fadeIn('slow'); 37 }, function () { 38 // Hover out code 39 jQuery(this).attr('alt', jQuery(this).data('tipText')); 40 jQuery('.tooltip-ila').hide(); 41 }).mousemove(function (e) { 42 var mousex = e.pageX + 20; 43 //Get X coordinates 44 var mousey = e.pageY + 10; 45 //Get Y coordinates 46 jQuery('.tooltip-ila').css({ 47 top: mousey, 48 left: mousex 49 }) 50 }); 51 } 52 // Key Navigation 53 if((jQuery(this).attr('id') == "keyboard-layout-ila") && (mycookie == "true")) { 54 jQuery("#keynav-menu-ila").show(); 55 if(!jQuery("body").hasClass("tab-highlight-ila")){jQuery("body").addClass("tab-highlight-ila");} 56 jQuery('.kccont-ila').focus(); 57 //3 menu controls highlit 58 jQuery( "#keynav-menu-ila a" ).click(function() { 59 jQuery("#keynav-menu-ila a").removeClass("selected"); 60 jQuery(this).addClass("selected"); 61 }); 62 // content focus 63 jQuery( "a.kccont-ila" ).click(function() { 64 jQuery('h1').find('a').focus(); 65 }); 66 // menu focus 67 jQuery( "a.kcmenu-ila" ).click(function() { 68 jQuery('ul li.menu-item:first-child()').find('a').focus(); 69 }); 70 // accessability panel 71 jQuery( "a.kcpanel-ila" ).click(function() { 72 jQuery('#settings-btn-ila').prop('checked', true).change(); 73 jQuery('.ac-label-ila').focus(); 74 }); 75 //universal enter key handle label 76 jQuery('label').keypress(function(event){ 77 var keycode = (event.keyCode ? event.keyCode : event.which); 78 if(keycode == '13'){ 79 //alert('You pressed a "enter" key in button'); 80 this.click(); 81 } 82 //event.stopPropagation(); 83 }); 84 //universal enter key handle link 85 jQuery('a').keypress(function(event){ 86 var keycode = (event.keyCode ? event.keyCode : event.which); 87 if(keycode == '13'){ 88 //alert('You pressed a "enter" key in button'); 89 this.click(); 90 } 91 //event.stopPropagation(); 92 }); 93 // 94 } 95 // 96 //- End: adding all the effects 97 } 98 }); 99 // write new choice of checkbox 100 jQuery("input[type='checkbox'].inpt-ila").change(function() { 101 jQuery.cookie(jQuery(this).attr("id"), jQuery(this).prop('checked'), { 102 path: '/', 103 expires: 365 104 }); 105 }); 106// ==== End: Remember previous for checkboxes 107// ==== Start: Remember previous for radio 108 jQuery(function(){ 109 // overwrite radio ':checked' property there (if exists in localStorage) : 110 jQuery('input[type=radio].inpt-ila').each(function(){ 111 var ila_ls_state = JSON.parse( localStorage.getItem('radio_' + this.id) ); 112 if (ila_ls_state) this.checked = ila_ls_state.checked; 113 // Start: adding all the effects 114 // GreyScale 115 if ((this.id == 'grey-layout-ila') && (ila_ls_state.checked == true)) { 116 jQuery("body").removeClass("inverse-effect-ila"); 117 jQuery("body").addClass("grey-effect-ila"); 118 } 119 // Inverse 120 if ((this.id == 'inverse-layout-ila') && (ila_ls_state.checked == true)) { 121 jQuery("body").removeClass("grey-effect-ila"); 122 jQuery("body").addClass("inverse-effect-ila"); 123 } 124 // Black Cursor 125 if ((this.id == 'bbcur-layout-ila') && (ila_ls_state.checked == true)) { 126 jQuery("body").removeClass("bwcur-effect-ila"); 127 jQuery("body").addClass("bbcur-effect-ila"); 128 } 129 // White cursor 130 if ((this.id == 'bwcur-layout-ila') && (ila_ls_state.checked == true)) { 131 jQuery("body").removeClass("bbcur-effect-ila"); 132 jQuery("body").addClass("bwcur-effect-ila"); 133 } 134 //- End: adding all the effects 135 }); 136 }); 137 // write new choice of radio 138 jQuery(window).bind('unload', function(){ 139 jQuery('input[type=radio].inpt-ila').each(function(){ 140 localStorage.setItem( 141 'radio_' + this.id, JSON.stringify({checked: this.checked}) 142 ); 143 }); 144 }); 145// ==== End: Remember previous for radio 146 147// ==== Start: Dynamic controls 148// ----------------------------- 149 150 // Greyscale Dynamic 151 jQuery("#grey-layout-ila").change(function() { 152 if(this.checked) { 153 jQuery("body").removeClass("inverse-effect-ila"); 154 jQuery("body").addClass("grey-effect-ila"); 155 } 156 if(!this.checked) { 157 jQuery("body").removeClass("grey-effect-ila"); 158 } 159 }); 160 // -- Greyscale Dynamic 161 // Inverse color Dynamic 162 jQuery("#inverse-layout-ila").change(function() { 163 if(this.checked) { 164 jQuery("body").removeClass("grey-effect-ila"); 165 jQuery("body").addClass("inverse-effect-ila"); 166 } 167 if(!this.checked) { 168 jQuery("body").removeClass("inverse-effect-ila"); 169 } 170 }); 171 // -- Inverse color Dynamic 172 // Underline Dynamic 173 jQuery("#aunderline-layout-ila").change(function() { 174 if(this.checked) { 175 jQuery("body").addClass("aunderline-effect-ila"); 176 } 177 if(!this.checked) { 178 jQuery("body").removeClass("aunderline-effect-ila"); 179 } 180 }); 181 // -- Underline Dynamic 182 // Magnify Dynamic 183 jQuery("#magnify-layout-ila").change(function() { 184 if(this.checked) { 185 jQuery("body").addClass("magnify-effect-ila"); 186 } 187 if(!this.checked) { 188 jQuery("body").removeClass("magnify-effect-ila"); 189 } 190 }); 191 // -- Magnify Dynamic 192 // Black Cursor Dynamic 193 jQuery("#bbcur-layout-ila").change(function() { 194 if(this.checked) { 195 jQuery("body").removeClass("bwcur-effect-ila"); 196 jQuery("body").addClass("bbcur-effect-ila"); 197 } 198 if(!this.checked) { 199 jQuery("body").removeClass("bbcur-effect-ila"); 200 } 201 }); 202 // -- Black Cursor Dynamic 203 // White Cursor Dynamic 204 jQuery("#bwcur-layout-ila").change(function() { 205 if(this.checked) { 206 jQuery("body").removeClass("bbcur-effect-ila"); 207 jQuery("body").addClass("bwcur-effect-ila"); 208 } 209 if(!this.checked) { 210 jQuery("body").removeClass("bwcur-effect-ila"); 211 } 212 }); 213 // -- White Cursor Dynamic 214 // Headline Underline Dynamic 215 jQuery("#hunderline-layout-ila").change(function() { 216 if(this.checked) { 217 jQuery("body").addClass("hunderline-effect-ila"); 218 } 219 if(!this.checked) { 220 jQuery("body").removeClass("hunderline-effect-ila"); 221 } 222 }); 223 // -- Headline underline Dynamic 224 // Image tooltip dynamic 225 jQuery("#imagetooltip-layout-ila").change(function() { 226 if(this.checked) { 227 jQuery(".tooltip-ila").css("visibility", "visible"); 228 jQuery('img').hover(function () { 229 // Hover over code 230 var title = jQuery(this).attr('alt'); 231 jQuery(this).data('tipText', title); 232 jQuery('.tooltip-ila').text(title).fadeIn('slow'); 233 }, function () { 234 // Hover out code 235 jQuery(this).attr('alt', jQuery(this).data('tipText')); 236 jQuery('.tooltip-ila').hide(); 237 }).mousemove(function (e) { 238 var mousex = e.pageX + 20; 239 //Get X coordinates 240 var mousey = e.pageY + 10; 241 //Get Y coordinates 242 jQuery('.tooltip-ila').css({ 243 top: mousey, 244 left: mousex 245 }) 246 }); 247 } 248 if(!this.checked) { 249 jQuery(".tooltip-ila").css("visibility", "hidden"); 250 } 251 }); 252 //-- Image tooltip dynamic 253 // Animation blocker dynamic 254 jQuery("#aniblock-layout-ila").change(function() { 255 if(this.checked) { 256 jQuery("*").css("-webkit-animation-play-state", "paused"); 257 jQuery("*").css("-moz-animation-play-state", "paused"); 258 jQuery("*").css("-ms-animation-play-state", "paused"); 259 jQuery("*").css("animation-play-state", "paused"); 260 } 261 if(!this.checked) { 262 jQuery("*").css("-webkit-animation-play-state", "running"); 263 jQuery("*").css("-moz-animation-play-state", "running"); 264 jQuery("*").css("-ms-animation-play-state", "running"); 265 jQuery("*").css("animation-play-state", "running"); 266 } 267 }); 268 //-- Animation blocker dynamic 269 // Keyboard Navigation dynamic 270 jQuery("#keyboard-layout-ila").change(function() { 271 //show navigator 272 if(this.checked) { 273 jQuery("#keynav-menu-ila").show(); 274 if(!jQuery("body").hasClass("tab-highlight-ila")){jQuery("body").addClass("tab-highlight-ila");} 275 jQuery('.kccont-ila').focus(); 276 //3 menu controls highlit 277 jQuery( "#keynav-menu-ila a" ).click(function() { 278 jQuery("#keynav-menu-ila a").removeClass("selected"); 279 jQuery(this).addClass("selected"); 280 }); 281 // content focus 282 jQuery( "a.kccont-ila" ).click(function() { 283 jQuery('h1').find('a').focus(); 284 }); 285 // menu focus 286 jQuery( "a.kcmenu-ila" ).click(function() { 287 jQuery('ul li.menu-item:first-child()').find('a').focus(); 288 }); 289 // accessability panel 290 jQuery( "a.kcpanel-ila" ).click(function() { 291 jQuery('#settings-btn-ila').prop('checked', true).change(); 292 jQuery('.ac-label-ila').focus(); 293 }); 294 //universal enter key handle label 295 jQuery('label').keypress(function(event){ 296 var keycode = (event.keyCode ? event.keyCode : event.which); 297 if(keycode == '13'){ 298 //alert('You pressed a "enter" key in button'); 299 this.click(); 300 } 301 //event.stopPropagation(); 302 }); 303 //universal enter key handle link 304 jQuery('a').keypress(function(event){ 305 var keycode = (event.keyCode ? event.keyCode : event.which); 306 if(keycode == '13'){ 307 //alert('You pressed a "enter" key in button'); 308 this.click(); 309 } 310 //event.stopPropagation(); 311 }); 312 // 313 } 314 //hide navigator 315 if(!this.checked) { 316 jQuery("#keynav-menu-ila").hide(); 317 jQuery("body").removeClass("tab-highlight-ila"); 318 } 319 }); 320 //-- Keyboard Navigation dynamic 321 322// ==== End: Dynamic controls 323// ----------------------------- 324 325 326 // Font control nondynamic 327 jQuery(".fsmall-ila").click(function(event){ 328 event.preventDefault(); 329 jQuery("h1, h2, h3, h4, h5, h6, p").removeClass("fzsmall-ila fzmedium-ila fzlarge-ila"); 330 jQuery("h1, h2, h3, h4, h5, h6, p").addClass("fzsmall-ila"); 331 }); 332 333 jQuery(".fmedium-ila").click(function(event){ 334 event.preventDefault(); 335 jQuery("h1, h2, h3, h4, h5, h6, p").removeClass("fzsmall-ila fzmedium-ila fzlarge-ila"); 336 jQuery("h1, h2, h3, h4, h5, h6, p").addClass("fzmedium-ila"); 337 }); 338 339 jQuery(".flarge-ila").click(function(event){ 340 event.preventDefault(); 341 jQuery("h1, h2, h3, h4, h5, h6, p").removeClass("fzsmall-ila fzmedium-ila fzlarge-ila"); 342 jQuery("h1, h2, h3, h4, h5, h6, p").addClass("fzlarge-ila"); 343 }); 344 //reset all 345 jQuery(".freset-ila").click(function(event){ 346 event.preventDefault(); 347 jQuery("h1, h2, h3, h4, h5, h6, p").removeClass("fzsmall-ila fzmedium-ila fzlarge-ila"); 348 }); 349 //highlit font choice 350 jQuery( "#font-size-ila a" ).click(function() { 351 jQuery("#font-size-ila a").removeClass("selected"); 352 jQuery(this).addClass("selected"); 353 }); 354 //-- Font control nondynamic 355 356 357// Reset all controls 358 jQuery( "#reset-layout-ila" ).click(function() { 359 // clear all radio and checkbox 360 jQuery("*[class$='-layout-ila']").prop('checked', false).change(); 361 // clear font control 362 jQuery("h1, h2, h3, h4, h5, h6, p").removeClass("fzsmall-ila fzmedium-ila fzlarge-ila"); 363 jQuery("#font-size-ila a").removeClass("selected"); 364 // clear image tooltip 365 jQuery(".tooltip-ila").css("visibility", "hidden"); 366 // clear ani blocker 367 jQuery("*").css("-webkit-animation-play-state", "running"); 368 jQuery("*").css("-moz-animation-play-state", "running"); 369 jQuery("*").css("-ms-animation-play-state", "running"); 370 jQuery("*").css("animation-play-state", "running"); 371 }); 372//-- Reset All Controls 373// Extra close button and icon toggle 374 jQuery("#settings-btn-ila").change(function() { 375 if(this.checked) { 376 jQuery(".settings-box-element-ila.ac-label-ila i.fa").removeClass("fa-wheelchair"); 377 jQuery(".settings-box-element-ila.ac-label-ila i.fa").addClass("fa-close"); 378 } 379 if(!this.checked) { 380 jQuery(".settings-box-element-ila.ac-label-ila i.fa").removeClass("fa-close"); 381 jQuery(".settings-box-element-ila.ac-label-ila i.fa").addClass("fa-wheelchair"); 382 } 383 }); 384 jQuery( ".ila-extra-close" ).click(function() { 385 // clear all radio and checkbox 386 jQuery("#settings-btn-ila").prop('checked', false).change(); 387 }); 388//-- Extra close button 389});
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.