1//para el input 2var Input = document.querySelector('#investor-input-time-inverted'); 3 4if (Input) { 5 Input.style.setProperty("--value", Input.value); 6 var w = parseInt(window.getComputedStyle(Input, null).getPropertyValue('width')); 7 Input.addEventListener("input", function(evt) { 8 //value = parseInt(Input.value) + 6; 9 let value = (parseInt(Input.value) - 0) / (parseInt(Input.max) - 0); 10 Input.style.setProperty("--value", value); 11 jQuery('#investor-input-time-inverted').css('background-image', 12 '-webkit-gradient(linear, left top, right top, ' 13 + 'color-stop(' + value + ', #009ca3), ' 14 + 'color-stop(' + value + ', #d2d2d3)' 15 + ')' 16 ); 17 },false); 18 19 //background-image:linear-gradient(to right, #009ca3 calc(--value), #d2d2d3 0); 20 21 //para la investor-etiqueta-invest 22 var etq = document.querySelector('.investor-etiqueta-invest'); 23 if (etq) { 24 25 etq.innerHTML = rangeAliasValue(Input.value)+" años"; 26 var pxls = w / 100; 27 etq.style.left = ((Input.value * pxls) - 15) + 'px'; 28 Input.addEventListener('input', function() { 29 etq.innerHTML = rangeAliasValue(Input.value)+" años"; 30 etq.style.left = ((Input.value * pxls) - 15) + 'px'; 31 }, false); 32 } 33} 34 35jQuery(document).ready(function ($) { 36 jQuery(".owl-carousel").children().each( function( index ) { 37 $(this).attr( 'data-position', index ); 38 }); 39 jQuery('.owl-carousel').owlCarousel({ 40 center: true, 41 loop: true, 42 margin: 10, 43 nav: true, 44 autoplay: false, 45 autoplayHoverPause: true, 46 responsive: { 47 0: { 48 items: 3 49 }, 50 600: { 51 items: 3 52 }, 53 1000: { 54 items: 3 55 } 56 } 57 }); 58 59 let viewModal = 1; 60 validateViewBotonModalInvestor(viewModal); 61 62 jQuery(document).on("click",".action_invested_modal_3",function() { 63 let valueOption = jQuery(this).attr('data-value'); 64 // aqui 65 if (jQuery(this).hasClass('action_invested_modal_3_0_2')) { 66 67 if(jQuery('#investor_invested_action_3_value').val()){ 68 let valueNow = jQuery("#investor_invested_action_3_value").val(); 69 let valueReturn = '0'; 70 71 if(jQuery(this).hasClass('active_investor_task')) { 72 valueReturn = parseInt(valueNow) - parseInt(valueOption); 73 }else{ 74 valueReturn = parseInt(valueNow) + parseInt(valueOption); 75 } 76 77 if (valueReturn == 0) { 78 jQuery('.btn-next-modal-investor').prop("disabled", true); 79 } else{ 80 jQuery('.btn-next-modal-investor').prop("disabled", false); 81 } 82 83 jQuery("#investor_invested_action_3_value").val(valueReturn); 84 } else{ 85 jQuery("#investor_invested_action_3_value").val(valueOption); 86 jQuery('.btn-next-modal-investor').prop("disabled", false); 87 } 88 89 } else{ 90 if (jQuery(this).attr('data-type') == 'si') { 91 //jQuery("#investor_invested_action_3_value").val('si'); 92 if (jQuery('#investor_invested_action_3_value').val()) { 93 //console.log('si tiene valor'); 94 } else{ 95 //jQuery("#investor_invested_action_3_value").val(valueOption); 96 //console.log('no tiene valor'); 97 } 98 } else { 99 jQuery('.action_invested_modal_3_0_2').removeClass('active_investor_task'); 100 jQuery("#investor_invested_action_3_value").val(valueOption); 101 //jQuery("#investor_invested_action_3_value").val('no'); 102 } 103 } 104 }); 105 106 jQuery(document).on("click",".action_invested_modal_4",function() { 107 let valueOption = jQuery(this).attr('data-value'); 108 jQuery("#investor_invested_action_4_value").val(valueOption); 109 }); 110 111 jQuery(document).on("click",".action_invested_modal_5",function() { 112 let valueOption = jQuery(this).attr('data-value'); 113 jQuery("#investor_invested_action_5_value").val(valueOption); 114 }); 115 116 jQuery(document).on("click",".btn-next-modal-investor",function() { 117 if (viewModal == 1) { 118 var valueOption_1 = jQuery(".owl-carousel").find(".owl-item.active.center"); 119 localStorage.setItem('investor_item1', valueOption_1[0].firstChild.attributes[1].nodeValue); 120 localStorage.setItem('investor_item1_position', valueOption_1[0].firstChild.attributes[2].nodeValue); 121 } 122 123 if (viewModal == 2) { 124 var valueOption_2 = jQuery("#investor-input-time-inverted").val(); 125 localStorage.setItem('investor_item2',valueOption_2); 126 127 if(jQuery('#investor_invested_action_3_value').val()){ 128 jQuery('.btn-next-modal-investor').prop("disabled", false); 129 } else{ 130 jQuery('.btn-next-modal-investor').prop("disabled", true); 131 } 132 } 133 134 if (viewModal == 3) { 135 var valueOption_3 = jQuery("#investor_invested_action_3_value").val(); 136 localStorage.setItem('investor_item3',valueOption_3); 137 138 if(jQuery('#investor_invested_action_4_value').val()){ 139 jQuery('.btn-next-modal-investor').prop("disabled", false); 140 } else{ 141 jQuery('.btn-next-modal-investor').prop("disabled", true); 142 } 143 } 144 145 if (viewModal == 4) { 146 let valueOption_4 = jQuery("#investor_invested_action_4_value").val(); 147 localStorage.setItem('investor_item4',valueOption_4); 148 149 if(jQuery('#investor_invested_action_5_value').val()){ 150 jQuery('.btn-next-modal-investor').prop("disabled", false); 151 } else{ 152 jQuery('.btn-next-modal-investor').prop("disabled", true); 153 } 154 jQuery('.btn-next-modal-investor').text(jQuery('.btn_investor_title_ver_mi_perfil_btn').text()); 155 } else{ 156 jQuery('.btn-next-modal-investor').text(jQuery('.btn_investor_title_next_btn').text()); 157 } 158 159 if (viewModal == 5) { 160 let valueOption_5 = jQuery("#investor_invested_action_5_value").val(); 161 localStorage.setItem('investor_item5',valueOption_5); 162 } 163 164 viewModal ++; 165 166 validateViewBotonModalInvestor(viewModal); 167 jQuery('.investor-modal-view').hide('400'); 168 jQuery('.investor-'+viewModal).removeClass('d-none').show('400'); 169 }); 170 171 jQuery(document).on("click",".btn-prev-modal-investor",function() { 172 173 viewModal --; 174 if (viewModal == 1) { 175 var $owl = $('.owl-carousel'); 176 $owl.trigger('destroy.owl.carousel'); 177 $owl.html($owl.find('.owl-stage-outer').html()).removeClass('owl-loaded'); 178 $owl.owlCarousel({ 179 center: true, 180 loop: true, 181 margin: 10, 182 nav: true, 183 navText: [ 184 "<i class='fa fa-caret-left'></i>", 185 "<i class='fa fa-caret-right'></i>" 186 ], 187 autoplay: false, 188 autoplayHoverPause: true, 189 responsive: { 190 0: { 191 items: 3 192 }, 193 600: { 194 items: 3 195 }, 196 1000: { 197 items: 3 198 } 199 } 200 }); 201 202 let positionOWL = localStorage.getItem('investor_item1_position'); 203 jQuery(".owl-carousel").trigger('to.owl.carousel', positionOWL
203); 204 } 205 if (viewModal == 2) { 206 jQuery('.btn-next-modal-investor').prop("disabled", false); 207 } 208 209 210 jQuery('.btn-next-modal-investor').text(jQuery('.btn_investor_title_next_btn').text()); 211 212 jQuery('.investor-3-1').show('400'); 213 jQuery('.investor-3-2').addClass('d-none').hide('400'); 214 215 validateViewBotonModalInvestor(viewModal); 216 jQuery('.investor-modal-view').hide('400'); 217 jQuery('.investor-'+viewModal).removeClass('d-none').show('400'); 218 }); 219 220 jQuery(document).on("click",".investor-button-text-si",function() { 221 jQuery('.investor-3-1').hide('400'); 222 jQuery('.investor-3-2').removeClass('d-none').show('400'); 223 }); 224 225 jQuery('.acc-container .acc:nth-child(1) .investment-objective-acc-content').slideDown(); 226 jQuery('.investment-objective-acc-head').on('click', function() { 227 if(jQuery(this).hasClass('active')) { 228 jQuery(this).siblings('.investment-objective-acc-content').slideUp(); 229 jQuery(this).removeClass('active'); 230 //jQuery(this).css("height", "130"); 231 } 232 else { 233 jQuery('.investment-objective-acc-content').slideUp(); 234 jQuery('.investment-objective-acc-head').removeClass('active'); 235 jQuery(this).siblings('.investment-objective-acc-content').slideToggle(); 236 jQuery(this).toggleClass('active'); 237 //jQuery(this).css("height", "70"); 238 } 239 }); 240 241 jQuery('.preparingRetirement-accordion').find('.preparingRetirement-accordion-toggle').click(function() { 242 jQuery(this).next().slideToggle('600'); 243 jQuery(".preparingRetirement-accordion-content").not(jQuery(this).next()).slideUp('600'); 244 }); 245 246 jQuery('.preparingRetirement-accordion-toggle').on('click', function() { 247 jQuery(this).toggleClass('active').siblings().removeClass('active'); 248 let identifier = jQuery(this).data('idetifier'); 249 if(identifier){ 250 console.log(identifier); 251 var stateObj = {}; 252 history.pushState(stateObj, "page 2", "?tab="+identifier); 253 } 254 }); 255 256 jQuery('.preparingRetirement-tab-link').on('click', function() { 257 let identifier = jQuery(this).data('idetifier'); 258 if(identifier){ 259 console.log(identifier); 260 var stateObj = {}; 261 history.pushState(stateObj, "page 2", "?tab="+identifier); 262 } 263 }); 264 265 jQuery(document).on('click', '.action_invested_modal_3_0_1', function() { 266 jQuery('.action_invested_modal_3_0_1').removeClass('active_investor_task'); 267 jQuery(this).addClass('active_investor_task'); 268 if(jQuery('#investor_invested_action_3_value').val()){ 269 jQuery('.btn-next-modal-investor').prop("disabled", false); 270 } else{ 271 jQuery('.btn-next-modal-investor').prop("disabled", true); 272 } 273 }); 274 275 jQuery(document).on('click', '.action_invested_modal_3_0_2', function() { 276 if(jQuery(this).hasClass('active_investor_task')) { 277 jQuery(this).removeClass('active_investor_task'); 278 }else{ 279 jQuery(this).addClass('active_investor_task'); 280 } 281 }); 282 283 jQuery(document).on('click', '.action_invested_modal_4', function() { 284 jQuery('.action_invested_modal_4').removeClass('active_investor_task'); 285 jQuery(this).addClass('active_investor_task'); 286 jQuery('.btn-next-modal-investor').prop("disabled", false); 287 }); 288 289 290 jQuery(document).on('click', '.action_invested_modal_5', function() { 291 jQuery('.action_invested_modal_5').removeClass('active_investor_task'); 292 jQuery(this).addClass('active_investor_task'); 293 jQuery('.btn-next-modal-investor').prop("disabled", false); 294 }); 295 296 jQuery(document).on('click', '.modal-typeBannerFeatured', function() { 297 jQuery('.bd-video-modal-lg').modal({ backdrop: 'static', keyboard: false }); 298 let urlVideo = jQuery(this).data('urlvideo'); 299 let typeVideo = jQuery(this).data('tipevideo'); 300 let html = ''; 301 if (typeVideo == 'hosted') { 302 html = '<video width="400" height="225" controls>'+ 303 '<source src="'+urlVideo+'" type="video/mp4">'+ 304 '</video>'; 305 } else if (typeVideo == 'youtube') { 306 html = '<iframe width="400" height="400" src="https://www.youtube.com/embed/'+urlVideo+'" frameborder="0" allowfullscreen></iframe>'; 307 } else { 308 html ='<iframe width="400" height="400" src="https://player.vimeo.com/video/'+urlVideo+'?h=8272103f6e" frameborder="0" allowfullscreen></iframe>'; 309 } 310 jQuery('.content-modal-bannerTypeFeatured-js').html(html); 311 }); 312 313 314 jQuery(document).on('click', '.modal-typeBannerFeatured-close', function() { 315 jQuery('.content-modal-bannerTypeFeatured-js').html(''); 316 jQuery('.bd-video-modal-lg').modal('hide'); 317 }); 318 319 jQuery(document).on('click', '.featuredGuidesVideos_play_img, .featuredGuidesVideos_open_modal', function() { 320 jQuery('.bd-featuredBannerSearch-modal-lg').modal({ backdrop: 'static', keyboard: false }); 321 let urlVideo = jQuery(this).data('urlvideo'); 322 let typeVideo = jQuery(this).data('tipevideo'); 323 let html = ''; 324 if (typeVideo == 'hosted') { 325 html = '<video width="400" height="225" controls>'+
326 '<source src="'+urlVideo+'" type="video/mp4">'+ 327 '</video>'; 328 } else if (typeVideo == 'youtube') { 329 html = '<iframe width="400" height="400" src="https://www.youtube.com/embed/'+urlVideo+'" frameborder="0" allowfullscreen></iframe>'; 330 } else { 331 html ='<iframe width="400" height="400" src="https://player.vimeo.com/video/'+urlVideo+'?h=8272103f6e" frameborder="0" allowfullscreen></iframe>'; 332 } 333 jQuery('.modal-content-featuredBannerSearch-js').html(html); 334 }); 335 336 337 jQuery(document).on('click', '.modal-featuredBannerSearch-close', function() { 338 jQuery('.modal-content-featuredBannerSearch-js').html(''); 339 jQuery('.bd-featuredBannerSearch-modal-lg').modal('hide'); 340 }); 341 342 /*M 34*/ 343 jQuery(document).on('click', '.icon-scroll-table', function() { 344 let tableShow = jQuery(this).data('table'); 345 jQuery(this).hide(); 346 jQuery('.'+tableShow).css('opacity', '1'); 347 }); 348 349 jQuery(document).on('click', '.table-m34', function() { 350 let tableShow = jQuery(this).data('table'); 351 jQuery('.'+tableShow).css('opacity', '1'); 352 jQuery('.img-'+tableShow).hide(); 353 }); 354 355 /*M 33*/ 356 jQuery(document).on('click', '.icon-scroll-table1', function() { 357 let tableShow = jQuery(this).data('table'); 358 jQuery(this).hide(); 359 jQuery('.'+tableShow).css('opacity', '1'); 360 }); 361 362 jQuery(document).on('click', '.table-m33', function() { 363 let tableShow = jQuery(this).data('table'); 364 jQuery('.'+tableShow).css('opacity', '1'); 365 jQuery('.img-'+tableShow).hide(); 366 }); 367 368}); 369 370function rangeAliasValue(valor) { 371 let valueTrue = 0; 372 jQuery('.each_range_alias_value').each(function(){ 373 let value = jQuery(this).attr('data-value'); 374 let valueAlias = jQuery(this).attr('data-valueAlias'); 375 if (valor == value){ 376 valueTrue = valueAlias; 377 } 378 }); 379 return valueTrue; 380} 381 382function validateViewBotonModalInvestor(viewModal) { 383 if (viewModal == 1) { 384 jQuery('.btn-prev-modal-investor').hide(); 385 jQuery('.btn-next-modal-investor').prop("disabled", false); 386 } else if (viewModal == 6) { 387 let valueItem1 = parseInt(localStorage.getItem('investor_item1')); 388 let valueItem2 = parseInt(localStorage.getItem('investor_item2')); 389 let valueItem3 = parseInt(localStorage.getItem('investor_item3')); 390 let valueItem4 = parseInt(localStorage.getItem('investor_item4')); 391 let valueItem5 = parseInt(localStorage.getItem('investor_item5')); 392 393 let valueItemTotal = valueItem1 + valueItem2 + valueItem3 + valueItem4 + valueItem5; 394 395 let v = inRange2(valueItemTotal); 396 397 jQuery('#perfil_'+v).hide(); 398 jQuery('.form_'+v).show(); 399 let tit = jQuery('#perfil_'+v+' .investor-title-foreach').text(); 400 let des = jQuery('#perfil_'+v+' .investor-description-foreach').text(); 401 let src = jQuery('#perfil_'+v+' img.investor-otros-img-white').attr('src'); 402 403 jQuery('.investor-equilibrado-title').text(tit); 404 jQuery('.investor-equilibrado-descrip').text(des); 405 jQuery('img.result-icon-perfil').attr('src',src); 406 407 jQuery('.modal-body').css({padding:'0px'}); 408 jQuery('.modal-header').css({background:'#000826'}); 409 jQuery('.closet-modal-investor').css('color', '#fff'); 410 jQuery('.modal-footer').hide(); 411 jQuery(".modal").animate({ scrollTop:0 }, 500); 412 /*jQuery('.btn-prev-modal-investor').hide(); 413 jQuery('.btn-next-modal-investor').hide();*/ 414 } else{ 415 jQuery('.btn-prev-modal-investor').show(); 416 jQuery('.btn-next-modal-investor').show(); 417 } 418} 419 420// return range 421function inRange2(x) { 422 let uno = (jQuery('#perfil_Conservador').data('range')) ? jQuery('#perfil_Conservador').data('range').split('-')[0] : 0; 423 let dos = (jQuery('#perfil_Conservador').data('range')) ? jQuery('#perfil_Conservador').data('range').split('-')[1] : 35; 424 425 let tres = (jQuery('#perfil_Moderado').data('range') ) ? jQuery('#perfil_Moderado').data('range').split('-')[0] : 36; 426 let cuatro = (jQuery('#perfil_Moderado').data('range')) ? jQuery('#perfil_Moderado').data('range').split('-')[1] : 60; 427 428 let cinco = (jQuery('#perfil_Rendimiento').data('range')) ? jQuery('#perfil_Rendimiento').data('range').split('-')[0] : 61; 429 let seis = (jQuery('#perfil_Rendimiento').data('range')) ? jQuery('#perfil_Rendimiento').data('range').split('-')[1] :85;
430 console.log(x) 431 if(x >= uno && x <= dos){ 432 text = 'Conservador'; 433 } else if(x >= tres && x <= cuatro){ 434 text = 'Moderado'; 435 } else if(x >= cinco && x <= seis){ 436 text = 'Rendimiento'; 437 }else { 438 text = 'Agresivo'; 439 } 440 console.log(text) 441 return text; 442} 443 444$(function(){ 445 $(".de-accordion-a").click(function(e){ 446 447 e.preventDefault(); 448 449 var contenido=$(this).next(".collapse"); 450 451 if(contenido.css("display")=="none"){ //open 452 // contenido.slideDown(250); 453 $(this).addClass("show"); 454 } 455 else{ //close 456 // contenido.slideUp(250); 457 $(this).removeClass("show"); 458 } 459 460 }); 461}); 462 463$(function(){ 464 $(".accordion-titulo").click(function(e){ 465 466 e.preventDefault(); 467 468 var contenido=$(this).next(".accordion-content"); 469 470 if(contenido.css("display")=="none"){ //open 471 contenido.slideDown(250); 472 $(this).addClass("open"); 473 } 474 else{ //close 475 contenido.slideUp(250); 476 $(this).removeClass("open"); 477 } 478 479 }); 480}); 481 482function ventanaRRSS (url){ 483 window.open(url,"ventana1","width=600,height=600,scrollbars=NO"); 484} 485 486$(function(){ 487 488 if ( $(".icon-scroll-table").length > 0) { 489 //console.log('uno'); 490 $(".table-responsive").animate({scrollLeft: 0 }, 500); 491 if ($(document).width() <= 767) { 492 $(".table-responsive").scroll(function(){ 493 let positionActual = $(this).scrollLeft(); 494 //console.log(positionActual); 495 if ( positionActual > 5){ 496 //console.log('if'); 497 $(this).find(".icon-scroll-table").fadeOut("slow"); 498 //console.log($(this).data('table')); 499 let tableShow = jQuery(this).data('table'); 500 jQuery('.'+tableShow).css('opacity', '1'); 501 } else { 502 //console.log('else'); 503 //$(this).find(".icon-scroll-table").fadeIn("slow"); 504 //console.log($(this).data('table')); 505 } 506 }); 507 } 508 } 509 if ( $(".icon-scroll-table1").length > 0) { 510 //console.log('dos'); 511 $(".table-responsive1").animate({scrollLeft: 0 }, 500); 512 if ($(document).width() <= 767) { 513 $(".table-responsive1").scroll(function(){ 514 let positionActual = $(this).scrollLeft(); 515 //console.log(positionActual); 516 if ( positionActual > 5){ 517 //console.log('if'); 518 $(this).find(".icon-scroll-table1").fadeOut("slow"); 519 //console.log($(this).data('table')); 520 let tableShow = jQuery(this).data('table'); 521 jQuery('.'+tableShow).css('opacity', '1'); 522 } else { 523 //console.log('else'); 524 //$(this).find(".icon-scroll-table1").fadeIn("slow"); 525 } 526 }); 527 } 528 } 529});
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.