Hotfix: Organisation fonctions annexes/ variables

This commit is contained in:
Divlo
2020-01-01 16:56:52 +01:00
parent f43158c773
commit c9706d5cd1
39 changed files with 384 additions and 309 deletions

View File

@ -1,3 +1,5 @@
import { texteFonctionChange } from '../variables/homeFunctionExample.js';
$(function () {
/* Changement du texte accueil (exemples de fonction) */
let index=-1;

View File

@ -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);

View File

@ -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);