Hotfix: Organisation fonctions annexes/ variables
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { texteFonctionChange } from '../variables/homeFunctionExample.js';
|
||||
|
||||
$(function () {
|
||||
/* Changement du texte accueil (exemples de fonction) */
|
||||
let index=-1;
|
||||
|
@ -1,8 +1,10 @@
|
||||
import { quotes } from '../variables/listQuotes.js';
|
||||
|
||||
$(function () {
|
||||
/* Permet d'afficher la liste des citations/proverbes */
|
||||
$('.totalLengthQuote').html('Total de ' + quotes.length + ' citations.');
|
||||
let resultat = "";
|
||||
for (index in quotes) {
|
||||
for (let index in quotes) {
|
||||
resultat = resultat + `<tr> <td class="quote-element-list important">${quotes[index]["source"]}</td> <td class="quote-element-list">${quotes[index]["quote"]}</td> </tr>`;
|
||||
}
|
||||
$(".quote-list").append(resultat);
|
||||
|
@ -1,10 +1,12 @@
|
||||
import { getCookieValue } from '../functions/fonctions_annexes/cookiesManagement_Functions.js';
|
||||
|
||||
$(function () {
|
||||
/* Permet d'afficher la liste des liens récemment raccourcit */
|
||||
try {
|
||||
const shortcuts = JSON.parse(getCookieValue("shortcuts"));
|
||||
window.onload = $('.totalLengthLinksList').html(`Total de ${shortcuts.length} lien(s) raccourcit récemment.`);
|
||||
$('.totalLengthLinksList').html(`Total de ${shortcuts.length} lien(s) raccourcit récemment.`);
|
||||
let resultat = "";
|
||||
for (element of shortcuts) {
|
||||
for (let element of shortcuts) {
|
||||
resultat += `<tr> <td class="original-link-list"><a href="${element["url"]}" target="_blank">${element["url"]}</a></td> <td class="link-list"><a href="${element["shortcut"]}" target="_blank">${element["shortcut"]}</a></td> </tr>`;
|
||||
}
|
||||
$(".links-list").append(resultat);
|
||||
|
Reference in New Issue
Block a user