js:notion

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
js:notion [2022/09/20 13:22] avillepreuxjs:notion [2022/09/20 13:25] (Version actuelle) avillepreux
Ligne 3: Ligne 3:
 jQuery(function() {  jQuery(function() { 
  
-    jQuery(".wrap_notion").each(function(e) {+    jQuery(".wrap_notion").each(function() {
          
-    console.log(e); +        var $e   = jQuery(this); 
 +        var page = $e.text().trim(); 
 +     
 +        console.log("Loading notion page " + page);
          
         jQuery.ajax({          jQuery.ajax({ 
          
             type: 'post',             type: 'post',
-            url: 'https://web.cyanide-studio.com/tools/notion/?page='jQuery(this).text() + '&rand=' + Math.random(),  +            url: 'https://web.cyanide-studio.com/tools/notion/?page='page + '&rand=' + Math.random(),  
-            success: function(data) { jQuery(this).html(data);+            success: function(data) { $e.html(data);
                  
         });          }); 
  • js/notion.1663672946.txt.gz
  • Dernière modification : 2022/09/20 13:22
  • de avillepreux