Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hinagawa authored May 13, 2021
1 parent 53eff3d commit 0d69335
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ <h3>Сохраненный объект</h3>
<button onClick="deleteCookie()">Выйти</button>
</div>
</body>

<script>
<script>
window.onload = function isToken() {
// При загрузке страницы проверять наличие токена
if (document.cookie === "") {
Expand Down Expand Up @@ -185,7 +184,6 @@ <h3>Сохраненный объект</h3>
async doStrategy(buffer) {
document.getElementById("saved-object").innerText = " "; // "Убираем" текст
// Если категория Картинки, то отображаем картинку

const bytes = new Uint8Array(buffer);
const decoder = new TextDecoder("utf8");
var image = new Image();
Expand Down Expand Up @@ -240,12 +238,10 @@ <h3>Сохраненный объект</h3>
chr1 = input[i++];
chr2 = i < input.length ? input[i++] : Number.NaN; // Not sure if the index
chr3 = i < input.length ? input[i++] : Number.NaN; // checks are needed here

enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;

if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
Expand Down

0 comments on commit 0d69335

Please sign in to comment.