index.html 730 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{{page_config['appName']}}</title>
  5. </head>
  6. <body>
  7. <script id='jupyter-config-data' type="application/json">{
  8. {% for key, value in page_config.items() -%}
  9. "{{ key }}": "{{ value }}",
  10. {% endfor -%}
  11. "baseUrl": "{{base_url}}",
  12. "wsUrl": "{{ws_url}}"
  13. }</script>
  14. <script src="{{page_config['publicUrl']}}bundle.js" main="index"></script>
  15. <script type="text/javascript">
  16. /* Remove token from URL. */
  17. (function () {
  18. var parsedUrl = new URL(window.location.href);
  19. if (parsedUrl.searchParams.get('token')) {
  20. parsedUrl.searchParams.delete('token');
  21. window.history.replaceState({ }, '', parsedUrl.href);
  22. }
  23. })();
  24. </script>
  25. </body>
  26. </html>