-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
167 lines (133 loc) · 5.11 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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<title>NType</title>
<link rel="stylesheet" href="reset.css">
<link href='style.css' rel='stylesheet'>
<link rel="icon" type="image/png" href="favicon.png">
<meta charset='UTF-8'>
</head>
<body>
<div id='controls'>
<div class="block block--title">
<h1>NTYPE — 4D Type Extruder</h1>
</div>
<!-- <a class='block' href='#' id='share'>
Share
</a> -->
<div class="block block--nopad">
<div class="button button--play pressed"></div>
<div class="button button--pause"></div>
<div class="button button--reset"></div>
</div>
<div class="block">
<h2>Rotation Planes</h2>
<ul class='list-col'>
<li><input type='checkbox' class='plane-selector' id='xw'><label for='xw'>XW</label></li>
<li><input type='checkbox' class='plane-selector' id='yw'><label for='yw'>YW</label></li>
<li><input type='checkbox' class='plane-selector' id='zw' checked><label for='zw'>ZW</label></li>
</ul>
<ul class='list-col'>
<li><input type='checkbox' class='plane-selector' id='xy'><label for='xy'>XY</label></li>
<li><input type='checkbox' class='plane-selector' id='xz'><label for='xz'>XZ</label></li>
<li><input type='checkbox' class='plane-selector' id='yz' checked><label for='yz'>YZ</label></li>
</ul>
</div>
<div class="block">
<h2>Rotation Speed</h2>
<input type='range' min='0.001' max='0.1' step='0.001' value='0.0157' id='speed'>
<span class='min-label'>Slow</span>
<span class='max-label'>Fast</span>
</div>
<div class="block">
<h2>Trail Length</h2>
<input type='range' min='2' max='300' step='1' value='100' id='fpr'>
<span class='min-label'>2</span>
<span class='max-label'>300</span>
</div>
<div class="block">
<h2>Drawing Options</h2>
<div class='form-field'><input type='checkbox' id='forms' checked><label for='forms'>Forms</label></div>
<div class='form-field'><input type='checkbox' id='trails'><label for='trails'>Trails</label></div>
</div>
<div class='block block--bottom'>
<a href='http://github.com/kevinzweerink/ntype' target='_blank' class='ext_link'>About</a> •
<a href='http://kevinzweerink.com' target='_blank' class='ext_link'>Kevin Zweerink</a>
</div>
</div>
<div class='actions'>
<a id='share-message' href='#'>Share Message</a>
<a id='download' href='#'>Download Rotation As OTF</a>
</div>
<div id='controls-toggle'>
<img src='assets/controls-icon.svg'>
</div>
<div id='info-toggle'>
<img src='assets/info-icon.svg'>
</div>
<div id='info-overlay'>
<a href='#' id='info-overlay__close'>×</a>
<div class='info-section__info'>
<h2 class='info-heading'>NType</h2>
<p class='info-body'>NType is a 4D communication tool.</p>
</div>
<hr class='full-width-rule'>
<div class='info-section__controls'>
<h3 class='controls-list__heading'>Key Controls</h3>
<ul class='controls-list'>
<li class='controls-list__list-item'>
<span class='controls-list__item-heading'>Backspace</span>
Removes the last character on screen
</li>
<li class='controls-list__list-item'>
<span class='controls-list__item-heading'>A–Z</span>
Types a letter in 4D extrusion
</li>
<li class='controls-list__list-item'>
<span class='controls-list__item-heading'>Space</span>
Pause/play the animation
</li>
<li class='controls-list__list-item'>
<span class='controls-list__item-heading'>Scroll While Paused</span>
Scrub through the animation
</li>
</ul>
</div>
<hr class='full-width-rule'>
<div class='info-section__actions'>
<h2 class="info-heading">Actions</h2>
<ul class='actions-list'>
<li class='actions-list__list-item'>
<span class='actions-list__item-heading'>Share Message</span>
Get a URL to share the current text and rotation parameters
</li>
<li class='actions-list__list-item'>
<span class='actions-list__item-heading'>Download OTF</span>
Download an OTF of (maybe) the current rotation. This part only works in chrome and doesn't work great yet.
</li>
</div>
</div>
<script type='text/javascript' src='js/three.min.js'></script>
<script type='text/javascript' src='js/type.js'></script>
<script type="text/javascript" src='js/controls.js'></script>
<script type='text/javascript' src='js/ntype.js'></script>
<script type='text/javascript' src='js/main.js'></script>
<script type='text/javascript' src='js/share.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
document.querySelector('#download').addEventListener('click', function(e) {
ga('send', 'event', 'OTF', 'Download', 'Downloaded OTF');
});
document.querySelector('#share-message').addEventListener('click', function(e){
ga('send','event','Share','Get Link','Requested share link from bitly')
})
ga('create', 'UA-62268066-1', 'auto');
ga('send', 'pageview');
</script>
<script type='text/javascript' src='js/opentype.min.js'></script>
<script type='text/javascript' src='js/export.js'></script>
</body>
</html>