Added external stylesheet.

This commit is contained in:
2018-07-12 02:23:20 +02:00
parent f3ff0ce962
commit 636c30a3e3
2 changed files with 7 additions and 1 deletions

View File

@@ -5,11 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cubewaves</title> <title>Cubewaves</title>
<link rel="stylesheet" type="text/css" href="public/style.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.14/p5.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.14/p5.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.dom.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.dom.js"></script>
<script src="public/sketch.js"></script> <script src="public/sketch.js"></script>
</head> </head>
<body style="text-align: center; background-color: #1e1e1e"> <body>
</body> </body>
</html> </html>

5
public/style.css Normal file
View File

@@ -0,0 +1,5 @@
html, body {
margin: auto;
text-align: center;
background-color: #1e1e1e";
}