1 2 3var externalScript=new Object(); 4var language; 5 6 7function bootStrap(lang){ 8 language=lang; 9} 10 11function loadScript(src, r){ 12 var head = document.getElementsByTagName("head")[0]; 13 if (externalScript[src] && !r) { 14 return; 15 } 16 externalScript[src]= document.createElement('script'); 17 externalScript[src].id = 'importedScriptId'; 18 externalScript[src].type = 'text/javascript'; 19 externalScript[src].src = src; 20 head.appendChild(externalScript[src]); 21} 22 23function doOnLoadFunctions(){ 24 for (var i=0; i<onLoadFunctions.length;i++) { 25 _ws_f=onLoadFunctions[i]; 26 _ws_f(); 27 //alert(onLoadFunctions[f]); 28 } 29} 30 31if ((window.newCookieConsent && parseInt(getCookie('cookieconsent_dismissed')) && parseInt(getCookie('worldsoftCookies'))) || (!window.newCookieConsent)) 32{ 33 if (getCookie("istats")) 34 { 35 setCookie("istats", parseInt(getCookie("istats")) + 1, null, "/"); 36 deleteCookie("firstvisit", "/"); 37 } else 38 { 39 if (getCookie("firstvisit")) 40 { 41 setCookie("istats", 1, null, "/"); 42 deleteCookie("firstvisit", "/"); 43 } else 44 { 45 setCookie("firstvisit", 1, null, "/"); 46 } 47 } 48} 49 50 51var cursor = {x:0, y:0}; 52jQuery(document).ready(function(){ 53 jQuery("body").mousemove(function(e){ 54 cursor.x = e.pageX; 55 cursor.y = e.pageY; 56 }); 57}); 58 59jQuery(document).ready(function(){ 60 var clicked = false; 61 var clickedT = false; 62 jQuery("a.greybox").click(function(){ 63 var t = this.title || $(this).text() || this.href; 64 var greybox_width=$(window).innerWidth()/1.5;//800; 65 var greybox_height=$(window).innerHeight()-10;//600; 66 67 if (this.rel.indexOf(",")!=-1){ 68 dimensions=this.rel.split(',',2); 69 greybox_width=parseInt(dimensions[0]); 70 greybox_height=parseInt(dimensions[1]); 71 } 72 clicked = this.href; 73 clickedT = t; 74 jQuery.GB_show(this.href, { 75 height: greybox_height, 76 width: greybox_width, 77 animation: false, 78 overlay_clickable: true, 79 caption: t 80 }); 81 $('#GB_window').css({'z-index':1500}); 82 83 return false; 84 }); 85 86 $(window).resize(function(){ 87 if($('#GB_window').length > 0 && clicked){ 88 jQuery.GB_hide(); 89 90 jQuery.GB_show(clicked, { 91 height: $(window).innerHeight()-10, 92 width: $(window).innerWidth()/1.5, 93 animation: false, 94 overlay_clickable: true, 95 caption: clickedT 96 }); 97 $('#GB_window').css({'z-index':1500}); 98 99 } 100 }); 101 102}); 103 104jQuery(document).ready(function(){ 105 if (typeof(jQuery.cookie) == 'function') { 106 if (jQuery.cookie('worldsoftCookies')) 107 { 108 jQuery.cookie("wsDock", null); 109 } 110 } 111}); 112 113 114 115$(document).ready(function() { 116 $('body').on('click', '.btn-href', function(){ 117 href = $(this).data('href'); 118 target = $(this).data('target'); 119 if (!target){ 120 target = '_self'; 121 } 122 if (!href){ 123 alert("missing attribute data-href"); 124 return false; 125 } 126 id = 'link-href-' + Math.floor(Math.random() * 26) + Date.now(); 127 element = '<a style="display:none" id="' + id +'" target="' + target + '" href="' + href + '"></a>'; 128 $( 'body' ).append(element); 129 $('#' + id)[0].click(); 130 // console.log(element); 131 return false; 132 }); 133 134}); 135 136 137 138$(document).ready(function() { 139 $('body').on('click', '.openWithSelfMain', function(){ 140 href = $(this).attr('href'); 141 id = $(this).attr('id'); 142 openWithSelfMain(href, id); 143 return false; 144 }) 145 146 147}); 148 149 150 151// Handle links with targets of overlays 152$(document).ready(function() { 153 $('a').each(function(){ 154 target = $(this).attr('target'); 155 href = $(this).attr('href'); 156 if (target == '_ceebox'){ 157 $(this).attr('target', ''); 158 $(this).addClass('ceebox'); 159 } 160 if (target == '_lightbox'){ 161 $(this).attr('target', ''); 162 $(this).addClass('lightbox'); 163 } 164 if (target == '_lightbox2'){ 165 $(this).attr('target', ''); 166 data_lightbox = $(this).data('lightbox'); 167 if (!data_lightbox){ 168 $(this).attr("data-lightbox", "lightbox2"); 169 } 170 171 } 172 if (target == '_fancybox'){ 173 $(this).attr('target', ''); 174 $(this).addClass('fancybox'); 175 } 176 if (target == '_greybox'){ 177 $(this).attr('target', ''); 178 $(this).addClass('greybox'); 179 } 180 if (target == '_magnific_popup'){ 181 $(this).attr('target', ''); 182 if (href.match(/\.(jpeg|jpg|gif|png)$/) != null){ 183 $(this).addClass('magnific_popup_image'); 184 } 185 } 186 }); 187}); 188 189 190 191// Handle responsive tables 192$(document).ready(function() { 193 $( "table.responsive-table" ).wrap( "<div class='table-responsive'></div>" ); 194}); 195
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.