"n0t1f1c4t10n"
Bootstrap 4.0.0 Snippet by okebro

<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"> <div class="alert col-md-4"> <h3>Alert</h3> <fieldset> <legend></legend> <div class="notify btn" value="bounce">bounce</div> <div class="notify btn" value="flash">flash</div> <div class="notify btn" value="pulse">pulse</div> <div class="notify btn" value="rubberBand">rubberBand</div> <div class="notify btn" value="shake">shake</div> <div class="notify btn" value="swing">swing</div> <div class="notify btn" value="tada">tada</div> <div class="notify btn" value="wobble">wobble</div> </fieldset> </div> </div> </div> </div> <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="http://rumart.weebly.com/files/theme/notification.js"></script> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-46156385-1', 'cssscript.com'); ga('send', 'pageview'); </script> </body>
.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 { background: white; box-shadow: 0 2px 6px 0 #66C8B0; color: #333333; } .position:hover { box-shadow: 0 2px 6px 0 #66C8B0; } .position.left { left: 0; } .position.right { right: 0; } .position.top { top: 0; } .position.bottom { bottom: 0; } .settings fieldset .btn { width: 100%; margin: 5px 0; color: #639; background-color: #FFFFFF; border-color: #663399; } .panel-title { background: white; padding: 20px 0; } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * In * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Alert * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Out * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Footer * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ footer { margin-top: 50px; border-top: solid 1px white; width: 100%; }
/*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'); }); }); }());

Related: See More


Questions / Comments: