1$(document).ready(function () { 2 // Put proto/domain name without the www. or .com 3 var path = window.location.pathname.toString(); 4 var url = window.location.href.toString(); 5 var pathProto = path.split("/"); 6 var pathUrl = url.split("//"); 7 var protoBefore = pathUrl[1].split("."); 8 if (pathProto[2] === "designs" || protoBefore[0] === "santafehatch" || protoBefore[1] === "santafehatch" || pathProto[3] === "santafe") { 9 var proto = "murdochsirishpub"; 10 } else if (pathProto[2] === "proto") { 11 var proto = pathProto[3].toString(); 12 } else { 13 if (protoBefore.length > 2) { 14 var proto = protoBefore[protoBefore.length - 2].toString(); 15 } else { 16 var proto = protoBefore[0].toString(); 17 } 18 } 19 20 $.ajax({ 21 url: "https://rails-admin.spillover.com/esites-api/v1/" + proto + "/instagram_posts", 22 success: function (content) { 23 $.each(content, function (i) { 24 $(".instagram .uk-slider-items").append( 25 `<li class="instagram-item uk-transition-toggle" tabindex="0"> 26 <img data-src="${content[i].images[0]}" 27 alt="${(content[i].description || '').length > 125 ? (content[i].description.slice(0,125) + 'â¦') : (content[i].description || '')}" 28 class="lazyload instagram-image"> 29 <div class="instagram-item-overlay uk-position-center uk-panel uk-transition-sli
29de-bottom-small"> 30 <div class="instagram-inner-overlay"> 31 <div class="instagram-link"> 32 <a target="_blank" href="${content[i].link}"><i class="fa-solid fa-share"></i></a> 33 </div> 34 <div class="instagram-numbers"> 35 <div class="instagram-likes"> 36 <i class="fa-solid fa-heart me-2"></i>${content[i].likes} 37 </div> 38 <div class="instagram-comments"> 39 <i class="fa-solid fa-comment me-2"></i>${content[i].comments} 40 </div> 41 </div> 42 <div class="instagram-desc"> 43 <p>${content[i].description}</p> 44 </div> 45 </div> 46 </div> 47 </li>` 48 ); 49 }); 50 }, 51 }); 52});
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.