Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 0df048f6 rédigé par Mattias DUPUIS's avatar Mattias DUPUIS
Parcourir les fichiers

Removing console.log

parent 8fabca5e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -250,7 +250,6 @@ function redefEachLayer() {
shownPoly.eachLayer(function (layer) {
let isIN = false;
layer.on('click', function () {
console.log(pluriPays)
if(pluriPays) {
if(listePluriPays.length == 1)
......@@ -559,7 +558,6 @@ function resizeFamily() {
const slider = doc('inferiorUI');
const band = doc('pointId');
const width = original_width - (e.pageX - original_mouse_x);
console.log(element.style.left,element.getBoundingClientRect().left);
doc('familyUI').style.transition = "0s";
if ((current_width > minimum_size || width>current_width) && left<doc('mapUI').getBoundingClientRect().width) {
element.style.width = width + 'px';
......
......@@ -233,7 +233,6 @@ function setLayerBasic(layer) {
function setPaysFilled(layer) {
const colorPays = layer._path.attributes.fill.nodeValue;
console.log(colorPays);
shownPoly.eachLayer(function (layerARechercher) { // Pour chaque région
let colorPaysARegarder = layerARechercher._path.attributes.fill.nodeValue;
if(colorPays == colorPaysARegarder && layer.feature.properties.name != layerARechercher.feature.properties.name)
......@@ -247,7 +246,6 @@ function setPaysFilled(layer) {
function setPaysBasic(layer) {
const colorPays = layer._path.attributes.fill.nodeValue;
console.log(colorPays);
shownPoly.eachLayer(function (layerARechercher) { // Pour chaque région
let colorPaysARegarder = layerARechercher._path.attributes.fill.nodeValue;
if(colorPays == colorPaysARegarder && layer.feature.properties.name != layerARechercher.feature.properties.name)
......@@ -385,7 +383,6 @@ function setLeaderImg(name){
function showInfos(e) {
shownFamily = true;
//console.log(e);
doc('familyUI').style.width = "30%";
doc('familyUI').style.left = doc('mapUI').getBoundingClientRect().width-(0.3*doc('mapUI').getBoundingClientRect().width)+'px';
doc('familyUI').style.display = null;
......@@ -545,7 +542,6 @@ function resizeFamily() {
const slider = doc('inferiorUI');
const band = doc('pointId');
const width = original_width - (e.pageX - original_mouse_x);
console.log(element.style.left,element.getBoundingClientRect().left);
if ((current_width > minimum_size || width>current_width) && left<doc('mapUI').getBoundingClientRect().width) {
element.style.width = width + 'px';
element.style.left = original_x + (e.pageX - original_mouse_x) + 'px';
......@@ -580,20 +576,13 @@ function getPersonne(annee, idPays)
//console.log(annee, idPays);
window.souverainete.forEach(function(lien)
{
//console.log(lien);
let annDebut = lien.debutregne.split('-')[0];
let annFin = lien.finregne.split('-')[0];
//console.log(annDebut);
//console.log(annee);
//console.log(annFin);
//console.log(lien.idPays);
if (lien.idPays == idPays && annee >= annDebut && annee <= annFin)
{
//console.log("UN GENS A ETE TROUVE");
let souverain = lien.idSouverain;
window.listePersonnes.forEach(function(personne)
{
//console.log(personne);
if(personne.id == souverain)
{
p = personne;
......@@ -617,7 +606,6 @@ document.body.addEventListener('keyup', function(event) {
let s = "";
window.events.forEach(function(event){
console.log(event);
if(document.querySelector('#slider').value >= event.debut.split('-')[0] && document.querySelector('#slider').value <= event.fin.split('-')[0])
{
s += event.description + "<br><br>";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter