GithubHelp home page GithubHelp logo

guoyu07 / simple-alert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bstavroulakis/simple-alert

0.0 0.0 0.0 2.75 MB

A simple alert element with push notifications

Home Page: http://bstavroulakis.github.io/simple-alert/components/simple-alert/

License: MIT License

HTML 100.00%

simple-alert's Introduction

Status

Build Status

General Info <simple-alert>

<simple-alert> shows an alert on your page and a push notification on your device.

To use, insert <simple-alert> in the body:

<body>
  <simple-alert></simple-alert>

Example:

To show the message instantly.

    <body>
      <simple-alert autoshow message="Hello">
      </simple-alert>

Example:

To enable push notifications per device.

    <body>
      <simple-alert notify-device message="Hello">
      </simple-alert>

Documentation Page

http://bstavroulakis.github.io/simple-alert/components/simple-alert/

Demo Page

http://bstavroulakis.github.io/simple-alert/components/simple-alert/demo/

Styling

The following custom properties and mixins are available for styling: Custom property | Description | Default

----------------------------|--------------------------------------------|----------

--dark-primary-color | The background-color of the message | #303F9F

--text-primary-color | The text color of the message | #ffffff

Fonts

The following variable is applied for the font of the element --paper-font-common-base

simple-alert's People

Contributors

bstavroulakis avatar

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.