js:wrap_miro

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

js:wrap_miro [2025/07/01 14:33] – créée avillepreuxjs:wrap_miro [2025/07/01 14:34] (Version actuelle) avillepreux
Ligne 28: Ligne 28:
             var $wrap = jQuery(this);             var $wrap = jQuery(this);
             var url   = trimByChar($wrap.text().trim(), "/");             var url   = trimByChar($wrap.text().trim(), "/");
- 
-            /*if (url.indexOf("/view/") > 0) { 
-             
-                console.log("-----------------------------------------------------------------"); 
-                console.log(url); 
-                console.log(url.substring(0,  url.indexOf("/view/"))); 
-                console.log(url.substring(6 + url.indexOf("/view/"), end)); 
- 
-                var end = url.indexOf("/", 6 + url.indexOf("/view/")); 
-                 
-                if (end >= 0) /* has /screen/ */ 
-                { 
-                    url = url.substring(0,  url.indexOf("/view/")) + "/embed/" 
-                          url.substring(6 + url.indexOf("/view/"), end); 
-                } 
-                else 
-                { 
-                    url = url.substring(0,  url.indexOf("/view/")) + "/embed/" 
-                          url.substring(6 + url.indexOf("/view/")); 
-                } 
-                       
-                console.log(url); 
-                console.log("-----------------------------------------------------------------"); 
-            }*/ 
  
             var classes = [...$wrap[0].classList];             var classes = [...$wrap[0].classList];
  • js/wrap_miro.txt
  • Dernière modification : 2025/07/01 14:34
  • de avillepreux