Welcome to mirror list, hosted at ThFree Co, Russian Federation.

head.html « partials « layouts - github.com/darshanbaral/aafu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d160e262552000aa7055641ef749555aca952d7 (plain)
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
<head>
  {{ partial "meta" . }}

  <link
    rel="stylesheet"
    href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
    integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
    crossorigin="anonymous"
  />
  <link
    rel="stylesheet"
    href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
    integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU"
    crossorigin="anonymous"
  />
  <link
    rel="stylesheet"
    href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css"
  />
  <link
    rel="stylesheet"
    href="//fonts.googleapis.com/css?family=Didact+Gothic%7CRoboto:400%7CRoboto+Mono"
  />

  <link
    id="color-CSS"
    rel="stylesheet"
    href="{{ print `/css/aafu_` .Site.Params.theme.mainTheme `.css` | relURL }}"
  />
  <link rel="stylesheet" href="{{ `/css/aafu.css` | relURL }}" />

  <script>
    var themeColor = document.querySelector("meta[name=theme-color]");
    window.onload = function() {
      themeColor.content = getComputedStyle(document.body)["background-color"];
      let defaultActivePanel = document.querySelector(".accordion.active")
        .nextElementSibling;
      defaultActivePanel.style.maxHeight =
        defaultActivePanel.scrollHeight + "px";
    };
    window.onresize = function() {
      document.querySelector(".active").nextElementSibling.style.maxHeight =
        document.querySelector(".active").nextElementSibling.scrollHeight +
        "px";
    };
  </script>
</head>