base.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" type="text/css" href="../../../node_modules/bootstrap/dist/css/bootstrap.css">
  5. <link rel="stylesheet" type="text/css" href="../../../build/css/bootstrap-datetimepicker.css">
  6. <script src="../../../node_modules/jquery/dist/jquery.min.js"></script>
  7. <script src="../../../node_modules/bootstrap/dist/js/bootstrap.js"></script>
  8. <script src="../../../node_modules/moment/moment.js"></script>
  9. <script src="../../../src/js/bootstrap-datetimepicker.js"></script>
  10. <style>
  11. .parent{
  12. position: relative;
  13. padding: 40px;
  14. }
  15. .helper{
  16. z-index: -1;
  17. position: absolute;
  18. background-color: #bfb;
  19. top: 0px;
  20. bottom: 0px;
  21. right: 0px;
  22. left: 0px;
  23. opacity: 0.3;
  24. }
  25. .inner{
  26. position: absolute;
  27. background-color: #bbf;
  28. top: 40px;
  29. bottom: 40px;
  30. right: 40px;
  31. left: 40px;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <div class="container">
  37. <div class="row">
  38. <div class="col-md-6 col-md-offset-3">
  39. <h1>{{v}} - {{h}}</h1>
  40. <br><br><br><br><br><br><br><br><br><br>
  41. <div class="parent">
  42. <div class="helper">
  43. <div class="inner"></div>
  44. </div>
  45. <br><br><br><br><br>
  46. {{{t}}}
  47. <br><br><br><br><br>
  48. </div>
  49. <br><br><br><br><br><br><br><br><br><br><br><br>
  50. </div>
  51. </div>
  52. </div>
  53. <script type="text/javascript">
  54. $('[data-datetimepicker]').datetimepicker({
  55. widgetPositioning:{
  56. vertical: '{{v}}',
  57. horizontal: '{{h}}'
  58. }
  59. });
  60. $('input[data-click-target]').focus();
  61. $('span[data-click-target]').click();
  62. </script>
  63. </body>