This repository contains demo web pages, apps, and sample code used to demonstrate various DevTools, PWA, WebView, Extensions, or Web Platform features of Microsoft Edge.
Click a folder from the list above to find out more about a particular demo, or use the tables below.
Demo name | Description | Repo directory | Live demo page |
---|---|---|---|
Create a DevTools extension | Learn to build a Microsoft Edge extension that extends DevTools. | Code | n/a |
Demo name | Description | Repo directory | Live demo page |
---|---|---|---|
1DIV | A CSS sandbox PWA that demonstrates the Window Controls Overlay feature. | Code | 1DIV |
Email client | A simulated email client PWA that demonstrates how to use PWA protocol handlers. | Code | Email inbox |
PWAmp | A music player PWA demo to read your local music files. | Code | pwamp |
wami | An image manipulation demo app to crop, resize, or add effects to images. | Code | wami |
Temperature converter | A simple PWA demo app that converts temperatures. Used in this tutorial: Get started with Progressive Web Apps. | Code | Temperature converter |
Demo name | Description | Repo directory | Live demo page |
---|---|---|---|
CSS Custom Highlight API | How to programmatically create and remove custom highlights on a web page. | Code | Custom Highlight API |
EyeDropper API | How to use the EyeDropper API to create a color sampling tool from JavaScript. | Code | EyeDropper API demos |
Reader app | An article reader app used to demonstrate how to use various web APIs such as CSS Custom Highlight, <selectmenu> , EyeDropper, CSS and JSON modules, Scroll animation timeline, Async Clipboard. |
Code | Reader |
Selectmenu demos | Demo page showing how the Open UI's <selectmenu> element can be used. |
Code | Open UI's demos |
To add a new demo:
-
Make a copy of the
template
directory at the root of this repository and give it a name, such asmy-demo
. -
Edit the
README.md
file in the new directory to clearly explain what your new demo is about. -
In the README file, include a GitHub.io link that points to the live demo.
This repository is set up to be deployed live using GitHub Pages (GitHub.io), so a rendered
index.html
file in themy-demo
directory (for example) will end up being accessible on the web athttps://microsoftedge.github.io/demos/my-demo/
. -
Edit the code (such as
index.html
orstyle.css
) in the new directory. Add any files you need. -
Use the shared CSS, JS, and images from the
shared
directory.The template demo already links to the shared CSS, JS, and images. This avoids having to repeat basic styling and typography CSS code, or having to create your own images.
-
Add a link to your demo in this
README.md
file, in a new row in one of the tables.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.