Skip to content

Commit

Permalink
update screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kaheetonaa committed Oct 17, 2024
1 parent 4562083 commit da56391
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 34 deletions.
15 changes: 3 additions & 12 deletions dist/iD.js
Original file line number Diff line number Diff line change
Expand Up @@ -42561,7 +42561,7 @@
_hasUnresolvedRestorableChanges = false;
corePreferences(getKey("saved_history"), null);
corePreferences("comment", null);
corePreferences("hashtags", null);
corePreferences("hashtags", __team_selected);
corePreferences("source", null);
}
return history;
Expand Down Expand Up @@ -67819,7 +67819,7 @@
let modalSelection = uiModal(selection2);
modalSelection.select(".modal").attr("class", "modal-splash modal");
let introModal = modalSelection.select(".content").append("div").attr("class", "fillL");
introModal.append("div").attr("class", "modal-section").append("h3").call(_t.append("splash.welcome"));
introModal.append("div").attr("class", "modal-section").html("<h2>EUthMappers Sandbox for editing </h2>");
let team_select = introModal.append("select").attr("name", "team").attr("id", "team");
team_select.append("option").attr("value", "null").html("Please select a nation");
team_select.append("option").attr("value", "italia").html("Italia");
Expand All @@ -67831,16 +67831,7 @@
__team_selected = document.getElementById("team").value + " #EuthMappers";
});
let modalSection = introModal.append("div").attr("class", "modal-section");
modalSection.append("p").html(_t.html("splash.text", {
version: context.version,
website: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/develop/CHANGELOG.md#whats-new">' + _t.html("splash.changelog") + "</a>" },
github: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/issues">github.com</a>' }
}));
modalSection.append("p").html(_t.html("splash.privacy", {
updateMessage,
privacyLink: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/release/PRIVACY.md">' + _t("splash.privacy_policy") + "</a>" }
}));
uiSectionPrivacy(context).label(() => _t.append("splash.privacy_settings")).render(modalSection);
modalSection.append("p").html("Welcome to <b>Sandbox for editing</b> by <b>EUthMappers</b>");
let buttonWrap = introModal.append("div").attr("class", "modal-actions");
let walkthrough = buttonWrap.append("button").attr("class", "walkthrough").on("click", () => {
if (document.getElementById("team").value != "null") {
Expand Down
4 changes: 2 additions & 2 deletions dist/iD.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/core/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export function coreHistory(context) {

// clear the changeset metadata associated with the saved history
prefs('comment', null);
prefs('hashtags', null);
prefs('hashtags', __team_selected);
prefs('source', null);
}
return history;
Expand Down
39 changes: 20 additions & 19 deletions modules/ui/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export function uiSplash(context) {
introModal
.append('div')
.attr('class','modal-section')
.append('h3')
.call(t.append('splash.welcome'));
//.append('h3')
.html("<h2>EUthMappers Sandbox for editing </h2>")
//.call(t.append('splash.welcome'));

let team_select=introModal
.append('select')
Expand Down Expand Up @@ -86,23 +87,23 @@ export function uiSplash(context) {

modalSection
.append('p')
.html(t.html('splash.text', {
version: context.version,
website: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/develop/CHANGELOG.md#whats-new">' + t.html('splash.changelog') + '</a>' },
github: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/issues">github.com</a>' }
}));

modalSection
.append('p')
.html(t.html('splash.privacy', {
updateMessage: updateMessage,
privacyLink: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/release/PRIVACY.md">' +
t('splash.privacy_policy') + '</a>' }
}));

uiSectionPrivacy(context)
.label(() => t.append('splash.privacy_settings'))
.render(modalSection);
.html('Welcome to <b>Sandbox for editing</b> by <b>EUthMappers</b>')//t.html('splash.text', {
//version: context.version,
//website: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/develop/CHANGELOG.md#whats-new">' + t.html('splash.changelog') + '</a>' },
//github: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/issues">github.com</a>' }
//}));

//modalSection
// .append('p')
// .html(t.html('splash.privacy', {
// updateMessage: updateMessage,
// privacyLink: { html: '<a target="_blank" href="https://github.com/openstreetmap/iD/blob/release/PRIVACY.md">' +
// t('splash.privacy_policy') + '</a>' }
// }));

//uiSectionPrivacy(context)
// .label(() => t.append('splash.privacy_settings'))
// .render(modalSection);

let buttonWrap = introModal
.append('div')
Expand Down

0 comments on commit da56391

Please sign in to comment.