jbilcke-hf HF staff commited on
Commit
d65c38a
1 Parent(s): f083839

working on the beta

Browse files
Files changed (1) hide show
  1. public/index.html +10 -0
public/index.html CHANGED
@@ -8,7 +8,10 @@
8
  <body
9
  x-data="app()" x-init="init()"
10
  class="fixed inset-0 bg-[rgb(0,0,0)] flex flex-col w-full items-center justify-center">
 
 
11
  <div
 
12
  class="fixed w-full z-20 top-4 px-6 font-mono text-white flex items-center justify-between space-x-1"
13
  style="text-shadow: 0px 0px 3px #000000">
14
 
@@ -47,6 +50,7 @@
47
  <script>
48
  function app() {
49
  return {
 
50
  channels: {
51
  '1': {
52
  id: '1',
@@ -74,6 +78,12 @@ function app() {
74
  const urlParams = new URLSearchParams(window.location.search)
75
 
76
  const requestedChannelId = `${urlParams.get('channel') || ''}`
 
 
 
 
 
 
77
 
78
  const defaultChannel = this.channels[this.defaultChannelId]
79
 
 
8
  <body
9
  x-data="app()" x-init="init()"
10
  class="fixed inset-0 bg-[rgb(0,0,0)] flex flex-col w-full items-center justify-center">
11
+ <div x-show="!enabled">this space has been disabled by its owner</div>
12
+
13
  <div
14
+ x-show="enabled"
15
  class="fixed w-full z-20 top-4 px-6 font-mono text-white flex items-center justify-between space-x-1"
16
  style="text-shadow: 0px 0px 3px #000000">
17
 
 
50
  <script>
51
  function app() {
52
  return {
53
+ enabled: false,
54
  channels: {
55
  '1': {
56
  id: '1',
 
78
  const urlParams = new URLSearchParams(window.location.search)
79
 
80
  const requestedChannelId = `${urlParams.get('channel') || ''}`
81
+
82
+ this.enabled = `${urlParams.get('beta') || 'false'}` === 'true'
83
+
84
+ if (!this.enabled) {
85
+ return
86
+ }
87
 
88
  const defaultChannel = this.channels[this.defaultChannelId]
89