107 lines
3.2 KiB
HTML
107 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<%block name="title"><title>MITX 6.002</title></%block>
|
|
|
|
<link rel="stylesheet" href="/static/lib/jquery.treeview.css" type="text/css" media="all" />
|
|
<link rel="stylesheet" href="/static/css/marketing.css" type="text/css" media="all" />
|
|
|
|
<script type="text/javascript" src="/static/lib/jquery-1.6.2.min.js"></script>
|
|
<script type="text/javascript" src="/static/lib/jquery-ui-1.8.16.custom.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/lib/jquery.leanModal.min.js"></script>
|
|
<script type="text/javascript" src="/static/lib//swfobject/swfobject.js"></script>
|
|
<script type="text/javascript" src="/static/lib/jquery.treeview.js"></script>
|
|
<script type="text/javascript" src="/static/js/video_player.js"></script>
|
|
<!-- <script type="text/javascript" src="/static/js/schematic.js"></script> -->
|
|
|
|
<!--[if lt IE 9]>
|
|
<script src="/static/js/html5shiv.js"></script>
|
|
<![endif]-->
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$("a[rel*=leanModal]").leanModal();
|
|
});
|
|
</script>
|
|
|
|
<%block name="headextra"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<%block name="header">
|
|
<header class="announcement <%block name="header_class"/>">
|
|
<div class="anouncement-wrapper">
|
|
<%block name="header_nav">
|
|
<nav>
|
|
<h1><a href="/t/mitx_global.html">MITx</a></h1>
|
|
<a rel="leanModal" class="login" href="#login">Log In</a>
|
|
</nav>
|
|
</%block>
|
|
<%block name="header_text">
|
|
<section>
|
|
<h1>MITx</h1>
|
|
<h2>An MIT Education Anywhere. For free.</h2>
|
|
</section>
|
|
</%block>
|
|
</div>
|
|
</header>
|
|
</%block>
|
|
|
|
${self.body()}
|
|
<%block name="bodyextra"/>
|
|
|
|
<footer>
|
|
<!-- Template based on a design from http://www.dotemplate.com/ - Donated $10 (pmitros) so we don't need to include credit. -->
|
|
<div class="footer-wrapper">
|
|
<p> Copyright © 2011. MIT. <a href="/t/copyright.html">Some rights reserved.</a></p>
|
|
|
|
<ul>
|
|
<li><a href="/t/tos.html">Terms of Service</a></li>
|
|
<li><a href="/t/privacy.html">Privacy Policy</a></li>
|
|
<li><a href="/t/honor.html">Honor Code</a></li>
|
|
</ul>
|
|
</div>
|
|
</footer>
|
|
|
|
<div id="login" class="leanModal_box"><%include file="login.html" /></div>
|
|
<div id="pwd_reset" class="leanModal_box"><%include file="password_reset_form.html" /></div>
|
|
<div id="reset_done" class="leanModal_box"></div>
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
/* Handles when the user tries to log in. Grabs form data. Does AJAX.
|
|
Either shows error, or redirects. */
|
|
$('#login_button').click(function() {
|
|
var submit_data={};
|
|
$.each($("[id^=li_]"), function(index,value){
|
|
submit_data[value.name]=value.value;
|
|
});
|
|
submit_data["remember"] = ($('#remember').attr("checked")? true : false);
|
|
|
|
postJSON('/login',
|
|
submit_data,
|
|
function(json) {
|
|
if(json.success) {
|
|
location.href="/courseware";
|
|
} else {
|
|
$('#login_error').html("Invalid Login");
|
|
}
|
|
}
|
|
);
|
|
});
|
|
|
|
$('#pwd_reset_button').click(function() {
|
|
$.post('/password_reset/',{ "csrfmiddlewaretoken" : "${ csrf }",
|
|
"email" : $('#id_email').val()}, function(data){
|
|
$('#pwd_reset').html(data);
|
|
});
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|