synchro du labo (0bf0da65) : app.blade.php, README.md
This commit is contained in:
22
README.md
22
README.md
@@ -1,3 +1,21 @@
|
||||
# ploxion-transition
|
||||
# 🌀 Transitions
|
||||
|
||||
PLOXION · Active/désactive les transitions géométriques (portion ▢ / wormion ○) jouées au changement de ploxion. OFF par défaut. Choix du style + aperçu. Pilote le réglage lu par _page_transition. · fournit: transitions, settings
|
||||
Active/désactive les transitions géométriques (portion ▢ / wormion ○) jouées au changement de ploxion. OFF par défaut. Choix du style + aperçu. Pilote le réglage lu par _page_transition.
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| id | `transition` |
|
||||
| fournit | `transitions` `settings` |
|
||||
| bions qu'il nomme | `jOSApps` `jOSPageTransition` |
|
||||
| fichiers | `app.blade.php` |
|
||||
| dans le labo | `resources/views/ploxions/transition/` (dépôt `my_website2`) |
|
||||
|
||||
## Contribuer
|
||||
|
||||
- **Dans le xer** : https://labo.j0bot.ch/px/atelier?ploxion=transition — prends-le, modifie-le, vois-le tourner, « ⧗ envoyer le tsoin ».
|
||||
- **Dans VS Code** : `xb prendre transition` (ou l'extension xerboxion › ⇩ Prendre), puis ⧗ Envoyer.
|
||||
- Le chemin complet : https://labo.j0bot.ch/px/contribuer
|
||||
|
||||
Ce dépôt est un **miroir** du labo (synchronisé par `bin/ploxions-forge.mjs`, depuis le commit `0bf0da65`) : une modif se propose par un tsoin ou une branche du labo, pas directement ici.
|
||||
|
||||
© 2026 chill-tekk · ne pas nuire
|
||||
|
||||
60
app.blade.php
Normal file
60
app.blade.php
Normal file
@@ -0,0 +1,60 @@
|
||||
{{-- PL0XION transition — active/désactive les TRANSITIONS de changement de ploxion
|
||||
(RS-7 : « fais un ploxion transition pour activer ou désactiver ce genre de
|
||||
transitions »). Pilote le réglage localStorage 'jos:transitions' que lit le
|
||||
partial _page_transition. OFF par défaut. Choix du style (alterne ▢○ / portion ▢
|
||||
/ wormion ○) + aperçu. Labels en textContent (discipline XSS). --}}
|
||||
<style>
|
||||
.tr{height:100%;display:flex;flex-direction:column;background:var(--xr-bg,#0a0b12);color:var(--xr-text,#e8ecf6);font-family:var(--xr-font,ui-sans-serif,system-ui);font-size:.85rem;padding:16px;gap:14px;overflow:auto}
|
||||
.tr h3{margin:0;font-size:1rem;color:var(--xr-accent,#7aa0ff)} .tr .sub{color:var(--xr-muted,#8590a8);font-size:.76rem;line-height:1.5}
|
||||
.tr__row{display:flex;align-items:center;gap:10px}
|
||||
.tr__sw{width:50px;height:28px;border-radius:16px;background:rgba(150,170,255,.22);position:relative;cursor:pointer;flex:0 0 auto;transition:.15s} .tr__sw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:.15s} .tr__sw.on{background:var(--xr-accent,#7aa0ff)} .tr__sw.on i{left:25px}
|
||||
.tr__styles{display:flex;gap:8px;flex-wrap:wrap}
|
||||
.tr__st{flex:1;min-width:96px;border:1px solid var(--xr-border,rgba(150,170,255,.3));background:rgba(255,255,255,.03);color:var(--xr-text,#e8ecf6);border-radius:10px;padding:10px;cursor:pointer;text-align:center}
|
||||
.tr__st.on{border-color:var(--xr-accent,#7aa0ff);background:rgba(122,160,255,.15);color:var(--xr-accent,#7aa0ff);font-weight:700}
|
||||
.tr__st .g{font-size:1.5rem;display:block} .tr__st small{display:block;color:var(--xr-muted,#8590a8);font-size:.66rem;margin-top:2px}
|
||||
.tr__st.off{opacity:.55} .tr__btn{background:var(--xr-accent,#7aa0ff);color:#0a1020;border:0;border-radius:9px;padding:9px 14px;cursor:pointer;font-weight:800;font-size:.82rem}
|
||||
.tr__btn.ghost{background:none;border:1px solid var(--xr-border,rgba(150,170,255,.3));color:var(--xr-accent,#7aa0ff);font-weight:600}
|
||||
.tr fieldset{border:1px solid var(--xr-border,rgba(150,170,255,.18));border-radius:10px;padding:10px 12px;margin:0} .tr legend{font-size:.66rem;text-transform:uppercase;color:var(--xr-muted,#8590a8);padding:0 5px}
|
||||
</style>
|
||||
<script>
|
||||
(function(){
|
||||
var ID='transition', KEY='jos:transitions';
|
||||
function describe(){
|
||||
var c={}; try{ c=JSON.parse(localStorage.getItem(KEY)||'{}')||{}; }catch(e){}
|
||||
return { v:1, id:ID, title:'Transitions', icon:'🌀', items:[
|
||||
{ p:1, kind:'stat', label:'transitions', value: c.on?('activées ('+(c.style||'alterne')+')'):'désactivées' }
|
||||
]};
|
||||
}
|
||||
function mount(container){
|
||||
function cfg(){ try{ return JSON.parse(localStorage.getItem(KEY)||'{}')||{}; }catch(e){ return {}; } }
|
||||
function save(c){ try{ localStorage.setItem(KEY,JSON.stringify(c)); }catch(e){} }
|
||||
var c=cfg(); if(c.on===undefined)c.on=false; if(!c.style)c.style='alterne';
|
||||
container.innerHTML=''
|
||||
+'<div class="tr"><h3>🌀 Transitions</h3>'
|
||||
+'<div class="sub">L\'animation géométrique (portion ▢ / wormion ○) jouée quand on change de ploxion. Désactivée par défaut.</div>'
|
||||
+'<div class="tr__row"><div class="tr__sw" data-sw><i></i></div><div><b data-state>—</b><div class="sub" data-statesub></div></div></div>'
|
||||
+'<fieldset><legend>style</legend><div class="tr__styles" data-styles>'
|
||||
+' <div class="tr__st" data-style="alterne"><span class="g">▢○</span>alterné<small>portion puis wormion</small></div>'
|
||||
+' <div class="tr__st" data-style="portion"><span class="g">▢</span>portion<small>carrés imbriqués</small></div>'
|
||||
+' <div class="tr__st" data-style="wormion"><span class="g">○</span>wormion<small>ronds imbriqués</small></div>'
|
||||
+'</div></fieldset>'
|
||||
+'<div class="tr__row"><button class="tr__btn" data-preview>▶ aperçu</button><button class="tr__btn ghost" data-preview2>aperçu de l\'autre style</button></div>'
|
||||
+'<div class="sub">Astuce : « aperçu » joue le style choisi même si les transitions sont coupées. La grammaire — portion = carrés (gravité), wormion = ronds (anti-gravité).</div>'
|
||||
+'</div>';
|
||||
var R=container.querySelector('.tr'), sw=R.querySelector('[data-sw]'), stateEl=R.querySelector('[data-state]'), stateSub=R.querySelector('[data-statesub]');
|
||||
function paint(){ sw.classList.toggle('on',!!c.on); stateEl.textContent=c.on?'activées':'désactivées'; stateSub.textContent=c.on?'une transition joue à chaque changement de ploxion':'aucune transition (clic pour activer)';
|
||||
R.querySelectorAll('[data-style]').forEach(function(b){ b.classList.toggle('on',b.getAttribute('data-style')===c.style); b.classList.toggle('off',!c.on); }); }
|
||||
paint();
|
||||
R.addEventListener('click',function(e){
|
||||
if(e.target.closest('[data-sw]')){ c.on=!c.on; c.v2=true; save(c); paint(); if(c.on)preview(c.style); return; } // v2 = choix explicite (survit à la migration OFF-de-base)
|
||||
var st=e.target.closest('[data-style]'); if(st){ c.style=st.getAttribute('data-style'); save(c); paint(); preview(c.style); return; }
|
||||
if(e.target.closest('[data-preview]')){ preview(c.style); return; }
|
||||
if(e.target.closest('[data-preview2]')){ preview(c.style==='wormion'?'portion':'wormion'); return; }
|
||||
});
|
||||
function preview(style){ var s=style==='alterne'?'portion':style; try{ window.jOSPageTransition&&window.jOSPageTransition.preview&&window.jOSPageTransition.preview(s); }catch(e){} }
|
||||
return { unmount:function(){ container.innerHTML=''; } };
|
||||
}
|
||||
window.jOSApps=window.jOSApps||{};
|
||||
window.jOSApps[ID]={manifest:{id:ID,name:'Transitions',icon:'🌀'},mount: mount, describe: describe};
|
||||
})();
|
||||
</script>
|
||||
Reference in New Issue
Block a user