|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | + <meta charset="utf-8"> |
| 6 | + <title>Bootstrap Theme</title> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | + <meta name="description" content="demonstration of some noty capabilities"> |
| 9 | + |
| 10 | + <link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic&subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'> |
| 11 | + <style type="text/css"> |
| 12 | + |
| 13 | + html { |
| 14 | + height: 100%; |
| 15 | + width: 100%; |
| 16 | + } |
| 17 | + |
| 18 | + body { |
| 19 | + font-family: 'PT Sans', Tahoma, Arial, serif; |
| 20 | + line-height: 13px |
| 21 | + } |
| 22 | + |
| 23 | + </style> |
| 24 | + |
| 25 | + <link rel="stylesheet" type="text/css" href="buttons.css"/> |
| 26 | + <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> |
| 27 | +</head> |
| 28 | +<body> |
| 29 | + |
| 30 | +<div class="container"> |
| 31 | + |
| 32 | + <div id="customContainer"></div> |
| 33 | + |
| 34 | +</div> |
| 35 | + |
| 36 | +<script src="jquery-1.7.2.min.js"></script> |
| 37 | + |
| 38 | +<!-- noty --> |
| 39 | +<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script> |
| 40 | + |
| 41 | +<script type="text/javascript"> |
| 42 | + |
| 43 | + function generate(type, theme) { |
| 44 | + var n = noty({ |
| 45 | + text : theme + ' > ' + type, |
| 46 | + type : type, |
| 47 | + dismissQueue: true, |
| 48 | + layout : 'topCenter', |
| 49 | + theme : theme, |
| 50 | + closeWith : ['button', 'click'], |
| 51 | + maxVisible : 20, |
| 52 | + modal : false, |
| 53 | + animation: { |
| 54 | + open: {opacity: 'toggle'}, |
| 55 | + close: {opacity: 'toggle'}, |
| 56 | + easing: 'swing', |
| 57 | + speed: 500 |
| 58 | + } |
| 59 | + }); |
| 60 | + console.log('html: ' + n.options.id); |
| 61 | + } |
| 62 | + |
| 63 | + function generateAll() { |
| 64 | + generate('alert', 'bootstrapTheme'); |
| 65 | + generate('information', 'bootstrapTheme'); |
| 66 | + generate('error', 'bootstrapTheme'); |
| 67 | + generate('warning', 'bootstrapTheme'); |
| 68 | + generate('success', 'bootstrapTheme'); |
| 69 | + } |
| 70 | + |
| 71 | + $(document).ready(function () { |
| 72 | + generateAll(); |
| 73 | + }); |
| 74 | + |
| 75 | +</script> |
| 76 | +</body> |
| 77 | +</html> |
0 commit comments