index.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright © 2016-2018 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>
  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="robots" content="noindex" />
  22. <title>Threema Web Diagnostics</title>
  23. <!-- Favicon -->
  24. <link rel="icon" href="../img/favicion/favicon.ico?v=[[VERSION]]" type="image/x-icon"/>
  25. <link rel="shortcut icon" href="../img/favicion/favicon.ico?v=[[VERSION]]" type="image/x-icon"/>
  26. <!-- Fonts -->
  27. <link rel="stylesheet" href="../fonts/roboto.css?v=[[VERSION]]" type="text/css">
  28. <link rel="stylesheet" href="../fonts/material.css?v=[[VERSION]]" type="text/css">
  29. <!-- Styling -->
  30. <style>
  31. body {
  32. padding: 16px;
  33. font-family: 'Roboto';
  34. }
  35. #background-image {
  36. min-height: 100%;
  37. min-width: 1024px;
  38. width: 100%;
  39. height: auto;
  40. position: fixed;
  41. top: 0;
  42. left: 0;
  43. z-index: -1;
  44. -moz-user-select: none;
  45. -webkit-user-select: none;
  46. user-select: none;
  47. }
  48. #wrapper {
  49. background-color: white;
  50. margin: 0 auto;
  51. padding: 16px 32px 32px;
  52. min-width: 400px;
  53. max-width: 500px;
  54. text-align: center;
  55. }
  56. #logo {
  57. width: 300px;
  58. color: white;
  59. margin: 0px auto 16px;
  60. }
  61. h1 { margin-top: 0; font-weight: 500; }
  62. h2 { font-weight: 300; }
  63. p { font-weight: 300; }
  64. .status span {
  65. display: inline-block;
  66. line-height: 36px;
  67. vertical-align: top;
  68. }
  69. .status-yes i { color: #4caf50; }
  70. .status-no i { color: #f44336; }
  71. .status-unknown i { color: #0277BD; }
  72. .hidden { display: none; }
  73. .small { font-size: 0.8em; font-weight: 300; }
  74. footer {
  75. color: white;
  76. font-weight: 300;
  77. text-align: center;
  78. padding-top: 16px;
  79. }
  80. </style>
  81. <!-- JS -->
  82. <script src="../node_modules/webrtc-adapter/out/adapter.js?v=[[VERSION]]"></script>
  83. <script src="../node_modules/sdp/sdp.js?v=[[VERSION]]"></script>
  84. <script src="troubleshoot.js?v=[[VERSION]]"></script>
  85. </head>
  86. <body>
  87. <img src="../img/bg1.jpg?v=[[VERSION]]" id="background-image" draggable="false" alt="" />
  88. <header>
  89. <div id="title">
  90. <div id="logo">
  91. <img src="../img/logo.svg?v=[[VERSION]]" alt="Logo">
  92. </div>
  93. </div>
  94. </header>
  95. <div id="wrapper">
  96. <h1>Threema Web Diagnostics</h1>
  97. <p id="help-text">This test will check your browser for compatibility problems. It
  98. will also check whether WebRTC connection buildup using STUN/TURN works.</p>
  99. <button id="start">Start Test</button>
  100. <div id="checks" class="hidden">
  101. <h2>Is JavaScript enabled?</h2>
  102. <div id="status-js">
  103. <div class="status status-no">
  104. <i class="material-icons md-36">error</i> <span class="text">No</span>
  105. </div>
  106. <div class="status status-yes hidden">
  107. <i class="material-icons md-36">check_circle</i> <span class="text">Yes</span>
  108. </div>
  109. </div>
  110. <h2>Is WebRTC available?</h2>
  111. <div id="status-pc">
  112. <div class="status status-unknown">
  113. <i class="material-icons md-36">help</i> <span class="text">Unknown</span>
  114. </div>
  115. <div class="status status-no hidden">
  116. <i class="material-icons md-36">error</i> <span class="text">No</span>
  117. <p class="small">RTCPeerConnection is a part of WebRTC.<br>Threema Web cannot work without it.</p>
  118. </div>
  119. <div class="status status-yes hidden">
  120. <i class="material-icons md-36">check_circle</i> <span class="text">Yes</span>
  121. </div>
  122. </div>
  123. <h2>Are WebRTC DataChannels available?</h2>
  124. <div id="status-dc">
  125. <div class="status status-unknown">
  126. <i class="material-icons md-36">help</i> <span class="text">Unknown</span>
  127. </div>
  128. <div class="status status-no hidden">
  129. <i class="material-icons md-36">error</i> <span class="text">No</span>
  130. <p class="small">RTCDataChannel is a part of WebRTC.<br>Threema Web cannot work without it.</p>
  131. </div>
  132. <div class="status status-yes hidden">
  133. <i class="material-icons md-36">check_circle</i> <span class="text">Yes</span>
  134. </div>
  135. </div>
  136. <h2>Is LocalStorage available?</h2>
  137. <div id="status-ls">
  138. <div class="status status-unknown">
  139. <i class="material-icons md-36">help</i> <span class="text">Unknown</span>
  140. </div>
  141. <div class="status status-no hidden">
  142. <i class="material-icons md-36">error</i> <span class="text">No</span>
  143. <p class="small">Without LocalStorage, persistent sessions and settings<br>cannot be stored in the browser.<br>
  144. See the <a href="https://threema.ch/faq/web_browser_settings">FAQ</a> for information on how to fix this.</p>
  145. </div>
  146. <div class="status status-yes hidden">
  147. <i class="material-icons md-36">check_circle</i> <span class="text">Yes</span>
  148. </div>
  149. </div>
  150. <h2>Are desktop notifications available?</h2>
  151. <div id="status-dn">
  152. <div class="status status-unknown">
  153. <i class="material-icons md-36">help</i> <span class="text">Unknown</span>
  154. </div>
  155. <div class="status status-no hidden">
  156. <i class="material-icons md-36">error</i> <span class="text">No</span>
  157. <p class="small">Without desktop notifications, we cannot notify you when a new message arrives.</p>
  158. </div>
  159. <div class="status status-yes hidden">
  160. <i class="material-icons md-36">check_circle</i> <span class="text">Yes</span>
  161. </div>
  162. </div>
  163. <h2>Does TURN work?</h2>
  164. <div id="status-turn">
  165. <div class="status status-unknown">
  166. <i class="material-icons md-36">help</i> <span class="text">Unknown</span>
  167. </div>
  168. <div class="status status-no hidden">
  169. <i class="material-icons md-36">error</i> <span class="text">No</span>
  170. <p class="small hidden">It looks like TURN traffic is being blocked by your firewall.<br>
  171. Without TURN, connections can only be established if your computer<br>
  172. and your phone are in the same network.</p>
  173. </div>
  174. <div class="status status-yes hidden">
  175. <i class="material-icons md-36">check_circle</i> <span class="text">Yes</span>
  176. </div>
  177. <div class="status status-test hidden">
  178. <img src="loading.gif" alt="Loading...">
  179. </div>
  180. <div class="results hidden">
  181. <p>Results:</p>
  182. <p class="result-data"></p>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <footer>
  188. &copy; 2017 Threema GmbH
  189. </footer>
  190. </body>
  191. </html>