"n0t1f1c4t10n"
Bootstrap 4.0.0 Snippet by okebro

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>notification.js Examples</title>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://rumart.weebly.com/files/theme/animate.css">
<link rel="stylesheet" href="http://rumart.weebly.com/files/theme/notification.css">
</head>
<body>
<div class="container">
<div class="settings row">
<div class="col-md-12">
<div class="css-script-ads" style="margin:30px auto" align="center"><script type="text/javascript">
</script>
</div>
<h2 class="panel-title text-center">Position</h2>
<div class="positions">
<div class="position top left selected" data-position="1"></div>
<div class="position top right" data-position="2"></div>
<div class="position bottom right" data-position="3"></div>
<div class="position bottom left" data-position="4"></div>
</div>
</div>
<div class="col-md-12">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.container {
background-color: #F4F4F4;
}
.navbar {
color: white;
background: #663399;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .3);
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Position
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
.positions {
width: 350px;
height: 180px;
background: #B4EFE0;
position: relative;
left: 50%;
margin: 50px 0 50px -175px;
border: 12px solid #90DECA;
}
.position {
width: 80px;
height: 20px;
background: #A3E7D6;
border-radius: 3px;
position: absolute;
cursor: pointer;
margin: 10px;
color: #77CFB9;
}
.position.selected {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*global $, Notification*/
(function () {
'use strict';
var position = 1;
$(document).on('click', '.notify', function () {
Notification({
title: "Title",
text: "Long text Long text Long text Long text. 2 lines = Perfect ;)",
image: "/john-doe.jpg",
inAnimation: $('#inAnimation').val(),
outAnimation: $('#outAnimation').val(),
position: position
});
});
$(function () {
$('.position').click(function (event) {
var el = $(event.target);
$('.position').removeClass('selected notify');
el.addClass('selected notify');
position = el.attr('data-position');
});
});
}());
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: