wip
This commit is contained in:
parent
3364ff1640
commit
99ee7420e7
|
@ -5,20 +5,7 @@ if (document.readyState && document.readyState !== 'loading') {
|
|||
}
|
||||
|
||||
function configureSummarizeButtons() {
|
||||
var buttons = document.querySelectorAll('.kagi-summary a.btn');
|
||||
console.log(`configuring ${buttons.length} buttons`);
|
||||
for (var i = 0; i < buttons.length; i++) {
|
||||
let button = buttons[i];
|
||||
let url = button.dataset.url;
|
||||
button.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
if (url) {
|
||||
console.log(url);
|
||||
} else {
|
||||
console.log('no url');
|
||||
}
|
||||
$('#global').on('click', '.kagi-summary a.btn', function() {
|
||||
console.log(this.dataset.url);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue