PageSourceSearch

https://dondeir.com/wp-content/themes/dondeir2026/js/script.js?ver=1

js dondeir.com collected 2026-10-02 06:09:28 UTC 9,907 bytes, 372 lines download raw bytes

1/* Se hacen ajustes para Scroll Top, Gustavo Vazquez, 9/04/2026 */
2
3jQuery(document).ready(function ($) {
4  function disableselect(e) {
5    return false;
6  }
7
8  function disabledrag(e) {
9    return false;
10  }
11
12  function disabledrop(e) {
13    return false;
14  }
15
16  function reEnable() {
17    return true;
18  }
19
20  $("img").attr("draggable", false);
21  document.onselectstart = new Function("return false");
22  document.onDrag = new Function("return false");
23  document.onDrop = new Function("return false");
24
25  if (window.sidebar) {
26    document.onmousedown = disableselect;
27    document.onDrag = disabledrag;
28    document.onDrop = disabledrop;
29    document.onclick = reEnable;
30  }
31
32  $("img").each(function () {
33    $(this)[0].oncontextmenu = function () {
34      alert("Lo sentimos. El clic derecho no esta disponible");
35      return false;
36    };
37  });
38
39  jQuery(".lazy").Lazy({
40    scrollDirection: "vertical",
41    effect: "fadeIn",
42    visibleOnly: true,
43    onError: function (element) {
44      console.log("error loading " + element.data("src"));
45    },
46  });
47
48  jQuery(function () {
49    jQuery(".mostrarDia").click(function () {
50      jQuery(".resultadosDia").hide();
51      jQuery(".div" + $(this).attr("target")).show();
52    });
53  });
54
55  AOS.init({
56    easing: "ease-in-out-sine",
57  });
58
59  $(".btnTabsProd").click(function () {
60    $(".tabsProductos").slideDown("slow");
61  });
62  $(
63    "#filtro1-tab,#filtro2-tab,#filtro3-tab,#filtro4-tab,#filtro5-tab,#filtro6-tab,#filtro7-tab,#filtro8-tab,#filtro9-tab,#filtro10-tab,#filtro11-tab,#filtro12-tab",
64  ).click(function () {
65    $(".tabsProductos").slideUp("slow");
66  });
67
68  $(".multiple-items.SliderVideoteca").slick({
69    autoplay: true,
70    autoplaySpeed: 6000,
71    infinite: true,
72    speed: 500,
73    slidesToShow: 4,
74    slidesToScroll: 1,
75    arrows: true,
76    dots: true,
77    prevArrow:
78      "<button type='button' class='slick-prev pull-left'><i class='bi bi-chevron-left' aria-hidden='true'></i></button>",
79    nextArrow:
80      "<button type='button' class='slick-next pull-right'><i class='bi bi-chevron-right' aria-hidden='true'></i></button>",
81    responsive: [
82      {
83        breakpoint: 979,
84        settings: {
85          slidesToShow: 2,
86          slidesToScroll: 1,
87        },
88      },
89      {
90        breakpoint: 767,
91        settings: {
92          slidesToShow: 2,
93          slidesToScroll: 1,
94        },
95      },
96      {
97        breakpoint: 600,
98        settings: {
99          slidesToShow: 1,
100          slidesToScroll: 1,
101        },
102      },
103    ],
104  });
105
106  $(".multiple-items.slickQueHacer").slick({
107    autoplay: true,
108    infinite: true,
109    slidesToShow: 4,
110    slidesToScroll: 1,
111    prevArrow:
112      "<button type='button' class='slick-prev pull-left'><i class='bi bi-chevron-left' aria-hidden='true'></i></button>",
113    nextArrow:
114      "<button type='button' class='slick-next pull-right'><i class='bi bi-chevron-right' aria-hidden='true'></i></button>",
115    responsive: [
116      {
117        breakpoint: 979,
118        settings: {
119          slidesToShow: 2,
120          slidesToScroll: 1,
121        },
122      },
123      {
124        breakpoint: 767,
125        settings: {
126          slidesToShow: 2,
127          slidesToScroll: 1,
128        },
129      },
130      {
131        breakpoint: 600,
132        settings: {
133          slidesToShow: 1,
134          slidesToScroll: 1,
135        },
136      },
137    ],
138  });
139
140  $(".multiple-items.slickPM").slick({
141    autoplay: true,
142    infinite: true,
143    slidesToShow: 4,
144    slidesToScroll: 1,
145    prevArrow:
146      "<button type='button' class='slick-prev pull-left'><i class='bi bi-chevron-left' aria-hidden='true'></i></button>",
147    nextArrow:
148      "<button type='button' class='slick-next pull-right'><i class='bi bi-chevron-right' aria-hidden='true'></i></button>",
149    responsive: [
150      {
151        breakpoint: 979,
152        settings: {
153          slidesToShow: 2,
154          slidesToScroll: 1,
155        },
156      },
157      {
158        breakpoint: 767,
159        settings: {
160          slidesToShow: 2,
161          slidesToScroll: 1,
162        },
163      },
164      {
165        breakpoint: 600,
166        settings: {
167          slidesToShow: 1,
168          slidesToScroll: 1,
169        },
170      },
171    ],
172  });
173
174  $(".multiple-items").slick({
175    infinite: true,
176    swipe: true,
177    slidesToShow: 8,
178    slidesToScroll: 8,
179    prevArrow:
180      "<button type='button' class='slick-prev pull-left'><i class='bi bi-chevron-left' aria-hidden='true'></i></button>",
181    nextArrow:
182      "<button type='button' class='slick-next pull-right'><i class='bi bi-chevron-right' aria-hidden='true'></i></button>",
183    responsive: [
184      {
185        breakpoint: 900,
186        settings: {
187          slidesToShow: 5,
188          slidesToScroll: 5,
189        },
190      },
191      {
192        breakpoint: 600,
193        settings: {
194          slidesToShow: 3,
195          slidesToScroll: 3,
196        },
197      },
198    ],
199  });
200
201  $(".single-item").slick({
202    prevArrow:
203      "<button type='button' class='slick-prev pull-left'><i class='bi bi-chevron-left' aria-hidden='true'></i></button>",
204    nextArrow:
205      "<button type='button' class='slick-next pull-right'><i class='bi bi-chevron-right' aria-hidden='true'></i></button>",
206  });
207
208  jQuery(window).scroll(function () {
209    var scroll = jQuery(window).scrollTop();
210    var alto = jQuery(window).height();
211    if (
212      jQuery(window).scrollTop() + jQuery(window).height() ==
213      jQuery(document).height()
214    ) {
215      try {
216        var request =
217          "../get-restaurantes?nombre=" +
218          nombre +
219          "&comida=" +
220          comida +
221          "&zona=" +
222          zona +
223          "&precio=" +
224          precio +
225          "&categoria=" +
226          categoria +
227          "&pagina=" +
228          page;
229        jQuery("#cargando_notas").fadeIn("fast");
230        jQuery.ajax({
231          url: request,
232          type: "GET",
233          success: function (f) {
234            var status = f;
235            if (status != "") {
236              vacio = false;
237            } else {
238              vacio = true;
239            }
240            if (vacio == true) {
241              jQuery(".contenedorSinRestaurantes").fadeIn();
242              jQuery("#cargando_notas").fadeOut("fast");
243            } else {
244              jQuery("#cargando_notas").fadeIn("fast");
245              jQuery(".hist").append(f);
246              jQuery("#cargando_notas").fadeOut("fast");
247            }
248          },
249        });
250        page++;
251      } catch (e) {}
252    }
253  });
254});
255
256document.addEventListener("DOMContentLoaded", function () {
257  var lazyBackgrounds = [].slice.call(
258    document.querySelectorAll(".logoFooterGM"),
259  );
260  if ("IntersectionObserver" in window) {
261    let lazyBackgroundObserver = new IntersectionObserver(function (
262      entries,
263      observer,
264    ) {
265      entries.forEach(function (entry) {
266        if (entry.isIntersecting) {
267          entry.target.classList.add("visible");
268          lazyBackgroundObserver.unobserve(entry.target);
269        }
270      });
271    });
272    lazyBackgrounds.forEach(function (lazyBackground) {
273      lazyBackgroundObserver.observe(lazyBackground);
274    });
275  }
276});
277
278document.addEventListener("DOMContentLoaded", () => {
279  const ad = document.querySelector(".publicidad");
280
281  if (ad && window.getComputedStyle(ad).display === "none") {
282    // Crear placeholder
283    let ph = document.createElement("div");
284    ph.style.height = "180px"; // reserva espacio
285    ph.style.visibility = "hidden"; // no se ve
286
287    ad.parentNode.insertBefore(ph, ad);
288  }
289});
290
291document.addEventListener("DOMContentLoaded", () => {
292  const vInitial = document.getElementById("view-initial");
293  const vSocials = document.getElementById("view-socials");
294  const vThanks = document.getElementById("view-thanks");
295  const icons = document.querySelectorAll(".social-icon");
296
297  vInitial.addEventListener("click", () => {
298    vInitial.classList.replace("visible", "hidden");
299    vSocials.classList.replace("hidden", "visible");
300  });
301
302  icons.forEach((icon) => {
303    icon.addEventListener("click", () => {
304      vSocials.classList.replace("visible", "hidden");
305      vThanks.classList.replace("hidden", "visible");
306
307      setTimeout(() => {
308        vThanks.classList.replace("visible", "hidden");
309        vInitial.classList.replace("hidden", "visible");
310      }, 2000);
311    });
312  });
313});
314
315document.addEventListener("DOMContentLoaded", () => {
316  const vInitialAbajo = document.getElementById("view-initialAbajo");
317  const vSocialsAbajo = document.getElementById("view-socialsAbajo");
318  const vThanksAbajo = document.getElementById("view-thanksAbajo");
319  const iconsAbajo = document.querySelectorAll(".social-icon-abajo");
320
321  vInitialAbajo.addEventListener("click", () => {
322    vInitialAbajo.classList.replace("visible", "hidden");
323    vSocialsAbajo.classList.replace("hidden", "visible");
324  });
325
326  iconsAbajo.forEach((icon) => {
327    icon.addEventListener("click", () => {
328      vSocialsAbajo.classList.replace("visible", "hidden");
329      vThanksAbajo.classList.replace("hidden", "visible");
330
331      setTimeout(() => {
332        vThanksAbajo.classList.replace("visible", "hidden");
333        vInitialAbajo.classList.replace("hidden", "visible");
334      }, 2000);
335    });
336  });
337});
338
339//Forzar muteo de video
340const myPlayer = dailymotion.createPlayer("Player1", {
341  playlist: "x7kwvi",
342  params: {
343    mute: true, // El primer candado
344    autoplay: true,
345    customConfig: {
346      keyvalues: "amznbid",
347    },
348  },
349});
350
351myPlayer.then((player) => {
352  player.on("PLAYER_START", () => {
353    player.setMute(true);
354    console.log("Refuerzo de mute activado");
355  });
356});
357
358jQuery(document).ready(function () {
359    jQuery(window).scroll(function () {
360      if (jQuery(this).scrollTop() > 100) {
361        jQuery('.scroll-top').fadeIn();
362      } else {
363        jQuery('.scroll-top').fadeOut();
364      }
365    });
366    jQuery('.scroll-top').click(function () {
367      jQuery("html, body").animate({
368        scrollTop: 0
369      }, 100);
370      return false;
371    });
372  });

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.