"Windows 8 Bootstrap Modals"
Bootstrap 3.3.0 Snippet by AaronSionAnthonyBryant

<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="modalAnswers fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" style="z-index: 1000;> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-body"> <H2>Correct Answer</H2> <ul class="list-inline pull-right"> <li><button type="button" class="btn btn-primary next-step" id="loadActive" data-dismiss="modal" aria-hidden="true">Save and continue</button></li> </ul> </div> </div> </div> </div> <div class="modalAnswers fade bs-example-modal-lg-fail" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-body"> <H2>Correct Answer</H2> <button type="button" class="btn btn-danger"> Click to Re-Start</button> </div> </div> </div> </div> <div class="container"> <div class="row"> <section> <div class="wizard" style="Margin-top: -405px;"> <div class="wizard-inner"> <div class="connecting-line"></div> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"> <a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Step 1"> <span class="round-tab"> <i class="glyphicon glyphicon-folder-open"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Step 2"> <span class="round-tab"> <i class="glyphicon glyphicon-pencil"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#step3" data-toggle="tab" aria-controls="step3" role="tab" title="Step 3"> <span class="round-tab"> <i class="glyphicon glyphicon-picture"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#complete" data-toggle="tab" aria-controls="complete" role="tab" title="Complete"> <span class="round-tab"> <i class="glyphicon glyphicon-ok"></i> </span> </a> </li> </ul> </div> <form role="form"> <div class="tab-content"> <div class="tab-pane active" role="tabpanel" id="step1"> <div class="container-fluid bg-info"> <h1 style="margin-left: 25%; margin-right: 20%; font-size: 2em; color: #990000;">Welcome to the Full Page Form Quiz</h1> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h3><span class="label label-warning" id="qid">1</span> Where would I find my form responses?</h3> </div> <div class="modal-body"> <div class="col-xs-3 col-xs-offset-5"> <div id="loadbar" style="display: none;"> <div class="blockG" id="rotateG_01"></div> <div class="blockG" id="rotateG_02"></div> <div class="blockG" id="rotateG_03"></div> <div class="blockG" id="rotateG_04"></div> <div class="blockG" id="rotateG_05"></div> <div class="blockG" id="rotateG_06"></div> <div class="blockG" id="rotateG_07"></div> <div class="blockG" id="rotateG_08"></div> </div> </div> <div class="quiz" id="quiz" data-toggle="buttons"> <button class="element-animation1 btn btn-lg btn-primary btn-block" data-toggle="modal" data-target=".bs-example-modal-lg"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="OptionsP1" value="1" >1 Website Data</button> <button class="element-animation2 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="OptionsP1" value="2">2 opportunities</button> <button class="element-animation3 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="OptionsP1" value="3">3 Database</button> <button class="element-animation4 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="OptionsP1" value="4">4 Email Campaigns</button> </div> </div> <div class="modal-footer text-muted"> <span id="answer"></span> </div> </div> </div> </div> </div> <div class="tab-pane" role="tabpanel" id="step2"> <div class="container-fluid bg-info"> <h1 style="margin-left: 25%; margin-right: 20%; font-size: 2em; color: #990000;">Welcome to the FAB+ basic use certification</h1> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h3><span class="label label-warning" id="qid">2</span> Where would I find my form responses?</h3> </div> <div class="modal-body"> <div class="col-xs-3 col-xs-offset-5"> <div id="loadbar" style="display: none;"> <div class="blockG" id="rotateG_01"></div> <div class="blockG" id="rotateG_02"></div> <div class="blockG" id="rotateG_03"></div> <div class="blockG" id="rotateG_04"></div> <div class="blockG" id="rotateG_05"></div> <div class="blockG" id="rotateG_06"></div> <div class="blockG" id="rotateG_07"></div> <div class="blockG" id="rotateG_08"></div> </div> </div> <div class="quiz" id="quiz" data-toggle="buttons"> <label class="element-animation1 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="1">1 Website Data</label> <label class="element-animation2 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="2">2 opportunities</label> <label class="element-animation3 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="3">3 Database</label> <label class="element-animation4 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="4">4 Email Campaigns</label> </div> </div> <div class="modal-footer text-muted"> <span id="answer"></span> </div> </div> </div> </div> <ul class="list-inline pull-right"> <li><button type="button" class="btn btn-default prev-step">Previous</button></li> <li><button type="button" class="btn btn-primary next-step">Save and continue</button></li> </ul> </div> <div class="tab-pane" role="tabpanel" id="step3"> <div class="container-fluid bg-info"> <h1 style="margin-left: 25%; margin-right: 20%; font-size: 2em; color: #990000;">Welcome to the FAB+ basic use certification</h1> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h3><span class="label label-warning" id="qid">3</span> Where would I find my form responses?</h3> </div> <div class="modal-body"> <div class="col-xs-3 col-xs-offset-5"> <div id="loadbar" style="display: none;"> <div class="blockG" id="rotateG_01"></div> <div class="blockG" id="rotateG_02"></div> <div class="blockG" id="rotateG_03"></div> <div class="blockG" id="rotateG_04"></div> <div class="blockG" id="rotateG_05"></div> <div class="blockG" id="rotateG_06"></div> <div class="blockG" id="rotateG_07"></div> <div class="blockG" id="rotateG_08"></div> </div> </div> <div class="quiz" id="quiz" data-toggle="buttons"> <label class="element-animation1 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="1" data-toggle="modal" data-target=".bs-example-modal-lg">1 Website Data</label> <label class="element-animation2 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="2">2 opportunities</label> <label class="element-animation3 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="3">3 Database</label> <label class="element-animation4 btn btn-lg btn-primary btn-block"><span class="btn-label"><i class="glyphicon glyphicon-chevron-right"></i></span> <input type="radio" name="q_answer" value="4">4 Email Campaigns</label> </div> </div> <div class="modal-footer text-muted"> <span id="answer"></span> </div> </div> </div> </div> <ul class="list-inline pull-right"> <li><button type="button" class="btn btn-default prev-step">Previous</button></li> <li><button type="button" class="btn btn-default next-step">Skip</button></li> <li><button type="button" class="btn btn-primary btn-info-full next-step">Save and continue</button></li> </ul> </div> <div class="tab-pane" role="tabpanel" id="complete"> <h3>Complete</h3> <p>You have successfully completed all steps.</p> </div> <div class="clearfix"></div> </div> </form> </div> </section> </div> </div>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.3.0/animate.min.css"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <link rel="stylesheet" href="http://data.fabcrm.com/agents/3130/files/138080871be1424381286fe344f5b2d3.zip"> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"> <style> .modalAnswers { /* display: block;*/ padding-right: 0px; background-color: rgba(4, 4, 4, 0.8); } .modal-dialog1 { top: 20%; width: 100%; position: absolute; } .modal-content1 { border-radius: 0px; border: none; top: 40%; } .modal-body1 { background-color: #990000; color: white; } .row { margin-top: -55px; } .bg-info { background-color: #d1d1d1; } .wizard { margin: 20px auto; background: #ddd; border-radius: 36px } .btn-primary { color: #fff; background-color: #990000; border-color: #357ebd; border-radius: 22px; } .btn-default { color: #fff; background-color: #990000; border-color: #357ebd; border-radius: 22px; } .wizard .nav-tabs { position: relative; margin: 40px auto; margin-bottom: 0; border-bottom-color: #e0e0e0; } .wizard > div.wizard-inner { position: relative; background-color: #990000; } .connecting-line { height: 2px; background: #e0e0e0; position: absolute; width: 80%; margin: 0 auto; left: 0; right: 0; top: 50%; z-index: 1; } .wizard .nav-tabs > li.active > a, .wizard .nav-tabs > li.active > a:hover, .wizard .nav-tabs > li.active > a:focus { color: #555555; cursor: default; border: 0; border-bottom-color: transparent; } span.round-tab { width: 70px; height: 70px; line-height: 70px; display: inline-block; border-radius: 100px; background: #fff; border: 2px solid #e0e0e0; z-index: 2; position: absolute; left: 0; text-align: center; font-size: 25px; } span.round-tab i{ color:#555555; } .wizard li.active span.round-tab { background: #fff; border: 2px solid #5bc0de; } .wizard li.active span.round-tab i{ color: #5bc0de; } span.round-tab:hover { color: #333; border: 2px solid #333; } .wizard .nav-tabs > li { width: 25%; } .wizard li:after { content: " "; position: absolute; left: 46%; opacity: 0; margin: 0 auto; bottom: 0px; border: 5px solid transparent; border-bottom-color: #5bc0de; transition: 0.1s ease-in-out; } .wizard li.active:after { content: " "; position: absolute; left: 46%; opacity: 1; margin: 0 auto; bottom: 0px; border: 10px solid transparent; border-bottom-color: #5bc0de; } .wizard .nav-tabs > li a { width: 70px; height: 70px; margin: 20px auto; border-radius: 100%; padding: 0; } .wizard .nav-tabs > li a:hover { background: transparent; } .wizard .tab-pane { position: relative; padding-top: 50px; } .wizard h3 { margin-top: 0; } @media( max-width : 585px ) { .wizard { width: 90%; height: auto !important; } span.round-tab { font-size: 16px; width: 50px; height: 50px; line-height: 50px; } .wizard .nav-tabs > li a { width: 50px; height: 50px; line-height: 50px; } .wizard li.active:after { content: " "; position: absolute; left: 35%; } } #qid { padding: 10px 15px; -moz-border-radius: 50px; -webkit-border-radius: 50px; border-radius: 20px; } h3, .h3 { color: #dddddd; font-size: 24px; } .modal-header { background-color: #990000; color: inherit; } #qid { padding: 10px 15px; -moz-border-radius: 50px; -webkit-border-radius: 50px; border-radius: 20px; color: #990000; } .label-warning { background-color: #dddddd; } label.btn { padding: 18px 60px; white-space: normal; -webkit-transform: scale(1.0); -moz-transform: scale(1.0); -o-transform: scale(1.0); -webkit-transition-duration: .3s; -moz-transition-duration: .3s; -o-transition-duration: .3s } label.btn:hover { text-shadow: 0 3px 2px rgba(0,0,0,0.4); -webkit-transform: scale(1.1); -moz-transform: scale(1.1); -o-transform: scale(1.1) } label.btn-block { text-align: left; position: relative } label .btn-label { position: absolute; left: 0; top: 0; display: inline-block; padding: 0 10px; background: rgba(0,0,0,.15); height: 100% } label .glyphicon { top: 34% } .element-animation1 { animation: animationFrames ease .8s; animation-iteration-count: 1; transform-origin: 50% 50%; -webkit-animation: animationFrames ease .8s; -webkit-animation-iteration-count: 1; -webkit-transform-origin: 50% 50%; -ms-animation: animationFrames ease .8s; -ms-animation-iteration-count: 1; -ms-transform-origin: 50% 50% } .element-animation2 { animation: animationFrames ease 1s; animation-iteration-count: 1; transform-origin: 50% 50%; -webkit-animation: animationFrames ease 1s; -webkit-animation-iteration-count: 1; -webkit-transform-origin: 50% 50%; -ms-animation: animationFrames ease 1s; -ms-animation-iteration-count: 1; -ms-transform-origin: 50% 50% } .element-animation3 { animation: animationFrames ease 1.2s; animation-iteration-count: 1; transform-origin: 50% 50%; -webkit-animation: animationFrames ease 1.2s; -webkit-animation-iteration-count: 1; -webkit-transform-origin: 50% 50%; -ms-animation: animationFrames ease 1.2s; -ms-animation-iteration-count: 1; -ms-transform-origin: 50% 50% } .element-animation4 { animation: animationFrames ease 1.4s; animation-iteration-count: 1; transform-origin: 50% 50%; -webkit-animation: animationFrames ease 1.4s; -webkit-animation-iteration-count: 1; -webkit-transform-origin: 50% 50%; -ms-animation: animationFrames ease 1.4s; -ms-animation-iteration-count: 1; -ms-transform-origin: 50% 50% } @keyframes animationFrames { 0% { opacity: 0; transform: translate(-1500px,0px) } 60% { opacity: 1; transform: translate(30px,0px) } 80% { transform: translate(-10px,0px) } 100% { opacity: 1; transform: translate(0px,0px) } } @-webkit-keyframes animationFrames { 0% { opacity: 0; -webkit-transform: translate(-1500px,0px) } 60% { opacity: 1; -webkit-transform: translate(30px,0px) } 80% { -webkit-transform: translate(-10px,0px) } 100% { opacity: 1; -webkit-transform: translate(0px,0px) } } @-ms-keyframes animationFrames { 0% { opacity: 0; -ms-transform: translate(-1500px,0px) } 60% { opacity: 1; -ms-transform: translate(30px,0px) } 80% { -ms-transform: translate(-10px,0px) } 100% { opacity: 1; -ms-transform: translate(0px,0px) } } body { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; line-height: 1.42857143; color: #333; background-color: #990000; } .modal-body { min-height: 205px } #loadbar { position: absolute; width: 62px; height: 77px; top: 2em } .blockG { position: absolute; background-color: #FFF; width: 10px; height: 24px; -moz-border-radius: 8px 8px 0 0; -moz-transform: scale(0.4); -moz-animation-name: fadeG; -moz-animation-duration: .8800000000000001s; -moz-animation-iteration-count: infinite; -moz-animation-direction: linear; -webkit-border-radius: 8px 8px 0 0; -webkit-transform: scale(0.4); -webkit-animation-name: fadeG; -webkit-animation-duration: .8800000000000001s; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: linear; -ms-border-radius: 8px 8px 0 0; -ms-transform: scale(0.4); -ms-animation-name: fadeG; -ms-animation-duration: .8800000000000001s; -ms-animation-iteration-count: infinite; -ms-animation-direction: linear; -o-border-radius: 8px 8px 0 0; -o-transform: scale(0.4); -o-animation-name: fadeG; -o-animation-duration: .8800000000000001s; -o-animation-iteration-count: infinite; -o-animation-direction: linear; border-radius: 8px 8px 0 0; transform: scale(0.4); animation-name: fadeG; animation-duration: .8800000000000001s; animation-iteration-count: infinite; animation-direction: linear } #rotateG_01 { left: 0; top: 28px; -moz-animation-delay: .33s; -moz-transform: rotate(-90deg); -webkit-animation-delay: .33s; -webkit-transform: rotate(-90deg); -ms-animation-delay: .33s; -ms-transform: rotate(-90deg); -o-animation-delay: .33s; -o-transform: rotate(-90deg); animation-delay: .33s; transform: rotate(-90deg) } #rotateG_02 { left: 8px; top: 10px; -moz-animation-delay: .44000000000000006s; -moz-transform: rotate(-45deg); -webkit-animation-delay: .44000000000000006s; -webkit-transform: rotate(-45deg); -ms-animation-delay: .44000000000000006s; -ms-transform: rotate(-45deg); -o-animation-delay: .44000000000000006s; -o-transform: rotate(-45deg); animation-delay: .44000000000000006s; transform: rotate(-45deg) } #rotateG_03 { left: 26px; top: 3px; -moz-animation-delay: .55s; -moz-transform: rotate(0deg); -webkit-animation-delay: .55s; -webkit-transform: rotate(0deg); -ms-animation-delay: .55s; -ms-transform: rotate(0deg); -o-animation-delay: .55s; -o-transform: rotate(0deg); animation-delay: .55s; transform: rotate(0deg) } #rotateG_04 { right: 8px; top: 10px; -moz-animation-delay: .66s; -moz-transform: rotate(45deg); -webkit-animation-delay: .66s; -webkit-transform: rotate(45deg); -ms-animation-delay: .66s; -ms-transform: rotate(45deg); -o-animation-delay: .66s; -o-transform: rotate(45deg); animation-delay: .66s; transform: rotate(45deg) } #rotateG_05 { right: 0; top: 28px; -moz-animation-delay: .7700000000000001s; -moz-transform: rotate(90deg); -webkit-animation-delay: .7700000000000001s; -webkit-transform: rotate(90deg); -ms-animation-delay: .7700000000000001s; -ms-transform: rotate(90deg); -o-animation-delay: .7700000000000001s; -o-transform: rotate(90deg); animation-delay: .7700000000000001s; transform: rotate(90deg) } #rotateG_06 { right: 8px; bottom: 7px; -moz-animation-delay: .8800000000000001s; -moz-transform: rotate(135deg); -webkit-animation-delay: .8800000000000001s; -webkit-transform: rotate(135deg); -ms-animation-delay: .8800000000000001s; -ms-transform: rotate(135deg); -o-animation-delay: .8800000000000001s; -o-transform: rotate(135deg); animation-delay: .8800000000000001s; transform: rotate(135deg) } #rotateG_07 { bottom: 0; left: 26px; -moz-animation-delay: .99s; -moz-transform: rotate(180deg); -webkit-animation-delay: .99s; -webkit-transform: rotate(180deg); -ms-animation-delay: .99s; -ms-transform: rotate(180deg); -o-animation-delay: .99s; -o-transform: rotate(180deg); animation-delay: .99s; transform: rotate(180deg) } #rotateG_08 { left: 8px; bottom: 7px; -moz-animation-delay: 1.1s; -moz-transform: rotate(-135deg); -webkit-animation-delay: 1.1s; -webkit-transform: rotate(-135deg); -ms-animation-delay: 1.1s; -ms-transform: rotate(-135deg); -o-animation-delay: 1.1s; -o-transform: rotate(-135deg); animation-delay: 1.1s; transform: rotate(-135deg) } @-moz-keyframes fadeG { 0% { background-color: #000 } 100% { background-color: #FFF } } @-webkit-keyframes fadeG { 0% { background-color: #000 } 100% { background-color: #FFF } } @-ms-keyframes fadeG { 0% { background-color: #000 } 100% { background-color: #FFF } } @-o-keyframes fadeG { 0% { background-color: #000 } 100% { background-color: #FFF } } @keyframes fadeG { 0% { background-color: #000 } 100% { background-color: #FFF } } label .btn-label { position: absolute; left: 0; top: 0; display: inline-block; padding: 0 10px; background: rgba(0,0,0,.15); height: 100%; border-radius: 19px; .wizard li.active span.round-tab { background: #fff; border: 2px solid #ddd; } .wizard li.active span.round-tab i { color: #990000; }
$(function(){ var loading = $('#loadbar').hide(); $(document) .ajaxStart(function () { loading.show(); }).ajaxStop(function () { loading.hide(); }); $("label.btn").on('click',function () { var choice = $(this).find('input:radio').val(); $('#loadbar').show(); $('#quiz').fadeOut(); setTimeout(function(){ $( "#answer" ).html( $(this).checking(choice) ); $('#quiz').show(); $('#loadbar').fadeOut(); /* something else */ }, 1500); }); $ans = 1; $.fn.checking = function(ck) { if (ck != $ans) return 'INCORRECT'; else return 'CORRECT'; }; }); $(document).ready(function () { //Initialize tooltips $('.nav-tabs > li a[title]').tooltip(); //Wizard $('a[data-toggle="tab"]').on('show.bs.tab', function (e) { var $target = $(e.target); if ($target.parent().hasClass('disabled')) { return false; } }); $(".next-step").click(function (e) { var $active = $('.wizard .nav-tabs li.active'); $active.next().removeClass('disabled'); nextTab($active); }); $(".prev-step").click(function (e) { var $active = $('.wizard .nav-tabs li.active'); prevTab($active); }); }); function nextTab(elem) { $(elem).next().find('a[data-toggle="tab"]').click(); } function prevTab(elem) { $(elem).prev().find('a[data-toggle="tab"]').click(); } jQuery("#loadActive").click(function() { //I have other code in here that runs before this function call writeData(); }); function writeData() { jQuery("input[name='OptionsP1']").each(function(i) { jQuery(this).attr('disabled', 'disabled'); }); } </script>

Related: See More


Questions / Comments: