fix
This commit is contained in:
parent
9e2d6c1a67
commit
d87143576a
29
static/pkg/sketchfab_galaxy/index.html
Normal file
29
static/pkg/sketchfab_galaxy/index.html
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Sketchfab Viewer API example</title>
|
||||
<script type="text/javascript" src="https://static.sketchfab.com/api/sketchfab-viewer-1.12.1.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="sketchfab-embed-wrapper"> <iframe title="Need some space?" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%;" frameborder="0" allowFullScreen webkitallowfullscreen="true" width="100%" height="100%" allow="autoplay; fullscreen; xr-spatial-tracking" xr-spatial-tracking execution-while-out-of-viewport execution-while-not-rendered web-share width="640" height="480" src="https://sketchfab.com/models/d6521362b37b48e3a82bce4911409303/embed?autostart=1&ui_animations=0&ui_infos=0&ui_stop=0&ui_inspector=0&ui_ar=0&ui_help=0&ui_settings=0&ui_vr=0&ui_fullscreen=0&ui_annotations=0&ui_theme=dark"> </iframe> </div>
|
||||
<script type="text/javascript">
|
||||
var iframe = document.getElementById( 'api-frame' );
|
||||
var uid = '7w7pAfrCfjovwykkEeRFLGw5SXS';
|
||||
var client = new Sketchfab( iframe );
|
||||
client.init( uid, {
|
||||
success: function onSuccess( api ){
|
||||
api.start();
|
||||
api.addEventListener( 'viewerready', function() {
|
||||
console.log( 'Viewer is ready' );
|
||||
} );
|
||||
},
|
||||
error: function onError() {
|
||||
console.log( 'Viewer error' );
|
||||
}
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user