Settings refactor / add birb
This commit is contained in:
17
_includes/birb.njk
Normal file
17
_includes/birb.njk
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- Birb -->
|
||||
<script>
|
||||
const showBirb = () => {
|
||||
script = document.createElement('script');
|
||||
script.setAttribute("src", "https://cdn.jsdelivr.net/gh/IdreesInc/Pocket-Bird@main/dist/web/birb.embed.js");
|
||||
document.body.appendChild(script);
|
||||
};
|
||||
|
||||
const hideBirb = () => {
|
||||
window.location.reload();
|
||||
};
|
||||
|
||||
const noBirb = () => {
|
||||
console.info("Settings: Not showing birb :[");
|
||||
}
|
||||
</script>
|
||||
<!-- /Birb -->
|
||||
Reference in New Issue
Block a user