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
"school thing"
Bootstrap 3.3.0 Snippet by
imatheusmoreira
3.3.0
jQuery
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
687
 
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 ----------> <div class="container"> <div class="row"> <br/><br/><br/> <a class="btn btn-primary btn-lg" data-toggle="modal" data-target="#contact" data-original-title> Year of The Jungle </a> <div class="modal fade" id="contact" tabindex="-1" role="dialog" aria-labelledby="contactLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="panel panel-primary"> <div class="panel-heading"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="panel-title" id="contactLabel">Any questions? Feel free to contact us.</h4> </div> <button style="float: right;" type="button" class="btn btn-default btn-close" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> </div>
body { margin-top:50px; } .modal-body:not(.two-col) { padding:0px } .modal-body .radio,.modal-body .checkbox {margin-top: 0px;margin-bottom: 0px;} .modal-body .list-group {margin-bottom: 0;} .margin-bottom-none { margin-bottom: 0; } .modal-body .radio label,.modal-body .checkbox label { display:block; } .modal-footer {margin-top: 0px;} @media screen and (max-width: 325px){ .btn-close { margin-top: 5px; width: 100%; } } .modal-footer .btn+.btn { margin-left: 0px; } .modal-dialog { width: 90%; }
$(document).ready(function() { var panels = $('.vote-results'); var panelsButton = $('.dropdown-results'); panels.hide(); //Click dropdown panelsButton.click(function() { //get data-for attribute var dataFor = $(this).attr('data-for'); var idFor = $(dataFor); //current button var currentButton = $(this); idFor.slideToggle(400, function() { //Completed slidetoggle if(idFor.is(':visible')) { currentButton.html('Hide Results'); } else { currentButton.html('View Results'); } }) }); });
Related:
See More
Free Template
Argon Dashboard
36.7K
35
School Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76