Spaces:
Sleeping
Sleeping
Commit
·
ea7d9bf
1
Parent(s):
7911e9c
changes
Browse files- templates/index.html +24 -0
templates/index.html
CHANGED
|
@@ -16,6 +16,30 @@
|
|
| 16 |
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" rel="stylesheet">
|
| 17 |
<!-- Custom styles -->
|
| 18 |
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</head>
|
| 20 |
<body>
|
| 21 |
<div class="app-container">
|
|
|
|
| 16 |
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" rel="stylesheet">
|
| 17 |
<!-- Custom styles -->
|
| 18 |
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
|
| 19 |
+
<link rel="icon" type="image/png" href="{{ url_for('static', filename='images/favicon.png') }}">
|
| 20 |
+
<script>
|
| 21 |
+
document.fonts.ready.then(() => {
|
| 22 |
+
var canvas = document.createElement('canvas');
|
| 23 |
+
canvas.width = 64;
|
| 24 |
+
canvas.height = 64;
|
| 25 |
+
var ctx = canvas.getContext('2d');
|
| 26 |
+
ctx.fillStyle = '#4285f4'; // use desired color matching the logo-icon
|
| 27 |
+
ctx.font = '48px "Material Icons"';
|
| 28 |
+
ctx.textAlign = 'center';
|
| 29 |
+
ctx.textBaseline = 'middle';
|
| 30 |
+
ctx.fillText('auto_awesome', 32, 32);
|
| 31 |
+
var dataURL = canvas.toDataURL();
|
| 32 |
+
var link = document.querySelector('link[rel="icon"]');
|
| 33 |
+
if(link) {
|
| 34 |
+
link.href = dataURL;
|
| 35 |
+
} else {
|
| 36 |
+
var newLink = document.createElement('link');
|
| 37 |
+
newLink.rel = 'icon';
|
| 38 |
+
newLink.href = dataURL;
|
| 39 |
+
document.head.appendChild(newLink);
|
| 40 |
+
}
|
| 41 |
+
});
|
| 42 |
+
</script>
|
| 43 |
</head>
|
| 44 |
<body>
|
| 45 |
<div class="app-container">
|