PageSourceSearch

https://www.rockandpop.cl/wp-content/themes/britney/especiales/rp30/assets/scripts.js?v=196

js rockandpop.cl collected 2026-10-01 10:43:46 UTC 9,597 bytes, 349 lines download raw bytes

1
2document.querySelector(".bars__menu").addEventListener("click", animateBars);
3
4var line1__bars = document.querySelector(".line1__bars-menu");
5var line2__bars = document.querySelector(".line2__bars-menu");
6var line3__bars = document.querySelector(".line3__bars-menu");
7var caja = document.querySelector(".logo-min");
8
9function animateBars(){
10    line1__bars.classList.toggle("activeline1__bars-menu");
11    line2__bars.classList.toggle("activeline2__bars-menu");
12    line3__bars.classList.toggle("activeline3__bars-menu");
13    caja.classList.toggle("oculto");
14}
15
16
17$('#owl-revista').owlCarousel({
18    loop:true,
19    margin:10,
20    responsiveClass:true,
21    nav: true,
22    responsive:{
23        0:{
24            items:1,
25            nav:true
26        },
27        300:{
28            items:2,
29            nav:true
30        },
31        600:{
32            items:4,
33            nav:true,
34            loop: true
35        },
36        900: {
37            items:6,
38            nav: true,
39            loop: true
40        },
41        1200: {
42        items:8,
43            nav: true,
44            loop: true
45        },
46        1500: {
47           items:10,
48            nav: true,
49            loop: true  
50        }
51    }
52})
53
54
55
56$('#owl-vinilos').owlCarousel({
57    loop:true,
58    margin:0,
59    responsiveClass:true,
60    nav: true,
61    responsive:{
62        0:{
63            items:1,
64            nav:true
65        },       
66        680:{
67            items:2,
68            nav:true,
69            loop: true
70        },
71        900: {
72            items:4,
73            nav: true,
74            loop: true
75        },
76        1200: {
77        items:5,
78            nav: true,
79            loop: true
80        },
81        1500: {
82           items:6,
83            nav: true,
84            loop: true  
85        }
86    }
87})
88
89
90
91
92       
93
94
95
96        
97$(document).ready(function () {
98
99
100		
101        var ttt_window_width = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
102        
103        $(document).scroll(function() {
104        var y = $(this).scrollTop();
105        if (y > 380) {
106            $('#menu').removeClass("nover");
107           
108           
109           
110        } 
111         else {        
112      
113         $('#menu').addClass("nover");
114        }
115        });
116  
117
118
119});
120     
121 
122
123  
124
125
126
127
128   
129$(document).ready(function () {
130  
131    
132   
133jQuery(function ($) {
134    'use strict'
135    var supportsAudio = !!document.createElement('audio').canPlayType;
136    if (supportsAudio) {
137        // initialize plyr
138        var player = new Plyr('#audio1', {
139            controls: [
140                'restart',
141                'play',
142                'progress',
143                'current-time',
144                'duration',
145                'mute',
146                'volume'                
147            ]
148        });
149        // initialize playlist and controls
150        var index = 0,
151            playing = false,
152            mediaPath = 'https://www.rockandpop.cl/wp-content/themes/britney/especiales/rp30/audios/pencas/',
153            extension = '',
154            tracks = [{
155                "track": 1,
156                "name": "Rara Tocata Penca - Hielo",
157                "duration": "3:17",
158                "file": "01-hielo"
159            },  {
160                "track": 2,
161                "name": "Rara Tocata Penca - Se me mojó la parka",
162                "duration": "2:01",
163                "file": "se-me-mojo-la-parka"
164            },  {
165                "track": 3,
166                "name": "Rara Tocata Penca - La parka sin marca",
167                "duration": "2:02",
168                "file": "03-la-parka-sin-marca"
169            },  {
170                "track": 4,
171                "name": "Rara Tocata Penca - Me mojé la raja",
172                "duration": "2:05",
173                "file": "me-moje-la-raja"
174            },  {
175                "track": 5,
176                "name": "Rara Tocata Penca - Me voy a Mulchén",
177                "duration": "1:12",
178                "file": "05-me-voy-a-mulchen"
179            }, {
180                "track": 6,
181                "name": "Rara Tocata Penca - Me encuentran bonito",
182                "duration": "2:16",
183                "file": "06-me-encuentran-bonito"
184            }, {
185                "track": 7,
186                "name": "Rara Tocata Penca - Hey Mr. Peter",
187                "duration": "1:54",
188                "file": "07-hey-mr-peter"
189            }, {
190                "track": 8,
191                "name": "Rara Tocata Penca - Mi pase",
192                "duration": "4:39",
193                "file": "08-mi-pase"
194            }, {
195                "track": 9,
196                "name": "Rara Tocata Penca - Somos tontos",
197                "duration": "1:31",
198                "file": "09-somos-tontos"
199            },{
200                "track": 10,
201                "name": "Rara Tocata Penca - Maldito olor",
202                "duration": "1:59",
203                "file": "10-maldito-olor"
204            },
205                      {
206                "track": 11,
207                "name": "Rara Tocata Penca - Estoy que me hago pichí",
208                "duration": "2:04",
209                "file": "11-estoy-que-me-hago-pichi"
210            }],
211            
212            buildPlaylist = $.each(tracks, function(key, value) {
213                var trackNumber = value.track,
214                    trackName = value.name,
215                    trackDuration = value.duration;
216                if (trackNumber.toString().length === 1) {
217                    trackNumber = '0' + trackNumber;
218                }
219                $('#plList').append('<li> \
220                    <div class="plItem"> \
221                        <span class="plNum">' + trackNumber + '.</span> \
222                        <span class="plTitle">' + trackName + '</span> \
223                        <span class="plLength">' + trackDuration + '</span> \
224                    </div> \
225                </li>');
226            }),
227            trackCount = tracks.length,
228            npAction = $('#npAction'),
229            npTitle = $('#npTitle'),
230            audio = $('#audio1').on('play', function () {
231                playing = true;
232                npAction.html('<span class="text-center">Esta sonando... <img src="https://www.rockandpop.cl/wp-content/themes/britney/especiales/rp30/img/bars.gif" width="50px"></span>');
233            }).on('pause', function () {
234                playing = false;
235                npAction.html('<span class="text-center"><img src="https://www.rockandpop.cl/wp-content/themes/britney/img/rockandpop.svg" width="100px;"></span>');
236            }).on('ended', function () {
237                npAction.text('En Pausa');
238                if ((index + 1) < trackCount) {
239                    index++;
240                    loadTrack(index);
241                    audio.play();
242                } else {
243                    audio.pause();
244                    index = 0;
245                    loadTrack(index);
246                }
247            }).get(0),
248            btnPrev = $('#btnPrev').on('click', function () {
249                if ((index - 1) > -1) {
250                    index--;
251                    loadTrack(index);
252                    if (playing) {
253                        audio.play();
254                    }
255                } else {
256                    audio.pause();
257                    index = 0;
258                    loadTrack(index);
259                }
260            }),
261            btnNext = $('#btnNext').on('click', function () {
262                if ((index + 1) < trackCount) {
263                    index++;
264                    loadTrack(index);
265                    if (playing) {
266                        audio.play();
267                    }
268                } else {
269                    audio.pause();
270                    index = 0;
271                    loadTrack(index);
272                }
273            }),
274            li = $('#plList li').on('click', function () {
275                var id = parseInt($(this).index());
276                if (id !== index) {
277                    playTrack(id);
278                }
279            }),
280            loadTrack = function (id) {
281                $('.plSel').removeClass('plSel');
282                $('#plList li:eq(' + id + ')').addClass('plSel');
283                npTitle.text(tracks[id].name);
284                index = id;
285                audio.src = mediaPath + tracks[id].file + extension;
286               /* updateDownload(id, audio.src);*/
287            },
288           /* updateDownload = function (id, source) {
289                player.on('loadedmetadata', function () {
290                    $('a[data-plyr="download"]').attr('href', source);
291                });
292            },*/
293            playTrack = function (id) {
294                loadTrack(id);
295                audio.play();
296            };
297        extension = audio.canPlayType('audio/mpeg') ? '.mp3' : audio.canPlayType('audio/ogg') ? '.ogg' : '';
298        loadTrack(index);
299    } else {
300        // no audio support
301        $('.column').addClass('hidden');
302        var noSupport = $('#audio1').text();
303        $('.container').append('<p class="no-support">' + noSupport + '</p>');
304    }
305});
306
307});
308
309 $('#owl-libros').owlCarousel({
310    loop:true,
311    margin:0,
312    responsiveClass:true,
313    nav: true,
314    responsive:{
315        0:{
316            items:2,
317            nav:true
318        },       
319        680:{
320            items:2,
321            nav:true,
322            loop: true
323        }
324    }
325});
326
327 $('#owl-podcast').owlCarousel({
328    loop:true,
329    margin:0,
330    responsiveClass:true,
331    nav: true,
332    responsive:{
333        0:{
334            items:1,
335            nav:true
336        },
337        800:{
338           items:1,
339            nav:true  
340        }
341    }
342     
343});
344  
345  
346
347
348
349     

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.