103 lines
3.7 KiB
HTML
103 lines
3.7 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<style>
|
||
|
|
.sec0 { background-image: url(img/fondos/bg4.jpg); background-repeat: no-repeat; background-size: cover; background-position: center; }
|
||
|
|
.bubble {
|
||
|
|
width: 100%; height: 112px; background-image: linear-gradient(to bottom, #f9f9f9, #f5f5f5, #f1f1f1, #ededed, #e9e9e9);
|
||
|
|
border-top-left-radius: 25px; border-top-right-radius: 25px; border-bottom-right-radius: 25px;
|
||
|
|
}
|
||
|
|
.anim { opacity: 0; }
|
||
|
|
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="section_charge bg w-100 h-100">
|
||
|
|
<div class="d-none">
|
||
|
|
<img src="img/sprites/marco_1.png" alt="">
|
||
|
|
<img src="img/sprites/marco_2.png" alt="">
|
||
|
|
</div>
|
||
|
|
<section id="sec0" class="sec0 w-100 h-100">
|
||
|
|
<div class="container h-100">
|
||
|
|
<div class="row justify-content-center h-100">
|
||
|
|
<div class="col-9 offset-2 mt-2 anim anim1">
|
||
|
|
<div class="bubble d-flex align-items-center shadow px-3 py-2">
|
||
|
|
¡Buenos días! Soy Marcos Aguilar, el nuevo colaborador de MAPFRE. Me interesa mucho conocer las nuevas disposiciones
|
||
|
|
sobre Prevención de Lavado de Dinero y Financiamiento al Terrorismo para poderme actualizar. ¿Puedes apoyarme?
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-7 align-self-end anim anim2">
|
||
|
|
<div class="row justify-content-center">
|
||
|
|
<div class="col-4 align-self-end">
|
||
|
|
<div class="personaje_r_1 d-none"></div>
|
||
|
|
<div class="personaje_r_2"></div>
|
||
|
|
</div>
|
||
|
|
<div class="col-4">
|
||
|
|
<div class="personaje_m_1 d-none"></div>
|
||
|
|
<div class="personaje_m_2"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
<script>
|
||
|
|
jQuery(document).ready(function($) {
|
||
|
|
instruccion(0);
|
||
|
|
var Audio_4 = newSound("audio/Audio_4_Marcos.mp3");
|
||
|
|
var Audio_R1 = newSound("audio/Audio_1_Ruben.mp3");
|
||
|
|
var txt1 = "¡Buen día! Te estábamos esperando Marcos. Yo soy Rubén Gutiérrez y con gusto te guiaré para que conozcas mejor estas disposiciones.";
|
||
|
|
|
||
|
|
Audio_4.on("end", function() {
|
||
|
|
stopAllSoundsAndPlay(Audio_R1);
|
||
|
|
$('.bubble').html(txt1);
|
||
|
|
$('.personaje_m_2').addClass('d-none');
|
||
|
|
$('.personaje_m_1').removeClass('d-none');
|
||
|
|
$('.personaje_r_2').addClass('d-none');
|
||
|
|
$('.personaje_r_1').removeClass('d-none').addClass('play');
|
||
|
|
});
|
||
|
|
Audio_R1.on("end", function() {
|
||
|
|
fn_end();
|
||
|
|
$('.personaje_r_1').removeClass('play')
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
$(".layer-load").show();
|
||
|
|
$('.section_charge').waitForImages({
|
||
|
|
finished: function() {
|
||
|
|
$(".section_charge").css("visibility", "visible");
|
||
|
|
$(".wloader").hide();
|
||
|
|
fn_animate();
|
||
|
|
|
||
|
|
},
|
||
|
|
each: function(loaded, count, success) {
|
||
|
|
var total = Math.floor((loaded * 100) / count);
|
||
|
|
$(".wloader").show();
|
||
|
|
|
||
|
|
},
|
||
|
|
waitForAll: true
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
function fn_animate(){
|
||
|
|
var tl = new TimelineMax();
|
||
|
|
tl.fromTo(".anim2",1,{opacity:0, x:-150},{opacity:1, x:0, ease:Expo.easeInOut});
|
||
|
|
tl.fromTo(".anim1",.7,{opacity:0, y:-250},{opacity:1, y:0, ease:Expo.easeInOut});
|
||
|
|
tl.call(fn_firstAudio);
|
||
|
|
}
|
||
|
|
|
||
|
|
function fn_firstAudio(){
|
||
|
|
stopAllSoundsAndPlay(Audio_4);
|
||
|
|
$('.personaje_m_2').addClass('play');
|
||
|
|
}
|
||
|
|
|
||
|
|
function fn_end(){
|
||
|
|
instruccion(1);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
});
|
||
|
|
</script>
|