diff options
author | Minteck <contact@minteck.org> | 2021-12-05 16:38:49 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-05 16:38:49 +0100 |
commit | 879a6237b186768356f99caf992f0d25d5ec8612 (patch) | |
tree | 733aacd4845e918b484d8f46951d925f05f91b4c /app/galaxy/private/footer.php | |
parent | 4bad8bcfb984cf017495b8fd31f174c32cebe805 (diff) | |
download | core-879a6237b186768356f99caf992f0d25d5ec8612.tar.gz core-879a6237b186768356f99caf992f0d25d5ec8612.tar.bz2 core-879a6237b186768356f99caf992f0d25d5ec8612.zip |
Commit
Diffstat (limited to 'app/galaxy/private/footer.php')
-rw-r--r-- | app/galaxy/private/footer.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/galaxy/private/footer.php b/app/galaxy/private/footer.php new file mode 100644 index 0000000..0e6e65c --- /dev/null +++ b/app/galaxy/private/footer.php @@ -0,0 +1,16 @@ + <script> + <?php global $_CONFIG; ?>console.log("Injecting Familine header") + document.body.innerHTML = document.body.innerHTML + "<iframe style=\"position:fixed;left:0;right:0;top:0;border: none;width: 100%;height:32px;\" src=\"https://<?= /** @var array $_CONFIG */ + $_CONFIG["Global"]["domain"] ?>/statusbar.php\"></iframe>"; + document.getElementsByTagName("html")[0].style.marginTop = "32px"; + document.getElementsByTagName("html")[0].style.height = "calc(100vh - 32px)"; + </script> + <?php if (isset($_GET['q'])): ?> + <script> + window.addEventListener('load', () => { + $(".flexdatalist").flexdatalist('value', "<?= strip_tags(str_replace("\"", "''", $_GET['q'])) ?>"); + }); + </script> + <?php endif; ?> +</body> +</html>
\ No newline at end of file |