index.html 902 B

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{{page_config['appName'] | e}}</title>
  5. </head>
  6. <body>
  7. {# Copy so we do not modify the page_config with updates. #}
  8. {% set page_config_full = page_config.copy() %}
  9. {# Set a dummy variable - we just want the side effect of the update. #}
  10. {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %}
  11. <script id="jupyter-config-data" type="application/json">
  12. {{ page_config_full | tojson }}
  13. </script>
  14. <script src="{{page_config['fullStaticUrl'] | e}}/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>