Skip to content

Commit 0a82f0b

Browse files
committed
ok
1 parent 85d6803 commit 0a82f0b

4 files changed

Lines changed: 26 additions & 19 deletions

File tree

ScreenReader.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h6>Screen Reader Information</h6>
103103
<div id="boneOwnedContainer">
104104
You have <span id="bonesOwned">0</span>
105105
</div>
106-
<span id="bonesFrom">You Can Also Earn Bones In Game By Killing Skeletimps.</span>
106+
<span id="bonesFrom">You Can Also Earn Bones In Game By Killing Skeletimps. You also earn 1 bone every 5 minutes.</span>
107107
<br/>
108108
<div id="boneFlavorRow">
109109
The Bone Trader trades bones for... bonuses
@@ -185,7 +185,7 @@ <h6>Screen Reader Information</h6>
185185
</div>
186186
<div class="row collectRow">
187187
<div class="col-xs-6">
188-
<button id="foodCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('food')">Gather</button>
188+
<h5><button id="foodCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('food')">Gather</button></h5>
189189
</div>
190190
<div class="col-xs-6">
191191
<button class="psText sizeSecRegular pointer noselect" id="foodPs" onclick="getPsString('food')">+0/sec</button>
@@ -206,7 +206,7 @@ <h6>Screen Reader Information</h6>
206206

207207
<div class="row collectRow">
208208
<div class="col-xs-6">
209-
<button id="woodCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('wood')">Chop</button>
209+
<h5><button id="woodCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('wood')">Chop</button></h5>
210210
</div>
211211
<div class="col-xs-6">
212212
<button class="psText sizeSecRegular pointer noselect" id="woodPs" onclick="getPsString('wood')">+0/sec</button>
@@ -227,7 +227,7 @@ <h6>Screen Reader Information</h6>
227227
</div>
228228
<div class="row collectRow">
229229
<div class="col-xs-6">
230-
<button id="metalCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('metal')">Mine</button>
230+
<h5><button id="metalCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('metal')">Mine</button></h5>
231231
</div>
232232
<div class="col-xs-6">
233233
<button class="psText sizeSecRegular pointer noselect" id="metalPs" onclick="getPsString('metal')">+0/sec</button>
@@ -241,7 +241,7 @@ <h6>Screen Reader Information</h6>
241241
<br/>
242242
<div class="row collectRow">
243243
<div class="col-xs-6">
244-
<button id="scienceCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('science')">Research</button>
244+
<h5><button id="scienceCollectBtn" class="workBtn workColorOff pointer noselect" onclick="setGather('science')">Research</button></h5>
245245
</div>
246246
<div class="col-xs-6">
247247
<button class="psText sizeSecRegular pointer noselect" id="sciencePs" onclick="getPsString('science')">+0/sec</button>
@@ -302,7 +302,7 @@ <h6>Screen Reader Information</h6>
302302
<span id="trimpsEmployed">0</span>/<span id="maxEmployed">0</span> employed
303303
</div>
304304
<div id="trapArea">
305-
<button id="trimpsCollectBtn" class="workBtn workColorOff pointer noSelect" onclick="setGather('trimps')">Check&nbsp;Traps&nbsp;(<span id="trimpTrapText">1</span>)</button>
305+
<h5><button id="trimpsCollectBtn" class="workBtn workColorOff pointer noSelect" onclick="setGather('trimps')">Check&nbsp;Traps&nbsp;(<span id="trimpTrapText">1</span>)</button></h5>
306306
<div id="trimpsCollecting" class="collecting" style="display: none">Trapping (<span id="trimpTrapText2">1</span>)</div>
307307
<div class="progress" id="trappingProgress">
308308
<div class="progress-bar" id="trappingBar" role="progressbar"></div>
@@ -370,7 +370,7 @@ <h3>End of Log</h3>
370370
<button id="autoTrapBtn" style="display: none" onclick="toggleAutoTrap()" class="pointer noselect colorDanger autoUpgradeBtn">AutoTraps Off</button>
371371
</div>
372372
<div class="col-xs-3">
373-
<button id="buildingsCollectBtn" onclick="setGather('buildings')" class="workBtn workColorOff pointer noselect">Build Buildings</button>
373+
<h5><button id="buildingsCollectBtn" onclick="setGather('buildings')" class="workBtn workColorOff pointer noselect">Build Buildings</button></h5>
374374
</div>
375375
</div>
376376
<div class="queue niceScroll" id="buildingsQueue">
@@ -1430,31 +1430,31 @@ <h6>Game Overview</h6>
14301430
<div id="settingsRow">
14311431
<table id="settingsTable">
14321432
<tr>
1433-
<td class="btn btn-info" onclick="save(false, true)" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1433+
<td class="btn btn-info" onclick="save(false, true)" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14341434
Save <span id="saveIndicator"></span><span id="playFabIndicator"></span>
14351435
</td>
1436-
<td class="btn btn-info" onclick="tooltip('Export', null, 'update')" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1436+
<td class="btn btn-info" onclick="tooltip('Export', null, 'update')" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14371437
<div>Export</div>
14381438
</td>
1439-
<td class="btn btn-info" onclick="tooltip('Import', null, 'update')" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1439+
<td class="btn btn-info" onclick="tooltip('Import', null, 'update')" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14401440
<div>Import</div>
14411441
</td>
1442-
<td class="btn btn-success" onclick="toggleStats()" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1442+
<td class="btn btn-success" onclick="toggleStats()" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14431443
<div>Stats</div>
14441444
</td>
1445-
<td class="btn tealColor" onclick="toggleAchievementWindow()" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1445+
<td class="btn tealColor" onclick="toggleAchievementWindow()" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14461446
<div>Achieves</div>
14471447
</td>
1448-
<td class="btn btn-default" onclick="toggleSettingsMenu()" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1448+
<td class="btn btn-default" onclick="toggleSettingsMenu()" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14491449
<div id='settingsText'>Settings</div>
14501450
</td>
1451-
<td class="btn" id="pastUpgradesBtn" onclick="viewPortalUpgrades()" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}" aria-label="View Past Upgrades">
1451+
<td class="btn" id="pastUpgradesBtn" onclick="viewPortalUpgrades()" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}" aria-label="View Past Upgrades">
14521452

