File tree Expand file tree Collapse file tree 2 files changed +0
-36
lines changed
src/modules/location/templates Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Original file line number Diff line number Diff line change 66 <script src =" https://aframe.io/releases/1.0.4/aframe.min.js" ></script >
77 <script src =" https://unpkg.com/[email protected] /dist/aframe-look-at-component.min.js" ></script > 88 <script src =" https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js" ></script >
9- <script >
10- AFRAME .registerComponent (' audiohandler' , {
11- init : function () {
12- var marker = this .el ;
13- this .vid = document .querySelector (" #vid" );
14-
15- marker .addEventListener (' markerFound' , () => {
16- this .toggle = true ;
17- this .vid .play ();
18- }.bind (this ));
19-
20- marker .addEventListener (' markerLost' , () => {
21- this .toggle = false ;
22- this .vid .pause ();
23- }.bind (this ));
24- },
25- });
26- </script >
279 </head >
2810
2911 <body style =" margin: 0; overflow: hidden;" >
Original file line number Diff line number Diff line change 66 <script src =" https://aframe.io/releases/1.0.4/aframe.min.js" ></script >
77 <script src =" https://unpkg.com/[email protected] /dist/aframe-look-at-component.min.js" ></script > 88 <script src =" https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js" ></script >
9- <script >
10- AFRAME .registerComponent (' videohandler' , {
11- init : function () {
12- var marker = this .el ;
13- this .vid = document .querySelector (" #vid" );
14-
15- marker .addEventListener (' markerFound' , () => {
16- this .toggle = true ;
17- this .vid .play ();
18- }.bind (this ));
19-
20- marker .addEventListener (' markerLost' , () => {
21- this .toggle = false ;
22- this .vid .pause ();
23- }.bind (this ));
24- },
25- });
26- </script >
279 </head >
2810
2911 <body style =" margin: 0; overflow: hidden;" >
You can’t perform that action at this time.
0 commit comments