1jQuery(document).ready(function() { 2 jQuery(".btn-dropdown-select").click(function() { 3 var select_id = '#' + jQuery(this).data("for-select"); 4 var $selectlist = jQuery(select_id); 5 console.log(select_id); 6 var url = $selectlist.val().trim(); 7 if(url != "") { 8 //Lets check if its a relative or absolute URL 9 if(url.indexOf("/") == 0) { 10 url = "https://" + window.location.hostname + url; 11 window.location = url; 12 } else { 13 //Lets check if its got the protocol set if not a relative one 14 if(url.indexOf("://") == -1) { 15 console.log("no protocol set"); 16 //default external links to http protocol if not set 17 url = "http://" + url; 18 } 19 window.location = url; 20 } 21 } else { 22 console.log("No destination selected yet"); 23 } 24 }); 25 26});
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.