EVOLUTION-MANAGER
Edit File: 06a121122315ec0a6c76362e5f24480aac6a5d54.php
<?php $route_public=""; ?> <!doctype html> <head> <link href="<?php echo e(asset('admin/plantilla/font-awesome/css/font-awesome.css')); ?>" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="<?php echo e(asset($route_public.'/plugins/turnjs4/extras/jquery.min.1.7.js')); ?>"></script> <script type="text/javascript" src="<?php echo e(asset($route_public.'/plugins/turnjs4/extras/modernizr.2.5.3.min.js')); ?>"></script> <style> .flipbook-viewport .container { position: inherit !important; } .flipbook{ position: sticky !important; left: 0 !important; top: 0 !important; margin-top: 25px !important; margin-left: 25px !important; } body{ overflow: auto !important; } </style> <style> .frame{ display: flex; flex-direction: row; justify-content: space-around; align-items: center; height: 150px; width: fit-content; position: relative; box-shadow: -7px -7px 20px 0px #fff9, -4px -4px 5px 0px #fff9, 7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001, inset 0px 0px 0px 0px #fff9, inset 0px 0px 0px 0px #0001, inset 0px 0px 0px 0px #fff9, inset 0px 0px 0px 0px #0001; transition:box-shadow 0.6s cubic-bezier(.79,.21,.06,.81); border-radius: 10px; padding: 0px 20px; margin: 30px 0px; } .btn{ height: 100px; width: 100px; font-size: 50px; border-radius: 3px; background: #e0e5ec; display: flex; flex-direction: column; justify-content: center; align-items: center; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; box-shadow: -7px -7px 20px 0px #fff9, -4px -4px 5px 0px #fff9, 7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001; transition:box-shadow 0.6s cubic-bezier(.79,.21,.06,.81); color: #1987c4; text-decoration: none; } .texto{ height: 100px; font-size: 50px; width: fit-content; border-radius: 3px; background: #e0e5ec; display: flex; flex-direction: column; justify-content: center; align-items: center; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; box-shadow: -7px -7px 20px 0px #fff9, -4px -4px 5px 0px #fff9, 7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001; transition:box-shadow 0.6s cubic-bezier(.79,.21,.06,.81); -webkit-box-shadow: inset 0px 0px 21px 3px rgba(0,0,0,0.21); box-shadow: inset 0px 0px 21px 3px rgba(0,0,0,0.21); color: #000; text-decoration: none; user-select: none; padding: 0px 15px; margin: 0px 20px; } .btn:hover{ background: radial-gradient(circle, #0ff 0%, #e0e5ec 60%); color: rgba(102,102,102,.5); animation: colorchange 3s linear infinite; } .btn:active{ box-shadow: 4px 4px 6px 0 rgba(255,255,255,.5), -4px -4px 6px 0 rgba(116, 125, 136, .2), inset -4px -4px 6px 0 rgba(255,255,255,.5), inset 4px 4px 6px 0 rgba(116, 125, 136, .3); } .boton_regresar{ position: absolute; bottom: 0; right: 0; margin: 0px 30px 60px 0px } @media (min-width: 1100px) { .frame{ height: 60px; } .btn{ height: 40px; width: 40px; font-size: 26px; } .texto{ height: 40px; font-size: 26px; } .boton_regresar{ position: absolute; top: 0; left: 0; margin: 10px 0px 0px 10px } } @keyframes colorchange { to {filter: hue-rotate(360deg);} } </style> </head> <body> <input type="hidden" id="ruta_proyecto" value="<?php echo e(asset($route_public)); ?>"> <div id="contenedor_todo" style="width: fit-content;"> <div class="flipbook-viewport"> <div class="container"> <div class="flipbook"> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/1.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/2.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/3.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/4.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/5.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/6.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/7.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/8.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/9.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/10.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/11.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/12.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/13.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/14.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/15.jpg')); ?>)"></div> <div style="background-image:url(<?php echo e(asset($route_public.'/img/turismo/folleto/16.jpg')); ?>)"></div> </div> </div> </div> </div> <center id="content_botones"> <div class ="frame"> <a class="btn" onclick="previous_page()"> <i class="fa fa-backward"></i> </a> <a class="texto" id="texto_boton"> 0-0 </a> <a class="btn" onclick="next_page()"> <i class="fa fa-forward"></i> </a> </div> <a class="btn boton_regresar" href="<?php echo e(asset('turismo')); ?>"><i class="fa fa-reply-all"></i></a> </center> <script type="text/javascript"> var a = 2068; var b = 1465; var margin_left = 0; var restar = 50; function posicionar_folleto(){ ancho = $(window).width()-restar; alto = $(window).height()-restar-$("#content_botones").height()-restar; if(alto-ancho < 50){ //valores conocidos (dimenciones reales de las imagenes en pixeles) // x = (b*c)/a #regla de tres var c = alto; var x = (b*c)/a; ancho = x; margin_left = (($(window).width()-ancho)/2)-25; $("#contenedor_todo").attr("style", $("#contenedor_todo").attr("style")+`margin-left: ${margin_left}px !important;`); // $(".flipbook").attr("style", $(".flipbook").attr("style")+`margin-left: ${margin_left}px !important;`); } } function loadApp() { //calculamos el ancho y alto var ancho = $(window).width()-restar; var alto = $(window).height()-restar-$("#content_botones").height()-restar; if(alto-ancho < 50){ //valores conocidos (dimenciones reales de las imagenes en pixeles) // x = (b*c)/a #regla de tres var c = alto; var x = (b*c)/a; ancho = x; } // Create the flipbook $('.flipbook').turn({ // Width width: ancho, height: alto, // Elevation elevation: 50, // Enable gradients gradients: true, // Auto center this flipbook duration: 1200, autoCenter: true, diplay: 'single', }); $(".flipbook").turn("display", "single"); posicionar_folleto(); //inicializamos los contadores de paginas $("#texto_boton").html(`${$(".flipbook").turn("view")[0]} - ${$(".flipbook").turn("pages")}`); //evento despues de cambiar una pagina $(".flipbook").bind("turning",function(event, page, obj){ var actual = page; var total = $(".flipbook").turn("pages"); $("#texto_boton").html(`${actual} - ${total}`); posicionar_folleto(); }); $(".flipbook").bind("turned",function(event, page, obj){ posicionar_folleto(); }); } function next_page(){ $(".flipbook").turn("next"); } function previous_page(){ $(".flipbook").turn("previous"); } // Load the HTML4 version if there's not CSS transform yepnope({ test : Modernizr.csstransforms, yep: [$("#ruta_proyecto").val()+'/plugins/turnjs4/lib/turn.js'], nope: [$("#ruta_proyecto").val()+'/plugins/turnjs4/lib/turn.html4.min.js'], both: [$("#ruta_proyecto").val()+'/plugins/turnjs4/samples/basic/css/basic.css'], complete: loadApp }); </script> </body> </html>