|
44 | 44 | </div>
|
45 | 45 | </div>
|
46 | 46 |
|
47 |
| - <div class="card" id="links-output"></div> |
48 |
| - <script src="js/links.js"></script> |
| 47 | + <div class="card" id="webxdc-notify-output"></div> |
| 48 | + <script src="js/webxdc-notify.js"></script> |
49 | 49 |
|
50 | 50 | <div class="card" id="info-output"></div>
|
51 | 51 | <script src="js/info.js"></script>
|
|
63 | 63 |
|
64 | 64 | <div class="card" id="wasm-output"></div>
|
65 | 65 | <script src="js/wasm.js"></script>
|
| 66 | + |
| 67 | + <div class="card" id="links-output"></div> |
| 68 | + <script src="js/links.js"></script> |
66 | 69 | </div>
|
67 | 70 | <div class="page" id="page-sandbox">
|
68 | 71 | <div class="card" id="cookies-output"></div>
|
|
77 | 80 | style="display: none"
|
78 | 81 | ></iframe>
|
79 | 82 | <div class="card" id="webrtc-output"></div>
|
80 |
| - <script src="js/webrtc.js"></script> |
81 |
| - <iframe |
82 |
| - src="./iframe-webrtc-test.html" |
83 |
| - sandbox="allow-scripts" |
84 |
| - width="100%" |
85 |
| - height="200" |
86 |
| - ></iframe> |
| 83 | + <div class="card"> |
| 84 | + <header class="container"> |
| 85 | + <h2>webrtc-sidechannel iframe</h2> |
| 86 | + </header> |
| 87 | + <script src="js/webrtc.js"></script> |
| 88 | + <iframe |
| 89 | + src="./iframe-webrtc-test.html" |
| 90 | + sandbox="allow-scripts" |
| 91 | + width="100%" |
| 92 | + height="200" |
| 93 | + ></iframe> |
| 94 | + </div> |
| 95 | + |
| 96 | + <div class="card" id="iframe-output"></div> |
| 97 | + <script src="js/iframe.js"></script> |
87 | 98 |
|
88 | 99 | <!-- DNS prefetch check, originally developed by Cure53
|
89 | 100 | and distributed as "Cure53 Test App - DNS checker" app.
|
90 | 101 | See https://delta.chat/en/2023-05-22-webxdc-security#dns-prefetching-marks-another-exploit. -->
|
91 |
| - <div class="dns-prefetch-output"> |
| 102 | + <div class="card dns-prefetch-output"> |
92 | 103 | <header class="container">
|
93 | 104 | <h2>DNS Prefetch</h2>
|
94 | 105 | </header>
|
@@ -167,15 +178,15 @@ <h2>DNS Prefetch</h2>
|
167 | 178 | tab: document.getElementById("tab-sandbox"),
|
168 | 179 | },
|
169 | 180 | ];
|
170 |
| - for (const {page, tab} of tabs) { |
| 181 | + for (const { page, tab } of tabs) { |
171 | 182 | tab.onclick = () => {
|
172 |
| - tabs.forEach(({page, tab}) => { |
173 |
| - page.classList.remove("active") |
174 |
| - tab.classList.remove("active") |
175 |
| - }); |
176 |
| - page.classList.add("active") |
177 |
| - tab.classList.add("active") |
178 |
| - } |
| 183 | + tabs.forEach(({ page, tab }) => { |
| 184 | + page.classList.remove("active"); |
| 185 | + tab.classList.remove("active"); |
| 186 | + }); |
| 187 | + page.classList.add("active"); |
| 188 | + tab.classList.add("active"); |
| 189 | + }; |
179 | 190 | }
|
180 | 191 | </script>
|
181 | 192 | </body>
|
|
0 commit comments