![]() |
|
Get Visu hash - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Visu (https://forum.logicmachine.net/forumdisplay.php?fid=24) +--- Thread: Get Visu hash (/showthread.php?tid=6372) |
Get Visu hash - CristianAgata - 28.03.2026 Hi @all I would like get the Visu hash on every change. Is It possible? I have done this script in Javascript I get the hash on the first load of the page. Code: var test = location.hash;
console.log(test); //this works
window.addEventListener('hashchange', function() {
var nuovoHash = location.hash;
console.log('Il hash è cambiato in: ' + nuovoHash);
}); //this doesn't worksRE: Get Visu hash - admin - 30.03.2026 Use this to listen to plan ID changes: Code: Visu.on('active-plan-change', ({ newId, oldId }) => {
console.log(`active plan id changed from ${oldId} to ${newId}`)
}) |