Skip to content

Commit

Permalink
Merge pull request #22 from Mojang/mammerla-accsiteimprovements
Browse files Browse the repository at this point in the history
Accessibility improvements
  • Loading branch information
mammerla authored Jul 15, 2024
2 parents 913035f + a781c31 commit 1c284cc
Show file tree
Hide file tree
Showing 42 changed files with 821 additions and 427 deletions.
4 changes: 3 additions & 1 deletion app/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ function customizeSiteHead() {
}

function customizeSiteBody() {
return gulp.src(["site/index.body.html"], { base: "" }).pipe(textReplaceStream("build/index.html", /<\/body>/gi));
return gulp
.src(["site/index.body.html"], { base: "" })
.pipe(textReplaceStream("build/index.html", /<div id="root"><\/div>/gi));
}

function copyCheckedInRes() {
Expand Down
2 changes: 1 addition & 1 deletion app/jsnode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mctools",
"version": "0.2.3",
"version": "0.2.7",
"productName": "Minecraft Creator Tools",
"description": "Minecraft Creator Tools",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mctools",
"version": "0.2.3",
"version": "0.2.7",
"productName": "Minecraft Creator Tools",
"description": "Minecraft Creator Tools for building Bedrock Edition add-ons.",
"repository": {
Expand Down
File renamed without changes
16 changes: 13 additions & 3 deletions app/site/index.body.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
<div id="cookie-banner"></div>
<div id="cookie-banner"></div>
<div id="root"></div>
<script>
window.creatorToolsSite = {
termsOfUseUrl: "https://minecraft.net/eula",
privacyUrl: "https://go.microsoft.com/fwlink/?linkid=521839",
trademarksUrl: "https://www.microsoft.com/trademarks"
};
</script>
</body>

var siteConsent = null;
WcpConsent.init("en-US", "cookie-banner", function (err, _siteConsent) {
if (err != undefined) {
return error;
} else {
siteConsent = _siteConsent;
}
});
</script>
1 change: 1 addition & 0 deletions app/site/index.head.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<script src="https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js"></script>
</head>
Loading

0 comments on commit 1c284cc

Please sign in to comment.