File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 10
10
< script >
11
11
var gui = nw ;
12
12
var win ;
13
- gui . Window . open ( 'popup .html' , {
13
+ gui . Window . open ( 'newpop .html' , {
14
14
x : 100 , y : 100 , width : 200 , height : 300
15
15
} , function ( w ) { win = w ;
16
16
78
78
< br />
79
79
< button onclick ="win.moveBy(10, 20) "> moveBy(10, 20)</ button >
80
80
< br />
81
- < button onclick ="win.resizeTo(100, 100 ) "> resizeTo(100, 100 )</ button >
81
+ < button onclick ="win.resizeTo(180, 180 ) "> resizeTo(180, 180 )</ button >
82
82
< br />
83
83
< button onclick ="win.resizeBy(10, 20) "> resizeBy(10, 20)</ button >
84
84
< br />
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > 5093 as a menu window</ title >
5
+ < meta charset ="UTF-8 ">
6
+ < style >
7
+ html ,
8
+ body {
9
+ width : 100% ;
10
+ height : 100% ;
11
+ margin : 0 ;
12
+ padding : 0 ;
13
+ background-color : blue;
14
+ }
15
+ # yellow {
16
+ color : black;
17
+ background-color : yellow;
18
+ width : 800px ;
19
+ height : 600px ;
20
+ }
21
+ </ style >
22
+ </ head >
23
+ < body >
24
+ < div id ="yellow "> </ div >
25
+ </ body >
26
+ < script >
27
+ window . onload = window . onresize = function ( ) {
28
+ var yellow = document . getElementById ( 'yellow' ) ;
29
+ yellow . innerHTML = window . innerWidth + ", " + window . innerHeight + ' - inner size' ;
30
+ }
31
+ </ script >
32
+ </ html >
You can’t perform that action at this time.
0 commit comments