Skip to content

Commit

Permalink
fixed degree sign again and updated pre_commit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yzabeast1 committed Jul 10, 2024
1 parent a4abb36 commit 7c0d839
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion pys/pre_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
html_end = f'<div class="download-container"><div class="file-download"><input type="text" id="fileNameInput" placeholder="Enter Pack name"></div><button class="download-selected-button" onclick="downloadSelectedTweaks()">Download Selected Tweaks</button><div id="loading-circle"></div></div> </div><script src="resource-pack-page.js"></script></body><footer style="auto" class="footer-container"><div class="credits-footer">{indented} <p><a href="https://github.com/BedrockTweaks/Bedrock-Tweaks-Base">GitHub</a></p></div></footer></html>'

def pre_commit():
html = '<!DOCTYPE html><html lang="en"><head><meta name="author" content="Bedrock Edition Community Tweaks Resource Packs"><meta name="description" content="Resource Pack tweak selector. Unofficially updated by BEComTweaks on GitHub"><meta charset="utf-8"/><meta content="width=device-width, initial-scale=1.0" name="viewport"/><title>Resource Packs</title><link href="resource-pack-page.css" rel="stylesheet"/><link href="images/icon.png" rel="icon" type="image/x-icon"></head><body><br/><div class="image-container"><a href="https://becomtweaks.github.io"><img alt="Resource Packs" id="title" src="images/title.png"/></a></div><div id="background-container"></div><script>const textures = [{src: "images/blocks/stone.png", probability: 0.618 },{ src: "images/blocks/copper_ore.png", probability: 0.128 },{ src: "images/blocks/coal_ore.png", probability: 0.128 },{ src: "images/blocks/iron_ore.png", probability: 0.064 },{ src: "images/blocks/lapis_ore.png", probability: 0.032 },{ src: "images/blocks/redstone_ore.png", probability: 0.016 },{ src: "images/blocks/gold_ore.png", probability: 0.008 },{ src: "images/blocks/emerald_ore.png", probability: 0.004 },{ src: "images/blocks/diamond_ore.png", probability: 0.002 }];function selectTexture() {const rand = Math.random();let cumulativeProbability = 0;for (const texture of textures) {cumulativeProbability += texture.probability;if (rand < cumulativeProbability) {return texture.src;}}}function createTiles() {const container = document.getElementById("background-container");const numColumns = Math.ceil(window.innerWidth / 100) + 2;const numRows = Math.ceil(window.innerHeight / 100) + 2;container.innerHTML = "";for (let i = 0; i < numColumns; i++) {const rowDiv = document.createElement("div");rowDiv.className = "row";for (let j = 0; j < numRows; j++) {const tile = document.createElement("div");tile.className = "tile";tile.style.backgroundImage = `url("${selectTexture()}")`;rowDiv.appendChild(tile);}container.appendChild(rowDiv);}}createTiles();window.addEventListener("resize", () => {document.getElementById("background-container").innerHTML = "";createTiles();});</script><div class="container"><!-- Categories -->'
html = '<!DOCTYPE html><html lang="en"><head><meta name="author" content="Bedrock Edition Community Tweaks Resource Packs"><meta name="description" content="Resource Pack tweak selector. Unofficially updated by BEComTweaks on GitHub"><meta charset="utf-8"/><meta content="width=device-width, initial-scale=1.0" name="viewport"/><title>Resource Packs</title><link href="resource-pack-page.css" rel="stylesheet"/><link href="images/icon.png" rel="icon" type="image/x-icon"></head><body><br/><div class="image-container"><a href="https://becomtweaks.github.io"><img alt="Resource Packs" id="title" src="images/title.png"/></a></div><div id="background-container"></div><script>const textures = [{src: "images/blocks/stone.png", probability: 0.618 },{ src: "images/blocks/copper_ore.png", probability: 0.128 },{ src: "images/blocks/coal_ore.png", probability: 0.128 },{ src: "images/blocks/iron_ore.png", probability: 0.064 },{ src: "images/blocks/lapis_ore.png", probability: 0.032 },{ src: "images/blocks/redstone_ore.png", probability: 0.016 },{ src: "images/blocks/gold_ore.png", probability: 0.008 },{ src: "images/blocks/emerald_ore.png", probability: 0.004 },{ src: "images/blocks/diamond_ore.png", probability: 0.002 }];function selectTexture() {const rand = Math.random();let cumulativeProbability = 0;for (const texture of textures) {cumulativeProbability += texture.probability;if (rand < cumulativeProbability) {return texture.src;}}}function createTiles() {const container = document.getElementById("background-container");const numColumns = Math.ceil(window.innerWidth / 100) + 2;const numRows = Math.ceil(window.innerHeight / 100) + 2;container.innerHTML = "";for (let i = 0; i < numColumns; i++) {const rowDiv = document.createElement("div");rowDiv.className = "row";for (let j = 0; j < numRows; j++) {const tile = document.createElement("div");tile.className = "tile";tile.style.backgroundImage = `url("${selectTexture()}")`;rowDiv.appendChild(tile);}container.appendChild(rowDiv);}}createTiles();window.addEventListener("resize", () => {document.getElementById("background-container").innerHTML = "";createTiles();});</script> <ul class="large-nav">\n <li><a class="nav-link" href="https://becomtweaks.github.io">Home</a></li>\n <li style="float:right"><a class="nav-link" href="https://becomtweaks.github.io/crafting-tweaks">Crafting Tweaks</a></li>\n <li style="float:right"><a class="nav-link" href="https://becomtweaks.github.io/behaviour-packs">Behaviour Packs</a></li>\n <li style="float:right"><a class="nav-link" href="https://becomtweaks.github.io/resource-packs">Resource Packs</a></li>\n </ul>\n <ul class="small-nav">\n <li><a class="nav-link" href="https://becomtweaks.github.io">Home</a></li>\n <li style="float:right"><a class="nav-link" href="https://becomtweaks.github.io/crafting-tweaks">CT\'s</a></li>\n <li style="float:right"><a class="nav-link" href="https://becomtweaks.github.io/behaviour-packs">BP\'s</a></li>\n <li style="float:right"><a class="nav-link" href="https://becomtweaks.github.io/resource-packs">RP\'s</a></li>\n </ul>\n<div class="container"><!-- Categories -->'
stats = [0, 0]
incomplete_packs = {"Aesthetic": [], "Colorful Slime": [], "Fixes and Consistency": [], "Fun": [],
"HUD and GUI": [], "Lower and Sides": [], "Menu Panoramas": [], "More Zombies": [],
Expand Down
58 changes: 29 additions & 29 deletions webUI/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3714,7 +3714,7 @@
Ocean
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of the ocean. (from 1.13)
Replaces the default Minecraft menu panorama with a 360° view of the ocean. (from 1.13)
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3730,7 +3730,7 @@
Village
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a village. (from 1.14)
Replaces the default Minecraft menu panorama with a 360° view of a village. (from 1.14)
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3746,7 +3746,7 @@
Bees
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a group of happy bees! (from 1.15)
Replaces the default Minecraft menu panorama with a 360° view of a group of happy bees! (from 1.15)
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3762,7 +3762,7 @@
Nether
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of the Nether! (from 1.16)
Replaces the default Minecraft menu panorama with a 360° view of the Nether! (from 1.16)
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3778,7 +3778,7 @@
Amethyst Geode
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of an amethyst geode! (from 1.17)
Replaces the default Minecraft menu panorama with a 360° view of an amethyst geode! (from 1.17)
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3794,7 +3794,7 @@
Sunset Valley
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a valley under the setting sun! (from 1.18)
Replaces the default Minecraft menu panorama with a 360° view of a valley under the setting sun! (from 1.18)
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3810,7 +3810,7 @@
Mangrove Swamp
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a mangrove swamp from 1.19
Replaces the default Minecraft menu panorama with a 360° view of a mangrove swamp from 1.19
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3826,7 +3826,7 @@
The End
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of the main End island.
Replaces the default Minecraft menu panorama with a 360° view of the main End island.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3842,7 +3842,7 @@
pack.png
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of the classic and iconic 'pack.png' location.
Replaces the default Minecraft menu panorama with a 360° view of the classic and iconic 'pack.png' location.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3858,7 +3858,7 @@
Nostalgia
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a neon green plains biome from Alpha.
Replaces the default Minecraft menu panorama with a 360° view of a neon green plains biome from Alpha.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3874,7 +3874,7 @@
Oceanside Extreme Hills
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of an Oceanside Extreme Hills.
Replaces the default Minecraft menu panorama with a 360° view of an Oceanside Extreme Hills.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3890,7 +3890,7 @@
Lakeside Sunset
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a Lakeside Sunset.
Replaces the default Minecraft menu panorama with a 360° view of a Lakeside Sunset.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3906,7 +3906,7 @@
Underground Lava Pool
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of an underground lava pool.
Replaces the default Minecraft menu panorama with a 360° view of an underground lava pool.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3922,7 +3922,7 @@
Acacia Village
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of an Acacia Village
Replaces the default Minecraft menu panorama with a 360° view of an Acacia Village
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3938,7 +3938,7 @@
Cherry Grove
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a Cherry Grove
Replaces the default Minecraft menu panorama with a 360° view of a Cherry Grove
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3954,7 +3954,7 @@
Halloween 2021
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a spooky Halloween town
Replaces the default Minecraft menu panorama with a 360° view of a spooky Halloween town
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3970,7 +3970,7 @@
Halloween 2022
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of a spooky Halloween town
Replaces the default Minecraft menu panorama with a 360° view of a spooky Halloween town
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -3986,7 +3986,7 @@
Trial Chambers
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of the Trial Chambers
Replaces the default Minecraft menu panorama with a 360° view of the Trial Chambers
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4002,7 +4002,7 @@
TU69 Tutorial World (Legacy Console)
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Minecraft: Console Edition TU69's tutorial world.
Replaces the default Minecraft menu panorama with a 360° view of Minecraft: Console Edition TU69's tutorial world.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4018,7 +4018,7 @@
Stridey's RP Development World
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Stridey's resource pack development world.
Replaces the default Minecraft menu panorama with a 360° view of Stridey's resource pack development world.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4034,7 +4034,7 @@
Xisuma's Hermitcraft Base Season 1
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 1.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 1.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4050,7 +4050,7 @@
Xisuma's Hermitcraft Base Season 2
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 2.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 2.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4066,7 +4066,7 @@
Xisuma's Hermitcraft Base Season 3
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 3.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 3.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4082,7 +4082,7 @@
Xisuma's Hermitcraft Base Season 4
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 4.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 4.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4098,7 +4098,7 @@
Xisuma's Hermitcraft Base Season 5
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 5
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 5
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4114,7 +4114,7 @@
Xisuma's Hermitcraft Base Season 6
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 6.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 6.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4130,7 +4130,7 @@
Xisuma's Hermitcraft Base Season 7
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 7.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 7.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4146,7 +4146,7 @@
Xisuma's Hermitcraft Base Season 8
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 8.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 8.
</div>
</div>
<div class="conf-hover-text">
Expand All @@ -4162,7 +4162,7 @@
Xisuma's Hermitcraft Base Season 9
</label>
<div class="tweak-description">
Replaces the default Minecraft menu panorama with a 360 view of Xisuma's base from Hermitcraft Season 9.
Replaces the default Minecraft menu panorama with a 360° view of Xisuma's base from Hermitcraft Season 9.
</div>
</div>
<div class="conf-hover-text">
Expand Down

0 comments on commit 7c0d839

Please sign in to comment.