PageSourceSearch

https://adn.gob.do/wp-content/themes/adnweb/script.js

js adn.gob.do collected 2026-10-02 07:44:01 UTC 3,196 bytes, 113 lines download raw bytes

1///////Un solo boton flotante activo
2var clickBtn;
3TimerBotonSlider = setInterval(function(){
4
5	if (document.querySelector("body > div.wow-bmp.wow-bmp-pos-br.bmp-mobile-1 > input[type=checkbox]")){
6//Escuchar si se clickea el boton 1
7document.querySelector("body > div.wow-bmp.wow-bmp-pos-br.bmp-mobile-1 > input[type=checkbox]").addEventListener("click", function( event ) {
8   clickBtn=1
9  }, false);
10
11}
12//Escuchar si se clickea el boton 2
13 		if(document.querySelector("body > div.wow-bmp.wow-bmp-pos-r.bmp-mobile-2 > input[type=checkbox]")){
14document.querySelector("body > div.wow-bmp.wow-bmp-pos-r.bmp-mobile-2 > input[type=checkbox]").addEventListener("click", function( event ) {
15   clickBtn=2
16  }, false);
17}
18if(clickBtn==1){document.querySelector("body > div.wow-bmp.wow-bmp-pos-r.bmp-mobile-2 > input[type=checkbox]").checked=false}
19if(clickBtn==2){document.querySelector("body > div.wow-bmp.wow-bmp-pos-br.bmp-mobile-1 > input[type=checkbox]").checked=false}
20
21clickBtn=0
22//console.log(clickBtn)
23},1000);
24
25//END
26//
27//
28//Scrip para el botón Slider
29var btn = $('#buttonSlideUp');
30
31$(window).scroll(function() {
32  if ($(window).scrollTop() > 300) {
33    btn.addClass('show');
34  } else {
35    btn.removeClass('show');
36  }
37});
38
39btn.on('click', function(e) {
40  e.preventDefault();
41  $('html, body').animate({scrollTop:0}, '300');
42});
43
44//Scrip para el botón Slider end
45
46
47
48
49(function ($, root, undefined) {
50
51	$(function () {
52
53		'use strict';
54
55		jQuery(".menu-side a[href*='#']").attr("href", "javascript:void(0);");
56		jQuery(".menu-side a[href*='transparencia']").attr("target", "_blank");
57		jQuery(".interna img").addClass("img-responsive");
58		jQuery(".interna table").addClass("table");
59
60		jQuery(".servicios img").addClass("get-color");
61
62		jQuery(".la-menu .menu a[href*='#']").attr("href", "javascript:void(0);");
63
64		jQuery(".controles-m button").click(function(){
65	        jQuery(".la-menu ul:eq(0)").slideToggle();
66	    });
67
68	    jQuery('.la-menu ul .sub-menu > a').attr("href", "JavaScript:void(0);");
69
70		jQuery('.interna iframe, .interna video, .interna embed, .interna object').parent().addClass('embed-responsive embed-responsive-16by9');
71		jQuery('.interna iframe').removeAttr('width').removeAttr('height');
72
73	    jQuery(".la-menu .menu-item-has-children").click(function(){
74			$(this).find('ul').slideToggle();
75		});
76
77		if($(window).width() < 767){
78	        $('.slider .widget-w:last-child').appendTo('.la-slider');
79		} else {
80
81		}
82
83		$('form').on('click', '.submit', function() {
84			var mail = $("input[name='email']").val();
85			$('form').attr('action',"mailto:" + mail);
86		});
87
88		if(document.querySelector(".get-color")){
89		jQuery('.get-color').primaryColor({
90			callback: function(color) {
91				jQuery(this)
92					.parents('.servicios .uk-panel-space')
93					.css('background-color', 'rgba('+color+',0.2)')
94					.attr('data-color', color);
95			}
96		});
97}
98		jQuery('.servicios .uk-panel-space').hover(function(input){
99			$(this).css({
100				'background-color' : `rgb(${input.currentTarget.attributes[1].nodeValue})`
101			});
102		}, function(output){
103			$(this).css({
104				'background-color' : `rgba(${output.currentTarget.attributes[1].nodeValue}, 0.2)`
105			});
106		});
107
108
109
110	});
111
112
113})(jQuery, this);

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.