Skip to content

Commit

Permalink
Remove possible failed CSS class on success
Browse files Browse the repository at this point in the history
  • Loading branch information
emarsden committed Apr 16, 2024
1 parent e3ce849 commit 0f5e00a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www-zola/content/get-license.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ and https://reference.dashif.org/dash.js/latest/samples/drm/license-wrapping.htm
<small>Your quest to obtain a valid CDM (Widevine device file) is not something that we can
help you with here. Those who seek guidance often ask their favorite search engine. Please note
that your WVD stays on your local machine; it is not uploaded anywhere (verify this by checking
the network requests made by this page, in the browsers' Web Developer tools).</small>
the network requests made by this page, in the browser’s Web Developer tools).</small>
</label>
<button id="go" data-tooltip="Request the decryption keys" disabled>Request license</button>
</form>
Expand Down
1 change: 1 addition & 0 deletions www-zola/static/js/decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ document.getElementById("go").addEventListener("click", function(e) {
} else {
decoded = pssh_hex_to_html(input);
}
out.classList.remove("failed");
out.innerHTML = "<strong>Decoded</strong><br>" + decoded;
} catch (e) {
out.innerHTML = e.toString()
Expand Down
1 change: 1 addition & 0 deletions www-zola/static/js/fetch-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ document.getElementById("go").addEventListener("click", function(e) {
out.scrollIntoView();
fetch_pssh_data(url)
.then((html) => {
out.classList.remove("failed");
out.innerHTML = "<strong>PSSH data</strong><br>" + html;
})
.catch((e) => {
Expand Down
1 change: 1 addition & 0 deletions www-zola/static/js/generate-pssh.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ document.getElementById("go").addEventListener("click", function(e) {
}
let encoded = generate_widevine_pssh_b64(version, [kid], provider, contentid, policy,
cpi, protection_scheme, algorithm);
out.classList.remove("failed");
out.innerHTML = "<h3>Generated PSSH in Base 64</h3>" + "<p>" + encoded;
} catch (e) {
out.innerHTML = e.toString()
Expand Down

0 comments on commit 0f5e00a

Please sign in to comment.