Explorar o código

Ménage dans Js

François Drouhard hai 1 ano
pai
achega
f4ea96df70
Modificáronse 2 ficheiros con 0 adicións e 6 borrados
  1. 0 1
      assets/js/counter.js
  2. 0 5
      assets/js/main.js

+ 0 - 1
assets/js/counter.js

@@ -12,7 +12,6 @@ export class Countdown {
 
       // calculate the remaining time 
       this.timeRemaining = expiredDate.getTime() - currentTime;
-      console.log(this.timeRemaining)
       this.timeRemaining <= 0 ?
           this.complete() :
           this.start();

+ 0 - 5
assets/js/main.js

@@ -12,9 +12,6 @@ const counter = await api.getCounter();
 
 heading.innerText = counter.name;
 
-const buttonInit = document.querySelector('#init');
-const buttonStart = document.querySelector('#start');
-
 // Get the new year 
 const getEndTime = () => {
   return new Date(Date.parse(counter.endTime));
@@ -52,7 +49,6 @@ const render = (time) => {
 const showMessage = () => {
   message.innerHTML = "Le compteur est terminé";
   app.innerHTML = '';
-  //heading.style.display = 'none';
 };
 
 const hideMessage = () => {
@@ -61,7 +57,6 @@ const hideMessage = () => {
 };
 
 const complete = () => {
-  console.log("Fonction complete() du main")
   showMessage();
 };