Difference between revisions of "Msc1G4:Student2"
From rbse
Line 48: | Line 48: | ||
− | <div> | + | <html> |
+ | <div id="vrview"></div> | ||
− | < | + | <script src="/vrview-master/build/vrview.js"></script> |
− | + | <script> | |
− | + | var vrView; | |
− | + | function onLoad() { | |
− | + | vrView = new VRView.Player('#vrview', { | |
− | + | width: '100%', | |
− | + | height: 480, | |
− | + | image: '/images/9/9a/GROUND_FLOOR_EXTERNAL.jpg', | |
− | + | preview: '/vrview-master/examples/gallery/petra-preview.jpg', | |
− | + | is_stereo: false, | |
− | + | is_autopan_off: true | |
− | + | }); | |
− | + | vrView.on('ready', onVRViewReady); | |
− | + | vrView.on('modechange', onModeChange); | |
− | + | vrView.on('error', onVRViewError); | |
+ | } | ||
+ | window.addEventListener('load', onLoad); | ||
+ | </script> | ||
+ | </html> |
Revision as of 09:32, 3 February 2017