Skip to content

Commit a907150

Browse files
authored
Merge pull request #92 from diekus/install-dev-trial-files
Files for install dev trial restoration
2 parents b93a287 + c20e2d0 commit a907150

20 files changed

+582
-0
lines changed

pwa-pwastore/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Edge demos
2+
3+
➡️ **[Open the demo](https://microsoftedge.github.io/Demos/pwa-pwastore/)** ⬅️
4+
5+
**Edge demos** is a demo app for a landing page of a collection of applications.
6+
7+
## Requirements
8+
9+
This demo application showcases the Web Install API and the "Masonry" layout. You need to enable 2 separate flags in `about://flags` for the demo to work correctly (`#css-masonry-layout`/`#web-app-installation-api`) available in Chromium browsers versions M139+.

pwa-pwastore/app.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// All of the UI DOM elements we need.
2+
const installBtn = document.getElementById("btnInstallStore");
3+
const pwinterBtn = document.getElementById("installPwinter");
4+
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");
9+
const bubbleBtn = document.getElementById("installBubble");
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+
});
21+
22+
pwampBtn.addEventListener('click', async () => {
23+
let installation = await navigator.install('https://microsoftedge.github.io/Demos/pwamp/',
24+
'https://microsoftedge.github.io/Demos/pwamp/');
25+
});
26+
27+
bubbleBtn.addEventListener('click', async () => {
28+
let installation = await navigator.install('https://diek.us/bubble/',
29+
'https://diek.us/bubble/index.html');
30+
});
31+
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+
35+
});
36+
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');
40+
});
41+
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+
56+
const init = () => {
57+
if (window.matchMedia('(display-mode: standalone)').matches || window.matchMedia('(display-mode: window-controls-overlay)').matches) {
58+
installBtn.style.display = 'none';
59+
}
60+
};
61+
62+
init();
23 KB
Loading
12.6 KB
Loading
5.85 KB
Loading
36.9 KB
Loading

pwa-pwastore/images/favicon.png

5.18 KB
Loading

pwa-pwastore/images/pwastore-logo.png

28.7 KB
Loading

pwa-pwastore/images/pwastore-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

pwa-pwastore/images/pwastore144.png

7.52 KB
Loading

0 commit comments

Comments
 (0)