BaoFengSZCG_Web 宝丰县数字城管

toastr_notifications.html 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <!DOCTYPE html>
  2. <html>
  3. <!-- Mirrored from www.zi-han.net/theme/hplus/toastr_notifications.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:59 GMT -->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>H+ 后台主题UI框架 - Toastr通知</title>
  8. <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
  9. <meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
  10. <link rel="shortcut icon" href="favicon.ico"> <link href="./css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
  11. <link href="./css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
  12. <link href="./css/animate.min.css" rel="stylesheet">
  13. <link href="./css/style.min862f.css?v=4.1.0" rel="stylesheet">
  14. <link href="./css/plugins/toastr/toastr.min.css" rel="stylesheet">
  15. </head>
  16. <body class="gray-bg">
  17. <div class="row">
  18. <div class="col-lg-12">
  19. <div class="wrapper wrapper-content">
  20. <div class="row">
  21. <div class="col-lg-12">
  22. <div class="ibox float-e-margins">
  23. <div class="ibox-title">
  24. <h5>Toastr示例</h5>
  25. <div class="ibox-tools">
  26. <a class="collapse-link">
  27. <i class="fa fa-chevron-up"></i>
  28. </a>
  29. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  30. <i class="fa fa-wrench"></i>
  31. </a>
  32. <ul class="dropdown-menu dropdown-user">
  33. <li><a href="#">设置选项1</a>
  34. </li>
  35. <li><a href="#">设置选项2</a>
  36. </li>
  37. </ul>
  38. <a class="close-link">
  39. <i class="fa fa-times"></i>
  40. </a>
  41. </div>
  42. </div>
  43. <div class="ibox-content">
  44. <div class="row">
  45. <div class="col-md-4">
  46. <div class="form-group">
  47. <label for="title">标题</label>
  48. <input id="title" type="text" class="form-control" placeholder="请输入标题...">
  49. </div>
  50. <div class="form-group">
  51. <label for="message">消息</label>
  52. <textarea class="form-control" id="message" rows="3" placeholder="请输入消息..."></textarea>
  53. </div>
  54. <div class="checkbox">
  55. <label class="checkbox" for="closeButton">
  56. <input id="closeButton" type="checkbox" value="checked" class="input-mini" checked="">关闭按钮
  57. </label>
  58. </div>
  59. <div class="checkbox">
  60. <label class="checkbox" for="addBehaviorOnToastClick">
  61. <input id="addBehaviorOnToastClick" type="checkbox" value="checked" class="input-mini">添加Toast单击行为
  62. </label>
  63. </div>
  64. <div class="checkbox">
  65. <label class="checkbox" for="debugInfo">
  66. <input id="debugInfo" type="checkbox" value="checked" class="input-mini">Debug
  67. </label>
  68. </div>
  69. <div class="checkbox">
  70. <label class="checkbox" for="progressBar">
  71. <input id="progressBar" type="checkbox" value="checked" class="input-mini" checked="">进度条
  72. </label>
  73. </div>
  74. <div class="checkbox">
  75. <label class="checkbox" for="preventDuplicates">
  76. <input id="preventDuplicates" type="checkbox" value="checked" class="input-mini">防止重复
  77. </label>
  78. </div>
  79. </div>
  80. <div class="col-md-2">
  81. <div class="form-group" id="toastTypeGroup">
  82. <label>Toast类型</label>
  83. <div class="radio">
  84. <label>
  85. <input type="radio" name="toasts" value="success" checked="">成功
  86. </label>
  87. </div>
  88. <div class="radio">
  89. <label class="radio">
  90. <input type="radio" name="toasts" value="info">信息
  91. </label>
  92. </div>
  93. <div class="radio">
  94. <label class="radio">
  95. <input type="radio" name="toasts" value="warning">警告
  96. </label>
  97. </div>
  98. <div class="radio">
  99. <label class="radio">
  100. <input type="radio" name="toasts" value="error">错误
  101. </label>
  102. </div>
  103. </div>
  104. <div class="form-group" id="positionGroup">
  105. <label>Position</label>
  106. <div class="radio">
  107. <label>
  108. <input type="radio" name="positions" value="toast-top-right" checked="">右上
  109. </label>
  110. </div>
  111. <div class="radio">
  112. <label>
  113. <input type="radio" name="positions" value="toast-bottom-right">右下
  114. </label>
  115. </div>
  116. <div class="radio">
  117. <label>
  118. <input type="radio" name="positions" value="toast-bottom-left">左下
  119. </label>
  120. </div>
  121. <div class="radio">
  122. <label>
  123. <input type="radio" name="positions" value="toast-top-left">左上
  124. </label>
  125. </div>
  126. <div class="radio">
  127. <label>
  128. <input type="radio" name="positions" value="toast-top-full-width">顶部全宽
  129. </label>
  130. </div>
  131. <div class="radio">
  132. <label>
  133. <input type="radio" name="positions" value="toast-bottom-full-width">底部全宽
  134. </label>
  135. </div>
  136. <div class="radio">
  137. <label>
  138. <input type="radio" name="positions" value="toast-top-center">顶部居中
  139. </label>
  140. </div>
  141. <div class="radio">
  142. <label>
  143. <input type="radio" name="positions" value="toast-bottom-center">底部居中
  144. </label>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="col-md-2">
  149. <div class="form-group">
  150. <label for="showEasing">显示动画</label>
  151. <input id="showEasing" type="text" placeholder="swing, linear" class="form-control" value="swing">
  152. </div>
  153. <div class="form-group">
  154. <label for="hideEasing">隐藏动画</label>
  155. <input id="hideEasing" type="text" placeholder="swing, linear" class="form-control" value="linear">
  156. </div>
  157. <div class="form-group">
  158. <label for="showMethod">显示方法</label>
  159. <input id="showMethod" type="text" placeholder="show, fadeIn, slideDown" class="form-control" value="fadeIn">
  160. </div>
  161. <div class="form-group">
  162. <label for="hideMethod">隐藏方法</label>
  163. <input id="hideMethod" type="text" placeholder="hide, fadeOut, slideUp" class="form-control" value="fadeOut">
  164. </div>
  165. </div>
  166. <div class="col-md-3">
  167. <div class="form-group">
  168. <label for="showDuration">显示持续时间</label>
  169. <input id="showDuration" type="text" placeholder="ms" class="form-control" value="400">
  170. </div>
  171. <div class="form-group">
  172. <label for="hideDuration">隐藏持续时间</label>
  173. <input id="hideDuration" type="text" placeholder="ms" class="form-control" value="1000">
  174. </div>
  175. <div class="form-group">
  176. <label for="timeOut">超时</label>
  177. <input id="timeOut" type="text" placeholder="ms" class="form-control" value="7000">
  178. </div>
  179. <div class="form-group">
  180. <label for="extendedTimeOut">延长时间</label>
  181. <input id="extendedTimeOut" type="text" placeholder="ms" class="form-control" value="1000">
  182. </div>
  183. </div>
  184. </div>
  185. <div class="row">
  186. <div class="col-lg-12">
  187. <button type="button" class="btn btn-primary" id="showtoast">显示Toast</button>
  188. <button type="button" class="btn btn-white" id="cleartoasts">清除所有Toast</button>
  189. <button type="button" class="btn btn-white" id="clearlasttoast">清除最后一个Toast</button>
  190. <button type="button" class="btn btn-white" id="showsimple">显示简单设置</button>
  191. </div>
  192. </div>
  193. <div class="row m-t-lg">
  194. <div class="col-lg-12">
  195. <small>Toastr JSON设置</small>
  196. <pre id="toastrOptions" class="p-m">Command: toastr[success]("Hi, welcome to hplus. This is example of Toastr notification box.")
  197. toastr.options = {
  198. "closeButton": true,
  199. "debug": true,
  200. "progressBar": false,
  201. "positionClass": "toast-top-right",
  202. "showDuration": "400",
  203. "hideDuration": "1000",
  204. "timeOut": "7000",
  205. "extendedTimeOut": "1000",
  206. "showEasing": "swing",
  207. "hideEasing": "linear",
  208. "showMethod": "fadeIn",
  209. "hideMethod": "fadeOut"
  210. }</pre>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. <script src="./js/jquery.min.js?v=2.1.4"></script>
  221. <script src="./js/bootstrap.min.js?v=3.3.6"></script>
  222. <script src="./js/content.min.js?v=1.0.0"></script>
  223. <script src="./js/plugins/toastr/toastr.min.js"></script>
  224. <script type="text/javascript">
  225. $(function(){var i=-1;var toastCount=0;var $toastlast;var getMessage=function(){var msg="Hi, welcome to Inspinia. This is example of Toastr notification box.";return msg};$("#showsimple").click(function(){toastr.success("Without any options","Simple notification!")});$("#showtoast").click(function(){var shortCutFunction=$("#toastTypeGroup input:radio:checked").val();var msg=$("#message").val();var title=$("#title").val()||"";var $showDuration=$("#showDuration");var $hideDuration=$("#hideDuration");var $timeOut=$("#timeOut");var $extendedTimeOut=$("#extendedTimeOut");var $showEasing=$("#showEasing");var $hideEasing=$("#hideEasing");var $showMethod=$("#showMethod");var $hideMethod=$("#hideMethod");var toastIndex=toastCount++;toastr.options={closeButton:$("#closeButton").prop("checked"),debug:$("#debugInfo").prop("checked"),progressBar:$("#progressBar").prop("checked"),positionClass:$("#positionGroup input:radio:checked").val()||"toast-top-right",onclick:null};if($("#addBehaviorOnToastClick").prop("checked")){toastr.options.onclick=function(){alert("You can perform some custom action after a toast goes away")}}if($showDuration.val().length){toastr.options.showDuration=$showDuration.val()}if($hideDuration.val().length){toastr.options.hideDuration=$hideDuration.val()}if($timeOut.val().length){toastr.options.timeOut=$timeOut.val()}if($extendedTimeOut.val().length){toastr.options.extendedTimeOut=$extendedTimeOut.val()}if($showEasing.val().length){toastr.options.showEasing=$showEasing.val()}if($hideEasing.val().length){toastr.options.hideEasing=$hideEasing.val()}if($showMethod.val().length){toastr.options.showMethod=$showMethod.val()}if($hideMethod.val().length){toastr.options.hideMethod=$hideMethod.val()}if(!msg){msg=getMessage()}$("#toastrOptions").text("Command: toastr["+shortCutFunction+']("'+msg+(title?'", "'+title:"")+'")\n\ntoastr.options = '+JSON.stringify(toastr.options,null,2));var $toast=toastr[shortCutFunction](msg,title);$toastlast=$toast;if($toast.find("#okBtn").length){$toast.delegate("#okBtn","click",function(){alert("you clicked me. i was toast #"+toastIndex+". goodbye!");$toast.remove()})}if($toast.find("#surpriseBtn").length){$toast.delegate("#surpriseBtn","click",function(){alert("Surprise! you clicked me. i was toast #"+toastIndex+". You could perform an action here.")})}});function getLastToast(){return $toastlast}$("#clearlasttoast").click(function(){toastr.clear(getLastToast())});$("#cleartoasts").click(function(){toastr.clear()})});
  226. </script>
  227. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
  228. </body>
  229. <!-- Mirrored from www.zi-han.net/theme/hplus/toastr_notifications.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:00 GMT -->
  230. </html>