Skip to content

Commit 567d6aa

Browse files
committed
Add a notifications bar for the murena referrals programm
1 parent bada2df commit 567d6aa

File tree

10 files changed

+148
-5
lines changed

10 files changed

+148
-5
lines changed

public/404.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@
5353

5454
});
5555
});
56+
});
57+
document.addEventListener('DOMContentLoaded', () => {
58+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
59+
const $notification = $delete.parentNode;
5660

61+
$delete.addEventListener('click', () => {
62+
$notification.parentNode.removeChild($notification);
63+
});
64+
});
5765
});
5866
</script>
5967
</head>
@@ -103,6 +111,14 @@
103111
</div>
104112
</nav>
105113
<!-- Nav End -->
114+
<div class="notification is-primary is-light">
115+
<button class="delete"></button>
116+
<center>
117+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
118+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
119+
our project at no extra cost to you.
120+
</center>
121+
</div>
106122

107123
<!-- Main -->
108124

public/download.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@
5151

5252
});
5353
});
54+
});
55+
document.addEventListener('DOMContentLoaded', () => {
56+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
57+
const $notification = $delete.parentNode;
5458

59+
$delete.addEventListener('click', () => {
60+
$notification.parentNode.removeChild($notification);
61+
});
62+
});
5563
});
5664
</script>
5765
</head>
@@ -101,6 +109,14 @@
101109
</div>
102110
</nav>
103111
<!-- Nav End -->
112+
<div class="notification is-primary is-light">
113+
<button class="delete"></button>
114+
<center>
115+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
116+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
117+
our project at no extra cost to you.
118+
</center>
119+
</div>
104120

105121
<!-- Main -->
106122

public/faq.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@
5151

5252
});
5353
});
54+
});
55+
document.addEventListener('DOMContentLoaded', () => {
56+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
57+
const $notification = $delete.parentNode;
5458

59+
$delete.addEventListener('click', () => {
60+
$notification.parentNode.removeChild($notification);
61+
});
62+
});
5563
});
5664
</script>
5765
</head>
@@ -101,6 +109,14 @@
101109
</div>
102110
</nav>
103111
<!-- Nav End -->
112+
<div class="notification is-primary is-light">
113+
<button class="delete"></button>
114+
<center>
115+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
116+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
117+
our project at no extra cost to you.
118+
</center>
119+
</div>
104120

105121
<!-- Main -->
106122

public/feedback.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@
5353

5454
});
5555
});
56+
});
57+
document.addEventListener('DOMContentLoaded', () => {
58+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
59+
const $notification = $delete.parentNode;
5660

61+
$delete.addEventListener('click', () => {
62+
$notification.parentNode.removeChild($notification);
63+
});
64+
});
5765
});
5866
</script>
5967
</head>
@@ -103,6 +111,14 @@
103111
</div>
104112
</nav>
105113
<!-- Nav End -->
114+
<div class="notification is-primary is-light">
115+
<button class="delete"></button>
116+
<center>
117+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
118+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
119+
our project at no extra cost to you.
120+
</center>
121+
</div>
106122

107123
<!-- Main -->
108124

public/imprint.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@
5353

5454
});
5555
});
56+
});
57+
document.addEventListener('DOMContentLoaded', () => {
58+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
59+
const $notification = $delete.parentNode;
5660

61+
$delete.addEventListener('click', () => {
62+
$notification.parentNode.removeChild($notification);
63+
});
64+
});
5765
});
5866
</script>
5967
</head>
@@ -103,6 +111,14 @@
103111
</div>
104112
</nav>
105113
<!-- Nav End -->
114+
<div class="notification is-primary is-light">
115+
<button class="delete"></button>
116+
<center>
117+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
118+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
119+
our project at no extra cost to you.
120+
</center>
121+
</div>
106122

107123
<!-- Main -->
108124

public/index.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@
5151

