1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-title" content="Code">
- <link rel="apple-touch-icon" href="https://app.itk.academy/favicon.svg" />
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
- <meta id="vscode-workbench-web-configuration" data-settings="{"remoteAuthority":"localhost:3000","serverBasePath":"/","developmentOptions":{"logLevel":3},"enableWorkspaceTrust":true,"productConfiguration":{},"callbackRoute":"/stable-56bdd153e7c7f853189fd6965f73b2049f6d06c9/callback"}">
- <meta id="vscode-workbench-auth-session" data-settings="">
- <link rel="icon" href="https://app.itk.academy/favicon.svg">
- <link rel="manifest" href="/stable-56bdd153e7c7f853189fd6965f73b2049f6d06c9/static/resources/server/manifest.json" crossorigin="use-credentials" />
- </head>
- <body>
- <div>asdfasdf /stable-56bdd153e7c7f853189fd6965f73b2049f6d06c9/static/out/nls.messages.js
- <div>чччфывафыважфыл ва</div>
- <div aria-label=""></div>
- </div>
- </body>
- <script>
- let orig = 'http://localhost:3000'// window.location.origin;
- const baseUrl = new URL('/stable-56bdd153e7c7f853189fd6965f73b2049f6d06c9/static', orig).toString();
- globalThis._VSCODE_FILE_ROOT = baseUrl + '/out/';
- let domain = window.location.href.indexOf('original=1') > -1 ? globalThis._VSCODE_FILE_ROOT : 'https://localhost:7000'
- runCss(domain + "/vs/code/browser/workbench/workbench.css", true)
- runBlob(domain + "/vs/code/browser/workbench/workbench.js")
- runBlob(domain + "/nls.messages.js")
-
- function runCss(url) {
- fetch(url)
- .then(response => response.text())
- .then(css => {
- let style = document.createElement("style");
- style.textContent = css.replace(/\/media\//g, (v) => {
- // return domain + '/media/'
- return globalThis._VSCODE_FILE_ROOT + '/media/'
- });
- document.head.appendChild(style);
- })
- .catch(error => console.error("Failed to load CSS:", error));
- }
- function runBlob(src) {
- fetch(src)
- .then(response => {
- if (!response.ok) {
- throw new Error(`HTTP error! Status: ${response.status}`);
- }
- return response.text();
- })
- .then(scriptText => {
- const code = scriptText//`export function test() { return 'Hello, Modules!'; }`;
- const blob = new Blob([code], { type: 'application/javascript' });
- const url = URL.createObjectURL(blob);
- import(url).then((module) => {
- console.log(module.test()); // Output: Hello, Modules!
- });
- eval(scriptText)
- })
- .catch(error => console.error("Failed to load script:", error));
- }
- </script>
- </html>
|