Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Anuncio DPF"
Bootstrap 3.3.0 Snippet by
dihgarcia
3.3.0
jQuery
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
601
 
0 Fav
Post to Facebook
Tweet this
<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
Free Template
Argon Dashboard
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76