-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
140 lines (112 loc) · 4.89 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Audiowide' rel='stylesheet'>
<link rel="stylesheet" href="./style.css">
<title>
CAD-BOXX.COM
</title>
<link rel="icon" type="image/png" sizes="32x32" href="logo3.png">
<link rel="icon" type="image/png" sizes="16x16" href="logo3.png">
</head>
<body>
<div class="topnav" id="myTopnav">
<a href="#" class="icon1"><img src="logo33.png" style="width:32px;height:32px" /> CAD-BOXX.COM</a>
<a href="./store.html">Store</a>
<a href="https://hubs.mozilla.com/spoke/">Creator</a>
<a href="./contact.html">Contact</a>
<a href="./about.html">About</a>
<a href="./index.html" class="active">Home</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
</div>
<div class="image-content">
<img src="logo33.png">
</div>
<div>
<li><a href="https://cad-boxx.com/">HOME<a></li>
<li><a href="https://cad-boxx.com/">HOME<a></li>
<li><a href="https://cad-boxx.com/">HOME<a></li>
<li><a href="https://cad-boxx.com/">HOME<a></li>
</div>
<div class="text-content">
<h1>
The cadboxx is a 3D environment and workspace with a focus on building mechanical assemblies. It is not a CAD system, yet can produce 3D Models for both CAD Systems and the latest 3D Games. Users can edit, create, import and position Models, then connect them using dynamic joints to define their relative motion. Simulations, Animations, interactivity, high quality models and unlimited downloads are just part of a very special service.
</h1>
</br>
<h3>
A CADBOXX can be used not only as a physics workspace, but can also create and export dynamic mechanical assemblies of 3D solid models. Run Simulations and record Animations, then view the results on our player or upload to YouTube. Publish and share your creations on Hubs.
</h3>
</div>
<div class="text-content-2">
<h3>
CREATOR: This online editor is linked to Mozilla Hubs and Sketchfab. Create a free, private account and import models from Sketchfab and use them together with your own custom models. When using the cadboxx, the scene is in place. The editor can be used to publish your work via Hubs. Our subscribers can access all our models on Sketchfab. </h3>
<br>
</div>
<div class="footer">
<i class="fa fa-facebook" style="padding-right: 2%" href="https://facebook.com"></i>
<i class="fa fa-instagram" style="padding-right: 2%" href="https://instagram.com"></i>
<i class="fa fa-twitter" href="https://twitter.com"></i>
</div>
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
</body>
<script type="text/javascript" src="script.js"></script
><!-- ... -->
<script type="text/javascript" src="aframe-ammo-constraints.js"></script
><!-- ... -->
<script type="text/javascript" src="aframe-gltf.js"></script
><!-- ... -->
<script>
function exportGLTF(input, options) {
AFRAME.scenes[0].systems["gltf-exporter"].export(input, options);
}
document
.getElementById("export-scene")
.addEventListener("click", function() {
exportGLTF();
});
document
.getElementById("export-scene-bin")
.addEventListener("click", function() {
exportGLTF(undefined, { binary: true });
}); //replace with NEW/OPEN
document
.getElementById("export-sphere")
.addEventListener("click", function() {
exportGLTF(document.getElementById("yellowSphere"), { binary: true });
}); //REPLACE WITH LOAD/POSITION
document.getElementById("export-two").addEventListener("click", function() {
exportGLTF([
document.getElementById("blueBox"),
document.getElementById("yellowSphere")
]);
}); //REPLACE WITH SAVE
document
.getElementById("export-selector")
.addEventListener("click", function() {
exportGLTF(document.querySelectorAll("[geometry='primitive: box']"));
});
</script>
<script>
//add a-plane as per this and then add new entity / position
var entity = document.createElement("a-entity");
scene.appendChild(entity);
entity.setAttribute("position", { x: 0, y: 1, z: 2 });
entity.addEventListener("loaded", function() {
console.log(entity.getAttribute("position"));
});
</script>
</html>