suppr. des console.log

This commit is contained in:
Esenjin 2019-02-18 14:14:01 +01:00
parent 391556d620
commit 2e2198fc80

View File

@ -2296,16 +2296,12 @@ $(document).ready(function(){
var sourceLength = quoteSource.length; var sourceLength = quoteSource.length;
var randomNumber= Math.floor(Math.random()*sourceLength); var randomNumber= Math.floor(Math.random()*sourceLength);
//sélectionner un nouveau donjon //sélectionner un nouveau donjon
var min=document.getElementById("min").value; var min=document.getElementById("min").value;
var max=document.getElementById("max").value; var max=document.getElementById("max").value;
console.log(min);
console.log(max);
while(quoteSource[randomNumber].niveau>max || quoteSource[randomNumber].niveau<min){ while(quoteSource[randomNumber].niveau>max || quoteSource[randomNumber].niveau<min){
randomNumber= Math.floor(Math.random()*sourceLength); randomNumber= Math.floor(Math.random()*sourceLength);
} }
console.log(quoteSource[randomNumber].niveau)
var newQuoteText = quoteSource[randomNumber].donjon; var newQuoteText = quoteSource[randomNumber].donjon;
var newQuoteGenius = quoteSource[randomNumber].boss; var newQuoteGenius = quoteSource[randomNumber].boss;
var newQuoteImage = quoteSource[randomNumber].imageSource; var newQuoteImage = quoteSource[randomNumber].imageSource;
@ -2317,14 +2313,12 @@ $(document).ready(function(){
var newQuoteTextSu = quoteSource[randomNumber].succès; var newQuoteTextSu = quoteSource[randomNumber].succès;
var newQuoteTextIN = quoteSource[randomNumber].idolesNon; var newQuoteTextIN = quoteSource[randomNumber].idolesNon;
var newQuoteTextSp = quoteSource[randomNumber].spécificités; var newQuoteTextSp = quoteSource[randomNumber].spécificités;
console.log(newQuoteText,newQuoteGenius);
var timeAnimation = 500; var timeAnimation = 500;
var quoteContainer = $('#quoteContainer'); var quoteContainer = $('#quoteContainer');
//animation en fondu enchaîné avec rappel //animation en fondu enchaîné avec rappel
quoteContainer.fadeOut(timeAnimation, function(){ quoteContainer.fadeOut(timeAnimation, function(){
quoteContainer.html(''); quoteContainer.html('');
quoteContainer.append('<h4>'+newQuoteText+'</h4>'+'</p>'+'<p id="quoteGenius">'+newQuoteGenius+'<br/><img class="responsive-image" src="'+newQuoteImage+'" alt="'+newQuoteGenius+'"></p>'+'<p>Niveau : <b>'+newQuoteTextNi+'</b></p>'+'<p>'+newQuoteTextCl+'</p>'+'<p>Zone(s) : <b>'+newQuoteTextZo+'</b></p>'+'<p>Position : <b>'+newQuoteTextPo+'</b> | Zaap proche : <b>'+newQuoteTextZa+'</b></p>'+'<p>Succès : <b>'+newQuoteTextSu+'</b></p>'+'<p>Idole(s) interdite(s) : <b>'+newQuoteTextIN+'</b></p>'+'<p>Spécificités : <i>'+newQuoteTextSp+'</i></p>'); quoteContainer.append('<h4>'+newQuoteText+'</h4>'+'</p>'+'<p id="quoteGenius">'+newQuoteGenius+'<br/><img class="responsive-image" src="'+newQuoteImage+'" alt="'+newQuoteGenius+'"></p>'+'<p>Niveau : <b>'+newQuoteTextNi+'</b></p>'+'<p>'+newQuoteTextCl+'</p>'+'<p>Zone(s) : <b>'+newQuoteTextZo+'</b></p>'+'<p>Position : <b>'+newQuoteTextPo+'</b> | Zaap proche : <b>'+newQuoteTextZa+'</b></p>'+'<p>Succès : <b>'+newQuoteTextSu+'</b></p>'+'<p>Idole(s) interdite(s) : <b>'+newQuoteTextIN+'</b></p>'+'<p>Spécificités : <i>'+newQuoteTextSp+'</i></p>');
//estomper le fondu. //estomper le fondu.
quoteContainer.fadeIn(timeAnimation); quoteContainer.fadeIn(timeAnimation);
}); });