Skip to content

Getting Started

Fabien Doiron edited this page Jul 9, 2013 · 4 revisions

0.4. documentation, see 0.3.* documentation*

This guide will show you how to include and start using alertify.js in your projects. If you're a developer looking to extend and/or customize alertify.js, see installing alertify.js

Including alertify.js in your project

Using bower

Alertify.js can be installed using bower.

$ bower install alertify

Inserting into HTML

Include JS

<!-- ideally at the bottom of the page -->
<!-- also works in the <head> -->
<script src="PATH_TO_FILE/alertify.min.js"></script>

Include CSS

<!-- include the core styles -->
<link rel="stylesheet" href="PATH_TO_FILE/alertify.css" />
<!-- include a theme, can be included into the core instead of 2 separate files -->
<link rel="stylesheet" href="PATH_TO_FILE/alertify.default.css" />