Edit D:\xinhaisoft\crisis_new\lb\html\150.htm
?? <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="renderer" content="webkit"> <title>???????????CBT???</title> <link rel="stylesheet" href="/scripts/amazeui-beta/css/amazeui.min.css"> <style> body{ background-image:url(../images/background.jpg);background-size: cover;background-position: center center;background-attachment: fixed;} .am-container {background:url(../images/shaddow.png) no-repeat;} article{background-color:#fff;margin:30px 30px 0 30px;padding:30px 62px;position:relative;} h1{color:#5085FF;font-weight:bold; text-align:center; margin-top:0; } #lb-act{text-align:center; margin-top:15px;border-top:1px dashed #e1e1e1; padding-top:15px;} #testing{display:none; margin-top:15px;} .am-progress-text{display:none;} .q{display:none;margin-top:15px;} .q-answer li{list-style:none;} .am-radio,.am-checkbox{cursor:pointer;} .q-act{display:none;text-align: center; margin-top: 20px;} #modal-question label { font-weight: normal; } @media only screen and (max-width: 640px) { body{background:none;} .am-container{background:none;} article{margin:0;padding:15px 20px;} } </style> </head> <body> <div class="am-container"> <article> <h1 class="am-text-xl">???????????CBT???</h1> <div id="lb-zhidaoyu" class="am-text-sm"><span class="tts am-btn am-btn-default am-btn-xs am-btn-hollow" title="??????"></span> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????</div> <div id="lb-act"> <form id="form" method="post" action="../bdi2.asp"> <input type="hidden" name="answer" id="answer"> <input type="hidden" name="act" id="act" value="MemberTest"> <input type="hidden" name="lbid" id="lbid" value="150"> </form> <input type="button" class="am-btn am-btn-secondary am-btn-sm" id="btn-start" value="?? ??"> <input type="button" class="am-btn am-btn-secondary am-btn-sm" id="btn-end" value="?????" disabled> <input type="button" class="am-btn am-btn-secondary am-btn-sm" id="btn-zhidaoyu" value="????????"> <input type="hidden" id="maxid" value="21"> <input type="hidden" id="maxtime" value="0"> <input type="hidden" id="preview" value=""> </div> <div id="testing" class="am-cf"> <span id="testing-time" class="am-badge am-badge-success am-round am-fl am-margin-right-xs">0:0:0</span> <span id="testing-number" class="am-badge am-badge-success am-round am-fl am-margin-right-xs">1/21</span> <div id="testing-progress"></div> </div> <form id="form-question" class="am-form"> <div class="q am-panel am-panel-default" id="q_1"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_1'></span> 1?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-1' id='a-1-1' value='1' data-am-ucheck>?????????</label></li><li><label class='am-radio'><input type='radio' name='a-1' id='a-1-2' value='2' data-am-ucheck>????????</label></li><li><label class='am-radio'><input type='radio' name='a-1' id='a-1-3' value='3' data-am-ucheck>???????????????</label></li><li><label class='am-radio'><input type='radio' name='a-1' id='a-1-4' value='4' data-am-ucheck>????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_2"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_2'></span> 2?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-2' id='a-2-1' value='1' data-am-ucheck>????????????</label></li><li><label class='am-radio'><input type='radio' name='a-2' id='a-2-2' value='2' data-am-ucheck>???????????????</label></li><li><label class='am-radio'><input type='radio' name='a-2' id='a-2-3' value='3' data-am-ucheck>???????????</label></li><li><label class='am-radio'><input type='radio' name='a-2' id='a-2-4' value='4' data-am-ucheck>?????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_3"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_3'></span> 3?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-3' id='a-3-1' value='1' data-am-ucheck>???????????</label></li><li><label class='am-radio'><input type='radio' name='a-3' id='a-3-2' value='2' data-am-ucheck>?????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-3' id='a-3-3' value='3' data-am-ucheck>?????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-3' id='a-3-4' value='4' data-am-ucheck>????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_4"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_4'></span> 4?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-4' id='a-4-1' value='1' data-am-ucheck>????????????????????????¤?</label></li><li><label class='am-radio'><input type='radio' name='a-4' id='a-4-2' value='2' data-am-ucheck>??????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-4' id='a-4-3' value='3' data-am-ucheck>??????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-4' id='a-4-4' value='4' data-am-ucheck>??????????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_5"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_5'></span> 5?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-5' id='a-5-1' value='1' data-am-ucheck>?????????</label></li><li><label class='am-radio'><input type='radio' name='a-5' id='a-5-2' value='2' data-am-ucheck>?????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-5' id='a-5-3' value='3' data-am-ucheck>??????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-5' id='a-5-4' value='4' data-am-ucheck>?????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_6"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_6'></span> 6?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-6' id='a-6-1' value='1' data-am-ucheck>??????????????</label></li><li><label class='am-radio'><input type='radio' name='a-6' id='a-6-2' value='2' data-am-ucheck>??????????????</label></li><li><label class='am-radio'><input type='radio' name='a-6' id='a-6-3' value='3' data-am-ucheck>????????????</label></li><li><label class='am-radio'><input type='radio' name='a-6' id='a-6-4' value='4' data-am-ucheck>????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_7"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_7'></span> 7?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-7' id='a-7-1' value='1' data-am-ucheck>????????????</label></li><li><label class='am-radio'><input type='radio' name='a-7' id='a-7-2' value='2' data-am-ucheck>????????????</label></li><li><label class='am-radio'><input type='radio' name='a-7' id='a-7-3' value='3' data-am-ucheck>????????????</label></li><li><label class='am-radio'><input type='radio' name='a-7' id='a-7-4' value='4' data-am-ucheck>????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_8"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_8'></span> 8?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-8' id='a-8-1' value='1' data-am-ucheck>????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-8' id='a-8-2' value='2' data-am-ucheck>????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-8' id='a-8-3' value='3' data-am-ucheck>?????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-8' id='a-8-4' value='4' data-am-ucheck>?????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_9"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_9'></span> 9?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-9' id='a-9-1' value='1' data-am-ucheck>????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-9' id='a-9-2' value='2' data-am-ucheck>?????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-9' id='a-9-3' value='3' data-am-ucheck>??????</label></li><li><label class='am-radio'><input type='radio' name='a-9' id='a-9-4' value='4' data-am-ucheck>??????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_10"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_10'></span> 10?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-10' id='a-10-1' value='1' data-am-ucheck>?????????????</label></li><li><label class='am-radio'><input type='radio' name='a-10' id='a-10-2' value='2' data-am-ucheck>???????????</label></li><li><label class='am-radio'><input type='radio' name='a-10' id='a-10-3' value='3' data-am-ucheck>???????????</label></li><li><label class='am-radio'><input type='radio' name='a-10' id='a-10-4' value='4' data-am-ucheck>????????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_11"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_11'></span> 11?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-11' id='a-11-1' value='1' data-am-ucheck>?????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-11' id='a-11-2' value='2' data-am-ucheck>????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-11' id='a-11-3' value='3' data-am-ucheck>???????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-11' id='a-11-4' value='4' data-am-ucheck>????????????????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_12"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_12'></span> 12?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-12' id='a-12-1' value='1' data-am-ucheck>?????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-12' id='a-12-2' value='2' data-am-ucheck>????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-12' id='a-12-3' value='3' data-am-ucheck> ????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-12' id='a-12-4' value='4' data-am-ucheck>????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_13"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_13'></span> 13?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-13' id='a-13-1' value='1' data-am-ucheck>???????????????</label></li><li><label class='am-radio'><input type='radio' name='a-13' id='a-13-2' value='2' data-am-ucheck>??????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-13' id='a-13-3' value='3' data-am-ucheck>??????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-13' id='a-13-4' value='4' data-am-ucheck>???????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_14"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_14'></span> 14?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-14' id='a-14-1' value='1' data-am-ucheck>????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-14' id='a-14-2' value='2' data-am-ucheck>??????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-14' id='a-14-3' value='3' data-am-ucheck>?????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-14' id='a-14-4' value='4' data-am-ucheck>???????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_15"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_15'></span> 15?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-15' id='a-15-1' value='1' data-am-ucheck>??????????????</label></li><li><label class='am-radio'><input type='radio' name='a-15' id='a-15-2' value='2' data-am-ucheck>????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-15' id='a-15-3' value='3' data-am-ucheck>??????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-15' id='a-15-4' value='4' data-am-ucheck>???????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_16"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_16'></span> 16?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-16' id='a-16-1' value='1' data-am-ucheck>??????????????</label></li><li><label class='am-radio'><input type='radio' name='a-16' id='a-16-2' value='2' data-am-ucheck>????????????</label></li><li><label class='am-radio'><input type='radio' name='a-16' id='a-16-3' value='3' data-am-ucheck>??????????1??2????????????</label></li><li><label class='am-radio'><input type='radio' name='a-16' id='a-16-4' value='4' data-am-ucheck>???????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_17"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_17'></span> 17?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-17' id='a-17-1' value='1' data-am-ucheck>?????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-17' id='a-17-2' value='2' data-am-ucheck> ?????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-17' id='a-17-3' value='3' data-am-ucheck>????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-17' id='a-17-4' value='4' data-am-ucheck>?????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_18"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_18'></span> 18?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-18' id='a-18-1' value='1' data-am-ucheck>??????????????</label></li><li><label class='am-radio'><input type='radio' name='a-18' id='a-18-2' value='2' data-am-ucheck>??????????????</label></li><li><label class='am-radio'><input type='radio' name='a-18' id='a-18-3' value='3' data-am-ucheck>???????????????</label></li><li><label class='am-radio'><input type='radio' name='a-18' id='a-18-4' value='4' data-am-ucheck>??????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_19"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_19'></span> 19?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-19' id='a-19-1' value='1' data-am-ucheck>???????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-19' id='a-19-2' value='2' data-am-ucheck>??????????????5??</label></li><li><label class='am-radio'><input type='radio' name='a-19' id='a-19-3' value='3' data-am-ucheck>??????????????10??</label></li><li><label class='am-radio'><input type='radio' name='a-19' id='a-19-4' value='4' data-am-ucheck>????????????15?????????????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_20"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_20'></span> 20?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-20' id='a-20-1' value='1' data-am-ucheck>??????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-20' id='a-20-2' value='2' data-am-ucheck>???????????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-20' id='a-20-3' value='3' data-am-ucheck>??????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-20' id='a-20-4' value='4' data-am-ucheck>?????????????????????????????????</label></li></ul> </div> </div> <div class="q am-panel am-panel-default" id="q_21"> <div class="am-panel-hd"> <span class='tts am-btn am-btn-default am-btn-xs am-btn-hollow' data-target='#q_21'></span> 21?? </div> <div class="q-answer am-panel-bd"> <ul class='am-text-lg'><li><label class='am-radio'><input type='radio' name='a-21' id='a-21-1' value='1' data-am-ucheck>?????????????????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-21' id='a-21-2' value='2' data-am-ucheck>??????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-21' id='a-21-3' value='3' data-am-ucheck>??????????????????</label></li><li><label class='am-radio'><input type='radio' name='a-21' id='a-21-4' value='4' data-am-ucheck>??????????????????</label></li></ul> </div> </div> </form> <div class="q-act"> <input type="button" class="am-btn am-btn-secondary am-btn-sm" id="btn-prev" value="?????"> <input type="button" class="am-btn am-btn-secondary am-btn-sm" id="btn-next" value="?????"> <select id="select" data-am-selected="{btnWidth:'55px',btnSize:'xs',btnStyle:'secondary',dropUp:1,maxHeight:'350px',searchBox:1}"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> </select> </div> </article> </div> <div class="am-modal am-modal-alert" tabindex="-1" id="modal-alert"> <div class="am-modal-dialog"> <div class="am-modal-bd am-text-break"></div> <div class="am-modal-footer"> <button type="button" class="am-btn am-modal-btn am-btn-primary" data-am-modal-confirm>???</button> </div> </div> </div> <div class="am-modal am-modal-confirm" tabindex="-1" id="modal-confirm"> <div class="am-modal-dialog"> <div class="am-modal-bd"></div> <div class="am-modal-footer"> <button type="button" class="am-btn am-modal-btn am-btn-default am-btn-hollow" data-am-modal-cancel>???</button> <button type="button" class="am-btn am-modal-btn am-btn-primary" data-am-modal-confirm>???</button> </div> </div> </div> <div class="am-modal am-modal-confirm" tabindex="-1" id="modal-garlic"> <div class="am-modal-dialog"> <div class="am-modal-hd">??????</div> <div class="am-modal-bd"> ??????????????????????????????<br> ????????????????????????????????????????????????????????????????????????????????????????<br> ?????????????????????????????? </div> <div class="am-modal-footer"> <button type="button" class="am-btn am-modal-btn am-btn-default am-btn-hollow" data-am-modal-cancel>???????</button> <button type="button" class="am-btn am-modal-btn am-btn-primary" data-am-modal-confirm>??????</button> </div> </div> </div> <script src="/Scripts/jquery.min.js"></script> <script src="/Scripts/garlic.min.js"></script> <script src="/Scripts/autosize.min.js"></script> <script src="/Scripts/amazeui-beta/js/amazeui.min.js"></script> <script src="/Scripts/tts.js"></script> <script> var Timer=0 var Timer_s=0 var Timer_m=0 var Timer_h=0 var maxtime,maxid,lbid,i var timer_next=null var preview $(function(){ autosize($('textarea')) // ???????????? lbid=parseInt($('#lbid').val()) maxid=parseInt($('#maxid').val()) maxtime=parseInt($('#maxtime').val()) preview=$('#preview').val()==='1' // ??????? $('#btn-start').on('click',function(){ // ???????? setInterval('showclock()',1000) $('#testing').show() $('div.q-act').show() $('#btn-start').prop('disabled',true) $('#btn-end').prop('disabled',false) $('#testing-progress').progressbar({textInner:true}) // ?????1????? show(1) garlic() }) // ???????? $('#btn-end').on('click',CheckAnswer) // ???????? $('#btn-zhidaoyu').on('click',function(){ if($(this).val()==='????????'){ $(this).val('????????') $('#lb-zhidaoyu').slideUp('slow') } else{ $(this).val('????????') $('#lb-zhidaoyu').slideDown('slow') } }) // ???????????????? $('div.q-answer input:radio').on('click',function(){ var $par=$(this).parents('ul') $par.find('label').css({'font-weight':'normal'}) $(this).parent('label').css({'font-weight':'bold'}) // ?????????(9)???????????? if(!(lbid===9&&$(this).attr('name').indexOf('a-f-')===0)){ if($par.find('input:radio:checked').length>0){ timer_next=setTimeout('btn_next_click()',300) } } }) // ???????????????? $('div.q-answer input:checkbox').on('click',function(){ if($(this).is(':checked')){$(this).parent('label').css({'font-weight':'bold'})} else{$(this).parent('label').css({'font-weight':'normal'})} }) // ???????? $('#btn-prev').on('click',function(){show($('#select').val()-1)}) // ???????? $('#btn-next').on('click',btn_next_click) // ?????? $('#select').on('change',function(){show($(this).val(),'select')}) }) // ???????? function showclock(){ if(Timer_s===60){ Timer_s=0 Timer_m++ if(Timer_m===60){Timer_h++} } if(maxtime>0){ // ???5?????? if(Timer===(maxtime-5)*60){$('#modal-alert').find('.am-modal-bd').text('????????? '+maxtime+' ???????????????? 5 ?????').end().modal()} // ?????? if(Timer===maxtime*60){ $('#modal-alert').find('.am-modal-bd').text('????????? '+maxtime+' ???????????????').end().modal({ onConfirm:function(){ $('#btn-end').prop('disabled',true) $('div.q').hide() $('div.q-act').hide() } }) } } $('#testing-time').text(Timer_h+':'+Timer_m+':'+Timer_s) Timer_s++ Timer++ } // ???????????????????? function show(n,select){ $('div.q').hide() // ??????? $('#q_'+n).show() // ?????????? $('#testing-progress').progressbar('set', n/maxid*100) $('#testing-number').text(n+'/'+maxid) // ??? $('#btn-prev').prop('disabled',n===1) // ??????????? if(select!=='select'){$('#select').val(n).trigger('changed.selected.amui')} } // ???????? function btn_next_click(){ clearTimeout(timer_next) var n=parseInt($('#select').val()) if(n===maxid){ $('#modal-confirm').find('.am-modal-bd').text('???????????????????????????????????????????').end().modal({ onConfirm:function(){$('#btn-end').click()} }) } else{show(n+1)} } // ?????? function form_submit(answer){ garlic_clear() if(preview){$('#modal-alert').find('.am-modal-bd').html('?????????????????<br>'+answer.substring(1)).end().modal()} else{ $('#answer').val(answer.substring(1)) $('#form').trigger('submit') } } // ??????????????????????????????????? function CheckAnswer(){ if(lbid===9){return CheckAnswer_EMBU()} // else if(lbid==93){return CheckAnswer_XGTZ();} else if(lbid===170){return CheckAnswer_SDS3()} var errmsg='' var answer='' var n=0 // ?????????????????? $('div.q-answer').each(function(i){ var j=i+1 // ???? if($(this).has('input:radio').length){ var v=$(this).find('input:radio:checked').val() if(typeof(v)==='undefined'){ errmsg+='??'+j if(n===0){n=j} } else{answer+='|'+v} } // ???? else if($(this).has('input:checkbox').length){ var s='' $(this).find('input:checkbox:checked').each(function(){ s+=','+$(this).val() }) answer+='|'+s.substring(1) } // ???????? else if($(this).has('input[type="text"][name="a-'+j+'"]').length>0){answer+='|'+$('input[type="text"][name="a-'+j+'"]').val()} else if($(this).has('input[type="time"][name="a-'+j+'"]').length>0){answer+='|'+$('input[type="time"][name="a-'+j+'"]').val()} else if($(this).has('select[name="a-'+j+'"]').length>0){answer+='|'+$('select[name="a-'+j+'"]').val()} else if($(this).has('textarea[name="a-'+j+'"]').length>0){answer+='|'+$('textarea[name="a-'+j+'"]').val()} }) if(errmsg!==''){ show(n) $('#modal-alert').find('.am-modal-bd').text('?? '+errmsg.substring(1)+' ?????????').end().modal() } else{form_submit(answer)} } // ??????EMBU??????????? function CheckAnswer_EMBU(){ var i,err var errmsg='' var answer='' var n=0 // ?????????????????? var errFa var errMo for(i=1;i<=maxid;i++){ errFa=true errMo=true $('div.q-answer input[name="a-f-'+i+'"]').each(function(){ if($(this).prop('checked')){ answer+='|'+$(this).val() errFa=false } }) $('div.q-answer input[name="a-m-'+i+'"]').each(function(){ if($(this).prop('checked')){ answer+='|'+$(this).val() errMo=false } }) if(errFa||errMo){ errmsg+='??'+i if(n===0){n=i} } } if(errmsg!==''){ show(n) $('#modal-alert').find('.am-modal-bd').text('?? '+errmsg.substring(1)+' ?????????').end().modal() } else{form_submit(answer)} } // ???????????CBT??? function CheckAnswer_SDS3(){ var errmsg='' var answer='' var n=0 var sum_4_5=0 // ??????? $('div.q-answer').each(function(i){ var j=i+1 var v=$(this).find('input:radio:checked').val() if(typeof(v)==='undefined'){ errmsg+='??'+j if(n===0){n=j} } else{ if(j===4||j===5){sum_4_5+=parseInt(v)} answer+='|'+v } }) if(errmsg!==''){ show(n) $('#modal-alert').find('.am-modal-bd').text('?? '+errmsg.substring(1)+' ?????????').end().modal() } // 4+5?????<=7 else if(sum_4_5>7){ $('#modal-alert').find('.am-modal-bd').text('??4?????5???????????7??').end().modal({ onConfirm:function(){show(4)} }) } else{form_submit(answer)} } // ????????????????? function garlic(){ if(typeof(window.localStorage)==='undefined'){return} var i=0 var key=null var garlicKey='garlic:test-'+lbid+'-' $('#form-question').garlic({ getPath:function($item){return garlicKey+$item.attr('name').substring(2)} }) if(localStorage.getItem(garlicKey+'1')||localStorage.getItem(garlicKey+'f-1')||localStorage.getItem(garlicKey+'m-1')){ $('#modal-garlic').modal({ onConfirm:function(){ var max=1 for(i=0;i<localStorage.length;i++) { if(localStorage.key(i).indexOf('garlic:')===0){ key=localStorage.key(i) key=parseInt(key.substring(key.lastIndexOf('-')+1)) if(key>max){max=key} show(max) } } }, onCancel:function(){ $('#form-question').trigger('reset') garlic_clear() } }) } } // ?????????????? function garlic_clear(){ if(typeof(window.localStorage)==='undefined'){return} var i=0 var key=null for(i=0;i<localStorage.length;i++) { if(localStorage.key(i).indexOf('garlic:')===0){ key=localStorage.key(i) localStorage.removeItem(key) } } } </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de