Différences
Ci-dessous, les différences entre deux révisions de la page.
| 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:08] – avillepreux | js:notion [2022/09/20 13:25] (Version actuelle) – avillepreux | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| jQuery(function() { | jQuery(function() { | ||
| - | const queryString = window.location.search; | + | jQuery(".wrap_notion").each(function() { |
| - | const urlParams | + | |
| - | const page = urlParams.get(" | + | |
| - | + | ||
| - | console.log(page); | + | |
| - | + | ||
| - | jQuery.ajax({ | + | |
| | | ||
| - | type: ' | + | |
| - | url: ' | + | var page = $e.text().trim(); |
| - | success: function(data) { jQuery(" | + | |
| + | console.log(" | ||
| + | |||
| + | jQuery.ajax({ | ||
| + | |||
| + | | ||
| + | url: ' | ||
| + | success: function(data) { $e.html(data); | ||
| | | ||
| - | | + | }); |
| + | |||
| + | | ||
| }); | }); | ||
| </JS> | </JS> | ||