-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html.ejs
More file actions
141 lines (122 loc) · 3.68 KB
/
index.html.ejs
File metadata and controls
141 lines (122 loc) · 3.68 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Node Microformats Parser</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"
integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ"
crossorigin="anonymous"
/>
<style>
form label {
font-weight: bold;
display: block;
}
form textarea,
form input[type="url"] {
font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
}
form .form-control:disabled {
cursor: default;
background: #efefef;
color: black;
}
.help {
color: #999;
font-weight: normal;
}
#json {
font-size: 0.7em;
}
/* disable bootstrap animations */
.form-control,
.btn {
transition: none;
}
</style>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
</head>
<body>
<main id="mf2" class="container">
<h1 class="mt-5 mb-3">Microformats Parser (Node) <%- version -%></h1>
<form action="/" accept-charset="UTF-8" method="get">
<div class="form-group">
<label for="url">Enter a URL</label>
<input
id="url"
class="form-control form-control-lg"
type="url"
name="url"
placeholder="https://example.com/person.html"
/>
</div>
<button type="submit" class="btn btn-lg btn-success">Parse</button>
</form>
<h2 class="h4 my-5">OR parse just a snippet of HTML</h2>
<form method="post" action="/" class="mb-5">
<div class="form-group">
<label for="html">HTML</label>
<textarea
id="html"
name="html"
rows="6"
class="form-control form-control-lg"
></textarea>
</div>
<div class="form-group">
<label for="url">Base URL</label>
<input
id="url"
name="url"
type="url"
class="form-control form-control-lg"
required
/>
</div>
<button type="submit" class="btn btn-lg btn-success">Parse</button>
</form>
<hr />
<p>
Drag this link to your bookmarks toolbar to parse a page with one
click!<br />
</p>
<a
class="btn btn-primary btn-sm"
href="javascript:(function(){document.location.href='https://node.microformats.io/?url='+encodeURIComponent(document.location.href);}())"
>mf2 parser</a
>
<hr />
<footer class="my-5">
<ul>
<li><a href="https://microformats.io">About Microformats</a></li>
<li>
<a
href="https://github.com/microformats/microformats-parser-website-node"
>Source code for this site</a
>
</li>
<li>
<a href="https://github.com/microformats/microformats-parser"
>Source code for the Microformats JavaScript Parser</a
>
</li>
<li>
Other Microformats Parser websites:
<a href="https://go.microformats.io">Go</a>,
<a href="https://php.microformats.io">PHP</a>,
<a href="https://python.microformats.io">Python</a>,
<a href="https://ruby.microformats.io">Ruby</a>, and
<a href="https://rust.microformats.io">Rust</a>.
</li>
</ul>
</footer>
</main>
</body>
</html>