5252
});
5353
});
54+
});
55+
document.addEventListener('DOMContentLoaded', () => {
56+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
57+
const $notification = $delete.parentNode;
5458

59+
$delete.addEventListener('click', () => {
60+
$notification.parentNode.removeChild($notification);
61+
});
62+
});
5563
});
5664
</script>
5765
</head>
@@ -101,6 +109,14 @@
101109
</div>
102110
</nav>
103111
<!-- Nav End -->
112+
<div class="notification is-primary is-light">
113+
<button class="delete"></button>
114+
<center>
115+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
116+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
117+
our project at no extra cost to you.
118+
</center>
119+
</div>
104120

105121
<!-- Main -->
106122

@@ -196,8 +212,7 @@ <h4 class="is-size-4 has-text-weight-bold mb-2">Free & Open Source</h4>
196212
</svg></span>
197213
<div class="ml-3">
198214
<h4 class="is-size-4 has-text-weight-bold mb-2">Supports many devices</h4>
199-
<p class="subtitle has-text-grey">Built-in <a
200-
href="supported-devices.html">support for 83
215+
<p class="subtitle has-text-grey">Built-in <a href="supported-devices.html">support for 83
201216
devices</a> and an
202217
easy extension system.</p>
203218
</div>

public/privacy.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@
5353

5454
});
5555
});
56+
});
57+
document.addEventListener('DOMContentLoaded', () => {
58+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
59+
const $notification = $delete.parentNode;
5660

61+
$delete.addEventListener('click', () => {
62+
$notification.parentNode.removeChild($notification);
63+
});
64+
});
5765
});
5866
</script>
5967
</head>
@@ -103,6 +111,14 @@
103111
</div>
104112
</nav>
105113
<!-- Nav End -->
114+
<div class="notification is-primary is-light">
115+
<button class="delete"></button>
116+
<center>
117+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
118+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
119+
our project at no extra cost to you.
120+
</center>
121+
</div>
106122

107123
<!-- Main -->
108124

public/supported-devices.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@
5151

5252
});
5353
});
54+
});
55+
document.addEventListener('DOMContentLoaded', () => {
56+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
57+
const $notification = $delete.parentNode;
5458

59+
$delete.addEventListener('click', () => {
60+
$notification.parentNode.removeChild($notification);
61+
});
62+
});
5563
});
5664
</script>
5765
</head>
@@ -101,6 +109,14 @@
101109
</div>
102110
</nav>
103111
<!-- Nav End -->
112+
<div class="notification is-primary is-light">
113+
<button class="delete"></button>
114+
<center>
115+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
116+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
117+
our project at no extra cost to you.
118+
</center>
119+
</div>
104120

105121
<!-- Main -->
106122

templates/base.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@
5050

5151
});
5252
});
53+
});
54+
document.addEventListener('DOMContentLoaded', () => {
55+
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
56+
const $notification = $delete.parentNode;
5357

58+
$delete.addEventListener('click', () => {
59+
$notification.parentNode.removeChild($notification);
60+
});
61+
});
5462
});
5563
</script>
5664
</head>
@@ -100,6 +108,14 @@
100108
</div>
101109
</nav>
102110
<!-- Nav End -->
111+
<div class="notification is-primary is-light">
112+
<button class="delete"></button>
113+
<center>
114+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
115+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
116+
our project at no extra cost to you.
117+
</center>
118+
</div>
103119

104120
<!-- Main -->
105121
{% block content %}

templates/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ <h4 class="is-size-4 has-text-weight-bold mb-2">Free & Open Source</h4>
9595
</svg></span>
9696
<div class="ml-3">
9797
<h4 class="is-size-4 has-text-weight-bold mb-2">Supports many devices</h4>
98-
<p class="subtitle has-text-grey">Built-in <a
99-
href="supported-devices.html">support for {{ n_supported_devices }}
98+
<p class="subtitle has-text-grey">Built-in <a href="supported-devices.html">support for {{
99+
n_supported_devices }}
100100
devices</a> and an
101101
easy extension system.</p>
102102
</div>
@@ -387,4 +387,4 @@ <h4 class="subtitle is-5">Donate to the project</h4>
387387
</div>
388388
</section>
389389
<!-- Contribution Banner End -->
390-
{% endblock %}
390+
{% endblock %}

0 commit comments

Comments
 (0)