You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}else{// if it's a number surrounded by curly braces
191
+
if(uniqueLetters["~"+letter.slice(1,-1)]){// if the character signifier is already present
192
+
uniqueLetters["~"+letter.slice(1,-1)].push(index);// add another index to the unique letter array
193
+
}else{// if it's a new "letter"
194
+
uniqueLetters["~"+letter.slice(1,-1)]=[index];// add the letter's index to uniqueLetters in an array
195
195
}
196
-
}/* else {
197
-
// do nothing
198
-
// (skips the number between any {}s)
199
-
} */
196
+
}
200
197
});
201
-
varletters=word.split("");
198
+
varletters=word.match(/\w|\{\d+\}/g);
202
199
varindex=0;
203
-
varshift=0;
204
-
varoldShift;
205
-
S.forEach(uniqueLetters,function(numbers){// This could likely be done with a search-and-replace method. (although going straight to the index is probably faster than a searching method)
Object.keys(uniqueLetters).forEach(function(key){// This could likely be done with a search-and-replace method. (although going straight to the index is probably faster than a searching method)
201
+
uniqueLetters[key].forEach(function(number){// for every occurence of the unique letter
202
+
if(letters[number].toLowerCase()!=letters[number].toUpperCase()){// if the character at the current index is a letter
203
+
if(index<26){// if there are letters available
204
+
letters[number]=ALPHABET[index];
210
205
}else{// This should never happen.
211
-
oldShift=shift;
212
-
shift+=("{"+"{0}").format(index-26).length;// two braces can't be back-to-back without doing weird stuff
if(component.variation){// if it's a vertical grid line
@@ -2167,7 +2169,7 @@ <h1 class="main-title">
2167
2169
<section>
2168
2170
Maybe you've come here in a desperate attempt to find a way of getting around the short-comings of the main decoder or maybe you were just curious after the decoder did its job; regardless, this is primarily just a place for random code-related fun. Feel free to explore.
The following sections can be used to convert text into various codes. In places where the encrypted section is editable, code can be put in, and decrypted text will be the output. If both inputs are filled, encoding the decrypted text wins out. Double-clicking or touching and holding on an input will erase its text.
0 commit comments