1/* 2* Handles redirections to BookMovement app or landing page 3*/ 4 5function getParameterByName(name, url) { 6 if (!url) url = window.location.href; 7 name = name.replace(/[\[\]]/g, "\\$&"); 8 var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), 9 results = regex.exec(url); 10 if (!results) return null; 11 if (!results[2]) return ''; 12 return decodeURIComponent(results[2].replace(/\+/g, " ")); 13} 14 15 16function isExclusivePage(ref) { 17 // for some exclusive pages, we won't redirect to landing 18 if (!ref) ref = window.location.pathname; 19 20 exclusivePages = [ 21 "/our-book-club-bookshelf/", 22 "/bookDetailView/", 23 "/clubSelectionMeeting/", 24 "/mobile-sign-", 25 "/iurl/", 26 "/unsubscribe/", 27 ]; 28 29 for ( var i = 0; i < exclusivePages.length; i++ ) { 30 if( ref.indexOf(exclusivePages[i]) > -1 ) { 31 return true; 32 } 33 } 34 35 return false; 36} 37
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.