Changeset a39c9bd in Klonkt for src/assets/js/mod/authorize-interaction.js
- Timestamp:
- 08/07/2026 07:01:20 PM (5 weeks ago)
- Branches:
- main
- Children:
- a66266d
- Parents:
- 7df47b6 (diff), a8364ee (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/assets/js/mod/authorize-interaction.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/assets/js/mod/authorize-interaction.js
r7df47b6 ra39c9bd 8 8 // er nu staat) en tegen een tweede aanroep te kunnen. 9 9 10 // Element-bedrading leeft zo lang als de pagina; de bootstrap roept init() 11 // aan bij elke paginawissel waarop deze module actief is (shaer-5s1). 12 export function init() { run(); } 13 14 function run() { 10 15 (function () { 11 if (window.__fediBmWired) return; window.__fediBmWired = true; 12 var a = document.getElementById('fedi-bm-btn'); if (!a) return; 16 // Element-vlag, geen window-vlag: na een swap is de knop een NIEUW element 17 // en moet hij opnieuw bedraad; een window-vlag zou dat voorgoed blokkeren. 18 var a = document.getElementById('fedi-bm-btn'); if (!a || a.__wired) return; a.__wired = true; 13 19 a.setAttribute('href', "javascript:void(window.open('" + location.origin + "/authorize_interaction?uri='+encodeURIComponent(window.location.href)))"); 14 20 a.addEventListener('click', function (e) { e.preventDefault(); a.classList.add('nudge'); setTimeout(function(){ a.classList.remove('nudge'); }, 600); }); … … 60 66 }); 61 67 })(); 68 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)