@@ -17,7 +17,7 @@ async function updatePieHikeGames() {
1717
1818// Initialize functions
1919
20- async function initializePieHikingMaps ( ) {
20+ async function initPHMaps ( ) {
2121 // Update pie hiking games
2222 await updatePieHikeGames ( ) ;
2323
@@ -36,8 +36,8 @@ async function initializePieHikingMaps() {
3636 // Create row
3737 const tableRow = document . createElement ( "tr" ) ;
3838 const tableMapId = document . createElement ( "th" ) ;
39- const tableMapName = document . createElement ( "th" ) ;
4039 const tableMapLink = document . createElement ( "th" ) ;
40+ const tableMapName = document . createElement ( "th" ) ;
4141 const tableMapCreator = document . createElement ( "th" ) ;
4242
4343 // Modify content
@@ -49,8 +49,8 @@ async function initializePieHikingMaps() {
4949
5050 // Build row
5151 tableRow . appendChild ( tableMapId ) ;
52- tableRow . appendChild ( tableMapName ) ;
5352 tableRow . appendChild ( tableMapLink ) ;
53+ tableRow . appendChild ( tableMapName ) ;
5454 tableRow . appendChild ( tableMapCreator ) ;
5555
5656 // Append row
@@ -65,9 +65,9 @@ async function initializePieHikingMaps() {
6565 // Create row
6666 const tableRow = document . createElement ( "tr" ) ;
6767 const tableMapId = document . createElement ( "td" ) ;
68- const tableMapName = document . createElement ( "td" ) ;
6968 const tableMapLink = document . createElement ( "td" ) ;
7069 const mapHyperlink = document . createElement ( "a" ) ;
70+ const tableMapName = document . createElement ( "td" ) ;
7171 const tableMapCreator = document . createElement ( "td" ) ;
7272
7373 // Modify hyperlink
@@ -87,8 +87,8 @@ async function initializePieHikingMaps() {
8787 // Build row
8888 tableMapLink . appendChild ( mapHyperlink ) ;
8989 tableRow . appendChild ( tableMapId ) ;
90- tableRow . appendChild ( tableMapName ) ;
9190 tableRow . appendChild ( tableMapLink ) ;
91+ tableRow . appendChild ( tableMapName ) ;
9292 tableRow . appendChild ( tableMapCreator ) ;
9393
9494 // Append row
@@ -99,12 +99,12 @@ async function initializePieHikingMaps() {
9999 freezeRows ( pieHikingMapsTable , [ 0 ] ) ;
100100}
101101
102- function initializePieHiking ( ) {
103- initializePieHikingMaps ( ) ;
102+ function init ( ) {
103+ initPHMaps ( ) ;
104104}
105105
106106function onDOMContentLoaded ( ) {
107- initializePieHiking ( ) ;
107+ init ( ) ;
108108}
109109
110110// Calling / events
0 commit comments