Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProgGis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Severin Steffensen Hjelseth
ProgGis
Commits
3b130387
Commit
3b130387
authored
1 year ago
by
Jakob Severin Steffensen Hjelseth
Browse files
Options
Downloads
Patches
Plain Diff
Bedre mappestruktur og lesing av filnavn
parent
2905be5f
No related branches found
Branches containing commit
No related tags found
2 merge requests
!8
From dev into main
,
!7
Resolve "Gjøre drop av filer mulig"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
css/style.css
+0
-0
0 additions, 0 deletions
css/style.css
index.html
+8
-9
8 additions, 9 deletions
index.html
javascript/openFileFromExplorer.js
+4
-3
4 additions, 3 deletions
javascript/openFileFromExplorer.js
with
12 additions
and
12 deletions
style.css
→
css/
style.css
+
0
−
0
View file @
3b130387
File moved
This diff is collapsed.
Click to expand it.
index.html
+
8
−
9
View file @
3b130387
...
...
@@ -3,13 +3,11 @@
<head>
<title>
ProgGIS
</title>
<link
rel=
"stylesheet"
href=
"style.css"
/>
<link
rel=
"stylesheet"
href=
"
css/
style.css"
/>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity=
"sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=
""
/>
<script
src=
"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity=
"sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=
""
></script>
<script
src=
"https://unpkg.com/shpjs@latest/dist/shp.js"
></script>
</head>
<body
class=
"standard"
>
...
...
@@ -47,12 +45,12 @@
</svg>
</div>
<div
style=
"margin-top: 5px; margin-bottom: 5px;"
>
<div
style=
"
margin-left: 10px;
margin-top: 5px; margin-bottom: 5px;"
>
<input
type=
"file"
none=
"dialog"
id=
"dialog"
multiple
>
<button
id=
"clickOpen"
onclick=
"clickMe()"
>
Click here to open new layers
</button>
</div>
<div
style=
"margin-left: 10px; font-size: 18px; height:
6
0vh;"
>
<div
style=
"margin-left: 10px; font-size: 18px; height:
5
0vh;"
>
<p
id=
"layers"
></p>
</div>
</div>
...
...
@@ -142,9 +140,10 @@
</div>
</div>
</div>
<script
src=
"javascript/map.js"
></script>
<script
src=
"javascript/sidebar&boxes.js"
></script>
<script
src=
"javascript/openFileFromExplorer.js"
></script>
</body>
</html>
<script
src=
"javascript/map.js"
></script>
<script
src=
"javascript/sidebar&boxes.js"
></script>
<script
src=
"javascript/openFileFromExplorer.js"
></script>
This diff is collapsed.
Click to expand it.
javascript/openFileFromExplorer.js
+
4
−
3
View file @
3b130387
...
...
@@ -7,7 +7,8 @@ function clickMe() {
dialog
.
addEventListener
(
"
input
"
,
()
=>
{
if
(
dialog
.
files
.
length
)
{
let
text
=
dialog
.
files
[
0
].
name
;
document
.
getElementById
(
"
layers
"
).
innerHTML
=
text
;
for
(
i
=
0
;
i
<
dialog
.
files
.
length
;
i
++
)
{
document
.
getElementById
(
"
layers
"
).
innerHTML
=
dialog
.
files
[
i
].
name
;
}
}
});
\ No newline at end of file
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment