remove unused javascript
This commit is contained in:
parent
192502df18
commit
57479e144d
2 changed files with 0 additions and 21 deletions
5
dist/scripts/cat_fact_fetcher.js
vendored
5
dist/scripts/cat_fact_fetcher.js
vendored
|
@ -1,5 +0,0 @@
|
||||||
fetch("https://catfact.ninja/fact")
|
|
||||||
.then(data => data.json())
|
|
||||||
.then(data => {
|
|
||||||
document.getElementById("cat-fact").innerHTML = data.fact;
|
|
||||||
});
|
|
16
dist/scripts/link.js
vendored
16
dist/scripts/link.js
vendored
|
@ -1,19 +1,3 @@
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
const params = new Proxy(new URLSearchParams(window.location.search), {
|
|
||||||
get: (searchParams, prop) => searchParams.get(prop),
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
if (params.link !== null) {
|
|
||||||
let link = `${window.location.origin}/download/${params.link}`;
|
|
||||||
|
|
||||||
let link_el = document.getElementById("link");
|
|
||||||
|
|
||||||
link_el.href = link;
|
|
||||||
link_el.innerHTML = link;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function clipboard() {
|
function clipboard() {
|
||||||
let copyText = document.getElementById("link");
|
let copyText = document.getElementById("link");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue