File tree Expand file tree Collapse file tree
utils/editors/html-editor/html/output-html/v2.0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 129129 var create = { } ;
130130 var build = { } ;
131131 var run = { } ;
132+ obj . console = { } ;
132133
133134
134135 //:
157158
158159 var hdr = $ ( shadow , '#hdr' ) ;
159160
160- chk . isolate = $ . chkbox ( hdr , '#isolate' ) ;
161- chk . isolate . checked = window . crossOriginIsolated ;
162-
163161 chk [ 'allow-scripts' ] = $ . chkbox ( hdr , '#allow-scripts' ) ;
164- chk [ 'allow-modals' ] = $ . chkbox ( hdr , '#allow-modals' ) ;
165- chk [ 'allow-popups' ] = $ . chkbox ( hdr , '#allow-popups' ) ;
166162
167- chk [ 'console-show' ] = $ . chkbox ( hdr , '#console-show' , btn . console . show ) ;
168- chk [ 'console-echo' ] = $ . chkbox ( hdr , '#console-echo' ) ;
169163 chk [ 'console-persist' ] = $ . chkbox ( hdr , '#console-persist' ) ;
170164 $ ( shadow , '#console-clear' ) . onclick = btn . console . clear ;
171165
210204*/
211205
212206
213- btn . console . show = function ( chk ) {
214-
215- if ( chk . checked ) {
216- webconsole . host . style . display = '' ;
217- } else {
218- webconsole . host . style . display = 'none' ;
219- }
220-
221- } //show
222-
223-
207+
224208 btn . console . clear = function ( ) {
225209
226210 webconsole . clear ( ) ;
231215 } //clear
232216
233217
218+ //:
219+
220+
221+ obj . console . show = function ( chk ) {
222+
223+ if ( chk . checked ) {
224+ webconsole . host . style . display = '' ;
225+ } else {
226+ webconsole . host . style . display = 'none' ;
227+ }
228+
229+ } //show
230+
234231
235232 obj . horiz = function ( ) {
236233
You can’t perform that action at this time.
0 commit comments