Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Views: 39603
1
//- the main application -- webpack adds the css, lib and smc assets during compilation
2
3
doctype html
4
5
html(lang="en")
6
head
7
include _inc_head.pug
8
title= fulltitle
9
body
10
style.
11
#{require('!css?minimize!app-startup-style.css')}
12
div#smc-startup-banner
13
div.banner-blink
14
img(src=require('!url?mimetype=image/svg+xml!cocalc-icon-white-transparent.svg'))
15
div.banner-error
16
div.message
17
| Something bad must have happened.
18
br/
19
| Try <a href="javascript:location.reload(true);">reloading the page</a> while holding your shift-key.
20
div#smc-startup-banner-status
21
| Initializing ...
22
23
//- this sets the global window.app_base_url: either statically via the BASE_URL template variable, or dynamically via hub
24
- var BASE_URL = htmlWebpackPlugin.options.BASE_URL
25
if typeof BASE_URL !== "undefined" && BASE_URL !== null
26
script(type="text/javascript").
27
window.app_base_url='#{BASE_URL}';
28
else
29
script(type="text/javascript" src="base_url.js")
30
31
script(type="text/javascript").
32
function smcLoadStatus(msg) {
33
try { document.getElementById("smc-startup-banner-status").innerHTML = msg; } catch(e) {}}
34
35
//- Hidden div to accurately determine if page is in responsive mode
36
div.webapp-responsive-mode-test
37
38
div#smc-react-container.page-container
39
40
include _inc_analytics.pug
41
42