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:20] – avillepreuxjs:notion [2022/09/20 13:25] (Version actuelle) – avillepreux
Ligne 5: Ligne 5:
     jQuery(".wrap_notion").each(function() {     jQuery(".wrap_notion").each(function() {
          
-        console.log(jQuery(this).text(), jQuery(this)); +        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.1663672820.txt.gz
  • Dernière modification : 2022/09/20 13:20
  • de avillepreux