Skip to content

Commit 20eaf01

Browse files
Merge branch 'main' of github.com:MicrosoftEdge/Demos
2 parents 4b12ea1 + 12e846e commit 20eaf01

14 files changed

+172
-52
lines changed

pwa-pwastore/app.js

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,58 @@
11
// All of the UI DOM elements we need.
2+
const installBtn = document.getElementById("btnInstallStore");
23
const pwinterBtn = document.getElementById("installPwinter");
34
const pwampBtn = document.getElementById("installPwamp");
5+
const tempConvBtn = document.getElementById("installPwaGettingStarted");
6+
const emailClientBtn = document.getElementById("installEmailClient");
7+
const oneDivBtn = document.getElementById("install1Div");
8+
const wamiBtn = document.getElementById("installWami");
49
const bubbleBtn = document.getElementById("installBubble");
5-
const installBtn = document.getElementById("btnInstallStore");
10+
const appTitleBtn = document.getElementById("installappTitle");
11+
12+
13+
installBtn.addEventListener('click', async () => {
14+
let installation = await navigator.install();
15+
});
16+
17+
pwinterBtn.addEventListener('click', async () => {
18+
let installation = await navigator.install('https://diek.us/pwinter/',
19+
'https://diek.us/pwinter/index.html?randomize=true');
20+
});
621

7-
pwinterBtn.addEventListener('click', () => {
8-
navigator.install('https://diek.us/pwinter/',
9-
'https://diek.us/pwinter/index.html?randomize=true')
22+
pwampBtn.addEventListener('click', async () => {
23+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/pwamp/',
24+
'https://microsoftedge.github.io/Demos/pwamp/');
1025
});
1126

12-
pwampBtn.addEventListener('click', () => {
13-
navigator.install('https://microsoftedge.github.io/Demos/pwamp/',
14-
'https://microsoftedge.github.io/Demos/pwamp/')
27+
bubbleBtn.addEventListener('click', async () => {
28+
let installation = await navigator.install('https://diek.us/bubble/',
29+
'https://diek.us/bubble/index.html');
1530
});
1631

17-
bubbleBtn.addEventListener('click', () => {
18-
navigator.install('https://diek.us/bubble/',
19-
'https://diek.us/bubble/index.html')
32+
tempConvBtn.addEventListener('click', async () => {
33+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/pwa-getting-started/index.html', 'https://microsoftedge.github.io/Demos/pwa-getting-started/');
34+
2035
});
2136

22-
installBtn.addEventListener('click', () => {
23-
navigator.install();
37+
emailClientBtn.addEventListener('click', async () => {
38+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/email-client/',
39+
'https://microsoftedge.github.io/Demos/email-client/index.html');
2440
});
2541

42+
oneDivBtn.addEventListener('click', async () => {
43+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/1DIV/dist/',
44+
'https://microsoftedge.github.io/Demos/1DIV/dist/index.html');
45+
});
46+
47+
wamiBtn.addEventListener('click', async () => {
48+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/wami/index.html', 'https://microsoftedge.github.io/Demos/wami/');
49+
});
50+
51+
appTitleBtn.addEventListener('click', async () => {
52+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/pwa-application-title/', 'https://microsoftedge.github.io/Demos/pwa-application-title/');
53+
});
54+
55+
2656
const init = () => {
2757
if (window.matchMedia('(display-mode: standalone)').matches || window.matchMedia('(display-mode: window-controls-overlay)').matches) {
2858
installBtn.style.display = 'none';
12.6 KB
Loading

pwa-pwastore/images/favicon.png

-1.92 KB
Loading

pwa-pwastore/images/pwastore-logo.png

-10.9 KB
Loading

pwa-pwastore/images/pwastore-logo.svg

Lines changed: 1 addition & 15 deletions
Loading

pwa-pwastore/images/pwastore144.png

-2.18 KB
Loading

pwa-pwastore/images/pwastore256.png

-3.71 KB
Loading

pwa-pwastore/images/pwastore512.png

-7.9 KB
Loading

pwa-pwastore/images/pwastore96.png

-1.5 KB
Loading

pwa-pwastore/index.html

Lines changed: 56 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<link href="styles/pwastore.css" rel="stylesheet">
88
<link rel="icon" type="image/x-icon" href="images/favicon.png">
99
<link rel="manifest" href="manifest.json" />
10-
<meta name="app-title" content="Web Install demo by MSEdgeDEV">
11-
<title>The PWA Store</title>
10+
<meta name="application-title" content="Edge Demos by the Microsoft Edge team">
11+
<title>Microsoft Edge Demos</title>
1212
<link rel="stylesheet" href="styles/pwastore-dark.css" media="(prefers-color-scheme: dark)"/>
1313
<link rel="stylesheet" href="styles/pwastore-light.css" media="(prefers-color-scheme: light)"/>
1414
<meta name="theme-color" content="#FFF5E0" media="(prefers-color-scheme: light)"/>
@@ -18,37 +18,83 @@
1818
<body>
1919
<div class="draggable"></div>
2020
<header>
21-
<img src="images/pwastore-logo.svg" width="100" height="100" class="storeicon">
22-
<button class="btn_install_store" id="btnInstallStore">Install PWA store</button>
21+
<img src="images/pwastore-logo.svg" width="200" height="100" class="storeicon">
22+
<button class="btn_install_store" id="btnInstallStore">Install Edge Demos</button>
2323
<div class="category_filter_nav">
2424
<button class="btn_category">new!</button>
25-
<button class="btn_category">music</button>
26-
<button class="btn_category">image</button>
27-
<button class="btn_category">all apps</button>
25+
<button class="btn_category">PWA</button>
26+
<button class="btn_category">CSS</button>
27+
<button class="btn_category">all demos</button>
2828
</div>
2929
</header>
3030
<main>
31+
<article class="instructions">
32+
<h2>Instructions</h2>
33+
<p>This collection contains demo webpages, apps, and sample code to demonstrate various features of Microsoft Edge. You can filter the type of demo with the buttons above.</p>
34+
<p><strong>Some additional details for demos to work:</strong></p>
35+
<ul>
36+
<li>Check if you need to enable any experimental features in <code>about://flags</code>.</li>
37+
<li><a href="https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials" target="_blank">List of active Origin Trials on Microsoft Edge.</a></li>
38+
<li>This app uses the <a href="https://aka.ms/webinstall">Web Install API</a> to install demos.</li>
39+
</ul>
40+
</article>
41+
42+
<article class="app_entry">
43+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/pwa-getting-started/icon512.png" width="75" height="75" class="app_icon">
44+
<h2>Temperature converter - PWA getting started demo app</h2>
45+
<p class="app_descrip">A simple PWA demo app that converts temperatures. Used for <a href="https://learn.microsoft.com/microsoft-edge/progressive-web-apps/how-to/" target="_blank">Get started with Progressive Web Apps.</a></p>
46+
<button id="installPwaGettingStarted" class="btn_install">Install</button>
47+
</article>
48+
3149
<article class="app_entry">
3250
<img src="images/app-icons/pwinter.png" width="75" height="75" class="app_icon">
3351
<h2>The PWinter</h2>
34-
<p class="app_descrip">Custom PWA icon generator.</p>
52+
<p class="app_descrip">The PWinter is your custom PWA icon generator!</p>
3553
<button id="installPwinter" class="btn_install">Install</button>
3654
</article>
3755

3856
<article class="app_entry">
3957
<img src="images/app-icons/pwamp.png" width="75" height="75" class="app_icon">
4058
<h2>PWAmp</h2>
41-
<p class="app_descrip">Music player, but make it progressive.</p>
59+
<p class="app_descrip">A music player PWA demo to play local audio files.</p>
4260
<button id="installPwamp" class="btn_install">Install</button>
4361
</article>
4462

4563
<article class="app_entry">
4664
<img src="images/app-icons/bubble.png" width="75" height="75" class="app_icon">
4765
<h2>Bubble</h2>
48-
<p class="app_descrip">Equirectangular picture viewer.</p>
66+
<p class="app_descrip">360° equirectangular picture viewer. For images from 360 cameras.</p>
4967
<button id="installBubble" class="btn_install">Install</button>
5068
</article>
5169

70+
<article class="app_entry">
71+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/email-client/img/icon-256.png" width="75" height="75" class="app_icon">
72+
<h2>Email Client demo</h2>
73+
<p class="app_descrip">A simulated email client PWA that demonstrates how to use PWA protocol handlers.</p>
74+
<button id="installEmailClient" class="btn_install">Install</button>
75+
</article>
76+
77+
<article class="app_entry">
78+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/1DIV/dist/img/icon-256.png" width="75" height="75" class="app_icon">
79+
<h2>1DIV</h2>
80+
<p class="app_descrip">A CSS sandbox PWA that demonstrates the Window Controls Overlay feature.</p>
81+
<button id="install1Div" class="btn_install">Install</button>
82+
</article>
83+
84+
<article class="app_entry">
85+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/wami/favicon-256.png" width="75" height="75" class="app_icon">
86+
<h2>wami</h2>
87+
<p class="app_descrip">An image manipulation demo app to crop, resize, or add effects to images.</p>
88+
<button id="installWami" class="btn_install">Install</button>
89+
</article>
90+
91+
<article class="app_entry">
92+
<img src="https://raw.githubusercontent.com/MicrosoftEdge/Demos/refs/heads/main/pwa-application-title/icon.png" width="75" height="75" class="app_icon">
93+
<h2>Application Title demo</h2>
94+
<p class="app_descrip">A demo web app to showcase the <code>application-title</code> meta tag.</p>
95+
<button id="installappTitle" class="btn_install">Install</button>
96+
</article>
97+
5298
</main>
5399
<footer>
54100
&copy; Microsoft Edge

0 commit comments

Comments
 (0)