Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

example proposal for html5 notification. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions example-notification.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Example: h5.notification</title>
</head>
<body>
<h1>Example: h5.notification</h1>
<script src="core.h5ive.js"></script>
<script src="notification.h5ive.js"></script>
<script src="example-notification.js"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions example-notification.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
notification = h5.notification();

notification
.show({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be a good idea to stick closer to the API for params like body and icon instead of content and image?

title: "notification title",
content: "notification content", //optional
image: "/path/to/image" // optional
});