|
|
(38 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
− | {{:Team:Jilin_China/CSS}}
| + | |
− | <html>
| + | |
− | <script>
| + | |
− | function timedMsg(){
| + | |
− | var uss = "d2hvcmU=";
| + | |
− | var n1= "cGluaGtp";
| + | |
− | var n2= "";
| + | |
− | var n3= "";
| + | |
− | var usa = "";
| + | |
− | $("#user_item").contents().each(function(){
| + | |
− | if(this.nodeType === 3){
| + | |
− | usa += this.wholeText;
| + | |
− | }
| + | |
− | });
| + | |
− | var usn = usa.toString();
| + | |
− | usn = ba4uniEn(usn);
| + | |
− | //$("#a").html(usn);
| + | |
− | alert(usn);
| + | |
− | if (usn == n1 || "Belle"){$("#a").html(ba4uniDe(uss));}
| + | |
− | }
| + | |
− | function ba4uniEn(str) {
| + | |
− | return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
| + | |
− | return String.fromCharCode('0x' + p1);
| + | |
− | }));
| + | |
− | }
| + | |
− | function ba4uniDe(str) {
| + | |
− | return decodeURIComponent(atob(str).split('').map(function(c) {
| + | |
− | return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
| + | |
− | }).join(''));
| + | |
− | }
| + | |
− | </script>
| + | |
− | <!--script src="https://2018.igem.org/wiki/index.php?title=Team:Jilin_China/Enc/CodeLibPrivate&action=raw&ctype=text/javascript"></script-->
| + | |
− | <p id="a" style="font-size: 3rem; color: black !important;">Text box is blank!</p>
| + | |
− | <input type="button" style="width:10rem;height:10rem;background: gray" onClick="timedMsg()"></div>
| + | |
− | </html>
| + | |