PageSourceSearch

https://dqtexas.com/wp-content/themes/Texas-Dairy-Queen/assets/cus…&ver=fbb8c70703cafc2afabaf2ba23a8f743

js dqtexas.com collected 2026-09-24 09:59:28 UTC 5,065 bytes, 102 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2  jQuery(function($) {
3    $("#treats-and-eats").detach().appendTo("#featured-treats");
4    $("#treats-and-eats").fadeIn();
5    $('#treats-and-eats li a:not(:first)').addClass('inactive');
6    $('#treats-and-eats .container').hide();
7    $('#treats-and-eats .container:first').show();
8    $('#treats-and-eats li a.tab').click(function(){
9      if($(this).hasClass('treats')) {
10        window.history.pushState( {} , '', '?tab=treats' );
11      }
12      if($(this).hasClass('eats')) {
13        window.history.pushState( {} , '', '?tab=eats' );
14      }
15      var t = $(this).attr('id');
16      if($(this).hasClass('inactive')) {
17        $('#treats-and-eats li a').addClass('inactive');           
18        $(this).removeClass('inactive');
19        $('#treats-and-eats .container').hide();
20        $('#'+ t + 'C').fadeIn('slow');
21      }
22    });
23    if (window.location.search.indexOf('tab=eats') > -1) {
24      $('#treats-and-eats li .eats').trigger('click');
25      $("#treats-and-eats select").val('tab2').change();
26    }
27    if($('#main-content').hasClass('treats')) {
28      $(".breadcrumb a:nth-child(2)").attr("href", function(i, href) {
29        return href + '?tab=treats';
30      });
31    } else {
32      $(".breadcrumb a:nth-child(2)").attr("href", function(i, href) {
33        return href + '?tab=eats';
34      });
35    }
36    $('#treats-and-eats select').change(function(){
37      var t = $(this).children('option:selected').val();
38      if($(this).children('option:selected').hasClass('treats')) {
39        window.history.pushState( {} , '', '?tab=treats' );
40      }
41      if($(this).children('option:selected').hasClass('eats')) {
42        window.history.pushState( {} , '', '?tab=eats' );
43      }
44      $('#treats-and-eats select option.tab').each(function() {
45        if($(this).is(':selected')) {
46          if ($(this).val().indexOf('/') >= 0) {
47            window.location = $(this).val();
48          } else {
49            $('#treats-and-eats .container').hide();
50            $('#'+ t + 'C').fadeIn('slow');
51          }
52        }
53      });
54    });
55
56    $('#nutrition-area .toggle').click(function() {
57      $(this).toggleClass('open');
58      $('#nutrition-area .toggle-area').slideToggle();
59    });
60    
61    var html = '<li class="app-links"><a href="https://apps.apple.com/us/app/dq-texas/id1014549103"><img loading="lazy" src="https://dqtexasstg.wpengine.com/wp-content/uploads/2022/05/Frame-12.png" width="182" height="60" alt="" class="wp-image-243303 alignnone size-full"></a></li><li class="app-links"><a href="https://play.google.com/store/apps/details?id=com.punchh.txdq"><img loading="lazy" src="https://dqtexasstg.wpengine.com/wp-content/uploads/2022/05/Frame-13.png" width="196" height="58" alt="" class="wp-image-243304 alignnone size-medium"></a></li>';
62    var html2 = '<li class="social-links"><a href="https://www.facebook.com/DairyQueenTX"><img loading="lazy" src="https://dqtexasstg.wpengine.com/wp-content/uploads/2022/05/Vector.svg" width="42" height="42" alt="" class="wp-image-243308 alignnone size-full"></a><span style="font-size:80px">&nbsp;</span><a href="http://twitter.com/DairyQueenTX"><img loading="lazy" src="https://dqtexasstg.wpengine.com/wp-content/uploads/2022/05/Vector-1.svg" width="42" height="35" alt="" class="wp-image-243306 alignnone size-full"></a><span style="font-size:80px">&nbsp;</span><a href="http://instagram.com/DairyQueenTX"><img loading="lazy" src="https://dqtexasstg.wpengine.com/wp-content/uploads/2022/05/Group.svg" width="43" height="42" alt="" class="wp-image-243305 alignnone size-full"></a><span style="font-size:80px">&nbsp;</span><a href="https://www.tiktok.com/@dairyqueentexas"><img loading="lazy" src="https://dqtexasstg.wpengine.com/wp-content/uploads/2022/05/Vector-2.svg" width="36" height="42" alt="" class="wp-image-243307 alignnone size-full"></a></li>';
63var prev = $("#mobile_menu").html();
64$("#mobile_menu").html(prev+html+html2)
65$(".mobile_location_bar").click(function(){
66    window.location = "/store-locator";
67})
68    window.onscroll = function() {
69        if  (document.getElementById('fixed-link').style.display != 'none')
70                { 
71                    scrollFunction();
72                }
73            };
74
75        function scrollFunction() {
76          if (document.documentElement.scrollTop < 63) {
77              
78              if (jQuery("#fixed-link-li").css("top") != "73px"){
79            jQuery("#fixed-link-li").animate({top: "73px"}, 50 );
80        }
81          } else {
82              
83              if (jQuery("#fixed-link-li").css("top") != "62px"){
84         jQuery("#fixed-link-li").animate({top: "62px"}, 50 );
85     } 
86          }
87        }
88       if (document.documentElement.scrollTop < 63) {
89              if (jQuery("#fixed-link-li").css("top") != "73px"){
90            jQuery("#fixed-link-li").animate({top: "73px"}, 50 );
91        }
92          } else {
93              if (jQuery("#fixed-link-li").css("top") != "62px"){
94         jQuery("#fixed-link-li").animate({top: "62px"}, 50 );
95     }
96          }
97  });
98});
99
100
101
102

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.