forked from caa1211/webOAcard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
214 lines (178 loc) · 7.96 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<title>OA Card</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="OAcard - WebGL (ThreeJS)"/>
<meta property="og:site_name" content="OAcard"/>
<meta property="og:description" content="Organic architecture online builder"/>
<meta property="og:image" content="preview.png">
<!-- 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">
<!-- Add fancyBox CSS files -->
<link href="lib/fancyBox/jquery.fancybox.css?v=2.1.5" rel="stylesheet" media="screen" />
<style></style>
</head>
<body>
<div id="tutorialDiv">
<a class="videoLink gif" href="javascript:;" target="_blank">
<i class="fa fa-rocket"></i>
Quick Guide
</a>
<a class="videoLink youtube" href="https://www.youtube.com/watch?v=TKUqK5zyhHU">
<i class="fa fa-youtube-play"></i>
Tutorial
</a>
</div>
<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>
<!--a id="ta" href="" download="card.txt" style="position:absolute; font-size:30; left:200px; z-index:9999;">TTTTT</a-->
<div id="previewUIwrapper" class="Clr-333">
<div id="previewUI" style=" ">
<div id="container2D" style=""></div>
<a href="javascript:void(0)" id="download2D" style="">
<i class="fa fa-arrow-circle-o-down fa-2x"></i>
</a>
</div>
</div>
<div id="shareArea">
<div class="others">
<a id="tipBtn">
<i class="fa fa-question-circle"></i>
</a>
<a href="https://github.com/caa1211/webOAcard" target="_blank" ><i class="fa fa-github"></i></a>
<a href="https://www.facebook.com/caa1211" target="_blank" ><i class="fa fa-facebook-square"></i></a>
</div>
<a style=" " id="googleBadge" target="_blank" href="http://www.chromeexperiments.com/detail/3d-pop-up-card/">
<img src="img/badges/b2.png" alt="See my Experiment on ChromeExperiments.com">
</a>
</div>
<a id="modeText" style="" href="javascript:void(0);"> </a>
<input type="file" id="fileUpload" 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.prettySocial.min.js"></script>
<!--script src="js/underscore-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>
<!-- fancyBox JS files -->
<script src="lib/fancyBox/jquery.fancybox.js?v=2.1.5"></script>
<script src="lib/fancyBox/helpers/jquery.fancybox-media.js?v=1.0.6"></script>
<!--script src="js/typeface/mickey_m_tfb_regular.typeface.js"></script>
<script src="js/typeface/jigsaw_pieces_tfb_regular.typeface.js"></script>
<script src="js/typeface/cityscape-_regular.typeface.js"></script>
<script src="js/typeface/housing_regular.typeface.js"></script-->
<!--script src="js/oa.core.js"></script>
<script src="js/oa.model.js"></script>
<script src="js/oa.face.js"></script>
<script src="js/oa.contour.js"></script>
<script src="js/oa.exContour.js"></script>
<script src="js/oa.clipper.js"></script>
<script src="js/oa.point.js"></script>
<script src="js/oa.contourRepo.js"></script>
<script src="js/webOAcard.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\/webOAcard.js",
"js\/demo.js"
];
for(var i=0; i<scriptList.length; i++){
document.write('<script src="'+ scriptList[i] +'"?v='+new Date().getMilliseconds()+'><\/script>');
}
// Tutorials
$("#tutorialDiv .gif").click(function(){
$.fancybox.open('preview.gif');
});
$("#tutorialDiv .youtube").attr('rel', 'media-gallery')
.fancybox({
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
arrows : false,
helpers : {
media : {},
buttons : {}
}
});
</script>
<div class="social-container" style="position:absolute; z-index: 99999; bottom: 10px;">
<div class="links">
<a href="#" data-type="facebook" data-url="http://caa1211.github.io/webOAcard/" data-title="Organic architecture online builder" data-description="Custom share buttons for Pinterest, Twitter, Facebook and Google Plus." data-media="preview.png" class="prettySocial fa fa-facebook"></a>
<a href="#" data-type="googleplus" data-url="http://caa1211.github.io/webOAcard/" data-description="Organic architecture online builder" class="prettySocial fa fa-google-plus"></a>
<a href="#" data-type="twitter" data-url="http://caa1211.github.io/webOAcard/" data-description="Organic architecture online builder" data-via="sonnyt" class="prettySocial fa fa-twitter"></a>
<a href="#" data-type="pinterest" data-url="http://caa1211.github.io/webOAcard/" data-description="Organic architecture online builder" data-media="preview.png" class="prettySocial fa fa-pinterest"></a>
<a href="#" data-type="linkedin" data-url="http://caa1211.github.io/webOAcard/" data-title="OA Card - build your pop-up card" data-description="Organic architecture online builder" data-via="caa" data-media="http://caa1211.github.io/webOAcard/preview.png" class="prettySocial fa fa-linkedin"></a>
</div>
<script type="text/javascript">
$('.prettySocial').prettySocial();
</script>
</div>
</body>
</html>