Browse code

tune html styles

devnewton authored on 23/07/2014 at 15:07:03
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,24 @@
0
+<!DOCTYPE html>
1
+<html>
2
+    <head>
3
+        <title>Ned et les maki</title>
4
+        <style>
5
+            #playn-root {
6
+                display:block;
7
+                position:absolute;
8
+                top:0;
9
+                left:0;
10
+                width:100%;
11
+                height:100%;
12
+            }
13
+            body {
14
+                background-color: black;
15
+            }
16
+
17
+        </style>
18
+    </head>
19
+    <body bgcolor="black">
20
+        <script src="playn/playn.nocache.js"></script>
21
+        <div id="playn-root"></div>
22
+    </body>
23
+</html>
... ...
@@ -1,9 +1,25 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3
-  <head>
4
-    <title>Ned et les maki</title>
5
-  </head>
6
-  <body bgcolor="black">
7
-    <script src="playn/playn.nocache.js"></script>
8
-  </body>
3
+    <head>
4
+        <title>Ned et les maki</title>
5
+        <style>
6
+            #playn-root {
7
+                width: 640px ;
8
+                height: 480px ;
9
+                margin-left: auto ;
10
+                margin-right: auto ;
11
+            }
12
+            #footer {
13
+                color: white;
14
+            }
15
+            body {
16
+                background-color: black;
17
+            }
18
+        </style>
19
+    </head>
20
+    <body bgcolor="black">
21
+        <script src="playn/playn.nocache.js"></script>
22
+        <div id="playn-root"></div>
23
+        <p id="footer">This game is an experimental HTML5 port of <a href="//devnewton.bci.im/games/nedetlesmaki">Ned et les maki</a>.</p>
24
+    </body>
9 25
 </html>