1.0.1 • Published 6 years ago

notifyzz v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

NotifyzZ

Plugin for shown notifications on your site.

Demo

Demo page

Usage

Connect

In head:

<link rel="stylesheet" href="/js/notifyzz.min.css">

Before </body>

<script src="/js/notifyzz.min.js"></script>

HTML

<div class="timer j-timer"></div>

Initialization

new NotifyzZ({
  title: 'BrooonS',
  content: 'Hello world!',
});

Config

new NotifyzZ({
  title: '',
  content: '',
  duration: 5000,
  extraClass: '',
  position: '',
  isClosingOnClick: true,
  isClosingOnSwipe: true,
  beforeCreate() {},
  beforeOpen() {},
  beforeClose() {},
  beforeDestroy() {},
  beforeContainerDestroy() {},
});
SettingDescriptionType
titleTitle in notify (allow HTML)string
contentContent in notify (allow HTML)string
durationDuration of a notificationnumber
extraClassAdded to notifystring
positionNotify position (allow left, bottom)string
isClosingOnClickClose on mouse or touchboolean
isClosingOnSwipeClose on swipe on mobile devicesboolean
beforeCreateCallbackfunction
beforeOpenCallbackfunction
beforeCloseCallbackfunction
beforeDestroyCallbackfunction
beforeContainerDestroyCallbackfunction

Author

@BrooonS

Licence

MIT licence