summaryrefslogtreecommitdiff
path: root/test.html
blob: c0cfd4c0dce2e9bf8c97567482dcd63ecd5d3e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html>

<head>
  <link rel="stylesheet" href="modals.css" type="text/css" />  

</head>
<body>

<!--ALERT html-->
<div class="mediaDrawer fixed animate alert">
  <div class="box">
    <form>
      <span class="message"></span>
      <br>
      <button class="ok">OK</button>
    </form>
  </div>
</div>

<!--CONFIRM html-->
<div class="mediaDrawer fixed animate confirm">
  <span class="close">X</span>
  <div class="box">
    <form>
      <span class="question"></span>
      <br>
      <button class="yes">OK</button>
      <button class="no">Cancel</button>
    </form>
  </div>
</div>

<!--ERROR html-->
<div class="mediaDrawer fixed animate error">
  <span class="close">X</span>
  <div class="box">
    <form>
      Your submission had errors:
      <br>
      <span class="errorList"></span>
      <br>
      <button class="ok">OK</button>
    </form>
  </div>
</div>


<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="underscore.js"></script>
<script type="text/javascript" src="loader.js" ></script>
<script type="text/javascript" src="minotaur.js" ></script>
<script type="text/javascript" src="View.js" ></script>
<script type="text/javascript" src="ModalView.js" ></script>
<script type="text/javascript" src="FormView.js" ></script>
<script type="text/javascript" src="AlertModal.js" ></script>
<script type="text/javascript" src="ConfirmModal.js" ></script>
<script type="text/javascript" src="ErrorModal.js" ></script>
<script type="text/javascript" src="UploadView.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
  //these can be made thenable with bluebird
  var whatever_cb = function(){};
  ConfirmModal.confirm("are you sure?", function(){
    AlertModal.alert("you are the man!", function(){
      ErrorModal.alert("ok this is what an ERROR looks like, but there's no error!", whatever_cb())
    });
  })
});
  
</script>
</body>
</html>