Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| js:wrap_fetch [2024/11/04 12:47] – créée avillepreux | js:wrap_fetch [2024/11/04 15:54] (Version actuelle) – avillepreux | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| <CSS> | <CSS> | ||
| + | |||
| + | .redmine-stats table.table > :is(thead, tbody) > tr > :is(th,td) { | ||
| + | padding: .1em 1ch .1em 3ch; | ||
| + | text-align: right; | ||
| + | } | ||
| </ | </ | ||
| <JS> | <JS> | ||
| Ligne 8: | Ligne 13: | ||
| console.log(" | console.log(" | ||
| - | jQuery(" | + | jQuery(" |
| | | ||
| var wrap = jQuery(this); | var wrap = jQuery(this); | ||
| + | var html = wrap.text().trim(); | ||
| var url = ""; | var url = ""; | ||
| | | ||
| - | | + | |
| | | ||
| - | url = "https://web.cyanide-studio.com/ | + | wrap.html(" |
| | | ||
| + | console.log(" | ||
| + | | ||
| + | if (params.length >= 2 && params[0] == " | ||
| + | | ||
| + | console.log(" | ||
| + | url = " | ||
| } | } | ||
| | | ||
| if (url != "" | if (url != "" | ||
| | | ||
| - | console.log(" | + | console.log(" |
| | | ||
| jQuery.ajax({ | jQuery.ajax({ | ||
| Ligne 29: | Ligne 41: | ||
| async: | async: | ||
| success: | success: | ||
| + | | ||
| this.addClass(" | this.addClass(" | ||
| this.html(html); | this.html(html); | ||
| console.log(" | console.log(" | ||
| + | }, | ||
| + | error: function(html) { | ||
| + | | ||
| + | console.log(" | ||
| + | }, | ||
| + | complete: | ||
| + | | ||
| + | console.log(" | ||
| } | } | ||
| }); | }); | ||