full page redesign; improved light theme
This commit is contained in:
parent
b58290b4e5
commit
2e5ddc8dc4
9 changed files with 379 additions and 284 deletions
16
public/script/main.js
Normal file
16
public/script/main.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
export function hijackClickEvent(container, link) {
|
||||
container.addEventListener('click', event => {
|
||||
if (event.target.tagName.toLowerCase() === 'a') return;
|
||||
event.preventDefault();
|
||||
link.dispatchEvent(new MouseEvent('click', {
|
||||
bubbles: true,
|
||||
cancelable: true,
|
||||
view: window,
|
||||
ctrlKey: event.ctrlKey,
|
||||
metaKey: event.metaKey,
|
||||
shiftKey: event.shiftKey,
|
||||
altKey: event.altKey,
|
||||
button: event.button,
|
||||
}));
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue