You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi/ClientApp/src/index.html

49 lines
1.4 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<script>
const existingBaseUrl = window.localStorage.getItem("baseUrl");
if (existingBaseUrl) {
document.write('<base href="/' + existingBaseUrl + '" />');
} else {
// Work out the base URL
// Need to find the baseUrl.txt file
const url = window.location.href;
let hasFile = false;
fetch(url + "/baseUrl.json")
.then(response => {
return response.json();
}).then(data => {
this.hasFile = true;
document.write('<base href="/' + data.baseUrl + '" />');
window.localStorage.setItem("baseUrl", data.baseUrl);
}).catch(err => {
console.error(err);
});
}
</script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ombi</title>
<link rel="stylesheet" href="/loading.css" />
<script src="//maps.google.com/maps/api/js?libraries=visualization&key=AIzaSyBDar8LXU5vbURGTMcNLI0f9AsoSnpiV3I" async
defer></script>
</head>
<body>
<app-ombi>
<p class="loading">Loading<span>.</span><span>.</span><span>.</span></p>
</app-ombi>
</body>
</html>