Fixes #7
BourseComponent.vue : tigger 'wantsLink' or 'givesLink' buttons on anchor links
This commit is contained in:
parent
58bbdafe43
commit
33cf96b21f
1 changed files with 6 additions and 0 deletions
|
|
@ -246,10 +246,16 @@
|
|||
document.querySelector('a[href="#wantsLink"]').addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
__Gaul.scrollToContent('wantsLink', 80)
|
||||
setTimeout(() => {
|
||||
document.getElementById('wantsLink').click()
|
||||
}, 100);
|
||||
})
|
||||
document.querySelector('a[href="#givesLink"]').addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
__Gaul.scrollToContent('givesLink', 80)
|
||||
setTimeout(() => {
|
||||
document.getElementById('givesLink').click()
|
||||
}, 100);
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue