PageSourceSearch

https://blob.diariopresente.mx/jss/custom/custom.js?v=2

js diariopresente.mx collected 2026-10-02 10:00:02 UTC 9,064 bytes, 284 lines download raw bytes

1// JavaScript Document
2
3$(document).ready(function () {
4
5    'use strict';
6    
7    $("img.lazy").lazyload();
8
9    /************************************************************************************ DROPDOWN MENU STARTS */
10
11    $('.dropdown-toggle').dropdown();
12
13    /************************************************************************************ DROPDOWN MENU ENDS */
14
15    /************************************************************************************ SIDR OFFCANVASS MENU STARTS */
16
17    $('#responsive-menu-button').sidr({
18        name: 'sidr-main',
19        source: '#navigation'
20    });
21
22    /************************************************************************************ SIDR OFFCANVASS MENU STARTS */
23
24    /************************************************************************************ SLIDER CAROUSEL STARTS */
25
26    $(".slider").owlCarousel({
27
28        slideSpeed: 300,
29        paginationSpeed: 400,
30        singleItem: false,
31        items: 2,
32        itemsDesktop: [1199, 2],
33        itemsDesktopSmall: [979, 1],
34        itemsTablet: [768, 1],
35        itemsMobile: [479, 1],
36        autoPlay: 4000,
37        responsive:true,
38        stopOnHover: true,
39        autoHeight: true,
40        pagination: false,
41        navigation: true,
42        transitionStyle: "fade",
43        navigationText: [
44            "<i class='fa fa-angle-left'></i>",
45            "<i class='fa fa-angle-right'></i>"
46        ],
47    });
48
49    $(".slider2").owlCarousel({
50
51        slideSpeed: 300,
52        paginationSpeed: 400,
53        singleItem: false,
54        items: 3,
55        itemsDesktop: [1199, 2],
56        itemsDesktopSmall: [979, 2],
57        itemsTablet: [768, 2],
58        itemsMobile: [479, 1],
59        autoPlay: 4000,
60        responsive: true,
61        stopOnHover: true,
62        autoHeight: true,
63        pagination: false,
64        navigation: true,
65        transitionStyle: "fade",
66        navigationText: [
67            "<i class='fa fa-angle-left'></i>",
68            "<i class='fa fa-angle-right'></i>"
69        ],
70    });
71
72    $(".slider3").owlCarousel({
73
74        slideSpeed: 300,
75        paginationSpeed: 400,
76        singleItem: false,
77        items: 2,
78        itemsDesktop: [1199, 2],
79        itemsDesktopSmall: [979, 2],
80        itemsTablet: [768, 2],
81        itemsMobile: [479, 1],
82        autoPlay: false,
83        responsive: true,
84        stopOnHover: true,
85        autoHeight: true,
86        pagination: false,
87        navigation: true,
88        transitionStyle: "fade",
89        navigationText: [
90            "<i class='fa fa-angle-left'></i>",
91            "<i class='fa fa-angle-right'></i>"
92        ],
93    });
94
95    $(".slider4").owlCarousel({
96
97        slideSpeed: 300,
98        paginationSpeed: 400,
99        singleItem: false,
100        items: 3,
101        itemsDesktop: [1199, 2],
102        itemsDesktopSmall: [979, 2],
103        itemsTablet: [768, 2],
104        itemsMobile: [479, 1],
105        autoPlay: false,
106        responsive: true,
107        stopOnHover: true,
108        autoHeight: true,
109        pagination: false,
110        navigation: true,
111        transitionStyle: "fade",
112        navigationText: [
113            "<i class='fa fa-angle-left'></i>",
114            "<i class='fa fa-angle-right'></i>"
115        ],
116    });
117
118    $(".slider5").owlCarousel({
119        slideSpeed: 300,
120        paginationSpeed: 400,
121        singleItem: false,
122        items: 1,
123        itemsDesktop: [1199, 1],
124        itemsDesktopSmall: [979, 1],
125        itemsTablet: [768, 1],
126        itemsMobile: [479, 1],
127        autoPlay: 4000,
128        responsive:true,
129        stopOnHover: true,
130        autoHeight: true,
131        pagination: false,
132        navigation: true,
133        transitionStyle: "fade",
134        navigationText: [
135            "<i class='fa fa-angle-left'></i>",
136            "<i class='fa fa-angle-right'></i>"
137        ],
138    });
139
140    /************************************************************************************ SLIDER CAROUSEL ENDS */
141
142    /************************************************************************************ NEWSTICKER CAROUSEL STARTS */
143
144    $(".newsticker").owlCarousel({
145
146        autoPlay: 3000,
147        slideSpeed: 300,
148        paginationSpeed: 1000,
149        singleItem: true,
150        items: 1,
151        itemsDesktop: [1199, 1],
152        itemsDesktopSmall: [979, 1],
153        itemsTablet: [768, 1],
154        itemsMobile: [479, 1],
155        autoHeight: true,
156        pagination: false,
157        navigation: true,
158        transitionStyle: "fade",
159        navigationText: [
160            "<i class='fa fa-angle-left'></i>",
161            "<i class='fa fa-angle-right'></i>"
162        ],
163    });
164
165    /************************************************************************************ NEWSTICKER CAROUSEL ENDS */
166
167    /************************************************************************************ FEATURED VIDEO CAROUSEL STARTS */
168
169    $(".featured-video-carousel").owlCarousel({
170        autoPlay: 3000,
171        slideSpeed: 300,
172        paginationSpeed: 400,
173        singleItem: true,
174        items: 1,
175        itemsDesktop: [1199, 1],
176        itemsDesktopSmall: [979, 1],
177        itemsTablet: [768, 1],
178        itemsMobile: [479, 1],
179        autoHeight: true,
180        pagination: false,
181        navigation: true,
182        transitionStyle: "fade",
183        navigationText: [
184            "<i class='fa fa-angle-left'></i>",
185            "<i class='fa fa-angle-right'></i>"
186        ],
187    });
188
189    /************************************************************************************ FEATURED VIDEO CAROUSEL ENDS */
190
191    /************************************************************************************ GALLERY CAROUSEL STARTS */
192
193    $(".gallery-carousel").owlCarousel({
194        autoPlay: 3000,
195        slideSpeed: 300,
196        paginationSpeed: 400,
197        singleItem: true,
198        items: 1,
199        itemsDesktop: [1199, 1],
200        itemsDesktopSmall: [979, 1],
201        itemsTablet: [768, 1],
202        itemsMobile: [479, 1],
203        autoHeight: true,
204        pagination: false,
205        navigation: true,
206        transitionStyle: "fade",
207        navigationText: [
208            "<i class='fa fa-angle-left'></i>",
209            "<i class='fa fa-angle-right'></i>"
210        ],
211    });
212
213    /************************************************************************************ GALLERY CAROUSEL ENDS */
214
215    /************************************************************************************ STICKY NAVIGATION STARTS */
216
217    $("#navigation").sticky({
218        topSpacing: 0
219    });
220
221    /************************************************************************************ STICKY NAVIGATION ENDS */
222
223    /************************************************************************************ FITVID STARTS */
224
225    $(".fitvid").fitVids();
226
227    /************************************************************************************ FITVID ENDS */
228
229    /************************************************************************************ TO TOP STARTS */
230
231    $(window).scroll(function () {
232        if ($(this).scrollTop() > 100) {
233            $('.scrollup').fadeIn();
234        } else {
235            $('.scrollup').fadeOut();
236        }
237    });
238
239    $('.scrollup').on("click", function () {
240        $("html, body").animate({
241            scrollTop: 0
242        }, 600);
243        return false;
244    });
245
246    /************************************************************************************ TO TOP ENDS */
247
248    /************************************************************************************ SWITCHER CSS STARTS */
249
250    $("#hide, #show").click(function () {
251        if ($("#show").is(":visible")) {
252
253            $("#show").animate({
254                "margin-left": "-500px"
255            }, 500, function () {
256                $(this).hide();
257            });
258
259            $("#switch").animate({
260                "margin-left": "0px"
261            }, 500).show();
262        } else {
263            $("#switch").animate({
264                "margin-left": "-500px"
265            }, 500, function () {
266                $(this).hide();
267            });
268            $("#show").show().animate({
269                "margin-left": "0"
270            }, 500);
271        }
272    });
273
274    /************************************************************************************ SWITCHER CSS ENDS */
275
276    /************************************************************************************ CURRENT DATE */
277
278    var meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
279    var f = new Date();
280    $("#date").html(f.getDate() + " de " + meses[f.getMonth()] + " de " + f.getFullYear());
281
282    /************************************************************************************ CURRENT ENDS */
283
284}); //$(document).ready(function () {

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.