Skip to content

Commit

Permalink
Merge pull request #31 from openandroidinstaller-dev/notification-bar…
Browse files Browse the repository at this point in the history
…-referral

Notification bar referral
  • Loading branch information
tsterbak authored Mar 3, 2024
2 parents 80b9804 + a55d258 commit b26ef96
Show file tree
Hide file tree
Showing 10 changed files with 148 additions and 5 deletions.
16 changes: 16 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
16 changes: 16 additions & 0 deletions public/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
16 changes: 16 additions & 0 deletions public/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
16 changes: 16 additions & 0 deletions public/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
16 changes: 16 additions & 0 deletions public/imprint.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
19 changes: 17 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down Expand Up @@ -196,8 +212,7 @@ <h4 class="is-size-4 has-text-weight-bold mb-2">Free & Open Source</h4>
</svg></span>
<div class="ml-3">
<h4 class="is-size-4 has-text-weight-bold mb-2">Supports many devices</h4>
<p class="subtitle has-text-grey">Built-in <a
href="supported-devices.html">support for 83
<p class="subtitle has-text-grey">Built-in <a href="supported-devices.html">support for 83
devices</a> and an
easy extension system.</p>
</div>
Expand Down
16 changes: 16 additions & 0 deletions public/privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
16 changes: 16 additions & 0 deletions public/supported-devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
16 changes: 16 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,28 @@

});
});
});
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
const $notification = $delete.parentNode;

$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
});
</script>
</head>

<body>
<div class="notification is-primary is-light" style="margin-bottom: 0rem;">
<button class="delete"></button>
<center>
Buy a new or refurbished smartphone equipped with a free operating system through the <a
href="https://murena.com/?sld=openandroidinstaller" target="_blank">murena referral program</a>! This supports
our project at no extra cost to you.
</center>
</div>
<div>
<!-- Nav -->
<nav class="navbar py-4">
Expand Down
6 changes: 3 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ <h4 class="is-size-4 has-text-weight-bold mb-2">Free & Open Source</h4>
</svg></span>
<div class="ml-3">
<h4 class="is-size-4 has-text-weight-bold mb-2">Supports many devices</h4>
<p class="subtitle has-text-grey">Built-in <a
href="supported-devices.html">support for {{ n_supported_devices }}
<p class="subtitle has-text-grey">Built-in <a href="supported-devices.html">support for {{
n_supported_devices }}
devices</a> and an
easy extension system.</p>
</div>
Expand Down Expand Up @@ -387,4 +387,4 @@ <h4 class="subtitle is-5">Donate to the project</h4>
</div>
</section>
<!-- Contribution Banner End -->
{% endblock %}
{% endblock %}

0 comments on commit b26ef96

Please sign in to comment.