index.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright © 2016-2019 Threema GmbH (https://threema.ch/).
  4. This file is part of Threema Web.
  5. Threema Web is free software: you can redistribute it and/or modify it
  6. under the terms of the GNU Affero General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or (at
  8. your option) any later version.
  9. This program is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
  12. General Public License for more details.
  13. You should have received a copy of the GNU Affero General Public License
  14. along with Threema Web. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <html ng-strict-di ng-controller="StatusController as ctrl">
  17. <head>
  18. <meta charset="utf-8">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <meta name="referrer" content="no-referrer">
  21. <meta name="google" content="notranslate">
  22. <title>Threema Web</title>
  23. <meta name="description" translate translate-attr-content="meta.DESCRIPTION"
  24. content="Chat from your desktop with Threema Web and have full access to all chats, contacts and media files.">
  25. <!-- Favicon / Webmanifest / Browserconfig -->
  26. <link rel="manifest" href="manifest.webmanifest?v=[[VERSION]]">
  27. <link rel="apple-touch-icon" sizes="180x180" href="img/favicon/apple-touch-icon.png?v=[[VERSION]]">
  28. <link rel="icon" type="image/png" sizes="32x32" href="{{ 'img/favicon/' + ctrl.faviconFilename + '?v=[[VERSION]]' }}">
  29. <link rel="icon" type="image/png" sizes="16x16" href="{{ 'img/favicon/' + ctrl.faviconFilename + '?v=[[VERSION]]' }}">
  30. <link rel="mask-icon" href="img/favicon/safari-pinned-tab.svg?v=[[VERSION]]" color="#333333">
  31. <link rel="shortcut icon" href="img/favicon/favicon.ico?v=[[VERSION]]">
  32. <meta name="msapplication-TileColor" content="#313131">
  33. <meta name="msapplication-config" content="browserconfig.xml?v=[[VERSION]]">
  34. <meta name="theme-color" content="#4f4f4f">
  35. <!-- Angular -->
  36. <link rel="stylesheet" href="node_modules/angular/angular-csp.css?v=[[VERSION]]">
  37. <!-- Third party stylesheets -->
  38. <link rel="stylesheet" href="node_modules/angular-material/angular-material.min.css?v=[[VERSION]]">
  39. <link rel="stylesheet" href="node_modules/croppie/croppie.css?v=[[VERSION]]">
  40. <!-- Fonts -->
  41. <link rel="stylesheet" href="fonts/roboto.css?v=[[VERSION]]" type="text/css">
  42. <link rel="stylesheet" href="fonts/material.css?v=[[VERSION]]" type="text/css">
  43. <!-- Own stylesheets -->
  44. <link rel="stylesheet" href="css/app.css?v=[[VERSION]]">
  45. </head>
  46. <body class="{{ ctrl.statusClass }}" ng-class="{expanded: ctrl.expandStatusBar}">
  47. <img src="img/bg.jpg?v=[[VERSION]]" aria-label="Background image: Blurred photo of a mountain" id="background-image" draggable="false">
  48. <noscript>
  49. <img id="logo-noscript" src="img/logo.svg?v=[[VERSION]]"/>
  50. <div>
  51. <h2>Error: JavaScript not supported</h2>
  52. <p>Please enable JavaScript in your browser to be able to use Threema Web.</p>
  53. </div>
  54. </noscript>
  55. <div id="main-wrapper" ng-cloak ng-class="{wide: ctrl.wide()}">
  56. <header>
  57. <h1 id="title" aria-label="Threema Web Logo">
  58. <span id="logo" ng-include src="'img/logo.svg?v=[[VERSION]]'"></span>
  59. </h1>
  60. </header>
  61. <!-- The overlay box that shows up if media is previewed -->
  62. <mediabox></mediabox>
  63. <div id="main" translate-cloak>
  64. <div id="status-bar">
  65. <status-bar active="ctrl.expandStatusBar"></status-bar>
  66. </div>
  67. <div id="main-content" ui-view></div>
  68. </div>
  69. <footer ng-controller="FooterController as ctrl">
  70. <ul translate-cloak>
  71. <li><a ng-click="ctrl.showVersionInfo('[[VERSION]]')" ng-keypress="ctrl.showVersionInfo('[[VERSION]]', $event)" tabindex="0">Version [[VERSION]] {{ ctrl.config.VERSION_MOUNTAIN }}</a></li>
  72. <li><a href="https://threema.ch/threema-web" target="_blank" rel="noopener noreferrer" tabindex="0" translate>welcome.MORE_ABOUT_WEB</a></li>
  73. <li><a href="https://github.com/threema-ch/threema-web/blob/master/TRANSLATING.md" target="_blank" rel="noopener noreferrer" tabindex="0" translate>welcome.HELP_TRANSLATE</a></li>
  74. </ul>
  75. </footer>
  76. </div>
  77. <!-- Emoji -->
  78. <link rel="stylesheet" href="emoji/activity.css?v=[[VERSION]]" type="text/css" media="all" />
  79. <link rel="stylesheet" href="emoji/flags.css?v=[[VERSION]]" type="text/css" media="all" />
  80. <link rel="stylesheet" href="emoji/food.css?v=[[VERSION]]" type="text/css" media="all" />
  81. <link rel="stylesheet" href="emoji/nature.css?v=[[VERSION]]" type="text/css" media="all" />
  82. <link rel="stylesheet" href="emoji/objects.css?v=[[VERSION]]" type="text/css" media="all" />
  83. <link rel="stylesheet" href="emoji/people.css?v=[[VERSION]]" type="text/css" media="all" />
  84. <link rel="stylesheet" href="emoji/symbols.css?v=[[VERSION]]" type="text/css" media="all" />
  85. <link rel="stylesheet" href="emoji/travel.css?v=[[VERSION]]" type="text/css" media="all" />
  86. <!-- Angular core -->
  87. <script src="node_modules/angular/angular.js?v=[[VERSION]]"></script>
  88. <script src="node_modules/angular-aria/angular-aria.min.js?v=[[VERSION]]"></script>
  89. <script src="node_modules/angular-animate/angular-animate.min.js?v=[[VERSION]]"></script>
  90. <script src="node_modules/angular-sanitize/angular-sanitize.min.js?v=[[VERSION]]"></script>
  91. <script src="node_modules/angular-route/angular-route.min.js?v=[[VERSION]]"></script>
  92. <!-- Polyfills -->
  93. <script src="node_modules/webrtc-adapter/out/adapter_no_edge.js?v=[[VERSION]]"></script>
  94. <!-- Various libraries -->
  95. <script src="node_modules/qrcode-generator/qrcode.js?v=[[VERSION]]"></script>
  96. <script src="node_modules/qrcode-generator/qrcode_UTF8.js?v=[[VERSION]]"></script>
  97. <script src="node_modules/angular-qrcode/angular-qrcode.js?v=[[VERSION]]"></script>
  98. <script src="node_modules/angular-material/angular-material.min.js?v=[[VERSION]]"></script>
  99. <script src="node_modules/@uirouter/angularjs/release/angular-ui-router.min.js?v=[[VERSION]]"></script>
  100. <script src="node_modules/angularjs-scroll-glue/src/scrollglue.js?v=[[VERSION]]"></script>
  101. <script src="libs/angular-inview/angular-inview.js?v=[[VERSION]]"></script>
  102. <script src="libs/future.js?v=[[VERSION]]"></script>
  103. <!-- Translation -->
  104. <script src="node_modules/messageformat/messageformat.js?v=[[VERSION]]"></script>
  105. <script src="node_modules/angular-translate/dist/angular-translate.min.js?v=[[VERSION]]"></script>
  106. <script src="node_modules/angular-translate/dist/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js?v=[[VERSION]]"></script>
  107. <script src="node_modules/angular-translate/dist/angular-translate-interpolation-messageformat/angular-translate-interpolation-messageformat.min.js?v=[[VERSION]]"></script>
  108. <!-- Other -->
  109. <script src="node_modules/msgpack-lite/dist/msgpack.min.js?v=[[VERSION]]"></script>
  110. <script src="node_modules/tweetnacl/nacl-fast.min.js?v=[[VERSION]]"></script>
  111. <script src="node_modules/@saltyrtc/chunked-dc/dist/chunked-dc.es5.js?v=[[VERSION]]"></script>
  112. <script src="node_modules/@saltyrtc/client/dist/saltyrtc-client.es5.js?v=[[VERSION]]"></script>
  113. <script src="node_modules/@saltyrtc/task-webrtc/dist/saltyrtc-task-webrtc.es5.js?v=[[VERSION]]"></script>
  114. <script src="node_modules/@saltyrtc/task-relayed-data/dist/saltyrtc-task-relayed-data.es5.js?v=[[VERSION]]"></script>
  115. <script src="node_modules/croppie/croppie.min.js?v=[[VERSION]]"></script>
  116. <!-- App -->
  117. <script src="app.bundle.js?v=[[VERSION]]"></script>
  118. </body>
  119. </html>