Skip to content
Snippets Groups Projects
Commit 3258651e authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

Hello36

parent 6db94fab
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,10 @@ import { useEffect} from "react"; ...@@ -12,9 +12,10 @@ import { useEffect} from "react";
import Villbuttonrow from "../components/Villagebuttons.tsx"; import Villbuttonrow from "../components/Villagebuttons.tsx";
/* import Sidebar from "../components/Sidebar.tsx"; */ /* import Sidebar from "../components/Sidebar.tsx"; */
import "../utils/highlight.js"; import "../utils/highlight.js";
"../statics/mapscript.js"
const App = () => { const App = () => {
useEffect(() => { /* useEffect(() => {
const script = document.createElement('script'); const script = document.createElement('script');
script.src = "../statics/mapscript.js"; script.src = "../statics/mapscript.js";
script.async = true; script.async = true;
...@@ -22,7 +23,7 @@ const App = () => { ...@@ -22,7 +23,7 @@ const App = () => {
return () => { return () => {
document.body.removeChild(script); document.body.removeChild(script);
} }
}, []); }, []); */
const pathMapping = getPathMapping(); const pathMapping = getPathMapping();
const currentPath = const currentPath =
location.pathname location.pathname
......
import InnerHTML from 'dangerously-set-html-content' import InnerHTML from 'dangerously-set-html-content'
/* import { useEffect } from 'react' */ /* import { useEffect } from 'react' */
export function Map1(){ export function Map1(){
const htmlFile = `<div style="min-height: 374px"> const htmlFile = `<div style="min-height: 374px">
<script type="text/javascript" defer src="src/statics/mapscript.js" charset="utf-8"> <script type="text/javascript" defer src="src/statics/mapscript.js" charset="utf-8">
......
...@@ -11,7 +11,7 @@ export function Home() { ...@@ -11,7 +11,7 @@ export function Home() {
<hr/> <hr/>
<Map1/> <Map1/>
<hr /> <hr />
Hello35 Hello36
</div> </div>
</div> </div>
<div className="row"> <div className="row">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment