jquery Production of computer health examination score results are shown below, like friends can download the source Oh.
View effect Map Source Download
File references:
<script type= "Text/javascript" src= "Js/jquery-... min.js" ></script> <script type= "Text/javascript"
> var current =;
$ (document). Ready (function () {$ (". Score-state-right"). attr ("style", "width:px"); $ ("#check-secure"). HTML ("Start Detection");
$ ("#check-secure"). Click (function () {if ($ ("#scorenum"). html ()!= "") {var current=;
} var scoreline=;
var score=;
var line=;
var auth = $ (". Safe-auth-done"). Length;
var mobile = $ (". Safe-mobile-done"). Length;
var google = $ (". Safe-google-done"). Length;
var tradepwd = $ (". Safe-tradepwd-done"). Length;
var pwdscore =;
var scoredetail= ';
if (auth>) {score=score+;
scoredetail+= ' <li class= "score-good-list clearfix" ><span> you have completed the real-name certification </span></li> '; }else{scoredetail+= ' <li class= "score-error-list clearfix" ><span> Congratulations, you do not have a real name certification!
</span><a href= "#" data-click= "app" > View information </a></li> ';
} if (mobile>) {score=score+; scoredetail+= ' <li class= ' SCORe-good-list Clearfix "><span> you have completed binding cell phone </span></li> '; }else{scoredetail+= ' <li class= "score-error-list clearfix" ><span> binding secure mobile phone, account security one-step </span><a
href= "#" data-click= "app" > immediately bind </a></li> ';
} if (google>) {score=score+;
scoredetail+= ' <li class= "score-good-list clearfix" ><span> you have bound Google authenticator </span></li> '; }else{scoredetail+= ' <li class= "score-error-list clearfix" ><span> you have not yet tied Google authenticator </span><a href=
"#" data-click= "app" > Bind Google </a></li> ';
} if (tradepwd>) {score=score+; }else{scoredetail+= ' <li class= "score-error-list clearfix" ><span> you have not set up a trading password </span><a "#"
data-click= "App" > Set password </a></li> ';
} if (pwdscore>=) {if (pwdscore==) {score=score+; scoredetail+= ' <li class= "score-warn-list clearfix" ><span> Your trading password security generally, it is recommended to modify the form of uppercase and lowercase + numerals + special symbols. </span><a href= "#" data-click= "app" > modify password </a></li> ';
}else if (pwdscore==) {score=score+; scoredetail+= ' <li class= "score-good-list clearfix" ><span> Congratulations, your trading password security is very high, you can not modify.
</span><a href= "#" data-click= "app" > Modify password </a></li> '; }else if (pwdscore==) {scoredetail+= ' <li class= ' score-warn-list clearfix ' ><span> Your trading password security is generally recommended to be modified to uppercase and lowercase + The form of a number + special symbol.
</span><a href= "#" data-click= "app" > Modify password </a></li> ';
} $ ("#score_detail"). HTML (scoredetail);
scoreline=line* (score/);
var speedline=score*;
var snum = setinterval ("Increment ()",);
$ (". Score-state-right"). Animate ({width:scoreline+ "px"},speedline,function () {$ (". Score-detail"). Show ();
Window.clearinterval (Snum);
});
$ ("#check-secure"). HTML ("Re-detection");
});
});
function increment () {current++ $ ("#scorenum"). HTML (current); } </script>