1 2$( document ).ready(function() { 3 // hover over map 4 $('.nav a').mouseover(function () { 5 $('svg#interactiveMapWorld .region').removeClass('hover'); 6 $('svg#interactiveMapWorld .'+ $(this).data('mapiso')).addClass('hover'); 7 }); 8 9 // reset hover on menu 10 $('.nav a').mouseout(function () { 11 $('svg#interactiveMapWorld .region').removeClass('hover'); 12 }); 13 14 // Partnername redirection 15 function getUrlParameter(sParam) { 16 var sPageURL = window.location.search.substring(1), 17 sURLVariables = sPageURL.split('&'), 18 sParameterName, 19 i; 20 21 for (i = 0; i < sURLVariables.length; i++) { 22 sParameterName = sURLVariables[i].split('='); 23 24 if (sParameterName[0] === sParam) { 25 return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]); 26 } 27 } 28 return false; 29 }; 30 31 var partnername = getUrlParameter('partnername'); 32 var hubshopLinks = $('.js-partnerlink'); 33 34 if(partnername.length > 1 && hubshopLinks.length) { 35 hubshopLinks.each(function(index, element) { 36 var currentLink = $(element).attr('href'); 37 38 $(element).attr('href', currentLink + '?partnername=' + partnername); 39 }); 40 } 41 42});
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.