Skip to content

Commit 6796b18

Browse files
committed
Modify CSS for accessibility
1 parent 68a5ce5 commit 6796b18

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

play.pokemonshowdown.com/js/client-teambuilder.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@
184184
if (format in teambuilder.formatResources) { // already loading, bypass
185185
return;
186186
}
187-
console.log(`called for ${format}`);
188187
teambuilder.formatResources[format] = true; // true - loading, array - loaded
189188
$.get('https://www.smogon.com/dex/api/formats/by-ps-name/' + format, {}, function (data) {
190189
// if the data doesn't exist, set it to true so it stops trying to load it
@@ -1241,24 +1240,21 @@
12411240
if (i < this.curTeam.capacity) {
12421241
buf += '<li><button name="addPokemon" class="button big"><i class="fa fa-plus"></i> Add Pok&eacute;mon</button></li>';
12431242
}
1244-
buf += '<br />';
1243+
buf += '</ol>';
12451244
var formatInfo = this.formatResources[this.curTeam.format];
12461245
// data's there and loaded
12471246
if (formatInfo && formatInfo !== true) {
12481247
if (formatInfo.resources.length || formatInfo.url) {
1249-
buf += '<strong>Teambuilding resources for this tier:</strong><br />';
1248+
buf += '<div style="padding-left: 5px"><h3 style="font-size: 12px">Teambuilding resources for this tier:</h3></div><ul>';
12501249
for (var i = 0; i < formatInfo.resources.length; i++) {
12511250
var resource = formatInfo.resources[i];
1252-
// these are not <li> because that adds too much padding around each entry, making the whole thing
1253-
// take up too much space
1254-
buf += '<small style="padding: 1">- <a href="' + resource.url + '" target="_blank">' + resource.resource_name + '</a></small><br />';
1251+
buf += '<li><p><a href="' + resource.url + '" target="_blank">' + resource.resource_name + '</a></p></li>';
12551252
}
12561253
}
1254+
buf += '</ul>';
12571255
var desc = formatInfo.resources.length ? 'more ' : '';
1258-
buf += '<small>Find ' + desc + 'helpful resources for this tier on <a href="' + formatInfo.url + '" target="_blank">the Smogon Dex</a>.';
1259-
buf += '<br />';
1256+
buf += '<div style="padding-left: 5px">Find ' + desc + 'helpful resources for this tier on <a href="' + formatInfo.url + '" target="_blank">the Smogon Dex</a>.</div>';
12601257
}
1261-
buf += '</ol>';
12621258
buf += '<form id="pokepasteForm" style="display:inline" method="post" action="https://pokepast.es/create" target="_blank">';
12631259
buf += '<input type="hidden" name="title" id="pasteTitle">';
12641260
buf += '<input type="hidden" name="paste" id="pasteData">';

0 commit comments

Comments
 (0)