script.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!-- 模态框(Modal) -->
  2. <div class="modal small fade" id="maze_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  3. <div class="modal-dialog">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  7. <h3 id="maze_modal_title">提示信息</h3>
  8. </div>
  9. <div class="modal-body" id="maze_modal_body">
  10. <p class="error-text"><i class="fa fa-warning modal-icon"></i>Are you sure you want to delete the user?<br>This cannot be undone.</p>
  11. </div>
  12. <div class="modal-footer">
  13. <button class="btn btn-default" id="maze_modal_no" data-dismiss="modal" aria-hidden="true">取消</button>
  14. <button class="btn btn-danger" id="maze_modal_yes" data-dismiss="modal">确定</button>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. <!--[if (gte IE 9)|!(IE)]><!-->
  20. <script type="text/javascript" src="../lib/jquery/jquery.min.js"></script>
  21. <script type="text/javascript" src="../lib/jquery/store.js"></script>
  22. <script type="text/javascript" src="../lib/bootstrap/js/bootstrap.min.js"></script>
  23. <!--<![endif]-->
  24. <!-- 加载时间控件,用了这么多,还是my97好用... -->
  25. <script type="text/javascript" src="../lib/date/WdatePicker.js"></script>
  26. <!-- 加载notify -->
  27. <script type="text/javascript" src="../lib/pnotify/pnotify.js"></script>
  28. <script type="text/javascript" src="../lib/main.js"></script>
  29. <script type="text/javascript">
  30. $("[rel=tooltip]").tooltip();
  31. $(function() {
  32. $('.demo-cancel-click').click(function(){return false;});
  33. });
  34. $(function() {
  35. var match = document.cookie.match(new RegExp('color=([^;]+)'));
  36. if(match) var color = match[1];
  37. if(color) {
  38. $('body').removeClass(function (index, css) {
  39. return (css.match (/\btheme-\S+/g) || []).join(' ')
  40. })
  41. $('body').addClass('theme-' + color);
  42. }
  43. $('[data-popover="true"]').popover({html: true});
  44. });
  45. $(function() {
  46. var uls = $('.sidebar-nav > ul > *').clone();
  47. uls.addClass('visible-xs');
  48. $('#main-menu').append(uls.clone());
  49. });
  50. </script>