-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
76 lines (73 loc) · 3.35 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Test the validity of a Web Manifest">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Web Manifest Validator</title>
<link rel="shortcut icon" href="favicon.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en" type='text/css'>
<link rel="stylesheet" href="material.light_blue-red.min.css">
<link rel="stylesheet" href="styles.css">
<script src="material.min.js"></script>
<script src="ui.js" async></script>
<script src="manifest-parser.js" async></script>
</head>
<body>
<div class="layout mdl-layout mdl-layout--fixed-header mdl-js-layout mdl-color--grey-100">
<header class="header mdl-layout__header mdl-layout__header--scroll mdl-color--grey-100 mdl-color-text--grey-800">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Web Manifest Validator</span>
</div>
</header>
<div class="ribbon"></div>
<main class="main mdl-layout__content">
<div class="container mdl-grid">
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
<div class="content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col">
<p>
This page is meant to be used to test the validity of a Web Manifest. The parser follows the rules from the <a href="https://w3c.github.io/manifest/">W3C specification</a>.
</p>
<h4>Enter a Website URL</h4>
<p>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="url" id="website-url">
<label class="mdl-textfield__label" for="website-url">https://...</label>
<span class="mdl-textfield__error">This is not a valid URL</span>
</div>
<button id="check-website-url" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
Validate
</button>
</p>
<h4>Paste a Web Manifest</h4>
<p>
<textarea id="manifest-source" style="font-family: Courier New,monospace; width: 100%; height: 176px;"></textarea>
<button id="check-source" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
Validate
</button>
</p>
<h4>Upload a Web Manifest File</h4>
<p>
<input type="file">
</p>
<p>
<div id="log"></div>
</p>
<p>
<div id="tip"></div>
</p>
</div>
</div>
<footer class="footer mdl-mini-footer">
<div class="mdl-mini-footer--left-section">
<ul class="mdl-mini-footer--link-list">
<li><a href="https://github.com/mounirlamouri/manifest-validator">View source</a></li>
<li><a href="https://w3c.github.io/manifest/">W3C specification</a></li>
</ul>
</div>
</footer>
</main>
</div>
</body>
</html>