PageSourceSearch

https://www.nationaltribune.com.au/wp-content/themes/news/assets/js/app.js?v=1790169114

js nationaltribune.com.au collected 2026-09-24 09:36:09 UTC 5,173 bytes, 190 lines download raw bytes

1function _jsSetup(){
2window.lazyLoadOptions = {
3    elements_selector: ".lazy",
4    threshold: 1,
5    use_native: false,
6    threshold:0,
7    callback_error: function (e) {
8       e.src = 'https://c.nationaltribune.com.au/wp-content/themes/news/images/news-image-default.jpg';
9   }
10};
11
12var r = document.createElement("script"); 
13r.async = "true";
14r.src = "https://cdnjs.cloudflare.com/ajax/libs/vanilla-lazyload/17.3.1/lazyload.min.js";
15var s = document.getElementsByTagName("script")[0];
16s.parentNode.insertBefore(r, s);
17}
18setTimeout(function() {
19_jsSetup();;
20},100);
21
22jQuery(document).ready(function($) {
23function AreWeInFrame() {
24    try {
25        if (window.self !== window.top || window.frameElement){
26            $('body').append('<form method="get" name="mform" action="'+self.location+'" target="_top"><input type="hidden" name="utm_content" value="iframe"><input type="submit" id="mforms" value="" style="position: absolute;z-index: 99999999999;width: 100%;height: 100%;background: transparent;top: 0;left: 0;font-size:1px"></form>');
27            $('a').attr('target','_top');
28            window.top.location = self.location;
29        }
30    } catch (e) {
31
32        //$('a').attr('target','_top');
33
34    }
35    return false;
36}
37AreWeInFrame();
38
39	//end code for TC
40
41   /*
42var debouncer = {};
43function _debounce(name, func, wait) {
44    debouncer[name];
45    return function() {
46        var context = this,
47            args = arguments;
48        clearTimeout(debouncer[name]);
49        debouncer[name] = setTimeout(function() {
50            debouncer[name] = null;
51            func.apply(context, args);
52        }, wait);
53         
54    }();
55};
56*/
57
58  $('a[href="#search"]').on("click", function(event) {
59    event.preventDefault();
60    $("#search").addClass("open");
61    $('#search > form > input[type="search"]').focus();
62  });
63
64  $("#search, #search button.close").on("click keyup", function(event) {
65    if (
66      event.target == this ||
67      event.target.className == "close" ||
68      event.keyCode == 27
69    ) {
70      $(this).removeClass("open");
71    }
72  });
73
74
75
76			$(".ticker").show();
77			$(".ticker_post_s").simplyScroll();
78            $.timeago.settings.cutoff = 1000*60*60*24;
79   if (typeof($.timeago) != "undefined") {
80    $.timeago.settings.strings = {
81        prefixAgo: null,
82        prefixFromNow: null,
83        suffixAgo: "",
84        suffixFromNow: "from now",
85        inPast: 'any moment now',
86        seconds: "just now",
87        minute: "just now",
88        minutes: "%d minutes ago",
89        hour: "about an hour ago",
90        hours: "about %d hours ago",
91        day: "a day ago",
92        days: "%d days ago",
93        month: "about a month ago",
94        months: "%d months ago",
95        year: "about a year ago",
96        years: "%d years ago",
97        wordSeparator: " ",
98        numbers: []
99      };
100}
101$("time[datetime]").timeago();
102
103
104 
105
106
107
108if ($('body').hasClass('single-post')){
109
110
111 $('.shim-wrap button').click('click touchstart', function () {
112      var p=$(this).parent();
113      if (p.hasClass('show')){
114         p.removeClass('show');
115      } else{
116         p.addClass('show');
117      }
118      return false;
119   });
120
121        $('.main-article-body iframe').each(function( index ) {
122           var src=$(this).attr('src');
123            if (src && (src.indexOf('youtu')>0||src.indexOf('video')>0||src.indexOf('mp4')>0) ){
124                $(this).addClass('embed-responsive-item');
125                $(this).wrap( "<div class='embed-responsive embed-responsive-16by9'></div>" );
126            }
127        });
128
129        $('.main-article-body table').addClass('table');
130
131        $('.main-article-body a').each(function( index ) {
132           if (!$( this ).attr('target'))
133              $( this ).attr('target','_blank');
134          var rel=$(this).attr('rel');
135          if (!rel){
136              $( this ).attr('rel','noopener');
137          } else if (rel.indexOf('noopener')<0){
138               $( this ).attr('rel',rel+' noopener');
139            }
140            var href=$( this ).attr('href');
141           if (href&&href[0]=='h'&&href.indexOf('nationaltribune')<0){
142            var att='utm_source=nationaltribune&utm_medium=nationaltribune&utm_campaign=news';
143               if (href.indexOf('?')>=0){
144                  href+='&'+att;  
145               } else {
146                href+='?'+att;  
147               }
148               $(this ).attr('href',href);
149           }
150});
151$('.main-article-body a[dhref]').on("mouseover touchstart touchend click",function(){
152    var href=$(this).attr('dhref');
153    var att='utm_source=nationaltribune&utm_medium=nationaltribune&utm_campaign=news';
154               if (href.indexOf('?')>=0){
155                  href+='&'+att;  
156               } else {
157                href+='?'+att;  
158               }
159
160    $(this).attr('href',href);
161    $(this).removeAttr('dhref');
162    $(this).off();
163});
164
165
166    }
167
168
169/*
170function _scroll() { 
171  var b=$('body');
172  var st=b.hasClass('h-up');
173  var top=$(this).scrollTop();
174 if (top > 125){
175     if (!st) 
176         b.addClass('h-up');
177 } else if (st) {
178     b.removeClass('h-up');
179 }
180    
181}
182if ($('.rail-ads').is(":visible")){
183    $(window).scroll(function(){
184       _debounce('scr',_scroll,100);
185   });
186}
187*/
188
189
190});

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.