main.html 5.13 KB
Newer Older
1
<%namespace name='static' file='static_content.html'/>
Kyle Fiedler committed
2
<!DOCTYPE html>
pmitros committed
3 4
<html>
<head>
5
  <%block name="title"><title>MITx 6.002x</title></%block>
Kyle Fiedler committed
6

7 8
  <link rel="stylesheet" href="${static.url('js/jquery.treeview.css')}" type="text/css" media="all" />
  <%static:css group='application'/>
Kyle Fiedler committed
9

10 11 12
  <script type="text/javascript" src="${static.url('js/jquery-1.6.2.min.js')}"></script>
  <script type="text/javascript" src="${static.url('js/jquery-ui-1.8.16.custom.min.js')}"></script>
  <script type="text/javascript" src="${static.url('js/swfobject/swfobject.js')}"></script>
13
  <%static:js group='application'/>
Kyle Fiedler committed
14

Kyle Fiedler committed
15
  <!--[if lt IE 9]>
16
  <script src="${static.url('js/html5shiv.js')}"></script>
Kyle Fiedler committed
17 18
  <![endif]-->

kylefiedler committed
19 20
  <script type="text/x-mathjax-config">
    MathJax.Hub.Config({
Kyle Fiedler committed
21 22 23 24
      tex2jax: {inlineMath: [["\\(","\\)"]],
      displayMath: [["\\[","\\]"]]}
    });
  </script>
25
  <%block name="headextra"/>
26

27 28 29 30
  <!-- This must appear after all mathjax-config blocks, so it is after the imports from the other templates.
       It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of
       MathJax extension libraries -->
  <script type="text/javascript" src="/static/js/mathjax-MathJax-c9db6ac/MathJax.js?config=TeX-AMS_HTML-full"></script>
31
  <meta name="path_prefix" content="${MITX_ROOT_URL}">
pmitros committed
32
</head>
Kyle Fiedler committed
33

34
<body class="<%block name='bodyclass'/>">
35
  <!--[if lte IE 9]>
36 37
  <p class="ie-warning">You are using a browser that is not supported by <em>MITx</em>, and you might not be able to complete pieces of the course. Please download the latest version of <a href="http://www.mozilla.org/en-US/firefox/new/">Firefox</a> or <a href="https://www.google.com/chrome">Chrome</a> to get the full experience.</p>
  <![endif]-->
pmitros committed
38

kylefiedler committed
39
  ${self.body()}
40
  <%block name="bodyextra"/>
pmitros committed
41

Kyle Fiedler committed
42
  <footer>
43
    <!-- Template based on a design from http://www.dotemplate.com/ - Donated $10 (pmitros) so we don't need to include credit. -->
Piotr Mitros committed
44 45
    <p> Copyright &copy; 2012. MIT. <a href="/t/copyright.html">Some rights reserved.</a>
</p>
46
      <nav>
47
      <ul aria-label="Social Links" class="social">
48 49 50 51 52 53 54 55 56 57
        <li class="linkedin">
          <a href="http://www.linkedin.com/groups/Friends-Alumni-MITx-4316538">Linked In</a>
        </li>
        <li class="twitter">
          <a href="https://twitter.com/#!/MyMITx">Twitter</a>
        </li>
        <li class="facebook">
          <a href="http://www.facebook.com/pages/MITx/378592442151504">Facebook</a>
        </li>
      </ul>
58
    <ul>
59
      <li><a href="#feedback_div" rel="leanModal">Feedback</a></li>
60
      <li class="calc-main">
61
        <a aria-label="Open Calculator" href="#" class="calc">Calculator</a>
62 63 64

        <div id="calculator_wrapper">
          <form id="calculator">
65 66 67 68
            <div class="input-wrapper">
              <input type="text" id="calculator_input" />

              <div class="help-wrapper">
69
                <a href="#">Hints</a>
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
                <dl class="help">
                  <dt>Suffixes:</dt>
                  <dd> %kMGTcmunp</dd>
                  <dt>Operations:</dt>
                  <dd>^ * / + - ()</dd>
                  <dt>Functions:</dt>
                  <dd>sin, cos, tan, sqrt, log10, log2, ln, arccos, arcsin, arctan, abs </dd>
                  <dt>Constants</dt>
                  <dd>e, pi</dd>

                  <!-- Students won't know what parallel means at this time.  Complex numbers aren't well tested in the courseware, so we would prefer to not expose them.  If you read the comments in the source, feel free to use them. If you run into a bug, please let us know. But we can't officially support them right now.

                  <dt>Unsupported:</dt> <dd>||, j </dd>  -->
                </dl>
              </div>
            </div>
86 87 88 89 90 91
            <input id="calculator_button" type="submit" value="="/>
            <input type="text" id="calculator_output"  readonly />
          </form>

        </div>
      </li>
92
      <li><a href="/s/help.html">Help</a></li>
93
      % if user.is_authenticated():
94
     <li><a href="${ settings.MITX_ROOT_URL }/logout">Log out</a></li>
95
      % endif
96
    </ul>
97
      </nav>
Kyle Fiedler committed
98
  </footer>
99

100 101 102
  <div id="feedback_div" class="leanModal_box">
    <h1>Feedback for MITx</h1>
    <p>Found a bug? Got an idea for improving our system? Let us know.</p>
103

104 105 106 107 108 109 110 111
    <form>
      <ol>
        <li><label>Subject:</label> <input type="text" id="feedback_subject"></li>
        <li><label>Feedback: </label><textarea id="feedback_message"></textarea></li>
        <li><input id="feedback_button" type="button" value="Submit"></li>
      </ol>
    </form>
  </div>
112

113 114 115 116 117 118
  <script type="text/javascript" src="${static.url('js/jquery.treeview.js')}"></script>
  <script type="text/javascript" src="${static.url('js/jquery.leanModal.min.js')}"></script>
  <script type="text/javascript" src="${static.url('js/jquery.qtip.min.js')}"></script>
  <script type="text/javascript" src="${static.url('js/jquery.cookie.js')}"></script>
  <script type="text/javascript" src="${static.url('js/schematic.js')}"></script>
  <script type="text/javascript" src="${static.url('js/cktsim.js')}"></script>
119
  <script type="text/javascript" src="${static.url('js/jquery.scrollTo-1.4.2-min.js')}"></script>
120
  <%block name="js_extra"/>
pmitros committed
121 122
</body>
</html>