2015-06-09 18:40:42 +02:00
|
|
|
<!doctype html>
|
2015-07-22 09:17:15 +02:00
|
|
|
<html lang="en" style="height: 100%;">
|
2015-06-09 18:40:42 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2020-07-13 18:32:17 +02:00
|
|
|
<title>Element</title>
|
2020-07-10 21:02:11 +02:00
|
|
|
<link rel="apple-touch-icon" sizes="57x57" href="<%= require('../../res/vector-icons/apple-touch-icon-57.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="60x60" href="<%= require('../../res/vector-icons/apple-touch-icon-60.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="72x72" href="<%= require('../../res/vector-icons/apple-touch-icon-72.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="76x76" href="<%= require('../../res/vector-icons/apple-touch-icon-76.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="114x114" href="<%= require('../../res/vector-icons/apple-touch-icon-114.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="120x120" href="<%= require('../../res/vector-icons/apple-touch-icon-120.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="144x144" href="<%= require('../../res/vector-icons/apple-touch-icon-144.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="152x152" href="<%= require('../../res/vector-icons/apple-touch-icon-152.png') %>">
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="<%= require('../../res/vector-icons/apple-touch-icon-180.png') %>">
|
2017-05-11 14:12:26 +02:00
|
|
|
<link rel="manifest" href="manifest.json">
|
2018-02-15 13:31:31 +01:00
|
|
|
<meta name="referrer" content="no-referrer">
|
2019-02-15 16:11:33 +01:00
|
|
|
<link rel="shortcut icon" href="<%= require('../../res/vector-icons/favicon.ico') %>">
|
2020-01-30 11:29:14 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2020-07-13 18:32:17 +02:00
|
|
|
<meta name="apple-mobile-web-app-title" content="Element">
|
|
|
|
<meta name="application-name" content="Element">
|
2015-07-28 02:04:23 +02:00
|
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
2020-07-10 21:02:11 +02:00
|
|
|
<meta name="msapplication-TileImage" content="<%= require('../../res/vector-icons/mstile-150.png') %>">
|
2019-02-15 16:11:33 +01:00
|
|
|
<meta name="msapplication-config" content="<%= require('../../res/vector-icons/browserconfig.xml') %>">
|
2015-07-28 02:04:23 +02:00
|
|
|
<meta name="theme-color" content="#ffffff">
|
2021-04-22 11:22:52 +02:00
|
|
|
<meta property="og:image" content="<%= og_image_url %>" />
|
2020-02-06 12:52:21 +01:00
|
|
|
<meta http-equiv="Content-Security-Policy" content="
|
|
|
|
default-src 'none';
|
2022-11-08 14:27:20 +01:00
|
|
|
style-src 'self' 'unsafe-inline' <%= csp_extra_source %>;
|
2023-04-26 15:49:35 +02:00
|
|
|
script-src 'self' 'wasm-unsafe-eval' https://www.recaptcha.net/recaptcha/ https://www.gstatic.com/recaptcha/ <%= csp_extra_source %>;
|
2020-02-06 12:52:21 +01:00
|
|
|
img-src * blob: data:;
|
2023-05-25 10:40:50 +02:00
|
|
|
connect-src * blob:;
|
2022-11-08 14:27:20 +01:00
|
|
|
font-src 'self' data: <%= csp_extra_source %>;
|
2020-02-06 12:52:21 +01:00
|
|
|
media-src * blob: data:;
|
|
|
|
child-src * blob: data:;
|
2022-11-08 14:27:20 +01:00
|
|
|
worker-src 'self' blob: <%= csp_extra_source %>;
|
2020-02-06 12:52:21 +01:00
|
|
|
frame-src * blob: data:;
|
2022-11-08 14:27:20 +01:00
|
|
|
form-action 'self' <%= csp_extra_source %>;
|
|
|
|
manifest-src 'self' <%= csp_extra_source %>;
|
2020-02-06 12:52:21 +01:00
|
|
|
">
|
2017-01-17 20:14:16 +01:00
|
|
|
<% for (var i=0; i < htmlWebpackPlugin.files.css.length; i++) {
|
|
|
|
var file = htmlWebpackPlugin.files.css[i];
|
2017-01-19 16:40:54 +01:00
|
|
|
var match = file.match(/^bundles\/.*?\/theme-(.*)\.css$/);
|
2017-01-18 15:06:20 +01:00
|
|
|
if (match) {
|
|
|
|
var title = match[1].charAt(0).toUpperCase() + match[1].slice(1);
|
2017-01-17 20:14:16 +01:00
|
|
|
%>
|
2021-08-01 16:17:58 +02:00
|
|
|
<link rel="stylesheet" disabled="disabled" data-mx-theme="<%= title %>" title="<%= title %>" href="<%= file %>">
|
2017-01-17 20:14:16 +01:00
|
|
|
<% } else { %>
|
|
|
|
<link rel="stylesheet" href="<%= file %>">
|
|
|
|
<% }
|
|
|
|
} %>
|
2021-04-22 13:09:50 +02:00
|
|
|
|
2023-09-23 21:34:56 +02:00
|
|
|
<% for (const tag of htmlWebpackPlugin.tags.headTags) {
|
|
|
|
let path = tag.attributes && tag.attributes.href;
|
|
|
|
if (path && path.includes("/Inter/")) { %>
|
2023-09-30 21:50:52 +02:00
|
|
|
<link rel="preload" as="font" href="<%= path %>" crossorigin="anonymous"/>
|
2021-04-22 13:09:50 +02:00
|
|
|
<% }
|
|
|
|
} %>
|
|
|
|
|
2015-06-09 18:40:42 +02:00
|
|
|
</head>
|
2021-08-04 23:08:52 +02:00
|
|
|
<body style="height: 100%; margin: 0;">
|
2020-07-13 18:32:17 +02:00
|
|
|
<noscript>Sorry, Element requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
|
2023-12-20 16:32:23 +01:00
|
|
|
<div id="matrixchat" style="height: 100%;" class="notranslate"></div>
|
2023-09-01 16:37:09 +02:00
|
|
|
|
|
|
|
<%
|
|
|
|
// insert <script> tags for the JS entry points
|
|
|
|
for (let file of htmlWebpackPlugin.files.js) {
|
|
|
|
if (file.includes("bundle.js") || file.includes("unhomoglyph_data")) {
|
|
|
|
%> <script src="<%= file %>"></script>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%>
|
2020-05-11 17:07:13 +02:00
|
|
|
|
2020-10-01 15:05:07 +02:00
|
|
|
<!-- Legacy supporting Prefetch images -->
|
2022-03-04 16:48:54 +01:00
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/warning.svg').default %>" aria-hidden alt="" width="24" height="23" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/e2e/warning.svg').default %>" aria-hidden alt="" width="24" height="23" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/feather-customised/warning-triangle.svg').default %>" aria-hidden alt="" width="24" height="23" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/format/bold.svg').default %>" aria-hidden alt="" width="25" height="22" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/format/code.svg').default %>" aria-hidden alt="" width="25" height="22" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/format/italics.svg').default %>" aria-hidden alt="" width="25" height="22" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/format/quote.svg').default %>" aria-hidden alt="" width="25" height="22" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
|
|
|
<img src="<%= require('matrix-react-sdk/res/img/format/strikethrough.svg').default %>" aria-hidden alt="" width="25" height="22" style="visibility: hidden; position: absolute; top: 0px; left: 0px;"/>
|
2020-10-01 15:05:07 +02:00
|
|
|
|
2016-03-03 14:11:46 +01:00
|
|
|
<audio id="messageAudio">
|
|
|
|
<source src="media/message.ogg" type="audio/ogg" />
|
|
|
|
<source src="media/message.mp3" type="audio/mpeg" />
|
|
|
|
</audio>
|
2015-12-17 03:53:53 +01:00
|
|
|
<audio id="ringAudio" loop>
|
|
|
|
<source src="media/ring.ogg" type="audio/ogg" />
|
|
|
|
<source src="media/ring.mp3" type="audio/mpeg" />
|
|
|
|
</audio>
|
2015-07-17 17:42:16 +02:00
|
|
|
<audio id="ringbackAudio" loop>
|
|
|
|
<source src="media/ringback.ogg" type="audio/ogg" />
|
|
|
|
<source src="media/ringback.mp3" type="audio/mpeg" />
|
|
|
|
</audio>
|
|
|
|
<audio id="callendAudio">
|
|
|
|
<source src="media/callend.ogg" type="audio/ogg" />
|
|
|
|
<source src="media/callend.mp3" type="audio/mpeg" />
|
|
|
|
</audio>
|
|
|
|
<audio id="busyAudio">
|
|
|
|
<source src="media/busy.ogg" type="audio/ogg" />
|
|
|
|
<source src="media/busy.mp3" type="audio/mpeg" />
|
|
|
|
</audio>
|
2023-05-10 08:02:55 +02:00
|
|
|
<audio id="errorAudio">
|
|
|
|
<source src="media/error.ogg" type="audio/ogg" />
|
|
|
|
<source src="media/error.mp3" type="audio/mpeg" />
|
|
|
|
</audio>
|
2018-02-23 17:27:34 +01:00
|
|
|
<audio id="remoteAudio"></audio>
|
2017-11-05 00:43:34 +01:00
|
|
|
<!-- let CSS themes pass constants to the app -->
|
2018-10-04 11:49:28 +02:00
|
|
|
<div id="mx_theme_accentColor"></div><div id="mx_theme_secondaryAccentColor"></div><div id="mx_theme_tertiaryAccentColor"></div>
|
2015-06-09 18:40:42 +02:00
|
|
|
</body>
|
|
|
|
</html>
|