14531453
</td>
1454-
<td class="btn btn-new" onclick="window.open('updates.html', '_blank')" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1454+
<td class="btn btn-new" onclick="window.open('updates.html', '_blank')" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14551455
V <span id="versionNumber"></span> | What's New
14561456
</td>
1457-
<td id="portalTimer" class="timerNotPaused" onclick="toggleSetting('pauseGame')" role="button" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
1457+
<td id="portalTimer" class="timerNotPaused" onclick="toggleSetting('pauseGame')" role="link" tabindex="0" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault();this.click();}">
14581458
<span id="portalTime">&nbsp;</span>&nbsp;&nbsp;<span style='font-size: 0.85em; line-height: 0.85em;' class='icomoon icon-pause3'></span>&nbsp;
14591459
</td>
14601460
</tr>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<div id="boneOwnedContainer">
9595
You have <span id="bonesOwned">0</span>
9696
</div>
97-
<span id="bonesFrom">You can earn bones as you progress through the world by killing Skeletimps and Megaskeletimps.</span>
97+
<span id="bonesFrom">You can earn bones as you progress through the world by killing Skeletimps and Megaskeletimps. You also earn 1 bone every 5 minutes.</span>
9898
<br/>
9999
<div id="boneFlavorRow">
100100
The Bone Trader trades bones for... bonuses

indexKong.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<span class="kredSpan"><img class="kredImg" src="imgs/kred_single.png" /></span> Get some more bones</span>
101101
</div>
102102
<br/>
103-
<span id="bonesFrom">You can earn bones as you progress through the world by killing Skeletimps and Megaskeletimps.</span>
103+
<span id="bonesFrom">You can earn bones as you progress through the world by killing Skeletimps and Megaskeletimps. You also earn 1 bone every 5 minutes.</span>
104104
<br/>
105105
<div id="getBundleBtn" class="boneBtn pointer noselect" style="width: 33vw; display: inline-block; font-size: .9em;" onclick="showPurchaseBones(); startBundling()">
106106
<span class="glyphicon glyphicon-star"></span> Click to Bundle 4 Exotic Imp-orts and get 100 free bones! <span class="glyphicon glyphicon-star"></span>

main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4957,7 +4957,8 @@ function buildBuilding(what, amt = 1) {
49574957
if (building.owned === 0 && typeof building.first !== 'undefined') building.first();
49584958
building.owned += amt;
49594959
if (usingScreenReader && game.global.playerGathering === 'buildings') {
4960-
screenReaderAssert("Built " + (amt > 1 ? amt + " " : "") + what + ", " + building.owned + " owned");
4960+
if (!(what === 'Trap' && game.global.trapBuildToggled && building.owned % 100 !== 0))
4961+
screenReaderAssert("Built " + (amt > 1 ? amt + " " : "") + what + ", " + building.owned + " owned");
49614962
}
49624963
let toIncrease;
49634964
checkAchieve('housing', what);
@@ -6623,6 +6624,7 @@ function buyMap() {
66236624
game.resources.fragments.owned -= cost;
66246625
createMap(newLevel);
66256626
if (!game.global.currentMapId) selectMap(game.global.mapsOwnedArray[game.global.mapsOwnedArray.length - 1].id);
6627+
document.getElementById("selectMapBtn").focus();
66266628
return 1;
66276629
}
66286630
else message("You can't afford this map! You need " + prettify(cost) + " fragments but only have " + prettify(game.resources.fragments.owned) + ".", "Notices");
@@ -20095,6 +20097,11 @@ function gameLoop(makeUp, now) {
2009520097
if (loops % 10 == 0){
2009620098
runEverySecond(makeUp);
2009720099
}
20100+
//every 5 minutes, grant a bone
20101+
if (loops % 3000 == 0){
20102+
game.global.b++;
20103+
updateSkeleBtn();
20104+
}
2009820105
//every 2 seconds
2009920106
if (loops % 20 == 0){
2010020107
if (mutations.Living.active()){

0 commit comments

Comments
 (0)