mirror of
https://git.j0bot.ch/admin_j0bot/ploxion-xerbions.git
synced 2026-11-29 07:35:06 +00:00
25 lines
1.7 KiB
PHP
25 lines
1.7 KiB
PHP
{{-- PL0XION xerbions ⬢ — FUSIONNÉ dans «lanceur» (vague fusion 16.08 : famille launchers).
|
|
Stub de redirection rétro-compat : /px/xerbions et jOS.openPloxion('xerbions') mènent à
|
|
l'onglet ⬢ Xerbions (spawn de widgets) du Lanceur. Rien n'est perdu : la capacité vit dans l'hôte. --}}
|
|
<script>
|
|
(function(){
|
|
'use strict';
|
|
var ID='xerbions', HOST='lanceur', TAB='xerbions', HN='Lanceur';
|
|
function mount(container, ctx){
|
|
container.innerHTML='<div style="display:flex;height:100%;align-items:center;justify-content:center;text-align:center;padding:24px;color:#8aa0bd;font-family:ui-sans-serif,system-ui">⬢ «'+ID+'» est fusionné dans <b style="color:#eafff6;margin:0 5px">🚀 '+HN+'</b> — ouverture…</div>';
|
|
try{ window.__pxJump=window.__pxJump||{}; window.__pxJump[HOST]=TAB; }catch(e){}
|
|
try{ var T=(window.jOSb&&window.jOSb.toast)||(window.jOS&&window.jOS.toast); if(T)T('⬢ «'+ID+'» est fusionné dans «'+HN+'» (onglet Xerbions)'); }catch(e){}
|
|
if(ctx&&ctx.standalone){ try{ location.replace('/px/'+HOST+'?tab='+TAB); }catch(e){} }
|
|
else setTimeout(function(){
|
|
try{ if(window.jOSui&&jOSui.tier&&jOSui.tier()==='mobile'&&window.jOSMobile&&jOSMobile.open){ jOSMobile.open(HOST,HN); }
|
|
else if(window.jOS&&window.jOS.openPloxion){ window.jOS.openPloxion(HOST); } }catch(e){}
|
|
try{ window.dispatchEvent(new CustomEvent('jos:px:tab',{detail:{host:HOST,tab:TAB}})); }catch(e){}
|
|
try{ if(ctx&&ctx.close) setTimeout(function(){ ctx.close(); },350); }catch(e){}
|
|
},0);
|
|
return { unmount:function(){ container.innerHTML=''; } };
|
|
}
|
|
window.jOSApps=window.jOSApps||{};
|
|
window.jOSApps[ID]={manifest:{id:ID,name:'Xerbions → Lanceur',icon:'⬢'},mount:mount};
|
|
})();
|
|
</script>
|