Skip to content

Commit b26ef96

Browse files
authored
Merge pull request #31 from openandroidinstaller-dev/notification-bar-referral
Notification bar referral
2 parents 80b9804 + a55d258 commit b26ef96

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,12 +53,28 @@
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>
6068

6169
<body>
70+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
71+
<button class="delete"></button>
72+
<center>
73+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
74+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
75+
our project at no extra cost to you.
76+
</center>
77+
</div>
6278
<div>
6379
<!-- Nav -->
6480
<nav class="navbar py-4">

public/download.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,28 @@
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>
5866

5967
<body>
68+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
69+
<button class="delete"></button>
70+
<center>
71+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
72+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
73+
our project at no extra cost to you.
74+
</center>
75+
</div>
6076
<div>
6177
<!-- Nav -->
6278
<nav class="navbar py-4">

public/faq.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,28 @@
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>
5866

5967
<body>
68+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
69+
<button class="delete"></button>
70+
<center>
71+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
72+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
73+
our project at no extra cost to you.
74+
</center>
75+
</div>
6076
<div>
6177
<!-- Nav -->
6278
<nav class="navbar py-4">

public/feedback.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,28 @@
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>
6068

6169
<body>
70+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
71+
<button class="delete"></button>
72+
<center>
73+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
74+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
75+
our project at no extra cost to you.
76+
</center>
77+
</div>
6278
<div>
6379
<!-- Nav -->
6480
<nav class="navbar py-4">

public/imprint.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,28 @@
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>
6068

6169
<body>
70+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
71+
<button class="delete"></button>
72+
<center>
73+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
74+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
75+
our project at no extra cost to you.
76+
</center>
77+
</div>
6278
<div>
6379
<!-- Nav -->
6480
<nav class="navbar py-4">

public/index.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,28 @@
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>
5866

5967
<body>
68+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
69+
<button class="delete"></button>
70+
<center>
71+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
72+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
73+
our project at no extra cost to you.
74+
</center>
75+
</div>
6076
<div>
6177
<!-- Nav -->
6278
<nav class="navbar py-4">
@@ -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,12 +53,28 @@
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>
6068

6169
<body>
70+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
71+
<button class="delete"></button>
72+
<center>
73+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
74+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
75+
our project at no extra cost to you.
76+
</center>
77+
</div>
6278
<div>
6379
<!-- Nav -->
6480
<nav class="navbar py-4">

public/supported-devices.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,28 @@
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>
5866

5967
<body>
68+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
69+
<button class="delete"></button>
70+
<center>
71+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
72+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
73+
our project at no extra cost to you.
74+
</center>
75+
</div>
6076
<div>
6177
<!-- Nav -->
6278
<nav class="navbar py-4">

templates/base.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,28 @@
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>
5765

5866
<body>
67+
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
68+
<button class="delete"></button>
69+
<center>
70+
Buy a new or refurbished smartphone equipped with a free operating system through the <a
71+
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
72+
our project at no extra cost to you.
73+
</center>
74+
</div>
5975
<div>
6076
<!-- Nav -->
6177
<nav class="navbar py-4">

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)