From 50b0ff7533657a8edb7a0d9645699559c50ea712 Mon Sep 17 00:00:00 2001
From: Ludovic Pouzenc <ludovic@pouzenc.fr>
Date: Sat, 30 Jun 2018 11:22:30 +0200
Subject: Strip retours chariot Windows pour diff propre

---
 maquette/script old.js | 70 +++++++++++++++++++++++++-------------------------
 1 file changed, 35 insertions(+), 35 deletions(-)

(limited to 'maquette/script old.js')

diff --git a/maquette/script old.js b/maquette/script old.js
index be5b113..8e96d1b 100644
--- a/maquette/script old.js	
+++ b/maquette/script old.js	
@@ -1,36 +1,36 @@
-function pop()
-{
-
-    var myAs = document.getElementsByTagName('a');
-    for (var a = 0; a < myAs.length; ++a) {
-				// Si le lien a une classe de type pop
-        if (myAs[a].className == 'pop') {
-						// on extrait l'id de la popup � partir du href
-            var pop = document.getElementById(myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1));
-						// si la popup existe on l'affiche (display block)
-			if (pop) {       
-                pop.style.display = 'none';
-                myAs[a].onclick = function() {
-                    thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
-                    thisPopup.style.display = (thisPopup.style.display == 'none') ? 'block' : 'none';
-					return false;
-                };
-								// on efface la popup en cliquant dessus
-               // pop.onclick = function()
-               // {
-               //     this.style.display = 'none';
-               // };
-            var nompopup = myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1);
-			var num = nompopup.substring(3,nompopup.length);
-			var nomform = 'form' + num;
-			var formulaire = document.getElementById(nomform);
-			if (formulaire) {
-				document.forms[nomform].elements['fermer'].onclick = function() {
-					pp = document.getElementById(('pop') + this.alt);
-					pp.style.display = 'none';
-					}
-				}
-			}
-        }
-    }
+function pop()
+{
+
+    var myAs = document.getElementsByTagName('a');
+    for (var a = 0; a < myAs.length; ++a) {
+				// Si le lien a une classe de type pop
+        if (myAs[a].className == 'pop') {
+						// on extrait l'id de la popup � partir du href
+            var pop = document.getElementById(myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1));
+						// si la popup existe on l'affiche (display block)
+			if (pop) {       
+                pop.style.display = 'none';
+                myAs[a].onclick = function() {
+                    thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
+                    thisPopup.style.display = (thisPopup.style.display == 'none') ? 'block' : 'none';
+					return false;
+                };
+								// on efface la popup en cliquant dessus
+               // pop.onclick = function()
+               // {
+               //     this.style.display = 'none';
+               // };
+            var nompopup = myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1);
+			var num = nompopup.substring(3,nompopup.length);
+			var nomform = 'form' + num;
+			var formulaire = document.getElementById(nomform);
+			if (formulaire) {
+				document.forms[nomform].elements['fermer'].onclick = function() {
+					pp = document.getElementById(('pop') + this.alt);
+					pp.style.display = 'none';
+					}
+				}
+			}
+        }
+    }
 }
\ No newline at end of file
-- 
cgit v1.2.3