File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 99# iframe {border-left : 1px solid}
1010# toggle {position : fixed;bottom : 0 ;left : 50% ;transform : translateX (-50% );z-index : 50 ;transition : .5s }
1111# toggle : checked {bottom : 170px ;transform : translateX (-50% ) translateY (50% )}
12- # menu {position : fixed;bottom : -150 px ;height : 170px ;width : 100% ;border-top : 1px solid;z-index : 2 ;transition : .5s }
12+ # menu {position : fixed;bottom : -170 px ;height : 170px ;width : 100% ;border-top : 1px solid;z-index : 2 ;transition : .5s }
1313# toggle : checked ~ # menu {bottom : 0 }
1414# toggle : checked ~ .CodeMirror , # toggle : checked ~ # iframe {height : calc (100% - 170px );bottom : 0 }
1515# myconsole {float : right;height : 170px ;width : calc (100% - 120px );border-left : 1px solid;padding : 5px ;-moz-control-character-visibility : visible;resize : none}
9999// Save
100100save . onclick = function ( ) {
101101 localStorage [ "code" ] = editor . getValue ( ) ;
102+ console . log ( "Code saved in localStorage" ) ;
102103}
103104
104105// Load
109110 iframe . srcdoc = custom_console + editor . getValue ( ) ;
110111 download . href = "data:text/html," + encodeURIComponent ( input ) ;
111112 document . title = input . length + " chars - Codegolf IDE" ;
113+ console . log ( "Code loaded from localStorage" ) ;
112114}
113115
114116// Share
You can’t perform that action at this time.
0 commit comments