Skip to content

Commit

Permalink
prepare demo
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Sep 13, 2024
1 parent 83adff3 commit 62ab433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ <h2 data-hide-demo>Push</h2>
<script>
const params = new URLSearchParams(window.location.search)
if (null !== params.get('demo')) {
[].slice.call(document.querySelectorAll('[data-hide-demo]')).forEach(e => e.style.display = 'none')
[].slice.call(document.querySelectorAll('[data-style-demo]')).forEach(e => e.setAttribute('class', e.dataset.styleDemo))
[].slice.call(document.querySelectorAll('[data-hide-demo]')).forEach(e => e.style.display = 'none');
[].slice.call(document.querySelectorAll('[data-style-demo]')).forEach(e => e.setAttribute('class', e.dataset.styleDemo));
}
</script>
</body>
Expand Down

0 comments on commit 62ab433

Please sign in to comment.