@@ -222,56 +222,16 @@ export class Game extends SaveProvider {
222222 devDiv . setAttribute ( "style" , "padding-left: 3px;" ) ;
223223
224224 const devWarning = document . createElement ( "h4" ) ;
225- devWarning . appendChild ( document . createTextNode ( "localhost detected, options below" ) ) ;
225+ devWarning . innerText = "localhost detected, options below" ;
226226 devWarning . setAttribute ( "style" , "color:black;" ) ;
227227 devDiv . appendChild ( devWarning ) ;
228228
229- const devResetButton = document . createElement ( "button" ) ;
230- devResetButton . appendChild ( document . createTextNode ( "Reset Sava Data" ) ) ;
231- devResetButton . addEventListener ( "click" , ( ) => { this . savinator5000 . reset ( ) } ) ;
232- devDiv . appendChild ( devResetButton ) ;
233-
234- const br1 = document . createElement ( "br" ) ;
235- devDiv . appendChild ( br1 ) ;
236-
237229 const mousePos = document . createElement ( "p" ) ;
238- mousePos . appendChild ( document . createTextNode ( "Mouse Pos: (?, ?)" ) ) ;
230+ mousePos . innerText = "Mouse Pos: (?, ?)" ;
239231 mousePos . setAttribute ( "id" , "mousePosDevText" ) ;
240232 mousePos . setAttribute ( "style" , "margin-bottom:0px;" ) ;
241233 devDiv . appendChild ( mousePos ) ;
242234
243- const br2 = document . createElement ( "br" ) ;
244- devDiv . appendChild ( br2 ) ;
245-
246- const devLoadButton = document . createElement ( "button" ) ;
247- devLoadButton . appendChild ( document . createTextNode ( "Force Load Save" ) ) ;
248- devLoadButton . addEventListener ( "click" , ( ) => { this . savinator5000 . load ( ) } ) ;
249- devDiv . appendChild ( devLoadButton ) ;
250-
251- const br3 = document . createElement ( "br" ) ;
252- devDiv . appendChild ( br3 ) ;
253-
254- const mobileOn = document . createElement ( "button" ) ;
255- mobileOn . appendChild ( document . createTextNode ( "Goto Mobile Mode" ) ) ;
256- const mobileOnHyperlink = document . createElement ( "a" ) ;
257- mobileOnHyperlink . setAttribute ( "href" , "../mobile/mobile.html" ) ;
258- mobileOnHyperlink . appendChild ( mobileOn ) ;
259- devDiv . appendChild ( mobileOnHyperlink ) ;
260-
261- const br4 = document . createElement ( "br" ) ;
262- devDiv . appendChild ( br4 ) ;
263-
264- const toggleSaving = document . createElement ( "button" ) ;
265- toggleSaving . appendChild ( document . createTextNode ( "Toggle Auto-Saving" ) ) ;
266- toggleSaving . addEventListener ( "click" , ( ) => { dev . toggleSaving ( ) } ) ;
267- toggleSaving . setAttribute ( "style" , "margin-bottom:0px;" ) ;
268- devDiv . appendChild ( toggleSaving ) ;
269- const currentSavingStatus = document . createElement ( "p" ) ;
270- currentSavingStatus . appendChild ( document . createTextNode ( "saving: true" ) ) ;
271- currentSavingStatus . setAttribute ( "id" , "currentSavingStatus" ) ;
272- currentSavingStatus . setAttribute ( "style" , "margin-bottom:0px;" ) ;
273- devDiv . appendChild ( currentSavingStatus ) ;
274-
275235 document . getElementById ( "leftSide" ) . insertBefore ( devDiv , document . getElementById ( "leftSidePush" ) ) ;
276236
277237 dev . setDevMode ( true ) ;
0 commit comments