-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmcviewer.html
116 lines (104 loc) · 4.36 KB
/
mcviewer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>MCardJS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Web as app support -->
<link rel="manifest" href="manifest.json" />
<!-- Original icon from: https://dribbble.com/shots/3385687-Dreamcast-VMU-Icon-Revision -->
<link rel="icon" sizes="192x192" href="images/vmu_icon-192x192.png">
<!-- Navigation bar color -->
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#447AC4">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#447AC4">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#447AC4">
<link rel="stylesheet" type="text/css" href="style.css" />
<!-- Materialize library -->
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/js/materialize.min.js"></script>
<script src="js/sw-register.js"></script>
<script src="js/vmu.js"></script>
<script src="js/jistounicode.js"></script>
<script src="js/psxmc.js"></script>
<script src="js/mcviewer.js"></script>
</head>
<body>
<!-- <header>Memory Card Manager</header> -->
<main>
<!-- Floating button to add new memory cards -->
<div class="fixed-action-btn">
<a class="btn-floating btn-large blue" id="newcard">
<i class="large material-icons">add</i>
</a>
<ul>
<li><a class="btn-floating blue-grey lighten-5 black-text" id="newpsxmc">PS</a></li>
<li><a class="btn-floating blue" id="newvmu">DC</a></li>
</ul>
</div>
<!-- Tabs -->
<div class="row" id="tabs-container">
<div class="col s12">
<ul class="tabs">
<template id="tab-hdr-tmpl">
<!-- href need to reference the tab-body-tmpl -->
<li class="tab col s3"><a href="#ref">Text</a></li>
</template>
</ul>
</div>
<template id="tab-body-tmpl">
<!-- ID need to be added and referenced by the tab-hdr-tmpl -->
<div class="col s12">
<div class ="mcviewer"></div>
</div>
</template>
<template id="vmuviewer-tmpl">
<div class="vmu">
<input type="file" class="file" />
<button class="download">Download</button>
<table class="elements">
<tr>
<th>Name</th>
<th>Timestamp</th>
<th>Blocks</th>
<th>VM Description</th>
<th>DC Description</th>
<th>Icon</th>
<th>Delete</th>
</tr>
</table>
<canvas class="memorycard"></canvas>
</div>
</template>
<template id="psxmcviewer-tmpl">
<div class="psxmc">
<input type="file" class="file" />
<button class="download">Download</button>
<table class="elements">
<tr>
<th>Region</th>
<th>Game ID</th>
<th>File Name</th>
<th>Name</th>
<th>Size</th>
<th>Icon</th>
<th>Delete</th>
</tr>
</table>
<canvas class="memorycard"></canvas>
</div>
</template>
<div class="newtab-message center-align">
Click on <i class="material-icons btn-floating blue">add</i> button to add a new memory card or drag&drop a file to this window
</div>
</div>
</main>
<footer></footer>
</body>
</html>