aboutsummaryrefslogtreecommitdiff
path: root/htdocs/index.html
blob: 0fe5fd4dfd2c604428e47bf255f43467db597725 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang='en-US'>
  <head>
    <meta charset='utf-8'/>
    <title>Mathy</title>
    <link rel='stylesheet' type='text/css' href='css/font-awesome-4.7.0/css/font-awesome.min.css'/>
    <link rel='stylesheet' type='text/css' href='js/bootstrap-3.3.7/css/bootstrap.min.css'/>
    <link rel='stylesheet' type='text/css' href='js/bootstrap-3.3.7/css/bootstrap-theme.min.css'/>
    <link rel='stylesheet' type='text/css' href='css/mathy.css' media='screen'/>
  </head>

  <body>
    <div id='editor'>\text{add latex here}</div>
    <div id='math-wrap'>
      <div id='math-preview'></div>
      <div id='math-buffer' style='visibility:hidden; position:absolute; top:0; left: 0'></div>
    </div>

    <div id='buttons' class='btn-toolbar'>
      <div class='btn-group btn-group-sm dropup'>
        <a
          href='#'
          class='btn btn-default dropdown-toggle'
          title='Load saved result.'
          data-toggle='dropdown'
        >
          <i class='fa fa-upload'></i>
          Load
          <i class='fa fa-caret-down'></i>
        </a><!-- btn -->

        <ul id='saves' class='dropdown-menu'>
        </ul><!-- dropdown-menu -->
      </div><!-- btn-group -->

      <div class='btn-group btn-group-sm'>
        <a
          href='#'
          id='save'
          class='btn btn-default'
          title='Save result.'
        >
          <i class='fa fa-save'></i>
          Save
        </a><!-- btn -->
      </div><!-- btn-group -->

      <div class='btn-group btn-group-sm pull-right dropup'>
        <a
          href='#'
          class='btn btn-default dropdown-toggle'
          title='Get help.'
          data-toggle='dropdown'
        >
          <i class='fa fa-question-circle'></i>
          Help
          <i class='fa fa-caret-down'></i>
        </a><!-- btn -->

        <ul id='help' class='dropdown-menu'>
        </ul><!-- dropdown-menu -->
      </div><!-- btn-group -->

      <div class='btn-group btn-group-sm pull-right'>
        <a
          href='#'
          class='btn btn-default'
          title='Edit settings.'
          data-toggle='modal'
          data-target='#config-dialog'
        >
          <i class='fa fa-cog'></i>
          Settings
        </a><!-- btn -->
      </div><!-- btn-group -->
    </div><!-- btn-toolbar -->

    <div id='about-dialog' class='modal fade' role='dialog'>
      <div class='modal-dialog' role='document'>
        <div class='modal-content'>
          <div class='modal-header'>
            <button
              type='button'
              class='close'
              title='Close dialog.'
              data-dismiss='modal'
              aria-label='Close'
            >
              <span aria-hidden='true'>
                &times;
              </span>
            </button><!-- close -->

            <h4 class="modal-title">
              About Mathy
            </h4><!-- modal-title -->
          </div><!-- modal-header -->

          <div class='modal-body'>
            <p>
              Simple, web-based math renderer.  Built with:
            </p>

            <ul>
              <li><a target='_blank' title='Ace Editor' href='https://ace.c9.io/'>Ace Editor</a></li>
              <li><a target='_blank' title='Bootstrap' href='https://getbootstrap.com/'>Bootstrap</a></li>
              <li><a target='_blank' title='jQuery' href='https://jquery.com'>jQuery</a></li>
              <li><a target='_blank' title='MathJax' href='https://www.mathjax.org/'>MathJax</a></li>
            </ul>
          </div><!-- modal-body -->

          <div class='modal-footer'>
            <button
              type='button'
              class='btn btn-default'
              title='Close dialog.'
              data-dismiss='modal'
            >
              &times; Close
            </button>
          </div><!-- modal-footer -->
        </div><!-- modal-content -->
      </div><!-- modal-dialog -->
    </div><!-- modal -->

    <div id='config-dialog' class='modal fade' role='dialog'>
      <div class='modal-dialog' role='document'>
        <div class='modal-content'>
          <div class='modal-header'>
            <button
              type='button'
              class='close'
              title='Close dialog.'
              data-dismiss='modal'
              aria-label='Close'
            >
              <span aria-hidden='true'>
                &times;
              </span>
            </button><!-- close -->

            <h4 class="modal-title">
              Settings
            </h4><!-- modal-title -->
          </div><!-- modal-header -->

          <div class='modal-body'>
            <p>
              TODO: nothing here yet
            </p>
          </div><!-- modal-body -->

          <div class='modal-footer'>
            <button
              type='button'
              class='btn btn-default'
              title='Close dialog.'
              data-dismiss='modal'
            >
              &times; Close
            </button>
          </div><!-- modal-footer -->
        </div><!-- modal-content -->
      </div><!-- modal-dialog -->
    </div><!-- modal -->

    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
        showProcessingMessages: false,
        tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] }
      });
    </script>
    <script type='text/javascript' src='js/data.js'></script>
    <script type='text/javascript' src='js/jquery-3.1.1.min.js'></script>
    <script type='text/javascript' src='js/bootstrap-3.3.7/js/bootstrap.min.js'></script>
    <script type='text/javascript' src='js/ace/ace.js' charset='utf-8'></script>
    <script type='text/javascript' src='js/MathJax-2.7.2/MathJax.js?config=TeX-AMS-MML_SVG'></script>
    <script type='text/javascript' src='js/luigi-template-0.4.1.min.js'></script>
    <script type='text/javascript' src='js/mathy.js'></script>
  </body>
</html>