Installation
Hakan ERSU edited this page Mar 20, 2015
·
2 revisions
Go to dist directory and copy all the folders to a new destination, which will be your project home.
It’s not required, but i recommend placing CSS files in <head>
and JavaScript files and initialization code in the footer of your site (before the closing </body>
tag).
<link rel="stylesheet" href="/css/amaran.min.css">
jQuery required for Amaran JS.If you already have jquery.js on your site, don’t include it a second time, or use jQuery.noConflict();
mode.
You can add jQuery via Google CDN
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
So minimalistic setup look like this
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
<link rel="stylesheet" href="amaran/css/amaran.min.css">
</head>
<body>
<p>My Content</p>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="amaran/js/jquery.amaran.min.js"></script>
</body>
</html>
I recommend Font Awesome Icons and Open Sans for better looking notifications.Specially for default theme.
Just place these two css files inside your <head>
section.
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
So recommended setup should look like;
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="amaran/css/amaran.min.css">
</head>
<body>
<p>My Content</p>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="amaran/js/jquery.amaran.min.js"></script>
</body>
</html>
You can find AmaranJS at jsDelivr
<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.amaran/0.5.4/amaran.min.css">
<script src="//cdn.jsdelivr.net/jquery.amaran/0.5.4/jquery.amaran.min.js"></script>