File size: 2,342 Bytes
947c08e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="theme-color" content="#B8C6DB"/>

    <meta name="google-site-verification" content="knMIh34LrSc899ygpmjg0RSM5NUnfI4ZGqw4eWJlklA" />
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="sitemap" type="application/xml" title="Sitemap" href="{% static 'sitemap.xml' %}" />

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="icon" type="image/x-icon" href="{% static 'media/ngs_logo.ico' %}">

    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="manifest" href="/manifest.webmanifest" >
    
    <title>{{ title }}</title>

    <meta name="description" content="Find informations about NGS Preah Sisowath High School Library."/>
    <meta name="keywords" content="NGS, Library, NGS Library, sisowath, high school">
    <meta name="author" content="{{creator}}">

</head>

<body font>
    {% csrf_token %}
    <div id="root">
        
    </div>
    <script>
        if ('serviceWorker' in navigator) {
            window.addEventListener('load', function() {
              navigator.serviceWorker.register('/sw.js').then(function(registration) {
                // Registration was successful
                console.log('ServiceWorker registration successful with scope: ', registration.scope);
              }, function(err) {
                // registration failed :(
                console.log('ServiceWorker registration failed: ', err);
              });
            });
          }
    </script>
    <script>
        var r = document.querySelector(':root');
        r.style.setProperty('--view-height', window.innerHeight + "px");
        r.style.setProperty('--view-width', window.innerWidth + "px");

        window.addEventListener('resize', function() {
            r.style.setProperty('--view-height', window.innerHeight + "px");
            r.style.setProperty('--view-width', window.innerWidth + "px");
            console.log(window.innerHeight)
        });

    </script>
    <script src="{% static "frontend/App.js" %}"></script>
</body>
</html>