Skip to content

Commit 8dd8e89

Browse files
ordinaryperson420Your Namebsmth
authored
clearing fade-in animation eventListeners (mdn#87)
Co-authored-by: Your Name <your@mail.net> Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
1 parent 4c1e311 commit 8dd8e89

File tree

26 files changed

+38
-38
lines changed

26 files changed

+38
-38
lines changed

web-crypto/derive-bits/ecdh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
sharedSecretValue.classList.add("fade-in");
1717
sharedSecretValue.addEventListener("animationend", () => {
1818
sharedSecretValue.classList.remove("fade-in");
19-
});
19+
}, { once: true });
2020
sharedSecretValue.textContent = `${buffer}...[${sharedSecret.byteLength} bytes total]`;
2121
}
2222

web-crypto/derive-bits/pbkdf2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
derivedBitsValue.classList.add("fade-in");
4141
derivedBitsValue.addEventListener("animationend", () => {
4242
derivedBitsValue.classList.remove("fade-in");
43-
});
43+
}, { once: true });
4444
derivedBitsValue.textContent = `${buffer}...[${derivedBits.byteLength} bytes total]`;
4545
}
4646

web-crypto/derive-key/ecdh.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
ciphertextValue.classList.add("fade-in");
4040
ciphertextValue.addEventListener("animationend", () => {
4141
ciphertextValue.classList.remove("fade-in");
42-
});
42+
}, { once: true });
4343
ciphertextValue.textContent = `${buffer}...[${ciphertext.byteLength} bytes total]`;
4444
}
4545

@@ -69,7 +69,7 @@
6969
decryptedValue.classList.add("fade-in");
7070
decryptedValue.addEventListener("animationend", () => {
7171
decryptedValue.classList.remove("fade-in");
72-
});
72+
}, { once: true });
7373
decryptedValue.textContent = dec.decode(decrypted);
7474
} catch (e) {
7575
decryptedValue.classList.add("error");

web-crypto/derive-key/pbkdf2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
ciphertextValue.classList.add("fade-in");
8181
ciphertextValue.addEventListener("animationend", () => {
8282
ciphertextValue.classList.remove("fade-in");
83-
});
83+
}, { once: true });
8484
ciphertextValue.textContent = `${buffer}...[${ciphertext.byteLength} bytes total]`;
8585
}
8686

@@ -114,7 +114,7 @@
114114
decryptedValue.classList.add("fade-in");
115115
decryptedValue.addEventListener("animationend", () => {
116116
decryptedValue.classList.remove("fade-in");
117-
});
117+
}, { once: true });
118118
decryptedValue.textContent = dec.decode(decrypted);
119119
} catch (e) {
120120
decryptedValue.classList.add("error");

web-crypto/encrypt-decrypt/aes-cbc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
ciphertextValue.classList.add('fade-in');
4040
ciphertextValue.addEventListener('animationend', () => {
4141
ciphertextValue.classList.remove('fade-in');
42-
});
42+
}, { once: true });
4343
ciphertextValue.textContent = `${buffer}...[${ciphertext.byteLength} bytes total]`;
4444
}
4545

@@ -62,7 +62,7 @@
6262
decryptedValue.classList.add('fade-in');
6363
decryptedValue.addEventListener('animationend', () => {
6464
decryptedValue.classList.remove('fade-in');
65-
});
65+
}, { once: true });
6666
decryptedValue.textContent = dec.decode(decrypted);
6767
}
6868

web-crypto/encrypt-decrypt/aes-ctr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
ciphertextValue.classList.add('fade-in');
4141
ciphertextValue.addEventListener('animationend', () => {
4242
ciphertextValue.classList.remove('fade-in');
43-
});
43+
}, { once: true });
4444
ciphertextValue.textContent = `${buffer}...[${ciphertext.byteLength} bytes total]`;
4545
}
4646

@@ -64,7 +64,7 @@
6464
decryptedValue.classList.add('fade-in');
6565
decryptedValue.addEventListener('animationend', () => {
6666
decryptedValue.classList.remove('fade-in');
67-
});
67+
}, { once: true });
6868
decryptedValue.textContent = dec.decode(decrypted);
6969
}
7070

web-crypto/encrypt-decrypt/aes-gcm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
ciphertextValue.classList.add('fade-in');
4040
ciphertextValue.addEventListener('animationend', () => {
4141
ciphertextValue.classList.remove('fade-in');
42-
});
42+
}, { once: true });
4343
ciphertextValue.textContent = `${buffer}...[${ciphertext.byteLength} bytes total]`;
4444
}
4545

@@ -62,7 +62,7 @@
6262
decryptedValue.classList.add('fade-in');
6363
decryptedValue.addEventListener('animationend', () => {
6464
decryptedValue.classList.remove('fade-in');
65-
});
65+
}, { once: true });
6666
decryptedValue.textContent = dec.decode(decrypted);
6767
}
6868

web-crypto/encrypt-decrypt/rsa-oaep.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
ciphertextValue.classList.add('fade-in');
3636
ciphertextValue.addEventListener('animationend', () => {
3737
ciphertextValue.classList.remove('fade-in');
38-
});
38+
}, { once: true });
3939
ciphertextValue.textContent = `${buffer}...[${ciphertext.byteLength} bytes total]`;
4040
}
4141

@@ -57,7 +57,7 @@
5757
decryptedValue.classList.add('fade-in');
5858
decryptedValue.addEventListener('animationend', () => {
5959
decryptedValue.classList.remove('fade-in');
60-
});
60+
}, { once: true });
6161
decryptedValue.textContent = dec.decode(decrypted);
6262
}
6363

web-crypto/export-key/jwk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
exportKeyOutput.classList.add("fade-in");
1313
exportKeyOutput.addEventListener("animationend", () => {
1414
exportKeyOutput.classList.remove("fade-in");
15-
});
15+
}, { once: true });
1616
exportKeyOutput.textContent = JSON.stringify(exported, null, " ");
1717
}
1818

web-crypto/export-key/pkcs8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
exportKeyOutput.classList.add("fade-in");
2525
exportKeyOutput.addEventListener("animationend", () => {
2626
exportKeyOutput.classList.remove("fade-in");
27-
});
27+
}, { once: true });
2828
exportKeyOutput.textContent = pemExported;
2929
}
3030

0 commit comments

Comments
 (0)