mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-15 06:30:26 +02:00
133 lines
4.4 KiB
HTML
133 lines
4.4 KiB
HTML
<!-- index.html -->
|
|
<!DOCTYPE html>
|
|
<html lang="en" ng-controller="mainController">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
|
/>
|
|
|
|
<title ng-bind="title">Anonymous Github</title>
|
|
<base href="/" />
|
|
|
|
<link
|
|
rel="apple-touch-icon"
|
|
sizes="180x180"
|
|
href="/favicon/apple-touch-icon.png"
|
|
/>
|
|
<link
|
|
rel="icon"
|
|
type="image/png"
|
|
sizes="32x32"
|
|
href="/favicon/favicon-32x32.png"
|
|
/>
|
|
<link
|
|
rel="icon"
|
|
type="image/png"
|
|
sizes="16x16"
|
|
href="/favicon/favicon-16x16.png"
|
|
/>
|
|
<link rel="manifest" href="/favicon/site.webmanifest" />
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
<meta name="msapplication-config" content="/favicon/browserconfig.xml" />
|
|
<meta name="theme-color" content="#FAF9F6" />
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
media="print"
|
|
onload="this.media='all'"
|
|
/>
|
|
<noscript>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
/>
|
|
</noscript>
|
|
<link rel="stylesheet" href="/css/__ALL_CSS__" />
|
|
</head>
|
|
<body keypress-events class="d-flex flex-column">
|
|
<ng-include src="'partials/header.htm'"></ng-include>
|
|
<ng-view class="align-items-stretch h-100 w-100 overflow-auto"></ng-view>
|
|
|
|
<div
|
|
class="position-fixed bottom-0 right-0 p-3"
|
|
style="z-index: 999999999; right: 0; bottom: 0"
|
|
>
|
|
<div
|
|
id="liveToast"
|
|
class="toast show"
|
|
role="alert"
|
|
aria-live="assertive"
|
|
aria-atomic="true"
|
|
data-delay="2000"
|
|
ng-repeat="toast in toasts"
|
|
>
|
|
<div class="toast-header">
|
|
<strong class="mr-auto" ng-bind="toast.title"></strong>
|
|
<button
|
|
type="button"
|
|
class="ml-2 mb-1 close"
|
|
data-dismiss="toast"
|
|
aria-label="Close"
|
|
ng-click="removeToast(toast);"
|
|
>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="toast-body" ng-bind="toast.body"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/script/__CORE_JS__"></script>
|
|
<script>
|
|
// Lazy-load mermaid only when a mermaid diagram is encountered
|
|
window.loadMermaid = function () {
|
|
if (window._mermaidLoaded || window._mermaidLoading) return;
|
|
window._mermaidLoading = true;
|
|
var s = document.createElement("script");
|
|
s.src = "/script/__MERMAID_JS__";
|
|
s.onload = function () {
|
|
window._mermaidLoaded = true;
|
|
window._mermaidLoading = false;
|
|
if (typeof mermaid !== "undefined") {
|
|
mermaid.initialize({ startOnLoad: false, theme: "default", securityLevel: "loose" });
|
|
window.mermaidInitialized = true;
|
|
var els = document.querySelectorAll(".mermaid:not([data-processed])");
|
|
if (els.length) mermaid.init(undefined, els);
|
|
}
|
|
};
|
|
document.body.appendChild(s);
|
|
};
|
|
</script>
|
|
<script src="/script/__VENDOR_JS__" defer onload="
|
|
ace.config.set('basePath', '/script/external/ace/');
|
|
PDFJS.workerSrc = '/script/external/pdf.worker.js';
|
|
angular.bootstrap(document, ['anonymous-github']);
|
|
"></script>
|
|
<script>
|
|
window.addEventListener("load", function () {
|
|
var s = document.createElement("script");
|
|
s.src = "https://storage.ko-fi.com/cdn/scripts/overlay-widget.js";
|
|
s.onload = function () {
|
|
var isDark = localStorage.getItem("darkMode") === "true";
|
|
kofiWidgetOverlay.draw("tdurieux", {
|
|
type: "floating-chat",
|
|
"floating-chat.donateButton.text": "Support me",
|
|
"floating-chat.donateButton.background-color": isDark
|
|
? "#FAF9F6"
|
|
: "#1A1815",
|
|
"floating-chat.donateButton.text-color": isDark
|
|
? "#1A1815"
|
|
: "#FAF9F6",
|
|
});
|
|
};
|
|
document.body.appendChild(s);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|