1$(document).ready(function () { 2 var url = window.location.href; 3 var firstChoice = 'youtube-embed'; 4 var secondChoice = 'h2'; 5 const selectedPagesWhereToMove = ["https://dev.spiritdental.com/dental-insurance/individual-dental-insurance", 6 "https://test.spiritdental.com/education-pages-with-testimonial-carousel/individual-dental-insurance", 7 "https://spiritdental.com/dental-insurance/individual-dental-insurance"]; 8 9 var x2 = document.getElementsByClassName(firstChoice); 10 var x3 = document.getElementById('RaterInput'); 11 12 if (x2 == undefined || x2 == null || x2.length == 0) { 13 if (selectedPagesWhereToMove.includes(url)) 14 x2 = document.getElementsByTagName('h3'); //Swapping position with Testimonial Caroulse which is inserted here in the individual-dental-insurance page 15 else 16 x2 = document.getElementsByTagName(secondChoice)[1]; 17 } 18 19 20 if (x2 != undefined) { 21 if (HTMLCollection.prototype.isPrototypeOf(x2)) { 22 x2[0].insertAdjacentElement('beforebegin', x3); 23 } 24 else { 25 x2.insertAdjacentElement('beforebegin', x3); 26 } 27 } 28 29 if (document.getElementsByTagName('h2').length > 0 && document.getElementsByTagName('h2')[0].nextSibling.nextElementSibling.nextElementSibling.tagName == "HR") { 30 document.getElementsByTagName('h2')[0].nextSibling.nextElementSibling.nextElementSibling.remove(); 31 } 32 33 34 const mainPages = ["https://test.spiritdental.com/blog/categories", "https://test.spiritdental.com/blog/categories/senior-dental-health", "https://test.spiritdental.com/blog/categories/procedures", 35 "https://test.spiritdental.com/blog/categories/nutrition", "https://test.spiritdental.com/blog/categories/eye-health", "https://test.spiritdental.com/blog/categories/childrens-dental-health", 36 "https://test.spiritdental.com/blog/categories/dental-health", "https://spiritdental.com/blog/categories", "https://spiritdental.com/blog/categories/senior-dental-health", "https://spiritdental.com/blog/categories/procedures", 37 "https://spiritdental.com/blog/categories/nutrition", "https://spiritdental.com/blog/categories/eye-health", "https://spiritdental.com/blog/categories/childrens-dental-health", 38 "https://spiritdental.com/blog/categories/dental-health"] 39 40 if (!mainPages.includes(url)) { 41 document.getElementById('RaterInput').style.display = 'initial'; 42 } 43 44 if (window.location.href.includes('spirit-dental-for-every-situation')) { 45 x2 = document.getElementsByTagName('h3')[0]; 46 x2.insertAdjacentElement('beforebegin', x3); 47 48 $('#RaterInput div.home-rater-input').attr("style", "margin-top: 0px"); 49 } 50 51});
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.