diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/site.css | 30 | ||||
| -rw-r--r-- | static/site.html | 11 |
2 files changed, 23 insertions, 18 deletions
diff --git a/static/site.css b/static/site.css index a42f15a..1daafca 100644 --- a/static/site.css +++ b/static/site.css @@ -62,71 +62,73 @@ body { @font-face { font-family: "Roboto"; - src: url("SITE_PATH/static/fonts/Roboto-Bold.ttf") format("truetype"); + src: url("{{SITE_PATH}}/static/fonts/Roboto-Bold.ttf") format("truetype"); font-weight: bold; } @font-face { font-family: "Roboto"; - src: url("SITE_PATH/static/fonts/Roboto-BoldItalic.ttf") format("truetype"); + src: url("{{SITE_PATH}}/static/fonts/Roboto-BoldItalic.ttf") + format("truetype"); font-weight: bold; font-style: italic; } /* @font-face { font-family: 'Roboto'; - src: url('SITE_PATH/static/fonts/Roboto-Light.ttf') format('truetype'); + src: url('{{SITE_PATH}}/static/fonts/Roboto-Light.ttf') format('truetype'); font-weight: 100; } @font-face { font-family: 'Roboto'; - src: url('SITE_PATH/static/fonts/Roboto-LightItalic.ttf') format('truetype'); + src: url('{{SITE_PATH}}/static/fonts/Roboto-LightItalic.ttf') format('truetype'); font-weight: 100; } */ @font-face { font-family: "Roboto"; - src: url("SITE_PATH/static/fonts/Roboto-Medium.ttf") format("truetype"); + src: url("{{SITE_PATH}}/static/fonts/Roboto-Medium.ttf") format("truetype"); font-weight: 300; } @font-face { font-family: "Roboto"; - src: url("SITE_PATH/static/fonts/Roboto-MediumItalic.ttf") format("truetype"); + src: url("{{SITE_PATH}}/static/fonts/Roboto-MediumItalic.ttf") + format("truetype"); font-style: italic; font-weight: 300; } @font-face { font-family: "Roboto"; - src: url("SITE_PATH/static/fonts/Roboto-Regular.ttf") format("truetype"); + src: url("{{SITE_PATH}}/static/fonts/Roboto-Regular.ttf") format("truetype"); } @font-face { font-family: "Roboto"; - src: url("SITE_PATH/static/fonts/Roboto-Italic.ttf") format("truetype"); + src: url("{{SITE_PATH}}/static/fonts/Roboto-Italic.ttf") format("truetype"); font-style: italic; } /* @font-face { font-family: 'Roboto'; - src: url('SITE_PATH/static/fonts/Roboto-Thin.ttf') format('truetype'); + src: url('{{SITE_PATH}}/static/fonts/Roboto-Thin.ttf') format('truetype'); font-weight: 100; } @font-face { font-family: 'Roboto'; - src: url('SITE_PATH/static/fonts/Roboto-ThinItalic.ttf') format('truetype'); + src: url('{{SITE_PATH}}/static/fonts/Roboto-ThinItalic.ttf') format('truetype'); font-weight: 100; } */ .tile.hand_up { - cursor: url(SITE_PATH/static/img/hand_up.png) 40 10, pointer; + cursor: url({{SITE_PATH}}/static/img/hand_up.png) 40 10, pointer; } .tile.hand_right { - cursor: url(SITE_PATH/static/img/hand_right.png) 90 40, pointer; + cursor: url({{SITE_PATH}}/static/img/hand_right.png) 90 40, pointer; } .tile.hand_down { - cursor: url(SITE_PATH/static/img/hand_down.png) 60 90, pointer; + cursor: url({{SITE_PATH}}/static/img/hand_down.png) 60 90, pointer; } .tile.hand_left { - cursor: url(SITE_PATH/static/img/hand_left.png) 10 60, pointer; + cursor: url({{SITE_PATH}}/static/img/hand_left.png) 10 60, pointer; } .tile.unclickable { cursor: default; diff --git a/static/site.html b/static/site.html index 9a41081..5c57968 100644 --- a/static/site.html +++ b/static/site.html @@ -2,17 +2,20 @@ <html> <head> <meta charset="UTF-8"> -<title>PAGE_TITLE</title> +<title>{{PAGE_TITLE}}</title> <meta name="viewport" content="width=device-width,initial-scale=1.0"> -CUSTOM_HEADER <link rel="stylesheet" type="text/css" href="SITE_PATH/site.css" /> +{{CUSTOM_HEADER}} <link rel="stylesheet" type="text/css" href="{{SITE_PATH}}/site.css" /> <style> html { background: #000; } +._swimmer_content { opacity: 0; height: 1px; width: 1px; overflow: hidden; } </style> </head> -<body> +<body><div class="_swimmer_content">{{CUSTOM_CONTENT}}</div> <script> var s = document.createElement('script'); -s.setAttribute('src', 'BUNDLE_PATH?' + Math.round(Date.now() / 30000)) +s.setAttribute('src', '{{BUNDLE_PATH}}?' + Math.round(Date.now() / 30000)) document.body.appendChild(s) +document.querySelector("._swimmer_content").remove() </script> +{{CUSTOM_FOOTER}} </html> |
