Commit 8abc5544 authored by Jacob Durrant's avatar Jacob Durrant

Minor bug fix.

parent 6075f3c2
......@@ -45,18 +45,17 @@
</div> -->
<hr class="mt-3 mb-4" style="border-top:0;" />
<h5>Graphics Settings</h5>
<div class="alert alert-warning">
Molecular shadows can slow navigation and may crash some mobile
browsers.
</div>
<div class="alert alert-warning enhance-resolution-container" style="display:none;">
<!-- <div class="alert alert-warning enhance-resolution-container" style="display:none;">
Your browser does not support WebXR. ProteinVR will try to use the
older WebVR API instead.
</div>
</div> -->
<div class="row">
<div class="col-md-12">
<div class="form-check">
<!-- <label for="shadows"></label> -->
<label for="shadows">
Molecular shadows can slow navigation and may crash some
mobile browsers.
</label>
<div id="shadows">
<input style="margin-left: 0;" type="checkbox" class="form-check-input" id="molecular-shadows">
<label style="padding-left: 1.5rem;" class="form-check-label" for="molecular-shadows">Allow Molecules to Cast Subtle Shadows</label>
......@@ -69,8 +68,11 @@
<div class="col-md-12">
<div class="form-check">
<label for="enhance-resolution">
Enhanced VR resolution can cause problems on some headsets
(e.g., graphics in only one eye).
<!-- can cause problems on some headsets.--><!-- (e.g.,
graphics in only one eye, left-eye field of view impinges
on right, etc.).--> Try disabling enhanced VR resolution
if ProteinVR sends incongruous images to each eye in VR mode.
<!-- VR breaks on your device. -->
</label>
<div id="enhance-resolution">
<input style="margin-left: 0;" type="checkbox" class="form-check-input" id="set-hardware-scaling-level">
......
......@@ -90,7 +90,7 @@
if (window["webXRPolyfill"]["nativeWebXR"] !== true) {
var divs = document.getElementsByClassName("enhance-resolution-container");
for (var i = 0; i < warnings.length; i++) {
for (var i = 0; i < divs.length; i++) {
var div = divs[i];
div.style.display = "inline-block";
}
......
self.__precacheManifest=(self.__precacheManifest||[]).concat([{url:"app.d945908a28d2b0d4717e.js"},{revision:"2312a45481ec517fa1ca40915b21eca7",url:"environs/day/Baked.jpg"},{revision:"43c631be515cbeb9937ab023217a4bbe",url:"environs/day/scene.babylon"},{revision:"48e97da5e7ca9059fc9ba247a5c88c95",url:"environs/day/scene_info.json"},{revision:"950f337fb6127efdfa397be7dd9f09e7",url:"icon-512.png"},{revision:"a1ea8294c9eaf29a55c603b5d4713fed",url:"index.html"},{revision:"349dab0e94d65e29285909f4d1a7e73b",url:"js/jsfile.1.pep.min.js"},{revision:"5ffd8c0da3d8fd5572e8af4c561c585a",url:"js/jsfile.2.babylon.js"},{revision:"a81025306ba2e1beade5c66566d88e5f", url:"js/jsfile.3.babylonjs.loaders.min.js"},{revision:"6f2c02b06aeb34d575777bfe08664cc3",url:"js/jsfile.4.babylonjs.materials.min.js"},{revision:"f9270f0f71dfbf10ce0f621c712869f3",url:"js/jsfile.5.babylon.gui.min.js"},{revision:"234238f3c2b29147b0c916df74da6767",url:"js/jsfile.6.webxr-polyfill.min.js"},{revision:"5ebf585923e78467b669ac1d37e53704",url:"manifest.webmanifest"},{revision:"bdcbdfe12f132796c9ca72c8e23f75ab",url:"nanokid.sdf"},{revision:"7e923ad223e9f33e54d22e50cf2bcce5",url:"pages/css/bootstrap.min.css"},{revision:"9761f9bebd7ac17b88e7e89f23a8f2a9",url:"pages/css/style.css"},{revision:"9e765d88006f3be693420d1f2d1d60ed",url:"pages/help.html"},{revision:"de7f71c868c190a51e8e1c6e30fee321",url:"pages/help.html.js"}, {revision:"a267f1166e8a54cb3260c0f2a0a34dfe",url:"pages/load.html"},{revision:"b5e6ddc7495b8408521d9dfd0ff362fd",url:"pages/load.html.js"},{url:"runtime.d945908a28d2b0d4717e.js"},{revision:"ea6765382ee9d02efb437b644e2ae82d",url:"style.css"},{url:"vendors.d945908a28d2b0d4717e.js"},]);
\ No newline at end of file
self.__precacheManifest=(self.__precacheManifest||[]).concat([{url:"app.d945908a28d2b0d4717e.js"},{revision:"2312a45481ec517fa1ca40915b21eca7",url:"environs/day/Baked.jpg"},{revision:"43c631be515cbeb9937ab023217a4bbe",url:"environs/day/scene.babylon"},{revision:"48e97da5e7ca9059fc9ba247a5c88c95",url:"environs/day/scene_info.json"},{revision:"950f337fb6127efdfa397be7dd9f09e7",url:"icon-512.png"},{revision:"a1ea8294c9eaf29a55c603b5d4713fed",url:"index.html"},{revision:"349dab0e94d65e29285909f4d1a7e73b",url:"js/jsfile.1.pep.min.js"},{revision:"5ffd8c0da3d8fd5572e8af4c561c585a",url:"js/jsfile.2.babylon.js"},{revision:"a81025306ba2e1beade5c66566d88e5f", url:"js/jsfile.3.babylonjs.loaders.min.js"},{revision:"6f2c02b06aeb34d575777bfe08664cc3",url:"js/jsfile.4.babylonjs.materials.min.js"},{revision:"f9270f0f71dfbf10ce0f621c712869f3",url:"js/jsfile.5.babylon.gui.min.js"},{revision:"234238f3c2b29147b0c916df74da6767",url:"js/jsfile.6.webxr-polyfill.min.js"},{revision:"5ebf585923e78467b669ac1d37e53704",url:"manifest.webmanifest"},{revision:"bdcbdfe12f132796c9ca72c8e23f75ab",url:"nanokid.sdf"},{revision:"7e923ad223e9f33e54d22e50cf2bcce5",url:"pages/css/bootstrap.min.css"},{revision:"9761f9bebd7ac17b88e7e89f23a8f2a9",url:"pages/css/style.css"},{revision:"9e765d88006f3be693420d1f2d1d60ed",url:"pages/help.html"},{revision:"de7f71c868c190a51e8e1c6e30fee321",url:"pages/help.html.js"}, {revision:"98a49384bce0eab3745e64b0fd26c0d0",url:"pages/load.html"},{revision:"80a6c35d9c45a0ba15f770e8b0ed187f",url:"pages/load.html.js"},{url:"runtime.d945908a28d2b0d4717e.js"},{revision:"ea6765382ee9d02efb437b644e2ae82d",url:"style.css"},{url:"vendors.d945908a28d2b0d4717e.js"},]);
\ No newline at end of file
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");importScripts("precache-manifest.9f58444ff524bfa30fafe1fdaf45e6e8.js");workbox.core.skipWaiting();workbox.core.clientsClaim();self.__precacheManifest=[].concat(self.__precacheManifest||[]);workbox.precaching.precacheAndRoute(self.__precacheManifest,{});workbox.routing.registerRoute(/\./,new workbox.strategies.NetworkFirst,"GET");
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");importScripts("precache-manifest.b0a64eb8bf2ec0d66a01596169678f54.js");workbox.core.skipWaiting();workbox.core.clientsClaim();self.__precacheManifest=[].concat(self.__precacheManifest||[]);workbox.precaching.precacheAndRoute(self.__precacheManifest,{});workbox.routing.registerRoute(/\./,new workbox.strategies.NetworkFirst,"GET");
No preview for this file type
......@@ -45,18 +45,17 @@
</div> -->
<hr class="mt-3 mb-4" style="border-top:0;" />
<h5>Graphics Settings</h5>
<div class="alert alert-warning">
Molecular shadows can slow navigation and may crash some mobile
browsers.
</div>
<div class="alert alert-warning enhance-resolution-container" style="display:none;">
<!-- <div class="alert alert-warning enhance-resolution-container" style="display:none;">
Your browser does not support WebXR. ProteinVR will try to use the
older WebVR API instead.
</div>
</div> -->
<div class="row">
<div class="col-md-12">
<div class="form-check">
<!-- <label for="shadows"></label> -->
<label for="shadows">
Molecular shadows can slow navigation and may crash some
mobile browsers.
</label>
<div id="shadows">
<input style="margin-left: 0;" type="checkbox" class="form-check-input" id="molecular-shadows">
<label style="padding-left: 1.5rem;" class="form-check-label" for="molecular-shadows">Allow Molecules to Cast Subtle Shadows</label>
......@@ -69,8 +68,11 @@
<div class="col-md-12">
<div class="form-check">
<label for="enhance-resolution">
Enhanced VR resolution can cause problems on some headsets
(e.g., graphics in only one eye).
<!-- can cause problems on some headsets.--><!-- (e.g.,
graphics in only one eye, left-eye field of view impinges
on right, etc.).--> Try disabling enhanced VR resolution
if ProteinVR sends incongruous images to each eye in VR mode.
<!-- VR breaks on your device. -->
</label>
<div id="enhance-resolution">
<input style="margin-left: 0;" type="checkbox" class="form-check-input" id="set-hardware-scaling-level">
......
......@@ -90,7 +90,7 @@
if (window["webXRPolyfill"]["nativeWebXR"] !== true) {
var divs = document.getElementsByClassName("enhance-resolution-container");
for (var i = 0; i < warnings.length; i++) {
for (var i = 0; i < divs.length; i++) {
var div = divs[i];
div.style.display = "inline-block";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment