PageSourceSearch

https://www.burgerfi.com/wp-content/themes/burgerfi-redesign/js/custom.js?ver=238668955

js burgerfi.com collected 2026-09-24 20:33:22 UTC 3,608 bytes, 113 lines download raw bytes

1jQuery(function ($) {
2  function playPause(myVideo) {
3    if (myVideo.paused) {
4      myVideo.play();
5      $(".playpause_button").html(
6        '<img src="/wp-content/themes/burgerfi-redesign/images/pause.png">'
7      );
8    } else {
9      myVideo.pause();
10      $(".playpause_button").html(
11        '<img src="/wp-content/themes/burgerfi-redesign/images/play.png">'
12      );
13    }
14  }
15  $(document).ready(function () {
16    var handled = false;
17    $(".video_embed_playpause").on("click touchend", function (e) {
18      e.preventDefault();
19      e.stopImmediatePropagation();
20
21      let video = $(this).parent(".cust_video_embed").find("video");
22
23      if (e.type == "touchend") {
24        handled = true;
25        playPause(video[0]);
26      } else if (e.type == "click" && !handled) {
27        playPause(video[0]);
28      } else {
29        handled = false;
30      }
31    });
32
33    if ($(".custom-modal-shortcode:not(.single)").length) {
34      // const existingModals = JSON.parse(localStorage.getItem("custom_modal"));
35      const existingModals = false;
36      console.log("existingmodals", existingModals);
37      const modalId = $(".custom-modal-shortcode:not(.single)").attr("id");
38      if (!existingModals || !existingModals.includes(modalId)) {
39        setTimeout(function () {
40          
41          /*
42          $.fancybox.open({
43            src: ".custom-modal-shortcode:not(.single)",
44            type: "inline",
45            opts: {
46              afterShow: function (instance, current) {
47                setTimeout(function () {
48                  console.log('closing');
49                  //parent.jQuery.fancybox.getInstance().close();
50                }, 100000);
51              },
52            },
53          });
54          */
55
56          const fancybox = new Fancybox([
57            {
58              src: "#modalized",
59              type: "inline",
60            },
61          ]);
62          
63
64        }, 3000);
65        const newModals = existingModals
66          ? existingModals.slice().push(modalId)
67          : [modalId];
68        console.log("newModals", newModals);
69        localStorage.setItem("custom_modal", JSON.stringify(newModals));
70      } else {
71        console.log("you have already been shown modal id = " + modalId);
72      }
73    }
74  });
75  // $(window).load(function () {
76  //   if ($(".cust_video_embed").length) {
77  //     $(".cust_video_embed video").get(0).play();
78  //   }
79  // });
80
81
82  // ARAM ADDED 
83
84  $('.order-tout__headline').on('click', function() {
85    window.location.href = "https://order.burgerfi.com/";
86  });
87	
88	
89	
90	
91    // Give the universe a brief moment to align the elements
92    setTimeout(function() {
93        // Check if our illustrious button holder exists
94        if ($('#button_holder').length) {
95            // Find our target, the majestic location header
96            var $locationHeader = $('div.location-header');
97            
98            // If the header exists, let's do some space-time manipulation
99            if ($locationHeader.length) {
100                // Warp the button_holder right after the location header
101                $('#button_holder').insertAfter($locationHeader);
102                console.log("Button holder has been relocated. The universe is at peace... for now.");
103            } else {
104                console.log("The location header was not found. The button holder remains in existential limbo.");
105            }
106        } else {
107            console.log("Button holder not found. It might be on a coffee break.");
108        }
109    }, 500); // A half-second should be plenty for the elements to load, unless they're coming from another dimension
110
111
112
113});

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.