2018-02-01 12:17:04 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
2018-02-01 12:40:20 +00:00
|
|
|
|
2019-01-05 16:12:09 +00:00
|
|
|
[{[ if .ReCaptcha -]}]
|
|
|
|
<script src="[{[ .ReCaptchaHost ]}]/recaptcha/api.js?render=explicit"></script>
|
|
|
|
[{[ end ]}]
|
2018-02-01 12:40:20 +00:00
|
|
|
|
2019-01-05 16:12:09 +00:00
|
|
|
<title>[{[ if .Name -]}][{[ .Name ]}][{[ else ]}]File Browser[{[ end ]}]</title>
|
|
|
|
|
2020-05-31 20:24:18 +00:00
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="[{[ .StaticURL ]}]/img/icons/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="[{[ .StaticURL ]}]/img/icons/favicon-16x16.png">
|
2020-10-01 14:45:24 +00:00
|
|
|
|
2018-02-01 12:17:04 +00:00
|
|
|
<!-- Add to home screen for Android and modern mobile browsers -->
|
2020-01-02 15:18:36 +00:00
|
|
|
<link rel="manifest" id="manifestPlaceholder" crossorigin="use-credentials">
|
2018-02-01 12:17:04 +00:00
|
|
|
<meta name="theme-color" content="#2979ff">
|
|
|
|
|
2020-09-05 13:23:42 +00:00
|
|
|
<!-- Add to home screen for Safari on iOS/iPadOS -->
|
2018-02-01 12:17:04 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
<meta name="apple-mobile-web-app-title" content="assets">
|
2020-09-05 13:23:42 +00:00
|
|
|
<link rel="apple-touch-icon" href="[{[ .StaticURL ]}]/img/icons/apple-touch-icon.png">
|
2018-02-01 12:40:20 +00:00
|
|
|
|
2018-02-01 12:17:04 +00:00
|
|
|
<!-- Add to home screen for Windows -->
|
2020-09-05 13:23:42 +00:00
|
|
|
<meta name="msapplication-TileImage" content="[{[ .StaticURL ]}]/img/icons/mstile-144x144.png">
|
2018-02-01 12:17:04 +00:00
|
|
|
<meta name="msapplication-TileColor" content="#2979ff">
|
|
|
|
|
2019-10-18 08:00:13 +00:00
|
|
|
<!-- Inject Some Variables and generate the manifest json -->
|
|
|
|
<script>
|
2021-04-15 12:28:19 +00:00
|
|
|
window.FileBrowser = JSON.parse('[{[ .Json ]}]');
|
2020-10-01 14:45:24 +00:00
|
|
|
|
2020-05-31 20:24:18 +00:00
|
|
|
var fullStaticURL = window.location.origin + window.FileBrowser.StaticURL;
|
2019-10-18 08:00:13 +00:00
|
|
|
var dynamicManifest = {
|
|
|
|
"name": window.FileBrowser.Name || 'File Browser',
|
|
|
|
"short_name": window.FileBrowser.Name || 'File Browser',
|
|
|
|
"icons": [
|
|
|
|
{
|
|
|
|
"src": fullStaticURL + "/img/icons/android-chrome-192x192.png",
|
|
|
|
"sizes": "192x192",
|
|
|
|
"type": "image/png"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"src": fullStaticURL + "/img/icons/android-chrome-512x512.png",
|
|
|
|
"sizes": "512x512",
|
|
|
|
"type": "image/png"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"start_url": window.location.origin + window.FileBrowser.BaseURL,
|
|
|
|
"display": "standalone",
|
|
|
|
"background_color": "#ffffff",
|
|
|
|
"theme_color": "#455a64"
|
|
|
|
}
|
|
|
|
|
|
|
|
const stringManifest = JSON.stringify(dynamicManifest);
|
|
|
|
const blob = new Blob([stringManifest], {type: 'application/json'});
|
|
|
|
const manifestURL = URL.createObjectURL(blob);
|
|
|
|
document.querySelector('#manifestPlaceholder').setAttribute('href', manifestURL);
|
|
|
|
</script>
|
2018-02-01 12:17:04 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
#loading {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: #fff;
|
|
|
|
z-index: 9999;
|
|
|
|
transition: .1s ease opacity;
|
|
|
|
-webkit-transition: .1s ease opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
#loading.done {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2021-04-16 12:47:50 +00:00
|
|
|
#loading .spinner {
|
2018-02-01 12:17:04 +00:00
|
|
|
width: 70px;
|
|
|
|
text-align: center;
|
|
|
|
position: fixed;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
-webkit-transform: translate(-50%, -50%);
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
|
2021-04-16 12:47:50 +00:00
|
|
|
#loading .spinner > div {
|
2018-02-01 12:17:04 +00:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
background-color: #333;
|
|
|
|
border-radius: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
|
|
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
|
|
}
|
|
|
|
|
2021-04-16 12:47:50 +00:00
|
|
|
#loading .spinner .bounce1 {
|
2018-02-01 12:17:04 +00:00
|
|
|
-webkit-animation-delay: -0.32s;
|
|
|
|
animation-delay: -0.32s;
|
|
|
|
}
|
|
|
|
|
2021-04-16 12:47:50 +00:00
|
|
|
#loading .spinner .bounce2 {
|
2018-02-01 12:17:04 +00:00
|
|
|
-webkit-animation-delay: -0.16s;
|
|
|
|
animation-delay: -0.16s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes sk-bouncedelay {
|
|
|
|
0%, 80%, 100% { -webkit-transform: scale(0) }
|
|
|
|
40% { -webkit-transform: scale(1.0) }
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes sk-bouncedelay {
|
|
|
|
0%, 80%, 100% {
|
|
|
|
-webkit-transform: scale(0);
|
|
|
|
transform: scale(0);
|
|
|
|
} 40% {
|
|
|
|
-webkit-transform: scale(1.0);
|
|
|
|
transform: scale(1.0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="app"></div>
|
|
|
|
|
|
|
|
<div id="loading">
|
|
|
|
<div class="spinner">
|
|
|
|
<div class="bounce1"></div>
|
|
|
|
<div class="bounce2"></div>
|
|
|
|
<div class="bounce3"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-02 00:48:48 +00:00
|
|
|
[{[ if .Theme -]}]
|
2020-05-31 20:24:18 +00:00
|
|
|
<link rel="stylesheet" href="[{[ .StaticURL ]}]/themes/[{[ .Theme ]}].css" />
|
2020-01-02 00:48:48 +00:00
|
|
|
[{[ end ]}]
|
2019-01-05 16:12:09 +00:00
|
|
|
[{[ if .CSS -]}]
|
2020-05-31 20:24:18 +00:00
|
|
|
<link rel="stylesheet" href="[{[ .StaticURL ]}]/custom.css" />
|
2019-01-05 16:12:09 +00:00
|
|
|
[{[ end ]}]
|
2018-02-01 12:17:04 +00:00
|
|
|
</body>
|
|
|
|
</html>
|