PageSourceSearch

https://www.tecdmx.org.mx/wp-content/themes/pe-public-institutions-child/js/tribunal.js?ver=6.4.12

js tecdmx.org.mx collected 2026-10-06 08:02:10 UTC 5,905 bytes, 216 lines download raw bytes

1
2jQuery(document).ready(function($){
3	// // if(sessionStorage.getItem("an")=="active"){
4	// 	swal({
5	// 		// position: 'bottom-end',
6	// 		html: 'El Pleno del Tribunal Electoral de la Ciudad de México celebrará Sesión Pública de resolución el día 01 de julio de 2018 a las 04:45 horas. <strong><a href="sesion.html">Más información</a></strong>',
7	// 		showConfirmButton: true,
8	// 		imageUrl: 'images/te_administrativo.jpg',
9	// 		imageWidth: 150,
10	// 		confirmButtonColor: '#230425',
11	// 	});
12	// // }
13
14	$( window ).resize(function() {
15  		change_heights();
16	});
17
18	change_heights();
19	function change_heights(){
20		if($( window ).width() > 600){
21			height = 0;
22			
23			$( ".home_blog_list article.post" ).each(function( index ) {
24				console.log($(this).height());
25				if($(this).height() > height){
26					height = $(this).height();
27				}
28				
29			});	
30
31			console.log("Final: "+height);
32			$('.home_blog_list article.post').css('min-height',height+40);
33		}
34		
35	}
36	
37
38	$('.open-pop').click(function(){
39		swal({
40			html: 'El Pleno del Tribunal Electoral de la Ciudad de México celebrará Sesión Pública de resolución el día 02 de octubre de 2018 a las 14:30 horas. <strong><a href="'+more_info_pop+'">Más información</a></strong>',
41			showConfirmButton: true,
42			imageUrl: template_url+'/img/te_administrativo.jpg',
43			imageWidth: 150,
44			confirmButtonColor: '#230425',
45		});
46	});
47
48
49	// STARTS: CALENDARIO
50	/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
51	( function( factory ) {
52		if ( typeof define === "function" && define.amd ) {
53
54			// AMD. Register as an anonymous module.
55			define( [ "../widgets/datepicker" ], factory );
56		} else {
57
58			// Browser globals
59			factory( jQuery.datepicker );
60		}
61	}( function( datepicker ) {
62
63	datepicker.regional.es = {
64		closeText: "Cerrar",
65		prevText: '<i class="fas fa-arrow-circle-left"></i>',
66		nextText: '<i class="fas fa-arrow-circle-right"></i>',
67		currentText: "Hoy",
68		monthNames: [ "enero","febrero","marzo","abril","mayo","junio",
69		"julio","agosto","septiembre","octubre","noviembre","diciembre" ],
70		monthNamesShort: [ "ene","feb","mar","abr","may","jun",
71		"jul","ago","sep","oct","nov","dic" ],
72		dayNames: [ "domingo","lunes","martes","miércoles","jueves","viernes","sábado" ],
73		dayNamesShort: [ "dom","lun","mar","mié","jue","vie","sáb" ],
74		dayNamesMin: [ "D","L","M","M","J","V","S" ],
75		weekHeader: "Sm",
76		dateFormat: "dd/mm/yy",
77		firstDay: 1,
78		isRTL: false,
79		showMonthAfterYear: false,
80		yearSuffix: "" };
81	datepicker.setDefaults( datepicker.regional.es );
82
83	return datepicker.regional.es;
84
85	} ) );
86
87	if($('#datepicker').length){
88		var dates 		 = $('#datepicker').data('highlight').split(',');
89		var start_date   = new Date(dates[0]);
90		var end_date  	 = new Date(dates[dates.length - 1]);
91			end_date 	 = add_months(end_date, 1);
92	
93		function highlightDays(date) {
94		    for (var i = 0; i < dates.length; i++) {
95		        if (new Date(dates[i]).toString() == date.toString()) {              
96		                      return [true, 'highlight'];
97		        }
98		    }
99		      return [false, ''];
100
101		}
102	}
103
104	function add_months(dt, n){
105		return new Date(dt.setMonth(dt.getMonth() + n));      
106	}
107
108	$( "#datepicker" ).datepicker({
109		beforeShowDay: highlightDays,
110		dateFormat: 'yy-m-d',
111		defaultDate:start_date,
112		inline: true,
113		onSelect: function(dateText, inst) { 
114		var date = $(this).datepicker('getDate'),
115			day  = date.getDate(),  
116			month = date.getMonth() + 1,
117			year =  date.getFullYear();
118			slug = $(this).data('slug');
119			categoria = $(this).data('categoria');
120			cat_path = '';
121
122			if(categoria){
123				cat_path = "?categoria="+categoria;
124			}
125
126			if(slug == 'post'){
127				window.location.replace(blog_url+"/index.php/"+year+"/"+month+"/"+day+"/"+cat_path);	
128			}else{
129				window.location.replace(blog_url+"/index.php/"+slug+"/"+year+"/"+month+"/"+day+"/"+cat_path);
130			}
131				
132			
133		}
134	});
135	// ENDS: CALENDARIO
136
137	// STARTS: CAROUSELES DE SITIOS DE INTERÉS Y CAMPAÑAS
138	$('.small').owlCarousel({
139		nav:true,
140		loop:false,
141		margin:10,
142		responsive:{
143	        0:{
144	            items:2
145	        },
146	        600:{
147	            items:3
148	        },
149	        1000:{
150	            items:5
151	        }
152    	}
153	});
154
155	$('.big').owlCarousel({
156		nav:true,
157		loop:false,
158		margin:10,
159		responsive:{
160	        0:{
161	            items:2
162	        },
163	        600:{
164	            items:3
165	        },
166	        1000:{
167	            items:4
168	        }
169    	}
170	});
171	// ENDS: CAROUSELES DE SITIOS DE INTERÉS Y CAMPAÑAS
172
173	// STARTS: TOOLTIPS
174	$('.fab-twitter').parent().attr('title','Twitter').addClass("hastooltip");
175	$('.fab-facebook-f').parent().attr('title','Facebook').addClass("hastooltip");
176	$('.fa-envelope').parent().attr('title','Correo Electrónico').addClass("hastooltip");
177	
178	$('.hastooltip').hover(function(){
179			// Hover over code
180			var title = $(this).attr('title');
181			$(this).data('tipText', title).removeAttr('title');
182			$('<p class="tooltip"></p>')
183			.text(title)
184			.appendTo('body')
185			.fadeIn('slow');
186	}, function() {
187			// Hover out code
188			$(this).attr('title', $(this).data('tipText'));
189			$('.tooltip').remove();
190	}).mousemove(function(e) {
191			var mousex = e.pageX + 20; //Get X coordinates
192			var mousey = e.pageY + 10; //Get Y coordinates
193			$('.tooltip')
194			.css({ top: mousey, left: mousex })
195	});
196	// ENDS: TOOLTIPS
197
198	// STARTS: Remarcar sentencia en la Nota de Cadena Impugnativa
199	if(rm){
200		$("#pe-content:contains('"+rm+"')").html(function(_, html) {
201			var regex = new RegExp(rm, 'g');
202   			return html.replace(regex, '<span class="rm">'+rm+'</span>');
203		});
204	}
205	// ENDS: Remarcar sentencia en la Nota de Cadena Impugnativa
206	
207	// $(document).scroll(function() {
208	//   if ($(this).scrollTop() >= 280) {
209	//     $('#pe-right .wrapper').css({'position':'fixed','top':'0'});
210	//   } else {
211	//     $('#pe-right .wrapper').css('position','static');
212	//   }
213	// });
214
215		
216});

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.