GithubHelp home page GithubHelp logo

seksenov / hwatoast Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 7.64 MB

Create a custom toast notification and respond to the activation even received from user selection directly from your website.

License: MIT License

JavaScript 37.21% HTML 3.58% PowerShell 55.00% CSS 4.21%

hwatoast's Introduction

Demo: Notifications

This demo shows a quick way to add a notification to your website. It's intended purpose is to show native notifications from remote code in a Hosted Web App on Windows 10 but has fallbacks to web notifications, followed by alerts depending on the level of support provided by the browser in which the app is running.

In order for the Windows Toast code to work you need to be running this project as a Universal Windows App on a Windows 10 device. Otherwise you'll be able to check it out in the browser.

To Run on Windows 10:

img img

Step 1

Clone the repo locally

npm install
gulp appx:dev

This will start a localhost server an open a browser window and launch a hosted web app pointing to it. You will also have an external URL that you can connect to from a mobile device.

Step 2

Create a Notification

  • Enter the values you'd like to see in the notification
  • Click Notify!

Step 3

Interact with the Notification

  • Fill the text box in the toast notification with a message
  • Click yes or no
  • Check out the values packed back to the site

More Info

  • To start your own hosted web app project from scratch check out the appx yeoman generator here
  • If you have an existing web app with a JSON manifest that you'd like to publish on WIndows 10 and other platforms check out ManifoldJS
  • For more info on Hosted Web Apps for Windows 10 check out Project Wesminster in a nutshell

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.