Version 0.2.0 - PREVERSION - Ajout de certaines fonctionnalités
All checks were successful
Neutral/pipeline/head This commit looks good
All checks were successful
Neutral/pipeline/head This commit looks good
This commit is contained in:
@ -1,10 +1,18 @@
|
||||
// Get Document ID
|
||||
|
||||
function getID(string) {
|
||||
/**
|
||||
* Récupère depuis le document l'identifiant de l'élément
|
||||
* @param {string} id Identifiant de l'élément `id='identifiant'`
|
||||
* @returns
|
||||
*/
|
||||
function getID(id) {
|
||||
|
||||
return document.getElementById(string)
|
||||
return document.getElementById(id)
|
||||
}
|
||||
|
||||
/**
|
||||
* Permet de faire une pop-up automatique
|
||||
*/
|
||||
class InfoPop {
|
||||
constructor(name) {
|
||||
this.name = name
|
||||
@ -33,4 +41,5 @@ class InfoPop {
|
||||
this.element.innerHTML = "<i class='fa fa-info-circle'></i> " + text
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user