1jQuery(document).ready(function(){ 2 /*jQuery("input:checkbox").prop("checked", false); */ 3 /*var alto = jQuery('.fondo-video').height(); 4 jQuery('section.la-fundacion').css('margin-top', alto);*/ 5 6 /*jQuery(window).resize(function(){*/ 7 var ancho=jQuery(window).width(); 8 //alert("alto: "+alto+" ancho:"+ancho); 9 if(ancho < 550){ 10 jQuery('.titulo-home-fundacion h2 img').appendTo('.titulo-home-fundacion'); 11 }else{ 12 jQuery('.titulo-home-fundacion img').appendTo('.titulo-home-fundacion h2'); 13 } 14 /* })*/ 15 16 17 18//carrusel lineas de actuación home 19 20jQuery('.section3 div#fondo1').css('opacity', 0); 21jQuery('.section3 div#fondo2').css('opacity', 1); 22 23jQuery('div#fondo1_t').css('opacity', 0); 24jQuery('div#fondo2_t').css('opacity', 1); 25 26jQuery('div#fondo1_m').css('opacity', 0); 27jQuery('div#fondo2_m').css('opacity', 1); 28 29function move_left() { 30 var active = jQuery('div').find('.level0').attr('data-index'); 31 var tam = jQuery('.ficha').length; 32 if (active == tam) { 33 next_active = 1; 34 } else { 35 next_active = parseInt(active) + 1; 36 } 37 var a = 0; 38 var maximum = null; 39 jQuery('.ficha').each(function() { 40 var value = parseFloat(jQuery(this).attr('data-index')); 41 maximum = (value > maximum) ? value : maximum; 42 }); 43 jQuery('.wrapper').each(function() { 44 jQuery(this).css('opacity', 0); 45 }); 46 jQuery('.ficha').each(function() { 47 var index = jQuery(this).attr('data-index'); 48 var img = jQuery(this).attr('data-img-ref'); 49 jQuery('#' + img).css('opacity', 0); 50 if (a == 0) { 51 jQuery(this).attr('data-index', maximum + 1); 52 jQuery(this).removeAttr('class').addClass('ficha level-3'); 53 // jQuery('#your-class').remove(jQuery(this)); 54 jQuery('#slider_trabajo').append(jQuery(this)); 55 a++; 56 } else { 57 if (index == next_active) { 58 jQuery(this).removeAttr('class').addClass('ficha level0 active'); 59 var img = jQuery(this).attr('data-img-ref'); 60 jQuery('#' + img).css('opacity', 1); 61 } else if (index == next_active - 1) { 62 jQuery(this).removeAttr('class').addClass('ficha level1'); 63 } else if (index == next_active + 1) { 64 jQuery(this).removeAttr('class').addClass('ficha level-1'); 65 } else if (index < next_active) { 66 jQuery(this).removeAttr('class').addClass('ficha level1'); 67 } else if (index == next_active + 2) { 68 jQuery(this).removeAttr('class').addClass('ficha level-2'); 69 } else if (index > next_active + 2) { 70 jQuery(this).removeAttr('class').addClass('ficha level-3'); 71 } 72 } 73 }); 74 var mar = 1; 75 jQuery('.ficha').each(function() { 76 jQuery(this).attr('data-index', mar); 77 mar++; 78 }); 79 jQuery('#wrapper1').css('opacity', '1'); 80} 81function move_left_t() { 82 /*alert('dcha');*/ 83 var active = jQuery('div').find('.level0t').attr('data-index'); 84 var tam = jQuery('.fichat').length; 85 if (active == tam) { 86 next_active = 1; 87 } else { 88 next_active = parseInt(active) + 1; 89 } 90 var a = 0; 91 var maximum = null; 92 jQuery('.fichat').each(function() { 93 var value = parseFloat(jQuery(this).attr('data-index')); 94 maximum = (value > maximum) ? value : maximum; 95 }); 96 jQuery('.wrappert').each(function() { 97 jQuery(this).css('opacity', 0); 98 }); 99 jQuery('.fichat').each(function() { 100 var index = jQuery(this).attr('data-index'); 101 var img = jQuery(this).attr('data-img-ref'); 102 103 jQuery('#' + img).css('opacity', 0); 104 if (a == 0) { 105 jQuery(this).attr('data-index', maximum + 1); 106 jQuery(this).removeAttr('class').addClass('fichat level-3t'); 107 // jQuery('#your-class').remove(jQuery(this)); 108 jQuery('#slider_trabajot').append(jQuery(this)); 109 a++; 110 } else { 111 if (index == next_active) { 112 jQuery(this).removeAttr('class').addClass('fichat level0t active'); 113 var img = jQuery(this).attr('data-img-ref'); 114 /*alert(img);*/ 115 jQuery('#' + img).css('opacity', 1); 116 } else if (index == next_active - 1) { 117 jQuery(this).removeAttr('class').addClass('fichat level1t'); 118 } else if (index == next_active + 1) { 119 jQuery(this).removeAttr('class').addClass('fichat level-1t'); 120 } else if (index < next_active) { 121 jQuery(this).removeAttr('class').addClass('fichat level1t'); 122 } else if (index == next_active + 2) { 123 jQuery(this).removeAttr('class').addClass('fichat level-2t'); 124 } else if (index > next_active + 2) { 125 jQuery(this).removeAttr('class').addClass('fichat level-3t'); 126 } 127 } 128 }); 129 var mar = 1; 130 jQuery('.fichat').each(function() { 131 jQuery(this).attr('data-index', mar); 132 mar++; 133 }); 134 jQuery('#wrapper1t').css('opacity', '1'); 135} 136function move_left_m() { 137 var active = jQuery('div').find('.level0m').attr('data-index'); 138 var tam = jQuery('.ficham').length; 139 if (active == tam) { 140 next_active = 1; 141 } else { 142 next_active = parseInt(active) + 1; 143 } 144 var a = 0; 145 var maximum = null; 146 jQuery('.ficham').each(function() { 147 var value = parseFloat(jQuery(this).attr('data-index')); 148 maximum = (value > maximum) ? value : maximum; 149 }); 150 jQuery('.wrapper-lm').each(function() { 151 jQuery(this).css('opacity', 0); 152 }); 153 jQuery('.ficham').each(function() { 154 var index = jQuery(this).attr('data-index'); 155 if (a == 0) { 156 jQuery(this).attr('data-index', maximum + 1); 157 jQuery(this).removeAttr('class').addClass('ficham level-3m'); 158 // jQuery('#your-class').remove(jQuery(this)); 159 jQuery('#slider_trabajom').append(jQuery(this)); 160 a++; 161 } else { 162 if (index == next_active) { 163 jQuery(this).removeAttr('class').addClass('ficham level0m active'); 164 var img = jQuery(this).attr('data-img-ref'); 165 jQuery('#' + img).css('opacity', 1); 166 } else if (index == next_active - 1) { 167 jQuery(this).removeAttr('class').addClass('ficham level1m'); 168 } else if (index == next_active + 1) { 169 jQuery(this).removeAttr('class').addClass('ficham level-1m'); 170 } else if (index < next_active) { 171 jQuery(this).removeAttr('class').addClass('ficham level1m'); 172 } else if (index == next_active + 2) { 173 jQuery(this).removeAttr('class').addClass('ficham level-2m'); 174 } else if (index > next_active + 2) { 175 jQuery(this).removeAttr('class').addClass('ficham level-3m'); 176 } 177 } 178 }); 179 var mar = 1; 180 jQuery('.ficham').each(function() { 181 jQuery(this).attr('data-index', mar); 182 mar++; 183 }); 184 jQuery('#wrapper1m').css('opacity', '1'); 185} 186 187function move_right() { 188 var active = jQuery('div').find('.level0').attr('data-index'); 189 var tam = jQuery('.ficha').length; 190 if (active == 1) { 191 next_active = tam; 192 } else { 193 next_active = parseInt(active) - 1; 194 } 195 var a = 1; 196 var maximum = null; 197 jQuery('.wrapper').each(function() { 198 jQuery(this).css('opacity', 0); 199 }); 200 jQuery('.ficha').each(function() { 201 var index = jQuery(this).attr('data-index'); 202 var img = jQuery(this).attr('data-img-ref'); 203 jQuery('#' + img).css('opacity', 0); 204 if (a == tam) { 205 jQuery(this).attr('data-index', tam); 206 jQuery(this).removeAttr('class').addClass('ficha level1 x'); 207 // jQuery('#your-class').remove(jQuery(this)); 208 jQuery('#slider_trabajo').prepend(jQuery(this)); 209 } else { 210 if (index == next_active) { 211 jQuery(this).removeAttr('class').addClass('ficha level0 active'); 212 var img = jQuery(this).attr('data-img-ref'); 213 jQuery('#' + img).css('opacity', 1); 214 } else if (index == next_active - 2) { 215 jQuery(this).removeAttr('class').addClass('ficha level1'); 216 var img = jQuery(this).attr('data-img-ref'); 217 jQuery('#' + img).css('opacity', 1); 218 } else if (index == next_active + 1) { 219 jQuery(this).removeAttr('class').addClass('ficha level-1'); 220 } else if (index < next_active) { 221 jQuery(this).removeAttr('class').addClass('ficha level1'); 222 } else if (index == next_active + 2) { 223 jQuery(this).removeAttr('class').addClass('ficha level-2'); 224 } else if (index > next_active + 2) { 225 jQuery(this).removeAttr('class').addClass('ficha level-3'); 226 } 227 } 228 a++; 229 }); 230 var mar = 1; 231 jQuery('.ficha').each(function() { 232 jQuery(this).attr('data-index', mar); 233 mar++; 234 }); 235} 236function move_right_t() { 237 /*alert('izq');*/ 238 var active = jQuery('div').find('.level0t').attr('data-index'); 239 var tam = jQuery('.fichat').length; 240 if (active == 1) { 241 next_active = tam; 242 } else { 243 next_active = parseInt(active) - 1; 244 } 245 var a = 1; 246 var maximum = null; 247 jQuery('.wrapper-lt').each(function() { 248 jQuery(this).css('opacity', 0); 249 }); 250 jQuery('.fichat').each(function() { 251 var index = jQuery(this).attr('data-index'); 252 if (a == tam) { 253 jQuery(this).attr('data-index', tam); 254 jQuery(this).removeAttr('class').addClass('fichat level1t x'); 255 // jQuery('#your-class').remove(jQuery(this)); 256 jQuery('#slider_trabajot').prepend(jQuery(this)); 257 } else { 258 if (index == next_active) { 259 jQuery(this).removeAttr('class').addClass('fichat level0t active'); 260 var img = jQuery(this).attr('data-img-ref'); 261 jQuery('#' + img).css('opacity', 1); 262 263 } else if (index == next_active - 2) { 264 jQuery(this).removeAttr('class').addClass('fichat level1t'); 265 } else if (index == next_active + 1) { 266 jQuery(this).removeAttr('class').addClass('fichat level-1t'); 267 } else if (index < next_active) { 268 jQuery(this).removeAttr('class').addClass('fichat level1t'); 269 } else if (index == next_active + 2) { 270 jQuery(this).removeAttr('class').addClass('fichat level-2t'); 271 } else if (index > next_active + 2) { 272 jQuery(this).removeAttr('class').addClass('fichat level-3t'); 273 } 274 } 275 a++; 276 }); 277 var mar = 1; 278 jQuery('.fichat').each(function() { 279 jQuery(this).attr('data-index', mar); 280 mar++; 281 }); 282} 283function move_right_m() { 284 var active = jQuery('div').find('.level0m').attr('data-index'); 285 var tam = jQuery('.ficham').length; 286 if (active == 1) { 287 next_active = tam; 288 } else { 289 next_active = parseInt(active) - 1; 290 } 291 var a = 1; 292 var maximum = null; 293 jQuery('.wrapper-lm').each(function() { 294 jQuery(this).css('opacity', 0); 295 }); 296 jQuery('.ficham').each(function() { 297 var index = jQuery(this).attr('data-index'); 298 if (a == tam) { 299 jQuery(this).attr('data-index', tam); 300 jQuery(this).removeAttr('class').addClass('ficham level1m x'); 301 // jQuery('#your-class').remove(jQuery(this)); 302 jQuery('#slider_trabajom').prepend(jQuery(this)); 303 } else { 304 if (index == next_active) { 305 jQuery(this).removeAttr('class').addClass('ficham level0m active'); 306 var img = jQuery(this).attr('data-img-ref'); 307 jQuery('#' + img).css('opacity', 1); 308 } else if (index == next_active - 2) { 309 jQuery(this).removeAttr('class').addClass('ficham level1m'); 310 } else if (index == next_active + 1) { 311 jQuery(this).removeAttr('class').addClass('ficham level-1m'); 312 } else if (index < next_active) { 313 jQuery(this).removeAttr('class').addClass('ficham level1m'); 314 } else if (index == next_active + 2) { 315 jQuery(this).removeAttr('class').addClass('ficham level-2m'); 316 } else if (index > next_active + 2) { 317 jQuery(this).removeAttr('class').addClass('ficham level-3m'); 318 } 319 } 320 a++; 321 }); 322 var mar = 1; 323 jQuery('.ficham').each(function() { 324 jQuery(this).attr('data-index', mar); 325 mar++; 326 }); 327} 328 jQuery('#prev').click( move_right); 329 330 jQuery('#next').click( move_left); 331 jQuery('#prevt').click( move_right_t); 332 333 jQuery('#nextt').click( move_left_t); 334 jQuery('#prevm').click( move_right_m); 335 336 jQuery('#nextm').click( move_left_m); 337 338 339 jQuery( "#your-class" ).on( "swipeleft", move_left ); 340 jQuery( "#your-class" ).on( "swiperight", move_right ); 341}); 342 343//fin de carrusel lineas de actuación home 344 345//contador redes sociales 346 347jQuery(document).ready(function(){ 348 349 function countStuffUp(points, selector, duration) { //Animate count 350 351 function pad(n) { 352 return n < 10 ? '0' + n : n; 353 } 354 355 jQuery({ 356 countNumber: jQuery(selector).text() 357 }).animate({ 358 countNumber: points 359 }, { 360 duration: duration, 361 easing: 'linear', 362 step: function() { 363 jQuery(selector).text(pad(parseInt(this.countNumber))); 364 }, 365 complete: function() { 366 var texto=parseInt(points); 367 jQuery(selector).text(new Intl.NumberFormat('de-DE').format(texto)); 368 } 369 }); 370 } 371 372 var repetir = 0; 373 374 jQuery(window).scroll(function() { 375 if (jQuery('.contador-redes').isOnScreen(0.5, 0.5)) { 376 if (repetir == 0){ 377 378 var fb_cont = 519510; 379 var in_cont = 44690; 380 var yb_cont = 5570; 381 var ln_cont = 43000; 382 var tw_cont = 156730; 383 384 countStuffUp(fb_cont, '.fb .contador', 2000); 385 386 countStuffUp(in_cont, '.in .contador', 2000); 387 388 countStuffUp(yb_cont, '.yb .contador', 2000); 389 390 countStuffUp(ln_cont, '.ln .contador', 2000); 391 392 countStuffUp(tw_cont, '.tw .contador', 2000); 393 394 repetir = 1; 395 } 396 397 } 398}); 399 400 jQuery(".playBut").click(function () { 401 jQuery('.modal').css('opacity', 1); 402 jQuery('.modal').css('visibility', 'visible'); 403 jQuery('.modal .modal__inner').css('top', 0); 404 }); 405 406 jQuery(".modal").click(function () { 407 jQuery(this).css('opacity', 0); 408 jQuery(this).css('visibility', 'hidden'); 409 jQuery('.modal .modal__inner').css('top', '-20%'); 410 }); 411 412}); 413 414//play video divulgacion 415 416TweenMax.set(".play-circle-01", { 417 rotation: 90, 418 transformOrigin: "center" 419}) 420 421TweenMax.set(".play-circle-02", { 422 rotation: -90, 423 transformOrigin: "center" 424}) 425 426TweenMax.set(".play-perspective", { 427 xPercent: 6.5, 428 scale: .175, 429 transformOrigin: "center", 430 perspective: 1 431}) 432 433TweenMax.set(".play-video", { 434 visibility: "hidden", 435 opacity: 0, 436}) 437 438TweenMax.set(".play-triangle", { 439 transformOrigin: "left center", 440 transformStyle: "preserve-3d", 441 rotationY: 10, 442 scaleX: 2 443}) 444 445const rotateTL = new TimelineMax({ paused: true }) 446 .to(".play-circle-01", .7, { 447 opacity: .1, 448 rotation: '+=360', 449 strokeDasharray: "456 456", 450 ease: Power1.easeInOut 451 }, 0) 452 .to(".play-circle-02", .7, { 453 opacity: .1, 454 rotation: '-=360', 455 strokeDasharray: "411 411", 456 ease: Power1.easeInOut 457 }, 0) 458 459const openTL = new TimelineMax({ paused: true }) 460 .to(".play-backdrop", 1, { 461 opacity: .95, 462 visibility: "visible", 463 ease: Power2.easeInOut 464 }, 0)
465 .to(".play-close", 1, { 466 opacity: 1, 467 ease: Power2.easeInOut 468 }, 0) 469 .to(".play-perspective", 1, { 470 xPercent: 0, 471 scale: 1, 472 ease: Power2.easeInOut 473 }, 0) 474 .to(".play-triangle", 1, { 475 scaleX: 1, 476 ease: ExpoScaleEase.config(2, 1, Power2.easeInOut) 477 }, 0) 478 .to(".play-triangle", 1, { 479 rotationY: 0, 480 ease: ExpoScaleEase.config(10, .01, Power2.easeInOut) 481 }, 0) 482 .to(".play-video", 1, { 483 visibility: "visible", 484 opacity: 1 485 }, .5) 486 487 488const button = document.querySelector(".play-button") 489const backdrop = document.querySelector(".play-backdrop") 490const close = document.querySelector(".play-close") 491 492button.addEventListener("mouseover", () => rotateTL.play()) 493button.addEventListener("mouseleave", () => rotateTL.reverse()) 494button.addEventListener("click", () => openTL.play()) 495backdrop.addEventListener("click", () => openTL.reverse()) 496close.addEventListener("click", e => { 497 e.stopPropagation() 498 openTL.reverse() 499})
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.