Skip to content

Commit

Permalink
[fix] rot1
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
OldBigBuddha committed Oct 31, 2018
1 parent f4b20e7 commit 3097a85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ <h1>Squcqb</h1>

for(var i = 0; i < this.original.length; i++){
var code = this.original.charCodeAt(i);
if ((code_A <= code && code < code_N) || (code_a <= code && code < code_n)){
if ((code_A <= code && code <= code_N) || (code_a <= code && code <= code_n)){
code = code + seed;
} else if((code_N <= code && code <= code_Z) || (code_n <= code && code <= code_z)){
} else if((code_N < code && code <= code_Z) || (code_n < code && code <= code_z)){
code = code - seed;
}
result += String.fromCharCode(code);
Expand All @@ -88,4 +88,4 @@ <h1>Squcqb</h1>
</script>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</body>
</html>
</html>

0 comments on commit 3097a85

Please sign in to comment.