PageSourceSearch

https://radiogenessis.cl/assets/js/js.js

js radiogenessis.cl collected 2026-10-02 23:14:34 UTC 6,008 bytes, 203 lines download raw bytes

1// This is the custom javascript file 
2
3jQuery(document).ready(function($) {
4    "use strict";
5
6    // === Header Menu Button ===
7    $('#menu-button').on('click',function(e){
8        e.preventDefault();
9        $(this).toggleClass('close-icon');
10        $('#main-nav').toggleClass('fade');
11    });
12    $('#main-nav').on('click',function(){
13        $('#menu-button').removeClass('close-icon');
14        $('#main-nav').removeClass('fade');
15    });
16
17    // === LightGallery Home ===
18    if ($('#gallery').length>0) {
19        $("#gallery").lightGallery();
20    }
21	  // === LightGallery Home ===
22    if ($('#gallery2').length>0) {
23        $("#gallery2").lightGallery();
24    }
25	  // === LightGallery Home ===
26    if ($('#gallery3').length>0) {
27        $("#gallery3").lightGallery();
28    }
29
30    // === Footer Instagram Photos ===
31    var feedFooter = new Instafeed({
32        //get: 'tagged',
33        //tagName: 'NichifyPerspectives', // place your tage here
34        get: 'user',
35        userId: 2143300160,
36        sortBy: 'most-liked',
37        clientId: 'b65a53a5cc0540769b7cf79ea333348c', // place the client id here
38        template: '<li><a href="{{link}}" target="_blank"><img class="img-responsive" src="{{image}}" /></a></li>',
39        target: 'instragram-footer',
40        limit: 6,
41        resolution: 'low_resolution',
42    });
43    if ($('#instragram-footer').length>0) {
44        feedFooter.run();
45    }
46
47    // === Sidebar Instagram Widget ===
48    var feedSidebar = new Instafeed({
49        //get: 'tagged',
50        //tagName: 'NichifyPerspectives', // place your tage here
51        get: 'user',
52        userId: 2143300160,
53        sortBy: 'most-liked',
54        clientId: 'b65a53a5cc0540769b7cf79ea333348c', // place the client id here
55        template: '<li><a href="{{link}}" target="_blank"><img class="img-responsive" src="{{image}}" /></a></li>',
56        target: 'instagram-sidebar-widget',
57        limit: 8,
58        resolution: 'low_resolution',
59    });
60    if ($('#instagram-sidebar-widget').length>0) {
61        feedSidebar.run();
62    }
63
64    // === Countdown index.html config ===
65    if ($('#countdown-home-1').length>0) {
66       $("#countdown-home-1").countdown({
67            date: "30 march 2016 12:00:00", // Edit this line
68            format: "on"
69        },
70        function() {
71          // This will run when the countdown ends
72        });
73    }
74
75    // === Countdown track.html config ===
76    if ($('#countdown-1').length>0) {
77        $("#countdown-1").countdown({
78            date: "30 march 2016 12:00:00", // Edit this line
79            format: "on"
80        },
81        function() {
82          // This will run when the countdown ends
83        });
84    }
85    if ($('#countdown-2').length>0) {
86        $("#countdown-2").countdown({
87            date: "12 march 2016 12:00:00", // Edit this line
88            format: "on"
89        },
90        function() {
91          // This will run when the countdown ends
92        });
93    }
94 
95    // === Form Validation ===
96    // Contact Page Form
97     if ($('#contact-form').length>0) {
98        $('#contact-form').validate({
99            rules: {
100                email: {
101                    required: true,
102                    email: true
103                }
104            }, //end rules
105            messages: {
106                email: {
107                    required: "Ingrese un email válido.",
108                    email: "Su email no tiene registro válido."
109                }
110            }
111        });// end validate 
112    }
113    //
114    // === Revolution Slider config ===
115    if ($('.slider').length>0) {
116        jQuery('.slider').revolution({
117            delay:9000,
118            startwidth:1920,
119            startheight:780,
120            //
121            fullScreenAlignForce:"off",
122            autoHeight:"off",
123            minHeight:"off",
124            //
125            fullWidth:"off",
126            forceFullWidth:"off",
127            fullScreen:"off",
128            fullScreenOffset:"0px",
129            //
130            onHoverStop:"on",
131            //
132            thumbWidth:100,
133            thumbHeight:50,
134            thumbAmount:3,
135            //
136            hideThumbsOnMobile:"on",
137            hideNavDelayOnMobile:1500,
138            hideBulletsOnMobile:"on",
139            hideArrowsOnMobile:"on",
140            hideThumbsUnderResoluition:0,
141            //
142            hideThumbs:1,
143            hideTimerBar:"on",
144            //
145            keyboardNavigation:"on",
146            //
147            navigationType:"none",
148            navigationArrows:"solo",
149            navigationStyle:"round",
150            //
151            navigationHAlign:"center",
152            navigationVAlign:"bottom",
153            navigationHOffset:30,
154            navigationVOffset:105,
155        });
156    }
157    
158    // === Responsive Videos ===
159    if ($('.embed-video').length>0) {
160        $('.embed-video').fitVids();
161    }
162
163    // === ScrollTo annimation ===
164    $('.scrollTo').on('click',function (e) {
165        e.preventDefault();
166        var target = this.hash,
167        $target = $(target);
168        if ($(target).length>0) {
169            $('body, html').stop().animate({
170                'scrollTop': $(target).offset().top-0
171            }, 1000, 'swing', 
172            function() {
173                window.location.hash = target;
174            });
175        }
176    }); // End Click  
177
178    // === Go to top ===
179    $('.go-to-top').click(function(){
180        $('html, body').animate({scrollTop:0}, 'slow');
181        return false;
182    }); 
183
184    // === Header Nav BG ===
185    $(window).scroll(function(){
186        if($(document).scrollTop() > 150)
187        {    
188            $('.navigation-bar').addClass('scroll-BG');
189        }
190        else
191        {  
192           $('.navigation-bar').removeClass('scroll-BG');
193        }
194    });
195
196    // === Header Parallax Image Style ===
197    $(window).on('scroll', function(){
198        var curPos = $(window).scrollTop();
199        $('.header-parallax-image').css('background-position', 'right bottom -' + curPos * .8 + 'px');
200        //fadePanels(curPos);
201    }).scroll();
202
203});// END READY

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.