antimatter15 commited on
Commit
7b845e0
1 Parent(s): 45b813e

more huggingface theming

Browse files
Files changed (2) hide show
  1. index.html +9 -2
  2. main.js +0 -1
index.html CHANGED
@@ -29,7 +29,7 @@
29
  z-index: 100;
30
  position: absolute;
31
  top: 10px;
32
- left: 10px;
33
  }
34
  h3 {
35
  margin: 5px 0;
@@ -137,6 +137,7 @@
137
 
138
  details {
139
  font-size: small;
 
140
  }
141
 
142
  #progress {
@@ -175,9 +176,15 @@
175
  body.nohf .nohf {
176
  display: none;
177
  }
 
 
 
178
  </style>
179
  </head>
180
  <body>
 
 
 
181
  <div id="info">
182
  <h3 class="nohf">WebGL 3D Gaussian Splat Viewer</h3>
183
  <p>
@@ -250,6 +257,6 @@ other
250
  <div id="quality">
251
  <span id="fps"></span>
252
  </div>
253
- <script src="main.js?"></script>
254
  </body>
255
  </html>
 
29
  z-index: 100;
30
  position: absolute;
31
  top: 10px;
32
+ left: 15px;
33
  }
34
  h3 {
35
  margin: 5px 0;
 
137
 
138
  details {
139
  font-size: small;
140
+
141
  }
142
 
143
  #progress {
 
176
  body.nohf .nohf {
177
  display: none;
178
  }
179
+ body.nohf #progress {
180
+ background: #ff9d0d;
181
+ }
182
  </style>
183
  </head>
184
  <body>
185
+ <script>
186
+ if(location.host.includes('hf.space')) document.body.classList.add('nohf');
187
+ </script>
188
  <div id="info">
189
  <h3 class="nohf">WebGL 3D Gaussian Splat Viewer</h3>
190
  <p>
 
257
  <div id="quality">
258
  <span id="fps"></span>
259
  </div>
260
+ <script src="main.js"></script>
261
  </body>
262
  </html>
main.js CHANGED
@@ -1292,5 +1292,4 @@ main().catch((err) => {
1292
  document.getElementById("message").innerText = err.toString();
1293
  });
1294
 
1295
- if(location.host.includes('hf.space')) document.body.classList.add('nohf');
1296
 
 
1292
  document.getElementById("message").innerText = err.toString();
1293
  });
1294
 
 
1295