PageSourceSearch

https://distribucionmayorista.online/modules/custombanners/views/js/front.js

js distribucionmayorista.online collected 2026-10-04 13:26:00 UTC 1,196 bytes, 38 lines download raw bytes

1/**
2*  @author    Amazzing
3*  @copyright Amazzing
4*  @license   https://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
5*/
6
7var cb = {
8	init: function() {
9		Object.keys(cb).forEach(function(key) {
10			if (key.startsWith('init') && key != 'init') {
11				cb[key]();
12			}
13		});
14	},
15	initAccordion: function() {
16		$('.cb-wrapper.type-4').find('.cb-item-title').on('click', function() {
17			$(this).siblings('.cb-item-content').slideToggle().parent().toggleClass('active')
18			.siblings().removeClass('active').find('.cb-item-content').slideUp();
19		});
20	},
21	initHoverImages: function() {
22		$('.hover-src').on('mouseenter mouseleave', function() {
23			let $img = $(this);
24			if (!$img.data('toggle-src')) {
25				$img.data('toggle-src', $img.attr('src').substring(0, $img.attr('src').lastIndexOf('/') + 1) + $img.data('hover-src'));
26				if ($img.data('toggle-src').endsWith('.webp') && $img.attr('src').endsWith('.webp.jpg')) {
27					$img.data('toggle-src', $img.data('toggle-src') + '.jpg');
28				}
29			}
30			let newSrc = $img.data('toggle-src');
31			$img.data('toggle-src', $img.attr('src')).attr('src', newSrc);
32		});
33	},
34};
35$(document).ready(function() {
36	cb.init();
37});
38/* since 2.9.9 */

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.