Skip to content

Commit

Permalink
update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kaheetonaa committed Sep 25, 2024
1 parent ffe2263 commit 9b9c8ca
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 89 deletions.
4 changes: 2 additions & 2 deletions dist/iD.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.ideditor div, .ideditor span, .ideditor applet, .ideditor object, .ideditor iframe, .ideditor h1, .ideditor h2, .ideditor h3, .ideditor h4, .ideditor h5, .ideditor h6, .ideditor p, .ideditor blockquote, .ideditor pre, .ideditor a, .ideditor abbr, .ideditor acronym, .ideditor address, .ideditor big, .ideditor cite, .ideditor code, .ideditor del, .ideditor dfn, .ideditor em, .ideditor img, .ideditor ins, .ideditor kbd, .ideditor q, .ideditor s, .ideditor samp, .ideditor small, .ideditor strike, .ideditor strong, .ideditor sub, .ideditor sup, .ideditor tt, .ideditor var, .ideditor b, .ideditor u, .ideditor i, .ideditor center, .ideditor dl, .ideditor dt, .ideditor dd, .ideditor ol, .ideditor ul, .ideditor li, .ideditor fieldset, .ideditor form, .ideditor label, .ideditor legend, .ideditor table, .ideditor caption, .ideditor tbody, .ideditor tfoot, .ideditor thead, .ideditor tr, .ideditor th, .ideditor td, .ideditor article, .ideditor aside, .ideditor canvas, .ideditor details, .ideditor embed, .ideditor figure, .ideditor figcaption, .ideditor footer, .ideditor header, .ideditor hgroup, .ideditor menu, .ideditor nav, .ideditor output, .ideditor ruby, .ideditor section, .ideditor summary, .ideditor time, .ideditor mark, .ideditor audio, .ideditor video {
margin: 0;
padding: 0;
border: 0;
border: 10;
font-size: 100%;
font: inherit;
vertical-align: baseline;
Expand Down Expand Up @@ -3504,7 +3504,7 @@
/* the root element of iD */
.ideditor {
height: 100%;
width: 100%;
width: 80%;
margin: 0;
padding: 0;
border: 0;
Expand Down
6 changes: 3 additions & 3 deletions dist/iD.js
Original file line number Diff line number Diff line change
Expand Up @@ -20107,9 +20107,9 @@
var nsiCdnUrl = "https://cdn.jsdelivr.net/npm/name-suggestion-index@{version}/";
var defaultOsmApiConnections = {
live: {
url: "https://www.openstreetmap.org",
apiUrl: "https://api.openstreetmap.org",
client_id: "0tmNTmd0Jo1dQp4AUmMBLtGiD9YpMuXzHefitcuVStc"
url: "https://www.api06.dev.openstreetmap.org",
apiUrl: "https://api06.dev.openstreetmap.org",
client_id: "k6Xvnl2vNfBhuzVbLcUz4P67s5qJRlDppb2uaHd370"
},
dev: {
url: "https://api06.dev.openstreetmap.org",
Expand Down
3 changes: 2 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
/* disable elastic page bounce upon scroll */
overflow: hidden;
}

</style>
</head>

<body>
<div id='id-container'></div>

<script>
var container = document.getElementById('id-container');
var newScript = document.createElement('script');
Expand Down
127 changes: 72 additions & 55 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,59 +1,76 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>iD</title>
<link rel='stylesheet' href='dist/iD.css'>
<link rel='icon' type='image/png' href='data:image/png;base64,iVBORw0KGgo='>
<meta name='viewport' content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'/>
<meta name='apple-mobile-web-app-capable' content='yes'/>
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
<style type='text/css'>
/* apply document-level styling to standalone iD only */
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
/* disable elastic page bounce upon scroll */
overflow: hidden;
}
</style>
</head>

<body>
<div id='id-container'></div>

<script>
var container = document.getElementById('id-container');
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.onload = checkScript;
newScript.onerror = checkScript;
newScript.src = 'dist/iD.js';

document.getElementsByTagName('head')[0].appendChild(newScript);


function checkScript() {
//if (typeof iD === 'undefined' || !iD.utilDetect().support) {
//container.innerHTML = 'Sorry, your browser is not currently supported. Please use another <a href="https://github.com/openstreetmap/iD#basics">browser</a> or <a href="https://wiki.openstreetmap.org/wiki/Editors">editor</a> to contribute to the map.';
//container.style.padding = '20px';

//} else {
var context = iD.coreContext()
.assetPath('dist/')
.containerNode(container);
window.context = window.id = context; // for debugging
context.init();

// disable boundaries (unless we have an explicit disable_features list)
var q = iD.utilStringQs(window.location.hash);
if (!q.hasOwnProperty('disable_features')) {
context.features().disable('boundaries');
}
//}

<head>
<meta charset='utf-8'>
<title>iD</title>
<link rel='stylesheet' href='dist/iD.css'>
<link rel='icon' type='image/png' href='data:image/png;base64,iVBORw0KGgo='>
<meta name='viewport'
content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />
<style type='text/css'>
/* apply document-level styling to standalone iD only */
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
/* disable elastic page bounce upon scroll */
overflow: hidden;
}

#sidepane {
width: 20%;
height: 100%;
background-color: rgb(255, 255, 255);
z-index: 10;
position: absolute;
right: 0;
top: 0;
}
</style>
</head>
<div id='sidepane'>
<p>hello</p>
</div>

<body>
<div id='id-container'></div>

<script>
var container = document.getElementById('id-container');
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.onload = checkScript;
newScript.onerror = checkScript;
newScript.src = 'dist/iD.js';

document.getElementsByTagName('head')[0].appendChild(newScript);


function checkScript() {
//if (typeof iD === 'undefined' || !iD.utilDetect().support) {
//container.innerHTML = 'Sorry, your browser is not currently supported. Please use another <a href="https://github.com/openstreetmap/iD#basics">browser</a> or <a href="https://wiki.openstreetmap.org/wiki/Editors">editor</a> to contribute to the map.';
//container.style.padding = '20px';

//} else {
var context = iD.coreContext()
.assetPath('dist/')
.containerNode(container);
window.context = window.id = context; // for debugging
context.init();

// disable boundaries (unless we have an explicit disable_features list)
var q = iD.utilStringQs(window.location.hash);
if (!q.hasOwnProperty('disable_features')) {
context.features().disable('boundaries');
}
</script>
</body>
//}
}
</script>
</body>

</html>
28 changes: 0 additions & 28 deletions key.pem

This file was deleted.

0 comments on commit 9b9c8ca

Please sign in to comment.