diff --git a/ascii_elements/mouse_1.html b/ascii_elements/mouse_1.html new file mode 100644 index 0000000..e21c516 --- /dev/null +++ b/ascii_elements/mouse_1.html @@ -0,0 +1,19 @@ +
+       •
+      ••         •••••          •••••
+     •••        •     •        •     •     ••
+    ••••       •     ••••     •       •   •  •
+   •• ••      •     •  • •   •         •  •  •
+  ••  ••     •      •  •  •••           •••••
+ ••   ••    •        ••                     •
+••    ••   •                    ••           •
+••    •••••••••                • •            •
+••   ••      •               ••••   •••••      •
+••  ••      •           •   •   •  •     •     •
+•• ••      •             • • •   ••       •    •
+••••      •              ••      ••       ••   •
+•••      •                •••••••  •     •  •••
+••      •                 •         •••••
+••••••••                   •       •   •
+
+ diff --git a/ascii_elements/mouse_2.html b/ascii_elements/mouse_2.html new file mode 100644 index 0000000..a650c65 --- /dev/null +++ b/ascii_elements/mouse_2.html @@ -0,0 +1,19 @@ +
+        ••••      •
+       •    •     •
+      •      •   • 
+      •       •••  
+    •••••          
+   •     •         
+  •       •        
+  •       •        
+  •••   •••        
+ •   • •   •       
+ •   • •   •       
+  •••• ••••        
+   • • • •  •      
+••• •   •  •       
+   ••••••••        
+      •     
+
+ diff --git a/ascii_elements/mouse_3.html b/ascii_elements/mouse_3.html new file mode 100644 index 0000000..c27a779 --- /dev/null +++ b/ascii_elements/mouse_3.html @@ -0,0 +1,17 @@ +
+                   •
+                    •
+             ••     •
+           • • •••••••
+            • •• •   •
+      •  ••••• •  • • •
+      • •     • •  •   •
+       •       • ••    •
+      •        • • •
+    •••       ••  ••
+   •   ••    •  •  
+  •      ••••  
+••        •
+         •
+
+ diff --git a/ascii_elements/mouse_4.html b/ascii_elements/mouse_4.html new file mode 100644 index 0000000..6267e7d --- /dev/null +++ b/ascii_elements/mouse_4.html @@ -0,0 +1,246 @@ + +
+                 •      
+                  •     
+           ••     •     
+           • •     •    
+            •••••••••   
+              • •  ••   
+              •   • •   
+        ••••• •  •   •  
+       •     • ••     • 
+  •   •       •         
+  •   •       ••        
+  •    •      • •       
+   •   ••    •          
+    •••  ••••           
+
+
+                 •      
+                  •     
+           ••     •     
+           • •     •    
+            •••••••••   
+              • •  ••   
+              •   • •   
+        ••••• •  •   •  
+       •     • ••     • 
+   •  •       •         
+   •  •       ••        
+  •    •      • •       
+   •   ••    •          
+    •••  ••••           
+
+
+                  •     
+                  •     
+           ••      •    
+           • •     •    
+            •••••••••   
+              • •  ••   
+              •   • •   
+        ••••• •  •   •  
+       •     • ••    •  
+      •       •         
+   •• •       ••        
+  •    •      • •       
+   •   ••    •          
+    •••  ••••           
+
+
+                   •    
+                  •     
+           ••      •    
+           • •     •    
+            •••••••••   
+              • •  ••   
+              •   • •   
+        ••••• •  •   •  
+       •     • ••    •  
+    • •       •         
+   •  •       ••        
+  •    •      • •       
+   •   ••    •          
+    •••  ••••           
+
+
+                   •    
+                  •     
+           ••      •    
+           • •     •    
+            •••••••••   
+              • •  ••   
+              •   • •   
+        ••••• •  •   •  
+       •     • ••    •  
+   •  •       •         
+  •   •       ••        
+  •    •      • •       
+   •   ••    •          
+    •••  ••••           
+
+
+                   •    
+                  •     
+           ••      •    
+           • •     •    
+            •••••••••   
+              • •  ••   
+              •   • •   
+        ••••• •  •   •  
+       •     • ••    •  
+ •    •       •         
+  •   •       ••        
+  •    •      • •       
+   •   ••    •          
+    •••  ••••           
+
+
+                   •    
+                  •     
+           ••      •    
+           • •     •    
+            •••••••••   
+              • •  ••   
+              •   • •   
+        ••••• •  •   •  
+       •     • ••    •  
+•     •       •         
+ •    •       ••        
+  •    •      • •       
+   •   ••    •          
+    •••  ••••           
+
+
+                ••        
+                • •      •
+                 ••     •
+                 •  •   • 
+                • •  •  • 
+         ••••• •      ••  
+        •     • ••••••••• 
+       •       •       •  
+••    •       •••    •   
+  •    •      •       •   
+   •   ••    •        •   
+    •••  ••••             
+
+
+                ••        
+                • •      •
+                 ••     •
+                 •  •    •
+                • •  •  • 
+         ••••• •      ••  
+        •     • ••••••••• 
+ •     •       •       •  
+ •     •       •••    •   
+  •    •      •       •   
+   •   ••    •         •  
+    •••  ••••             
+
+
+                      
+                ••        
+                • •      •
+                 ••      •
+                 •  •   • 
+                • •  •  • 
+         ••••• •      ••  
+        •     • ••••••••• 
+  •    •       •       •  
+  •    •       •••    •   
+  •    •      •       •   
+   •   ••    •         •  
+    •••  ••••             
+
+ + + + diff --git a/ascii_elements/mouse_frame.html b/ascii_elements/mouse_frame.html new file mode 100644 index 0000000..9799908 --- /dev/null +++ b/ascii_elements/mouse_frame.html @@ -0,0 +1,34 @@ + +
+
+
+ + diff --git a/ascii_elements/name.html b/ascii_elements/name.html new file mode 100644 index 0000000..875db72 --- /dev/null +++ b/ascii_elements/name.html @@ -0,0 +1,8 @@ +
+•   • •   • ••••• •••••     •      •••  •   • •   •
+•   • •   • •     •   •     •     •   • •• ••  • •
+••••• •   • •  •• •   •     •     ••••• • • •   •
+•   • •   • •   • •   •     •     •   • •   •   •
+•   • ••••• ••••• •••••     ••••• •   • •   •   •
+
+ diff --git a/index.html b/index.html index d48210e..797a961 100644 --- a/index.html +++ b/index.html @@ -3,13 +3,21 @@ + + hugulumu.fr + -
-•   • •   • ••••• •••••     •      •••  •   • •   •
-•   • •   • •     •   •     •     •   • •• ••  • •
-••••• •   • •  •• •   •     •     ••••• • • •   •
-•   • •   • •   • •   •     •     •   • •   •   •
-•   • ••••• ••••• •••••     ••••• •   • •   •   •
-
-
-       •
-      ••         •••••          •••••
-     •••        •     •        •     •     ••
-    ••••       •     ••••     •       •   •  •
-   •• ••      •     •  • •   •         •  •  •
-  ••  ••     •      •  •  •••           •••••
- ••   ••    •        ••                     •
-••    ••   •                    ••           •
-••    •••••••••                • •            •
-••   ••      •               ••••   •••••      •
-••  ••      •           •   •   •  •     •     •
-•• ••      •             • • •   ••       •    •
-••••      •              ••      ••       ••   •
-•••      •                •••••••  •     •  •••
-••      •                 •         •••••
-••••••••                   •       •   •
-
-
-        ••••      •
-       •    •     •
-      •      •   • 
-      •       •••  
-    •••••          
-   •     •         
-  •       •        
-  •       •        
-  •••   •••        
- •   • •   •       
- •   • •   •       
-  •••• ••••        
-   • • • •  •      
-••• •   •  •       
-   ••••••••        
-      •     
-
-
-                   •
-                    •
-             ••     •
-           • • •••••••
-            • •• •   •
-      •  ••••• •  • • •
-      • •     • •  •   •
-       •       • ••    •
-      •        • • •
-    •••       ••  ••
-   •   ••    •  •  
-  •      ••••  
-••        •
-         •
-
- - - - - - - - - - +
+
+
+
+
- + diff --git a/main.js b/main.js deleted file mode 100644 index b381686..0000000 --- a/main.js +++ /dev/null @@ -1 +0,0 @@ -import { content } from './mouse_4.js'; diff --git a/mouse_4.html b/mouse.html similarity index 52% rename from mouse_4.html rename to mouse.html index b08ffe0..d16c4a7 100644 --- a/mouse_4.html +++ b/mouse.html @@ -1,3 +1,4 @@ +
                  •      
@@ -156,3 +157,104 @@
 	
+ + diff --git a/mouse_4.js b/mouse_4.js deleted file mode 100644 index 93bf291..0000000 --- a/mouse_4.js +++ /dev/null @@ -1,162 +0,0 @@ -var content = ` -
-
-                 •      
-                  •     
-           ••     •     
-           • •     •    
-            •••••••••   
-              • •  ••   
-              •   • •   
-        ••••• •  •   •  
-       •     • ••     • 
-  •   •       •         
-  •   •       ••        
-  •    •      • •       
-   •   ••    •          
-    •••  ••••           
-	
-
-                 •      
-                  •     
-           ••     •     
-           • •     •    
-            •••••••••   
-              • •  ••   
-              •   • •   
-        ••••• •  •   •  
-       •     • ••     • 
-   •  •       •         
-   •  •       ••        
-  •    •      • •       
-   •   ••    •          
-    •••  ••••           
-	
-
-                  •     
-                  •     
-           ••      •    
-           • •     •    
-            •••••••••   
-              • •  ••   
-              •   • •   
-        ••••• •  •   •  
-       •     • ••    •  
-      •       •         
-   •• •       ••        
-  •    •      • •       
-   •   ••    •          
-    •••  ••••           
-	
-
-                   •    
-                  •     
-           ••      •    
-           • •     •    
-            •••••••••   
-              • •  ••   
-              •   • •   
-        ••••• •  •   •  
-       •     • ••    •  
-    • •       •         
-   •  •       ••        
-  •    •      • •       
-   •   ••    •          
-    •••  ••••           
-	
-
-                   •    
-                  •     
-           ••      •    
-           • •     •    
-            •••••••••   
-              • •  ••   
-              •   • •   
-        ••••• •  •   •  
-       •     • ••    •  
-   •  •       •         
-  •   •       ••        
-  •    •      • •       
-   •   ••    •          
-    •••  ••••           
-	
-
-                   •    
-                  •     
-           ••      •    
-           • •     •    
-            •••••••••   
-              • •  ••   
-              •   • •   
-        ••••• •  •   •  
-       •     • ••    •  
- •    •       •         
-  •   •       ••        
-  •    •      • •       
-   •   ••    •          
-    •••  ••••           
-	
-
-                   •    
-                  •     
-           ••      •    
-           • •     •    
-            •••••••••   
-              • •  ••   
-              •   • •   
-        ••••• •  •   •  
-       •     • ••    •  
-•     •       •         
- •    •       ••        
-  •    •      • •       
-   •   ••    •          
-    •••  ••••           
-	
-
-                ••        
-                • •      •
-                 ••     •
-                 •  •   • 
-                • •  •  • 
-         ••••• •      ••  
-        •     • ••••••••• 
-       •       •       •  
-••    •       •••    •   
-  •    •      •       •   
-   •   ••    •        •   
-    •••  ••••             
-	
-
-                ••        
-                • •      •
-                 ••     •
-                 •  •    •
-                • •  •  • 
-         ••••• •      ••  
-        •     • ••••••••• 
- •     •       •       •  
- •     •       •••    •   
-  •    •      •       •   
-   •   ••    •         •  
-    •••  ••••             
-	
-
-                      
-                ••        
-                • •      •
-                 ••      •
-                 •  •   • 
-                • •  •  • 
-         ••••• •      ••  
-        •     • ••••••••• 
-  •    •       •       •  
-  •    •       •••    •   
-  •    •      •       •   
-   •   ••    •         •  
-    •••  ••••             
-	
-
-` -console.log(content); - -export { content }; diff --git a/build.sh b/scripts/build.sh similarity index 100% rename from build.sh rename to scripts/build.sh diff --git a/scripts/insert_html.js b/scripts/insert_html.js new file mode 100644 index 0000000..8bdb20e --- /dev/null +++ b/scripts/insert_html.js @@ -0,0 +1,19 @@ +function insert_html() { + let elements = document.getElementsByClassName("insert_html"); + for (let element of elements) { + let path = (element.dataset.path); + fetch(path) + .then(response => response.text()) + .then(data => element.innerHTML = data) + .catch(error => console.log('Error:', error)); + element.classList.replace("insert_html", "inserted_html"); + }; +} + +// create an observer on everytime some HTML is loaded on the whole page (heavy solution...) +const callback = (mutation_list, observer) => insert_html(); +const observer = new MutationObserver(callback); +const targetNode = document.body; +const config = { attributes: true, childList: true, subtree: true }; +// Start observing the target node for configured mutations +observer.observe(targetNode, config); diff --git a/test.html b/test.html deleted file mode 100644 index 06cddbb..0000000 --- a/test.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - -
- - -