"Anuncio DPF"
Bootstrap 3.3.0 Snippet by dihgarcia

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script> <div class="container"> <div class="row"> <div class='modal fade' id='oddsshark'> <div class='modal-dialog'> <div class='modal-content'> <div class='modal-body'> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <img class="img-responsive" src="http://i.imgur.com/UptFDo1.jpg" /> </div> <div class='modal-footer'> <div class="checkbox pull-right"> <label> <input class='modal-check' name='modal-check' type="checkbox"> NÃO VISUALIZAR MAIS </label> </div> </div> </div> </div> </div> </div> </div> <!-- / container -->
.modal-body { padding: 0px; } .modal-footer { padding: 0 15px 0 0; text-align: center; background: #920000; color: #fff; border-top: 0px; } button.close { position: absolute; width: 195%; } .close { opacity: .5; }
$(document).ready(function(){ var my_cookie = $.cookie($('.modal-check').attr('name')); if (my_cookie && my_cookie == "true") { $(this).prop('checked', my_cookie); console.log('checked checkbox'); } else{ $('#oddsshark').modal('show'); console.log('uncheck checkbox'); } $(".modal-check").change(function() { $.cookie($(this).attr("name"), $(this).prop('checked'), { path: '/', expires: 1 }); }); });

Related: See More


Questions / Comments: