File tree 2 files changed +26
-6
lines changed
2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change
1
+ // All of the UI DOM elements we need.
2
+ const pwinterBtn = document . getElementById ( "installPwinter" ) ;
3
+ const pwampBtn = document . getElementById ( "installPwamp" ) ;
4
+ const bubbleBtn = document . getElementById ( "installBubble" ) ;
5
+
6
+ pwinterBtn . addEventListener ( "click" , ( ) => {
7
+ navigator . install ( "https://diek.us/pwinter/index.html?randomize=true" ,
8
+ "https://diek.us/pwinter/" )
9
+ } ) ;
10
+
11
+ pwampBtn . addEventListener ( "click" , ( ) => {
12
+ navigator . install ( "https://microsoftedge.github.io/Demos/pwamp/" ,
13
+ "https://microsoftedge.github.io/Demos/pwamp/" )
14
+ } ) ;
15
+
16
+ bubbleBtn . addEventListener ( "click" , ( ) => {
17
+ navigator . install ( "https://diek.us/bubble/index.html" ,
18
+ "https://diek.us/bubble/" )
19
+ } ) ;
Original file line number Diff line number Diff line change 13
13
< link rel ="stylesheet " href ="styles/pwastore-light.css " media ="(prefers-color-scheme: light) "/>
14
14
< meta name ="theme-color " content ="#FFF5E0 " media ="(prefers-color-scheme: light) "/>
15
15
< meta name ="theme-color " content ="#3D3D3D " media ="(prefers-color-scheme: dark) "/>
16
-
16
+
17
17
</ head >
18
18
< body >
19
19
< div class ="draggable "> </ div >
31
31
< img src ="images/app-icons/pwinter.png " width ="75 " height ="75 " class ="app_icon ">
32
32
< h2 > The PWinter</ h2 >
33
33
< p class ="app_descrip "> Custom PWA icon generator.</ p >
34
- < button class ="btn_install "> Install</ button >
34
+ < button id =" installPwinter " class ="btn_install "> Install</ button >
35
35
</ article >
36
36
37
37
< article class ="app_entry ">
38
38
< img src ="images/app-icons/pwamp.png " width ="75 " height ="75 " class ="app_icon ">
39
39
< h2 > PWAmp</ h2 >
40
40
< p class ="app_descrip "> Music player, but make it progressive.</ p >
41
- < button class ="btn_install "> Install</ button >
41
+ < button id =" installPwamp " class ="btn_install "> Install</ button >
42
42
</ article >
43
43
44
44
< article class ="app_entry ">
45
45
< img src ="images/app-icons/bubble.png " width ="75 " height ="75 " class ="app_icon ">
46
46
< h2 > Bubble</ h2 >
47
47
< p class ="app_descrip "> Equirectangular picture viewer.</ p >
48
- < button class ="btn_install "> Install</ button >
48
+ < button id =" installBubble " class ="btn_install "> Install</ button >
49
49
</ article >
50
50
51
51
</ main >
52
52
< footer >
53
53
© Microsoft Edge
54
54
</ footer >
55
-
55
+
56
56
< template >
57
57
< article class ="app_entry ">
58
58
< img src ="" width ="75 " height ="75 " class ="app_icon ">
59
59
< h2 > Title</ h2 >
60
60
< p class ="app_descrip "> Equirectangular picture viewer.</ p >
61
61
< button class ="btn_install "> Install</ button >
62
- </ article >
62
+ </ article >
63
63
</ template >
64
64
65
+ < script type ="module " src ="app.js "> </ script >
65
66
</ body >
66
67
</ html >
You can’t perform that action at this time.
0 commit comments