-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
review.pug
50 lines (47 loc) · 1.53 KB
/
review.pug
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
doctype html
html
head
meta(charset="utf-8")
title Yin-Yang Font Review
script(type="text/javascript", src="node_modules/@svgdotjs/svg.js/dist/svg.min.js")
script(type="text/javascript", src="node_modules/font-webapp/font-webapp.js")
script(type="text/javascript").
module = {};
script(type="text/javascript", src="node_modules/json-stringify-pretty-compact/index.js")
script(type="text/javascript").
stringify = module.exports
script(type="text/javascript", src="review-data.js")
// If existing font selection exists, load it
script(type="text/javascript", src="font.js")
script(type="text/javascript", src="yinyang.js")
style
include:stylus yinyang.styl
:stylus
.container
overflow-x: auto
white-space: nowrap
.review
display: inline-block
width: 300px
border: 5px transparent solid
&.selected
border-color: purple
#downloadFont
margin: 1em
font-size: x-large
.test
border: solid
padding: 1em
body
table.w-100
tr
td.text-left.align-middle
h1 Yin-Yang Font Review
td.text-right.align-middle
h2 by <a href="https://erikdemaine.org/">Erik Demaine</a> and <a href="http://martindemaine.org">Martin Demaine</a>, 2021
#review.w-100
button#downloadFont Download Font
.test
h2 Visualize puzzles/solutions:
textarea#testInput(rows="10", cols="80")
#testOutput