Browse Source

Initial code

master
SEBBAR Elias (INTERN) 5 years ago
parent
commit
c7c9d55a8d
7 changed files with 90773 additions and 0 deletions
  1. 32
    0
      index.html
  2. 83613
    0
      js/bundle.js
  3. 0
    0
      js/components/index.js
  4. 20
    0
      js/main.js
  5. 0
    0
      js/systems/index.js
  6. 7085
    0
      package-lock.json
  7. 23
    0
      package.json

+ 32
- 0
index.html View File

@@ -0,0 +1,32 @@
1
+<!DOCTYPE html>
2
+<html>
3
+  <head>
4
+    <meta charset="utf-8">
5
+    <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width">
6
+    <title>AFRAME boilerplate</title>
7
+    <style>
8
+
9
+    .hidden{
10
+      z-index:-1 ;
11
+    }
12
+
13
+    .overlay{
14
+      position:fixed;
15
+      top:75%;
16
+      left:0;
17
+      right:0;
18
+      margin-left: auto;
19
+      margin-right: auto;
20
+      width:25%;
21
+      font-size:5em;
22
+      opacity:0.7;
23
+    }
24
+    </style>
25
+
26
+    <script type='text/javascript' src="js/bundle.js"></script>
27
+  </head>
28
+  <body>
29
+
30
+  </body>
31
+
32
+</html>

+ 83613
- 0
js/bundle.js
File diff suppressed because it is too large
View File


+ 0
- 0
js/components/index.js View File


+ 20
- 0
js/main.js View File

@@ -0,0 +1,20 @@
1
+require('aframe');
2
+
3
+require('./components/index.js');
4
+require('./systems/index.js');
5
+
6
+document.addEventListener("DOMContentLoaded",(event) => {
7
+  let body = document.querySelector('body');
8
+  let scene = document.createElement('a-scene');
9
+
10
+  scene.setAttribute('stats','');
11
+
12
+  let sky = document.createElement('a-sky');
13
+  sky.setAttribute('segments-height','5');
14
+  sky.setAttribute('segments-width','100');
15
+  sky.setAttribute('radius','1000')
16
+  scene.appendChild(sky);
17
+
18
+
19
+  body.appendChild(scene);
20
+});

+ 0
- 0
js/systems/index.js View File


+ 7085
- 0
package-lock.json
File diff suppressed because it is too large
View File


+ 23
- 0
package.json View File

@@ -0,0 +1,23 @@
1
+{
2
+  "name": "ea_dataviz",
3
+  "version": "1.0.0",
4
+  "description": "",
5
+  "main": "index.js",
6
+  "scripts": {
7
+    "pack": "watchify ./js/main.js -o js/bundle.js",
8
+    "start": "budo js/main.js:js/bundle.js --live --verbose --port 3000 --open -- -t brfs",
9
+    "start_n": "node server.js",
10
+    "test": "echo \"Error: no test specified\" && exit 1"
11
+  },
12
+  "author": "",
13
+  "license": "ISC",
14
+  "dependencies": {
15
+    "@babel/core": "^7.3.4",
16
+    "@babel/preset-env": "^7.3.4",
17
+    "aframe": "^0.9.2",
18
+    "babelify": "^10.0.0",
19
+    "brfs": "^2.0.1",
20
+    "budo": "^11.6.0",
21
+    "bulk-require": "^1.0.1"
22
+  }
23
+}

Loading…
Cancel
Save