-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (119 loc) · 4.67 KB
/
index.html
File metadata and controls
137 lines (119 loc) · 4.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>OA Card Builder</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta property="og:title" content="OA Card Builder"/>
<meta property="og:description" content="3D Pop-Up Card Builder with SVG cutting template export"/>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/dat-gui-light-theme.css" rel="stylesheet">
<link href="css/webOAcard.css" rel="stylesheet">
</head>
<body>
<div id="container">
<div id="loadingMask"><i class="fa fa-circle-o-notch fa-spin"></i></div>
</div>
<div id="tip" class="modeSel display hide">
<ul class="task-list">
<li class="modeTip edit">
<p>Edit mode</p>
<ul class="task-list">
<li>left key : add points on edit grid to create a contour</li>
<li>right key : switch to Display mode</li>
<li>scroll : change depth of edit grid</li>
</ul>
</li>
<li class="modeTip contouring">
<p>Contour editing</p>
<ul class="task-list">
<li>left key : add points or close contour (connect to the start point or press ctrl key )</li>
<li>right key : undo the last point</li>
</ul>
</li>
<li class="modeTip contoured">
<p>Contour closed</p>
<ul class="task-list">
<li>left key : use contour to create a Face/Pull/Hole (select from GUI)</li>
<li>right key : drag to move the contour</li>
<li>scroll : change the depth of edit grid</li>
</ul>
</li>
<li class="modeTip display">
<p>Display mode</p>
<ul class="task-list">
<li>left key : move the camera</li>
<li>right key : switch to Edit mode</li>
<li>scroll : change the card angle</li>
</ul>
</li>
</ul>
</div>
<div id="imgContainer">
<img style="">
<a href="" download="card.png">download</a>
</div>
<div id="fileUIContainer"></div>
<div id="previewUIwrapper" class="Clr-333">
<div id="previewUI">
<div id="container2D"></div>
<a href="javascript:void(0)" id="download2D">
<i class="fa fa-arrow-circle-o-down fa-2x"></i>
</a>
</div>
</div>
<div id="bottomBar">
<a id="tipBtn"><i class="fa fa-question-circle"></i></a>
<a class="helpLink" href="javascript:;" id="quickGuideBtn"><i class="fa fa-rocket"></i> Quick Guide</a>
<a class="helpLink" href="https://www.youtube.com/watch?v=TKUqK5zyhHU" target="_blank"><i class="fa fa-youtube-play"></i> Tutorial</a>
<span id="creditLine">Based on <a href="https://github.com/caa1211/webOAcard" target="_blank">webOAcard</a> by caa1211</span>
</div>
<a id="modeText" href="javascript:void(0);"> </a>
<input type="file" id="fileUpload" style="display:none;" />
<input type="file" id="refImageUpload" accept="image/*" style="display:none;" />
<script src="js/three.min.js"></script>
<script src="js/stats.min.js"></script>
<script src="js/Detector.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="js/jquery.mousewheel.min.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/Javascript_Clipper_6.1.3.2/clipper.js"></script>
<script src="js/helvetiker_font/helvetiker_bold_italic.typeface.js"></script>
<script src="js/helvetiker_font/helvetiker_bold.typeface.js"></script>
<script src="js/helvetiker_font/helvetiker_italic.typeface.js"></script>
<script src="js/helvetiker_font/helvetiker_regular.typeface.js"></script>
<script>
//no-cache js
var scriptList = [
"js\/oa.core.js",
"js\/oa.model.js",
"js\/oa.face.js",
"js\/oa.contour.js",
"js\/oa.exContour.js",
"js\/oa.clipper.js",
"js\/oa.point.js",
"js\/oa.contourRepo.js",
"js\/oa.svgExport.js",
"js\/oa.refImage.js",
"js\/webOAcard.js",
"js\/demo.js"
];
for(var i=0; i<scriptList.length; i++){
document.write('<script src="'+ scriptList[i] +'"?v='+new Date().getMilliseconds()+'><\/script>');
}
</script>
<script>
// Quick Guide opens the preview GIF in a new tab
document.getElementById('quickGuideBtn').addEventListener('click', function() {
window.open('preview.gif', '_blank');
});
</script>
</body>
</html>