chiark / gitweb /
go back to working counts combined with working drag
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Jun 2020 12:44:21 +0000 (13:44 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Jun 2020 12:44:21 +0000 (13:44 +0100)
junk/error.rs [moved from src/error.rs with 100% similarity]
junk/gamestate.rs [moved from src/gamestate.rs with 100% similarity]
junk/global.rs [moved from src/global.rs with 100% similarity]
junk/instance.rs [moved from src/instance.rs with 100% similarity]
junk/main.rs [moved from src/main.rs with 100% similarity]
junk/pieces.rs [moved from src/pieces.rs with 100% similarity]
junk/testload.rs [moved from src/testload.rs with 100% similarity]
templates/test.html [deleted file]
templates/test.tera

similarity index 100%
rename from src/error.rs
rename to junk/error.rs
similarity index 100%
rename from src/gamestate.rs
rename to junk/gamestate.rs
similarity index 100%
rename from src/global.rs
rename to junk/global.rs
similarity index 100%
rename from src/instance.rs
rename to junk/instance.rs
similarity index 100%
rename from src/main.rs
rename to junk/main.rs
similarity index 100%
rename from src/pieces.rs
rename to junk/pieces.rs
similarity index 100%
rename from src/testload.rs
rename to junk/testload.rs
diff --git a/templates/test.html b/templates/test.html
deleted file mode 100644 (file)
index bfb2430..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<html><head>
-    <title>T</title>
-  </head>
-  <body>
-    <p>
-      <div id="status">nothing</div>
-    </p>
-    <svg id="space"
-        xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"
-        onmousedown="drag_mousedown(event)"
-        >
-      <rect fill="green" x="20" y="20" width="200" height="100"/>
-      <use href="#piece42" data-p="42" x="50" y="80" />
-      <use href="#piece43" data-p="43" x="50" y="60" />
-      <use href="#select43" x="50" y="60" />
-      <defs>
-       <g id="piece42">
-         <circle
-           cx="0" cy="0"
-           fill="red" r="10"
-           />
-       </g>
-       <g id="base43">
-         <rect
-           x="-10" y="-10" width="20" height="20"
-           />
-       </g>
-       <g id="piece43">
-         <g fill="blue">
-           <use href="#base43">
-         </g>
-       </g>
-       <g id="select43">
-         <g stroke="black"
-            stroke-dasharray="3 1  1 1  1 1"
-            fill="none"
-          >
-         <g transform="scale(1.1)">
-           <use href="#base43">
-         </g>
-       </g>
-      </defs>
-    </svg>
-    <script src="script.js"></script>
-  </body>
-</html>
index 487fdc72ffa91561942ebe9255fc1016182eeef0..52a03f0b6c6fa4afdd0796bfcea44259fe91e343 100644 (file)
@@ -1,6 +1,45 @@
 <body>
 <h1>Hi!</h1>
 
-<div id="spong">nothing</div>
+<div id="status">nothing</div>
+
+<p>
+    <svg id="space"
+        xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"
+        onmousedown="drag_mousedown(event)"
+        >
+      <rect fill="green" x="20" y="20" width="200" height="100"/>
+      <use href="#piece42" data-p="42" x="50" y="80" />
+      <use href="#piece43" data-p="43" x="50" y="60" />
+      <use href="#select43" x="50" y="60" />
+      <defs>
+       <g id="piece42">
+         <circle
+           cx="0" cy="0"
+           fill="red" r="10"
+           />
+       </g>
+       <g id="base43">
+         <rect
+           x="-10" y="-10" width="20" height="20"
+           />
+       </g>
+       <g id="piece43">
+         <g fill="blue">
+           <use href="#base43">
+         </g>
+       </g>
+       <g id="select43">
+         <g stroke="black"
+            stroke-dasharray="3 1  1 1  1 1"
+            fill="none"
+          >
+         <g transform="scale(1.1)">
+           <use href="#base43">
+         </g>
+       </g>
+      </defs>
+    </svg>
 
 </body>
+<script src="script.js"></script>