2020-07-31 17:33:13 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-05-23 16:16:02 +00:00
|
|
|
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: blob:">
|
2020-07-31 17:33:13 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
|
|
|
|
|
|
|
|
<meta name="theme-color" content="#007aff">
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
|
|
|
<meta name="msapplication-tap-highlight" content="no">
|
|
|
|
<title>Desktop Editor</title>
|
|
|
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
|
|
<link rel="apple-touch-icon" href="static/icons/apple-touch-icon.png">
|
|
|
|
<link rel="icon" href="static/icons/favicon.png">
|
2021-09-12 21:51:01 +00:00
|
|
|
|
2021-09-28 08:10:26 +00:00
|
|
|
<% if (!htmlWebpackPlugin.options.skeleton.stylesheet) { %>
|
|
|
|
<link rel="stylesheet" href="../../common/mobile/resources/css/skeleton.css">
|
|
|
|
<% } else { %>
|
|
|
|
<style><%= htmlWebpackPlugin.options.skeleton.stylesheet %></style>
|
|
|
|
<% } %>
|
2020-07-31 17:33:13 +00:00
|
|
|
<!-- built styles file will be auto injected -->
|
|
|
|
</head>
|
|
|
|
<body>
|
2021-11-24 12:19:07 +00:00
|
|
|
<% if ( htmlWebpackPlugin.options.skeleton.htmlscript ) { %>
|
2021-11-23 21:40:26 +00:00
|
|
|
<script>
|
2021-11-24 12:19:07 +00:00
|
|
|
<%= htmlWebpackPlugin.options.skeleton.htmlscript %>
|
2021-11-23 21:40:26 +00:00
|
|
|
</script>
|
2021-11-24 12:19:07 +00:00
|
|
|
<% } %>
|
2021-09-12 21:51:01 +00:00
|
|
|
<section class="skl-container">
|
2021-09-23 09:20:26 +00:00
|
|
|
<div class="skl-navbar skl-navbar--word"></div>
|
2021-09-12 21:51:01 +00:00
|
|
|
<div class="skl-lines">
|
|
|
|
<div class="skl-line"></div>
|
|
|
|
<div class="skl-line"></div>
|
|
|
|
<div class="skl-line"></div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2020-07-31 17:33:13 +00:00
|
|
|
<script>
|
2020-10-09 20:05:45 +00:00
|
|
|
const isAndroid = /Android/.test(navigator.userAgent);
|
|
|
|
if ( isAndroid && navigator.platform == 'Win32' )
|
|
|
|
// Framework7 doesn't set Device.android flag when navigator.platform == 'Win32', change it for debug
|
|
|
|
navigator.__defineGetter__('platform', () => 'Win32Debug');
|
|
|
|
|
2021-09-28 08:10:26 +00:00
|
|
|
const element_add_class = (el, cls) => (el && el.classList.add(cls));
|
|
|
|
|
2021-09-12 21:51:01 +00:00
|
|
|
let navbar = document.querySelector('.skl-navbar');
|
|
|
|
if ( window.devicePixelRatio ) {
|
2021-09-28 08:10:26 +00:00
|
|
|
element_add_class(navbar, `skl-pixel-ratio--${Math.floor(window.devicePixelRatio)}`);
|
2021-09-12 21:51:01 +00:00
|
|
|
}
|
|
|
|
|
2021-06-10 13:05:11 +00:00
|
|
|
if ( !isAndroid ) {
|
|
|
|
const ua = navigator.userAgent;
|
|
|
|
const iPad = ua.match(/(iPad).*OS\s([\d_]+)/);
|
|
|
|
const iPhone = !iPad && ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
|
|
|
|
|
|
|
|
if ( !iPad && !iPhone ) {
|
|
|
|
Object.defineProperty(navigator, 'userAgent', {
|
|
|
|
get: function () { return `iPad; CPU OS 11_0 ${ua}`; }
|
|
|
|
});
|
2021-09-28 08:10:26 +00:00
|
|
|
} else {
|
|
|
|
element_add_class(navbar, `skl-navbar--ios`);
|
2021-06-10 13:05:11 +00:00
|
|
|
}
|
2021-09-12 21:51:01 +00:00
|
|
|
} else {
|
2021-09-28 08:10:26 +00:00
|
|
|
element_add_class(navbar, `skl-navbar--md`);
|
2021-06-10 13:05:11 +00:00
|
|
|
}
|
|
|
|
|
2020-07-31 17:33:13 +00:00
|
|
|
const getUrlParams = () => {
|
|
|
|
let e,
|
|
|
|
a = /\+/g, // Regex for replacing addition symbol with a space
|
|
|
|
r = /([^&=]+)=?([^&]*)/g,
|
|
|
|
d = s => decodeURIComponent(s.replace(a, " ")),
|
|
|
|
q = window.location.search.substring(1),
|
|
|
|
urlParams = {};
|
|
|
|
|
|
|
|
while (e = r.exec(q))
|
|
|
|
urlParams[d(e[1])] = d(e[2]);
|
|
|
|
|
|
|
|
return urlParams;
|
|
|
|
};
|
|
|
|
|
2021-10-22 20:04:06 +00:00
|
|
|
window.Common = {Locale: {defaultLang: <%= htmlWebpackPlugin.options.system.env.defaultLang %>}};
|
2020-07-31 17:33:13 +00:00
|
|
|
let params = getUrlParams(),
|
2021-10-22 20:04:06 +00:00
|
|
|
lang = (params["lang"] || window.Common.Locale.defaultLang).split(/[\-\_]/)[0];
|
2020-07-31 17:33:13 +00:00
|
|
|
|
2021-10-22 20:04:06 +00:00
|
|
|
window.Common.Locale.currentLang = lang;
|
2020-07-31 17:33:13 +00:00
|
|
|
window.frameEditorId = params["frameEditorId"];
|
|
|
|
window.parentOrigin = params["parentOrigin"];
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>
|
|
|
|
|
|
|
|
<div id="app"></div>
|
|
|
|
|
|
|
|
<!-- built script files will be auto injected -->
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|