-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
99 lines (81 loc) · 4.79 KB
/
base.html
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!doctype html>
{%- set navigation_bar = get_menu(request.cookies) %}
<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="Filter the CTFTime Writeups RSS Feed">
<title>Writeup Feed Filter{% if title %} | {{ title }}{% endif %}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link href="{{ url_for_cache('static',filename='css/cover.css') }}" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static',filename='images/favicon/apple-touch-icon.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static',filename='images/favicon/favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static',filename='images/favicon/favicon-16x16.png') }}">
<link rel="manifest" href="{{ url_for('static',filename='other/site.webmanifest') }}">
{%- if page_id == PageIds.LOGIN.value -%}
<link rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/4.6.1/firebase-ui-auth.css" integrity="sha384-fU7f7ma6qe5N2qD5fIz4w42zqkWDLGxPUMCkPPYrQLDyuDQu1Bmt192lTHTPSuve" crossorigin="anonymous">
{%- endif %}
</head>
<body class="text-center" data-page-id="{{ page_id }}">
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="masthead mb-auto">
<div class="inner">
<h3 class="masthead-brand">Writeup Feed Filter</h3>
<nav class="nav nav-masthead justify-content-center">
{%- for href, id, caption in navigation_bar %}
<a href="{{ href|e }}" class="nav-link {% if id == active_page %} active {% endif %}" id="nav_link_{{ id|e }}">{{ caption|e }}</a>
{%- endfor %}
</nav>
</div>
</header>
<main role="main" class="inner cover">
{%- block content %}{% endblock %}
</main>
<footer class="mastfoot mt-auto">
<div class="inner">
<p><a href="https://github.com/Dvd848/filter-ctftime-writeups">Fork on Github</a> | <a href="/tos">Terms of Service</a></p>
</div>
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-app.js"></script>
<!-- SDKs for Firebase products -->
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-analytics.js"></script>
<script>
// Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyBqgj5JyYuKpCA0JH5JmWPmQ7tHOz9LtK0",
authDomain: "ctftime-writeups.firebaseapp.com",
databaseURL: "https://ctftime-writeups.firebaseio.com",
projectId: "ctftime-writeups",
storageBucket: "ctftime-writeups.appspot.com",
messagingSenderId: "726740654144",
appId: "1:726740654144:web:83363c90fdd446926867a5",
measurementId: "G-75TXBDKVLB"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
{% if local_constants is not defined -%}
{%- set local_constants = [] -%}
{%- endif -%}
var WriteupFeedFilter = WriteupFeedFilter || {};
WriteupFeedFilter.Constants = {};
(function(context)
{
{%- for name, value in get_flat_constants(local_constants).items() %}
context["{{ name }}"] = {% if value is number %} {{ value }}{% else %}"{{ value }}"{% endif %};
{%- endfor %}
})(WriteupFeedFilter.Constants);
</script>
<script src="https://www.gstatic.com/firebasejs/ui/4.6.1/firebase-ui-auth.js" integrity="sha384-V8Z2bJApanNgNWlK9kIuA+nX3ZbvujDbRL/mpQw6ajeGBLeZLB+YcBPRii9JTh9l" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script src="{{ url_for_cache('static',filename='js/logic.js') }}"></script>
<!-- Cover template for Bootstrap, by https://twitter.com/mdo -->
<!-- https://getbootstrap.com/docs/4.5/examples/cover/ -->
</body>
</html>