mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-21 11:09:30 -07:00
separate data and css
This commit is contained in:
@@ -3,8 +3,16 @@
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="preload" href="fonts/Star4000.woff" as="font" crossorigin="anonymous" />
|
||||
<link rel="preload" href="fonts/Star 4 Radar.woff" as="font" crossorigin="anonymous" />
|
||||
<link rel="preload" href="fonts/Star4000 Extended.woff" as="font" crossorigin="anonymous" />
|
||||
<link rel="preload" href="fonts/Star4000 Large Compressed Numbers.woff" as="font" crossorigin="anonymous" />
|
||||
<link rel="preload" href="fonts/Star4000 Large Compressed.woff" as="font" crossorigin="anonymous" />
|
||||
<link rel="preload" href="fonts/Star4000 Large.woff" as="font" crossorigin="anonymous" />
|
||||
<link rel="preload" href="fonts/Star4000 Small.woff" as="font" crossorigin="anonymous" />
|
||||
<% if (production) { %>
|
||||
<link rel="stylesheet" type="text/css" href="resources/ws.min.css?_=<%=production%>">
|
||||
<link rel="stylesheet" type="text/css" href="resources/twc3.min.css?_=<%=production%>">
|
||||
<script type="text/javascript" src="resources/data.min.js"></script>
|
||||
<script type="text/javascript" src="resources/ws.min.js?_=<%=production%>"></script>
|
||||
<% } else { %>
|
||||
<link rel="stylesheet" type="text/css" href="styles/twc3.css">
|
||||
@@ -32,19 +40,9 @@
|
||||
<% } %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- This will force the browser to download the font before the canvas is rendered. -->
|
||||
<div class="fontPreload" id="Star4000">123 This is a test</div>
|
||||
<div class="fontPreload" id="Star4000Extended">123 This is a test</div>
|
||||
<div class="fontPreload" id="Star4000LargeCompressedNumbers">123 This is a test</div>
|
||||
<div class="fontPreload" id="Star4000LargeCompressed">123 This is a test</div>
|
||||
<div class="fontPreload" id="Star4000Large">123 This is a test</div>
|
||||
<div class="fontPreload" id="Star4000Small">123 This is a test</div>
|
||||
<div class="fontPreload" id="Star4Radar">123 This is a test</div>
|
||||
|
||||
<div id="container">
|
||||
<canvas id="progressCanvas" width="640" height="480"></canvas>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user