   contenu += "</head>\n<body>\n"
              "Merci</body></html>\n";
   server.send(200, "text/html", contenu);
+  logtourne();
+  logs[1] = addy;
+  logs[1] += " : Flash : Couleur=";
+  logs[1] += testteu;
+  logs[1] += " : Delais=";
+  logs[1] += attend;
+  logs[1] += " : Fois=";
+  logs[1] += flashnombre;
+  logs[1].replace("<", "</"); //prevent html tags in logs so hackers cant code in log page lol
 }
 
 // web page for flash mode
+void handlePitoune() {
+  String addy = server.client().remoteIP().toString();
+  String contenu = "<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\" class=\"client-nojs\">\n<head>\n";
+  contenu += "<meta charset=\"UTF-8\" />\n<title>Que la lumiere log</title>\n"
+             "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n";
+  contenu += css;
+  contenu += "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>\n";
+  contenu += "</head>\n<body>\n"
+             "<div style=\"text-align:center;width:100%;\">\n"
+             "<h1>Les visiteurs</h1>\n"
+             "<div id=\"logs\"></div>\nDernier IP &agrave; avoir chang&eacute; la couleur : ";
+  contenu += dernadd;
+  contenu += "<br>\n";
+  contenu += liens;
+  contenu += "<script>\n"
+             "$( \"#logs\" ).load( \"/logs\" );\n"
+             "function pitoune(){\n"
+             "$( \".pitoune:empty\" ).remove();\n"
+             "$( \"#logs\" ).prepend($( \"<div class=\\\"pitoune\\\"></div>\" ).load( \"/logs\" ));\n"
+             "}\n"
+             "laLoad = setInterval(function(){ pitoune() }, 10000);\n"
+             "</script>\n"
+             "</div></body></html>\n";
+  server.send(200, "text/html", contenu);
+  Serial.println("");
+  Serial.println(addy);
+  Serial.println("Page logs");
+  logtourne();
+  logs[1] = addy;
+  logs[1] += " : Page logs";
+}
+
 void handleClignote() {
   String addy = server.client().remoteIP().toString();
-  Serial.println("");
-  Serial.println(addy);
-  Serial.println("Page flash");
   String contenu = "<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\" class=\"client-nojs\">\n<head>\n";
   contenu += "<meta charset=\"UTF-8\" />\n<title>Que la lumiere flash</title>\n"
              "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n";

                   "transition-duration: 0.4s; width: 80%;\n}\n"
                   "button:hover {\n"
                   "box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);\n}\n"
                   "</style>\n";
// end of stylesheet for web pages


unsigned long flashrendu = 0;
int roulepastusuite = 0;
int flashoufade = 0;
String logs[51];
// end of internally used vars

// stylesheet for web pages
