mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 16:33:15 -03:00
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
<%
|
|
let ogPages = {
|
|
"results": "opengraphresults",
|
|
"info": "opengraphinfo"
|
|
}
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<%- include('../partials/head'); %>
|
|
</head>
|
|
<body class="d-flex flex-column min-vh-100">
|
|
<header>
|
|
<%- include('../partials/header'); %>
|
|
<%- ogPages[page] ? include(`../partials/${ogPages[page]}`) : include('../partials/opengraph') %>
|
|
</header>
|
|
|
|
<%- include(page); %>
|
|
|
|
<footer class="footer mt-auto text-center">
|
|
<%- include('../partials/footer'); %>
|
|
</footer>
|
|
|
|
</body>
|
|
<script>
|
|
if(window.location.pathname != '/settings'){ //don't load on the settings page
|
|
settingStore = localStorage.getItem('settings')
|
|
if(typeof settingStore == 'string' && window.location.href){
|
|
settingsElem = document.getElementById('searchSettings')
|
|
if(settingsElem){
|
|
settingsElem.value = btoa(settingStore)
|
|
}
|
|
}
|
|
if(typeof settingStore == 'string' && window.location.href){
|
|
oldResultElem = document.getElementById('oldResults')
|
|
if(oldResultElem){
|
|
oldResultElem.value = JSON.parse(settingStore).useOldResults.toString()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js'></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
|
|
</html> |