PageSourceSearch

https://thenostalgiabox.com.au/wp-content/themes/hello-elementor-child/custom-script.js?ver=1866117422

js thenostalgiabox.com.au collected 2026-10-04 13:25:56 UTC 2,153 bytes, 88 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2  const button = document.getElementById("btn-scroll-to-top");
3
4  window.addEventListener("scroll", function () {
5    if (window.scrollY > 0) {
6      button.style.opacity = "1";
7    } else {
8      button.style.opacity = "0";
9    }
10  });
11
12  button.style.scrollBehavior = "smooth";
13
14  button.addEventListener("click", function () {
15    window.scrollTo({
16      top: 0,
17      behavior: "smooth",
18    });
19  });
20});
21
22document.addEventListener("DOMContentLoaded", () => {
23  const commentTexts = document.querySelectorAll(
24    ".elementor-post-info__item--type-comments"
25  );
26  commentTexts.forEach((commentText) => {
27    if (String(commentText.textContent).trim() == "No Comments") {
28      commentText.textContent = "0";
29    }
30    commentText.style.setProperty("display", "block", "important");
31  });
32});
33
34document.addEventListener("DOMContentLoaded", function () {
35    try {
36		const container = document.getElementById("custom-archive-title")
37		const text = container.querySelector('.elementor-heading-title')
38		const textArr = text.textContent.split(' ')
39		const result = textArr.splice(1, 1)
40		text.textContent = result.join(' ')
41	} catch (e){
42		
43	}
44});
45
46document.addEventListener("DOMContentLoaded", function () {
47  try {
48	  const container = document.getElementById("custom-categories-single");
49	  const categoriesContainer = container.querySelector(
50		".elementor-post-info__item--type-custom"
51	  );
52
53	  while (categoriesContainer.children.length > 1) {
54		categoriesContainer.removeChild(categoriesContainer.lastChild);
55	  }
56  } catch (e){
57	  
58  }
59});
60
61document.addEventListener("DOMContentLoaded", function () {
62  try {
63	  document.getElementById("current-year").innerHTML = new Date().getFullYear();;
64	  
65  } catch (e){
66	  
67  }
68});
69
70
71(function($) {
72
73  $(document).ready(function() {
74    $("#mobile_toggle_menu").click(function() {
75      $("#mobile-nav_2 .uael-nav-menu__toggle").trigger("click");
76    })
77  });
78
79})(jQuery);
80
81gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
82    optionsObj.dateFormat = 'dd/mm/yy';
83    return optionsObj;
84} );
85
86
87
88

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.