-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.js
63 lines (48 loc) · 1.21 KB
/
main.js
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
$(document).ready(function(){
clearPlayer = function() {
//$('#exportlink').hide();
//$('#play').hide();
//$("#pause").hide();
//$("#exportlink").show();
//$("#pause").show();
//player.stop();
}
$("#homelink").click(function() {
$("#createpage").hide();
$("#aboutpage").hide();
$("#homepage").show();
$("#homepage2").show();
$(".active").removeClass("active");
$(this).addClass("active");
clearPlayer();
});
$(".startworking").click(function() {
$("#homepage").hide();
$("#homepage2").hide();
$("#aboutpage").hide();
$("#createpage").show();
$(".active").removeClass("active");
$("#createlink").addClass("active");
//clearPlayer();
});
$("#aboutlink").click(function(){
$("#createpage").hide();
$("#homepage").hide();
$("#homepage2").hide();
$("#aboutpage").show();
$(".active").removeClass("active");
$(this).addClass("active");
clearPlayer();
})
$("#exportlink").click(function(){
console.log( stlFromGeometry( cylinderGeo, {download:true} ) )
});
$("#zoom-in").click(function() {
camera.fov *= 0.9;
camera.updateProjectionMatrix();
});
$("#zoom-out").click(function() {
camera.fov *= 1.1;
camera.updateProjectionMatrix();
});
});