1const currentHost = window.location.hostname; 2let apiKey; 3let cardLimit = 0; 4const browserScreenWidth = window.innerWidth; 5 6if(currentHost == 'localhost'){ 7 apiKey = "e7343e36c31e7d42d94cd8453a"; //local 8 cardLimit = 20; //local 9} else if(currentHost == 'pmm-testing-grounds.ghost.io') { 10 apiKey = "fa6f52cc472aa086737ca9b691"; //test site 11 cardLimit = 20; 12} else { 13 apiKey = "3649f9601461aba13c5973c984"; //live 14 cardLimit = browserScreenWidth > 500 ? 24 : 12; // live 15} 16 17const api = new GhostContentAPI({ 18 url: window.location.origin, 19 key: apiKey, 20 version: "v5.0", 21});
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.