layout.erb 2.66 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Join the totem project to learn more about security on the web">

    <!-- Use the title from a page's frontmatter if it has one -->
    <title>
        <% if current_page.data.title %>
            <%= config[:site_title] %> | <%= current_page.data.title %>
        <% else %>
            <%= config[:site_title] %>
        <% end %>
    </title>
18
19
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
Chris Snijder's avatar
Chris Snijder committed
20
    <link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
21
22
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="manifest" href="/site.webmanifest">
Chris Snijder's avatar
Chris Snijder committed
23
    <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#003333">
24
25
    <meta name="apple-mobile-web-app-title" content="Totem">
    <meta name="application-name" content="Totem">
Chris Snijder's avatar
Chris Snijder committed
26
27
    <meta name="msapplication-TileColor" content="#003333">
    <meta name="theme-color" content="#f7f7f7">
28
29
30
31
32
33
34
35
    <%= stylesheet_link_tag "bootstrap" %>
    <%= stylesheet_link_tag "base" %>

    <!-- Custom fonts for this template -->
    <link href="https://fonts.googleapis.com/css?family=Noto+Sans|Ubuntu:500,700" rel="stylesheet" type="text/css">

    <!-- Custom styles for this template -->
    <%= stylesheet_link_tag "agency" %>
36
    <%= stylesheet_link_tag "custom" %>
37
38
  </head>
  <body id="page-top">
39
40
    <%= partial "partials/nav" %>

41
42
    <%= yield %>

43
44
    <%= partial "partials/footer" %>

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
    <%= javascript_include_tag "base" %>
    <%= javascript_include_tag "bootstrap" %>
    <%= javascript_include_tag "agency" %>

    <!-- Contact form JavaScript -->
    <%= javascript_include_tag "jqBootstrapValidation" %>
    <%= javascript_include_tag "contact_me" %>

    <script>
      $( function() {
      $( "#accordion" ).accordion({
      collapsible: true
      });
      } );
    </script>

    <!-- accordion script -->
    <script>
      var acc = document.getElementsByClassName("accordion");
      var i;

      for (i = 0; i < acc.length; i++) {
          acc[i].onclick = function(){
              this.classList.toggle("active");
              var panel = this.nextElementSibling;
              if (panel.style.display === "block") {
                  panel.style.display = "none";
              } else {
                  panel.style.display = "block";
              }
          }
      }
    </script>
  </body>
</html>