rollback: go:embed for static files
This commit is contained in:
parent
70b329c902
commit
ef3f3c5428
5 changed files with 15 additions and 11 deletions
|
|
@ -20,7 +20,6 @@ function update_extras_buttons() {
|
|||
const info_container = document.getElementById("info")
|
||||
info_container.addEventListener("scroll", update_extras_buttons);
|
||||
const info_rect = info_container.getBoundingClientRect();
|
||||
const info_y = info_rect.y;
|
||||
const font_size = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
||||
let current = extras_pairs[0];
|
||||
extras_pairs.forEach(pair => {
|
||||
|
|
@ -53,7 +52,7 @@ function bind_go_back_btn() {
|
|||
function bind_share_btn() {
|
||||
const share_btn = document.getElementById("share");
|
||||
if (navigator.clipboard === undefined) {
|
||||
share_btn.onclick = event => {
|
||||
share_btn.onclick = () => {
|
||||
console.error("clipboard is not supported by this browser!");
|
||||
};
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue