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

less chrome on huggingface spaces

Browse files
Files changed (2) hide show
  1. index.html +5 -2
  2. main.js +3 -0
index.html CHANGED
@@ -172,13 +172,16 @@
172
  border-radius: 10px;
173
  font-size: x-small;
174
  }
 
 
 
175
  </style>
176
  </head>
177
  <body>
178
  <div id="info">
179
- <h3>WebGL 3D Gaussian Splat Viewer</h3>
180
  <p>
181
- <small>
182
  By <a href="https://twitter.com/antimatter15">Kevin Kwok</a>.
183
  Code on
184
  <a href="https://github.com/antimatter15/splat">Github</a
 
172
  border-radius: 10px;
173
  font-size: x-small;
174
  }
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>
184
+ <small class="nohf">
185
  By <a href="https://twitter.com/antimatter15">Kevin Kwok</a>.
186
  Code on
187
  <a href="https://github.com/antimatter15/splat">Github</a
main.js CHANGED
@@ -1291,3 +1291,6 @@ main().catch((err) => {
1291
  document.getElementById("spinner").style.display = "none";
1292
  document.getElementById("message").innerText = err.toString();
1293
  });
 
 
 
 
1291
  document.getElementById("spinner").style.display = "none";
1292
  document.getElementById("message").innerText = err.toString();
1293
  });
1294
+
1295
+ if(location.host.includes('hf.space')) document.body.classList.add('nohf');
1296
+