<div class="col-md-12"> <div class="text-section"> <h1 class="h2">Sharypic, también en tu teléfono</h1> <p>Reúne y comparte tus fotos tan fácilmente como cuando las sacaste</p> </div> <div id="mobile_carousel" class="carousel slide d-none d-md-block bg-iphone"> <div class="carousel-inner"> <div class="carousel-item active"> <img alt="popular events" width="223" height="335" class="screenshots" src="//d33sgtxooy1kjh.cloudfront.net/assets/iphone/0_map_en-fad449f2c920e7211bfab189b9153f6bb2b39474626a4ef3a07cc0f3eeff277d.png" /> </div> <div class="carousel-item"> <img alt="popular events" width="223" height="335" class="screenshots" src="//d33sgtxooy1kjh.cloudfront.net/assets/iphone/1_popular_events_en-f879a046d5377d78d80e356bd6a8026edd5a2daa18a727094273a80a48598e7c.png" /> </div> <div class="carousel-item"> <img alt="left menu" width="223" height="335" class="screenshots" src="//d33sgtxooy1kjh.cloudfront.net/assets/iphone/2_left_menu_en-6b6cfedb123d2d73bbbcdbf4d1f4f65bcce0152823af69656ef8aaa7d8ac7464.png" /> </div> <div class="carousel-item"> <img alt="real time" width="223" height="335" class="screenshots" src="//d33sgtxooy1kjh.cloudfront.net/assets/iphone/3_real_time_en-9adb45ebe9be8106c222b56e6adabfbc154ed4f07d148419ede9d97ade869274.png" /> </div> <div class="carousel-item"> <img alt="view event" width="223" height="335" class="screenshots" src="//d33sgtxooy1kjh.cloudfront.net/assets/iphone/4_view_event_en-cf758e2e7fa92a840b992a1a28ea399e8e06426bdc5ece0a13905f4290b75702.png" /> </div> <div class="carousel-item"> <img alt="view photo" width="223" height="335" class="screenshots" src="//d33sgtxooy1kjh.cloudfront.net/assets/iphone/5_view_photo_en-713cdc01713e3e15f77aebc1bf7ac3de283fde6fddd4316fa3d2d52edccc3530.png" /> </div> <div class="carousel-item"> <img alt="event infos" width="223" height="335" class="screenshots" src="//d33sgtxooy1kjh.cloudfront.net/assets/iphone/6_event_infos_en-a985d7d62b41276dfbc453b1cfa6559ce72136ce2f44573c10f7c743958e0e0f.png" /> </div> <ol class="carousel-indicators"> <li class="active" data-target="#mobile_carousel"></li> <li data-target="#mobile_carousel" data-slide-to="1"></li> <li data-target="#mobile_carousel" data-slide-to="2"></li> <li data-target="#mobile_carousel" data-slide-to="3"></li> <li data-target="#mobile_carousel" data-slide-to="4"></li> <li data-target="#mobile_carousel" data-slide-to="5"></li> <li data-target="#mobile_carousel" data-slide-to="6"></li> <li data-target="#mobile_carousel" data-slide-to="7"></li> </ol> </div> </div> <div class="benefits"> <ul class="pt-3"> <li>Descubre eventos cerca o en el otro lado del mundo</li> <li>Reúne todas las fotos en tiempo real</li> <li>Crea álbumes comunitarios</li> </ul> <p class="occasions">Una <strong>boda</strong>, un <strong>fin de semana</strong> entre amigos, <strong>vacaciones con la familia</strong>, etc... ¡Sharypic es perfecto para todas las ocasiones!</p> </div> </div> <script type="text/javascript"> window.initJs = window.initJs || []; window.initJs.push(function($, I18n){ $('.carousel').carousel({interval: 3000}); $('.carousel[id]').each( function() { var html = '<div class="carousel-nav hidden-sm" data-target="' + $(this).attr('id') + '"><ul>'; for(var i = 0; i < $(this).find('.item').length; i ++) { html += '<li><a'; if(i == 0) { html += ' class="active"'; } html += ' href="#">•</a></li>'; } html += '</ul></li>'; $(this).before(html); } ).bind('slid', function(e) { var nav = $('.carousel-nav[data-target="' + $(this).attr('id') + '"] ul'); var index = $(this).find('.item.active').index(); var item = nav.find('li').get(index); nav.find('li a.active').removeClass('active'); $(item).find('a').addClass('active'); } ); $('.carousel-nav a').bind('click', function(e) { var index = $(this).parent().index(); var carousel = $('#' + $(this).closest('.carousel-nav').attr('data-target')); var nav = $('.carousel-nav[data-target="mobile_carousel"] ul'); nav.find('li a.active').removeClass('active'); $(this).addClass('active'); carousel.carousel(index); e.preventDefault(); } ); }) </script>
¿Ayuda?