hmb HF Staff commited on
Commit
121dc94
verified
1 Parent(s): ce8273b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -669,6 +669,23 @@ button.action:active {{
669
  height: clamp(420px, 56vh, 580px);
670
  position: relative;
671
  }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
672
  .figure-caption {{
673
  padding-top: 10px;
674
  font-size: 13px;
@@ -1122,6 +1139,7 @@ button.action:active {{
1122
  <div class="figure-note">click 路 any 路 year 路 for 路 dossier</div>
1123
  </div>
1124
  <div class="figure-frame">
 
1125
  <canvas id="chart"></canvas>
1126
  </div>
1127
  <div class="figure-caption">
@@ -1235,6 +1253,7 @@ async function loadData() {{
1235
  const compare = compareSelect.value;
1236
 
1237
  document.getElementById('findings').innerHTML = '<div class="loading">Gathering field notes</div>';
 
1238
  document.getElementById('split').classList.remove('active');
1239
  document.getElementById('dossier').style.display = 'none';
1240
  if (chart) {{ chart.destroy(); chart = null; }}
@@ -1305,6 +1324,7 @@ function renderFindings(data) {{
1305
 
1306
  function renderChart(data, compareData) {{
1307
  if (chart) chart.destroy();
 
1308
 
1309
  const ctx = document.getElementById('chart').getContext('2d');
1310
  const INK = '#1a1f18';
 
669
  height: clamp(420px, 56vh, 580px);
670
  position: relative;
671
  }}
672
+ .figure-loading {{
673
+ position: absolute;
674
+ inset: 0;
675
+ display: flex;
676
+ align-items: center;
677
+ justify-content: center;
678
+ font-family: 'Instrument Serif', serif;
679
+ font-style: italic;
680
+ font-size: 22px;
681
+ color: var(--ink-mute);
682
+ background: var(--paper-tint);
683
+ z-index: 5;
684
+ }}
685
+ .figure-loading::after {{
686
+ content: ' 路';
687
+ animation: ellipsis 1.4s infinite;
688
+ }}
689
  .figure-caption {{
690
  padding-top: 10px;
691
  font-size: 13px;
 
1139
  <div class="figure-note">click 路 any 路 year 路 for 路 dossier</div>
1140
  </div>
1141
  <div class="figure-frame">
1142
+ <div id="chart-loading" class="figure-loading" style="display:none">Gathering field notes</div>
1143
  <canvas id="chart"></canvas>
1144
  </div>
1145
  <div class="figure-caption">
 
1253
  const compare = compareSelect.value;
1254
 
1255
  document.getElementById('findings').innerHTML = '<div class="loading">Gathering field notes</div>';
1256
+ document.getElementById('chart-loading').style.display = 'flex';
1257
  document.getElementById('split').classList.remove('active');
1258
  document.getElementById('dossier').style.display = 'none';
1259
  if (chart) {{ chart.destroy(); chart = null; }}
 
1324
 
1325
  function renderChart(data, compareData) {{
1326
  if (chart) chart.destroy();
1327
+ document.getElementById('chart-loading').style.display = 'none';
1328
 
1329
  const ctx = document.getElementById('chart').getContext('2d');
1330
  const INK = '#1a1f18';