Skip to content

Commit

Permalink
Simplify html
Browse files Browse the repository at this point in the history
  • Loading branch information
eile committed Nov 17, 2023
1 parent 90cfc87 commit 1fefb85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
14 changes: 1 addition & 13 deletions client.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,13 @@
href="https://js.arcgis.com/4.28/esri/css/main.css"
/>
<link rel="stylesheet" href="custom.css" />
<script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
<script>
var dojoConfig = {
async: true,
packages: [
{
name: "app",
location: location.pathname.replace(/\/[^/]+$/, "") + "/app",
},
],
};
</script>
</head>

<body>
<div id="SceneView"></div>
<div id="slides"></div>

<script src="https://js.arcgis.com/4.28"></script>
<script src="https://js.arcgis.com/4.29"></script>
<script type="module" src="/src/client.ts"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Layout } from "./Layout";
import { Controller } from "./Controller";

const params = new Map<string, string>();

const matches = window.parent.location.href.match(/[?&]+([^&]+)/gi);
matches?.forEach((match, _index) => {
const tokens = match.split("=");
Expand All @@ -17,5 +16,6 @@ const server = params.get("server") ?? "localhost";

// The view must be ready (or resolved) before you can access its properties
view.when(() => {
view.ui.components = [];
new Controller(view, server, layout);
});
14 changes: 1 addition & 13 deletions viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,13 @@
href="https://js.arcgis.com/4.28/esri/css/main.css"
/>
<link rel="stylesheet" href="custom.css" />
<script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
<script>
var dojoConfig = {
async: true,
packages: [
{
name: "app",
location: location.pathname.replace(/\/[^/]+$/, "") + "/app",
},
],
};
</script>
</head>

<body>
<div id="SceneView"></div>
<div id="slides"></div>

<script src="https://js.arcgis.com/4.28"></script>
<script src="https://js.arcgis.com/4.29"></script>
<script type="module" src="/src/viewer.ts"></script>
</body>
</html>

0 comments on commit 1fefb85

Please sign in to comment.