Skip to content

Commit b8afe0a

Browse files
committed
stylistic change
1 parent 5c2b670 commit b8afe0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/script.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const openMap = function() {
160160
};
161161
const loadMaps = function() {
162162
let maplevels = document.createElement("div");
163-
for (let i = 0; i < basic.colors.length; i++) {
163+
for (let i = 0; i < 3; i++) { // basic.colors.length
164164
let type = document.createElement("div");
165165
type.classList.add("type");
166166
type.style.background = basic.colorhue[i];
@@ -173,7 +173,7 @@ const loadMaps = function() {
173173
let map = document.createElement("div");
174174
map.classList.add("mapselect");
175175
if (!basic.maps[i]["Picture"]) {
176-
map.style.background = "url("+replaceGit+"/images/icon.png)";
176+
return;
177177
}
178178
else {
179179
map.style.background = "url(" + basic.maps[i]["Picture"] + ")";
@@ -231,7 +231,7 @@ const mapFiltering = function(filter) {
231231
map.style.backgroundSize = "cover";
232232
let mapName = document.createElement("div");
233233
mapName.classList.add("mapname");
234-
mapName.textContent = basic.maps[i]["Name"];
234+
mapName.textContent = shortenTextByPx(basic.maps[i]["Name"], 200);
235235
map.appendChild(mapName);
236236
let mapDiff = document.createElement("div");
237237
mapDiff.classList.add("mapdiff");

0 commit comments

Comments
 (0)