PageSourceSearch

https://www.dantetoday.org/wp-content/themes/Dante/dist/scripts.js?ver=1760557407

js dantetoday.org collected 2026-10-02 18:41:59 UTC 5,765 bytes, 1 lines download raw bytes

1function triggerResizeOnActivity(){function e(){window.dispatchEvent(new Event("resize"))}window.addEventListener("scroll",e),window.addEventListener("mousemove",e)}function setParentTerms(){["#field_2_20","#field_2_21","#field_2_22","#field_2_23","#field_2_24"].forEach(function(e){var t=jQuery(e+' .gfield_checkbox input[type="checkbox"]');0===t.length&&console.log("No checkboxes found in ",e),t.each(function(){var e=jQuery(this).next("label").text().trim();console.log("Checking label: ",e),0!==e.indexOf("--")?(jQuery(this).closest(".gchoice").addClass("top-level-term"),console.log("Added class to: ",jQuery(this).closest(".gchoice"))):console.log("Label starts with '--', no class added: ",e)})})}document.addEventListener("DOMContentLoaded",function(){function t(){var e=document.querySelector(".facetwp-selections"),t=document.querySelector(".all-sightings-text");e&&t&&(""===e.innerHTML.trim()?t.style.display="block":t.style.display="none")}var e=new MutationObserver(e=>{e.forEach(e=>{"childList"===e.type&&t()})}),n=document.querySelector(".facetwp-selections");n&&e.observe(n,{childList:!0,subtree:!0}),t()}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".main-content");e&&(e.innerHTML=e.innerHTML.replace(/\[\u2026\]/g,function(e){return'<span class="ellipses">'+e+"</span>"}))}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".expand, .image-frame img").forEach(function(e){e.addEventListener("click",function(e){var t=this.closest(".image-frame"),n=document.body;t.classList.toggle("expanded"),n.classList.toggle("dante-expanded",t.classList.contains("expanded")),e.stopPropagation()})}),document.addEventListener("keydown",function(e){"Escape"===e.key&&(document.querySelectorAll(".image-frame.expanded").forEach(function(e){e.classList.remove("expanded")}),document.body.classList.remove("dante-expanded"))}),document.addEventListener("click",function(e){e.target.closest(".image-frame img")||(document.querySelectorAll(".image-frame.expanded").forEach(function(e){e.classList.remove("expanded")}),document.body.classList.remove("dante-expanded"))})}),jQuery(document).on("click",".facetwp-selection-label",function(){jQuery(this).siblings(".facetwp-selection-value").click()}),document.addEventListener("DOMContentLoaded",function(){console.log("DOM fully loaded and parsed");var e=document.querySelector(".toggles");e&&(e.addEventListener("click",function(e){var t,e=e.target.closest(".facetwp-expand");e&&(t=e.closest(".toggle").querySelector('div[style*="max-height"]'))&&setTimeout(function(){var e=t.scrollHeight+"px";t.style.maxHeight=e},300)}),e.addEventListener("click",function(e){var t,e=e.target.closest(".facetwp-toggle");e&&(t=e.closest(".toggle").querySelector('div[style*="max-height"]'))&&setTimeout(function(){var e=t.scrollHeight+"px";t.style.maxHeight=e},300)}))}),document.addEventListener("DOMContentLoaded",function(){new MutationObserver(e=>{e.forEach(e=>{var t;"attributes"===e.type&&"class"===e.attributeName&&(t=function(e,t){for(;e=e.previousElementSibling;)if(e.classList.contains(t))return e;return null}(e=e.target,"facetwp-checkbox"),e.classList.contains("visible")?t&&t.classList.add("expanded"):t&&t.classList.remove("expanded"))})}).observe(document.body,{attributes:!0,subtree:!0,attributeFilter:["class"]})}),jQuery(document).ready(function(){(jQuery("body").hasClass("sighting-has-location")||jQuery("body").hasClass("page-id-37"))&&GMW.add_action("gmw_map_loaded",function(e,t){var n,o,s;e&&t&&t.map&&(n=document.body.classList.contains("sighting-has-location")?15:2,o=document.body.classList.contains("sighting-has-location")?jQuery(".single_map").data("dantelat"):30,s=document.body.classList.contains("sighting-has-location")?jQuery(".single_map").data("dantelng"):-30,window.innerWidth,o=new google.maps.LatLng(o,s),s={zoom:n,mapTypeId:google.maps.MapTypeId.ROADMAP,restriction:{latLngBounds:{north:85,south:-85,west:-179.9999,east:179.9999},strictBounds:!0}},GMW_Map_Providers.google_maps.setCenter(o,t),e.setOptions(s),GMW_Map_Providers.google_maps.resizeMap(e,t))})}),jQuery(document).ready(function(n){var o=["Month","January","February","March","April","May","June","July","August","September","October","November","December"];n("#input_1_10_1, #input_2_10_1, #input_2_26_1").each(function(){n(this).find("option").each(function(){var e=n(this),t=e.val();
1t?e.text(o[parseInt(t)]):e.text(o[0])})})}),window.addEventListener("load",function(){var e=document.querySelectorAll(".facetwp-checkbox.checked");const t=new Set;e.forEach(e=>{e=e.closest(".toggle").querySelector(".toggle-heading");e&&!t.has(e)&&(e.click(),t.add(e))})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".facetwp-template");e&&new MutationObserver(e=>{e.forEach(()=>{})}).observe(e,{childList:!0,subtree:!0,attributes:!1})}),document.addEventListener("DOMContentLoaded",function(){document.body.addEventListener("click",function(e){e.target.closest(".facetwp-display-value")&&setTimeout(()=>{window.innerWidth<1e3?document.querySelector(".facetwp-template").scrollIntoView({behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},100)})}),jQuery("#show-filters").click(function(){jQuery(this).hasClass("expanded")?(jQuery(".dante-filters").removeClass("show"),jQuery("#show-filters span").text("Show Filters"),jQuery(this).removeClass("expanded")):(jQuery(".dante-filters").addClass("show"),jQuery("#show-filters span").text("Hide Filters"),jQuery(this).addClass("expanded")),jQuery(document).trigger("resize")}),document.addEventListener("DOMContentLoaded",function(){triggerResizeOnActivity()}),jQuery(document).ready(function(){console.log("Document ready, setting parent terms."),setParentTerms()});

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.