Commit 661bdd1f by Ernie Park

merge

parents a0db591b f0f25997
No preview for this file type
<%inherit file="main.html" />
<section class="activation">
<h1>Page not found</h1>
<p>The page that you were looking for was not found. Go back to the <a href="/">homepage</a> or let us know about any pages that may have been moved at <a href="mailto:technical@mitx.mit.edu">technical@mitx.mit.edu</a>.</p>
</section>
...@@ -7,31 +7,32 @@ ...@@ -7,31 +7,32 @@
<ul> <ul>
<li> <li>
<h2>Videos and Ungraded Exercises</h2> <h2>Videos and Exercises</h2>
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png" /></a><br />The videos on this page are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</p> <p> Copyright &copy; 2012 MIT. All rights reserved. In order to
</li> further MIT's goal of making education accessible and affordable
to the world, MIT is planning to make <i>MITx</i> course content
<li> available under open source licenses.
<h2>Graded Exercises</h2> </p>
<p>Graded exercises are All Rights Reserved until the due date. Past the due date, they are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</p>
</li> </li>
<li> <li>
<h2>Textbook</h2> <h2>Textbook</h2>
<p>Textbook is All Rights Reserved Elsevier. We are using it with permission. We apologize for the inclusion of proprietary work. </p> <p> Copyright &copy; 2005 Elsevier Inc. All Rights
Reserved. Used with permission. While our goal is to build
courses with as much free and open content as possible, we
apologize that we do not have the ability to do so
entirely. </p>
</li> </li>
<li> <li>
<h2>Student-generated content</h2> <h2>Student-generated content</h2>
<td>Due to privacy concerns, all forum posts, wiki etc, and other student-created works are All Rights Reserved until released otherwise by MIT. </td></li> <td>Copyright &copy; 2012. All Rights Reserved. Due to privacy
concerns, we do not know what portion of these will be released
<li> under open licenses. </td></li>
<h2>Source Code</h2>
<p>Source code is All Rights Reserved during the beta offering. We expect to release it under a free and open license shortly thereafter. </p>
</li>
</ul> </ul>
<p>MIT and MITx are trademarks of the Massachusetts Institute of Technology, and may not be used without permission.</p> <p>MIT and <i>MITx</i> are trademarks of the Massachusetts Institute
of Technology, and may not be used without permission.</p>
</div> </div>
</section> </section>
...@@ -2,12 +2,48 @@ ...@@ -2,12 +2,48 @@
<section class="honor-code"> <section class="honor-code">
<div> <div>
<h1> Honor Code </h1> <h1> Collaboration Policy </h1>
<ul> <p> By enrolling in a course on <i>MITx</i>, you are joining a
<li> I agree to not engage in any activities that would dishonestly improve my results, or improve or hurt those of others.</li> special worldwide community of learners. The aspiration
<li> I agree to never post answers to problems.</li> of <i>MITx</i> is to provide anyone in the world who has the
<li> I agree to maintain only one account.</li> motivation and ability to engage MIT coursework the opportunity
</ul> to attain the best MIT-based educational experience that
Internet technology enables. You are part of the community who
will help <i>MITx</i> achieve this goal.
<p> <i>MITx</i> depends upon your motivation to learn the material
and to do so with honesty. In order to participate
in <i>MITx</i>, you must agree to the Honor Code below and any
additional terms specific to a class. This Honor Code, and any
additional terms, will be posted on each class website.
<div style="color:darkred;">
<h2> <i>MITx</i> Honor Code Pledge</h2>
<p> By enrolling in an <i>MITx</i> course, I agree that I will:
<ul>
<li> Complete all mid-terms and final exams with my own work
and only my own work. I will not submit the work of any
other person.
<li> Maintain only one user account and not let anyone else
use my username and/or password.
<li> Not engage in any activity that would dishonestly improve
my results, or improve or hurt the results of others.
<li> Not post answers to problems that are being used to
assess student performance.
</ul>
</div>
<p> Unless otherwise indicated by the instructor of an <i>MITx</i>
course, learners on <i>MITx</i> are encouraged to:
<ul>
<li> Collaborate with others on the lecture videos, exercises,
homework and labs.
<li> Discuss with others general concepts and materials in
each course.
<li> Present ideas and written work to fellow <i>MITx</i>
learners or others for comment or criticism.
</ul>
</div> </div>
</section> </section>
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
<head> <head>
<%block name="title"><title>MITX 6.002</title></%block> <%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="${ settings.LIB_URL }jquery.treeview.css" type="text/css" media="all" />
<link rel="stylesheet" href="/static/css/application.css" type="text/css" media="all" /> <link rel="stylesheet" href="/static/css/application.css" type="text/css" media="all" />
<link href="/static/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"/> <link href="/static/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"/>
<link href="/static/css/print.css" rel="stylesheet" type="text/css" media="print"/> <link href="/static/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<script type="text/javascript" src="/static/lib/jquery-1.6.2.min.js"></script> <script type="text/javascript" src="${ settings.LIB_URL }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="${ settings.LIB_URL }jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="/static/lib//swfobject/swfobject.js"></script> <script type="text/javascript" src="${ settings.LIB_URL }swfobject/swfobject.js"></script>
<script type="text/javascript" src="/static/lib/jquery.treeview.js"></script> <script type="text/javascript" src="${ settings.LIB_URL }jquery.treeview.js"></script>
<script type="text/javascript" src="/static/lib/jquery.leanModal.min.js"></script> <script type="text/javascript" src="${ settings.LIB_URL }jquery.leanModal.min.js"></script>
<script type="text/javascript" src="/static/js/video_player.js"></script> <script type="text/javascript" src="/static/js/video_player.js"></script>
<script type="text/javascript" src="/static/js/schematic.js"></script> <script type="text/javascript" src="/static/js/schematic.js"></script>
<script type="text/javascript" src="/static/js/cktsim.js"></script> <script type="text/javascript" src="/static/js/cktsim.js"></script>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
displayMath: [["\\[","\\]"]]} displayMath: [["\\[","\\]"]]}
}); });
</script> </script>
<script type="text/javascript" src="/static/lib/mathjax/MathJax.js?config=TeX-AMS_HTML-full"></script> <script type="text/javascript" src="${ settings.LIB_URL }mathjax/MathJax.js?config=TeX-AMS_HTML-full"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
......
...@@ -3,16 +3,19 @@ ...@@ -3,16 +3,19 @@
<head> <head>
<%block name="title"><title>MITX 6.002</title></%block> <%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="${ settings.LIB_URL }jquery.treeview.css" type="text/css" media="all" /-->
<link rel="stylesheet" href="/static/css/marketing.css" type="text/css" media="all" /> <link rel="stylesheet" href="/static/css/marketing.css" type="text/css" media="all" />
<!--[if lt IE 8]>
<link rel="stylesheet" href="/static/css/marketing-ie.css" type="text/css" media="all" />
<![endif]-->
<script type="text/javascript" src="/static/lib/jquery-1.6.2.min.js"></script> <script type="text/javascript" src="${ settings.LIB_URL }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="${ settings.LIB_URL }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="${ settings.LIB_URL }jquery.leanModal.min.js"></script>
<script type="text/javascript" src="/static/lib//swfobject/swfobject.js"></script> <!--script type="text/javascript" src="${ settings.LIB_URL }swfobject/swfobject.js"></script-->
<script type="text/javascript" src="/static/lib/jquery.treeview.js"></script> <!--script type="text/javascript" src="${ settings.LIB_URL }jquery.treeview.js"></script-->
<script type="text/javascript" src="/static/js/video_player.js"></script> <!--script type="text/javascript" src="/static/js/video_player.js"></script-->
<!-- <script type="text/javascript" src="/static/js/schematic.js"></script> --> <!-- <script type="text/javascript" src="/static/js/schematic.js"></script> -->
<!--[if lt IE 9]> <!--[if lt IE 9]>
...@@ -27,6 +30,34 @@ ...@@ -27,6 +30,34 @@
<%block name="headextra"/> <%block name="headextra"/>
<script type="text/javascript">
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
function postJSON(url, data, callback) {
$.ajax({type:'POST',
url: url,
dataType: 'json',
data: data,
success: callback,
headers : {'X-CSRFToken':getCookie('csrftoken')}
});
}
</script>
</head> </head>
<body> <body>
...@@ -35,14 +66,17 @@ ...@@ -35,14 +66,17 @@
<div class="anouncement-wrapper"> <div class="anouncement-wrapper">
<%block name="header_nav"> <%block name="header_nav">
<nav> <nav>
<h1><a href="/t/mitx_global.html">MITx</a></h1> <h1><a href="http://mitx.mit.edu/">MITx</a></h1>
% if settings.COURSEWARE_ENABLED:
<a rel="leanModal" class="login" href="#login">Log In</a> <a rel="leanModal" class="login" href="#login">Log In</a>
% endif
</nav> </nav>
</%block> </%block>
<%block name="header_text"> <%block name="header_text">
<section> <section>
<h1>MITx</h1> <h1><em>MITx</em></h1>
<h2>An MIT Education Anywhere. For free.</h2> <h2>MIT&rsquo;s new online learning initiative</h2>
</section> </section>
</%block> </%block>
</div> </div>
...@@ -65,7 +99,9 @@ ...@@ -65,7 +99,9 @@
</div> </div>
</footer> </footer>
% if settings.COURSEWARE_ENABLED:
<div id="login" class="leanModal_box"><%include file="login.html" /></div> <div id="login" class="leanModal_box"><%include file="login.html" /></div>
% endif
<div id="pwd_reset" class="leanModal_box"><%include file="password_reset_form.html" /></div> <div id="pwd_reset" class="leanModal_box"><%include file="password_reset_form.html" /></div>
<div id="reset_done" class="leanModal_box"></div> <div id="reset_done" class="leanModal_box"></div>
......
...@@ -4,21 +4,20 @@ ...@@ -4,21 +4,20 @@
<section class="index-content"> <section class="index-content">
<section class="about"> <section class="about">
<h1><em>MITx</em> is MIT&rsquo;s online learning initiative.</h1>
<section class="intro"> <section class="intro">
<p>This learning platform will enhance the educational experience of its on-campus students, offering them online tools that supplement and enrich their classroom and laboratory experiences. It will also be host to a virtual community of learners around the world.</p> <p><em>MITx</em> will offer a portfolio of MIT courses for free to a virtual community of learners around the world. It will also enhance the educational experience of its on-campus students, offering them online tools that supplement and enrich their classroom and laboratory experiences.</p>
<p>The first course offered by <em>MITx</em> in an experimental prototype form is 6.002x Circuits and Electronics. Watch this space for the next set of courses that will become available in Fall 2012.</p> <p>The first <em>MITx</em> course, 6.002x (Circuits and Electronics), will be launched in an experimental prototype form. Watch this space for further upcoming courses, which will become available in Fall 2012.</p>
</section> </section>
<section class="features"> <section class="features">
<h2>It will offer a portfolio of MIT courses for free on an online learning platform that:</h2> <h2><em>MIT<span>x</span></em> courses will be offered on an online learning platform that:</h2>
<ul> <ul>
<li>organizes and presents course material to enable students to learn at their own pace</li> <li>organizes and presents course material to enable students to learn worldwide</li>
<li>features interactivity, online laboratories and student-to-student communication</li> <li>features interactive instruction, online laboratories and student-to-student and student-to-professor communication</li>
<li>allows for the individual assessment of any student&rsquo;s work and allow students who demonstrate their mastery of subjects to earn a certificate of completion awarded by <em>MITx</em></li> <li>allows for the individual assessment of any student&rsquo;s work and allows students who demonstrate their mastery of subjects to earn certificates awarded by <em>MITx</em></li>
<li>operates on an open-source, scalable software infrastructure in order to make it continuously improving and readily available to other educational institutions.</li> <li>operates on an open-source, scalable software infrastructure in order to make it continuously improving and readily available to other educational institutions, such as universities and K-12 school systems.</li>
</ul> </ul>
<p><strong>Press &amp; links:</strong> <a href="http://www.boston.com/news/local/massachusetts/articles/2011/12/19/mit_to_launch_online_only_graded_courses_free_to_all/?page=full" target="_blank">Boston Globe</a>, <a href="http://www.nytimes.com/2011/12/19/education/mit-expands-free-online-courses-offering-certificates.html?_r=3&hpw=" target="_blank">New York Times</a>, <a href="http://web.mit.edu/newsoffice/2011/mitx-education-initiative-1219.html" target="_blank">MIT Press Release</a>, <a href="http://web.mit.edu/newsoffice/2011/mitx-faq-1219" target="_blank"><em>MITx</em> FAQ</a></p> <p><strong>Press &amp; links:</strong> <a href="http://www.boston.com/news/local/massachusetts/articles/2011/12/19/mit_to_launch_online_only_graded_courses_free_to_all/?page=full" target="_blank">Boston Globe</a>, <a href="http://www.nytimes.com/2011/12/19/education/mit-expands-free-online-courses-offering-certificates.html?_r=3&hpw=" target="_blank">New York Times</a>, <a href="http://web.mit.edu/newsoffice/2011/mitx-education-initiative-1219.html" target="_blank">MIT Press Release</a>, <a href="http://web.mit.edu/newsoffice/2011/mitx-faq-1219" target="_blank"><em>MITx</em> FAQ</a></p>
...@@ -33,10 +32,10 @@ ...@@ -33,10 +32,10 @@
</hgroup> </hgroup>
<p> <p>
<a href="/" class="more-info">More information <span>&amp;</span> Enroll</a> <a href="http://6002x.mitx.mit.edu/" class="more-info">More information <span>&amp;</span> Enroll</a>
</p> </p>
<p>Taught by Anant Agarwal, with Gerald Sussman, Piotr Mitros, and Chris Terman, &ldquo;6.002 Circuits and Electronics&rdwuo; is an on-line adaption of MIT's first undergraduate analog design course. This prototype course will run, free of charge, for students worldwide from February 21, 2012 through June 10, 2012. Students will be given the opportunity to demonstrate their mastery of the material and earn a certificate from <em>MITx</em>.</p> <p>Taught by Anant Agarwal, with Gerald Sussman and Piotr Mitros, 6.002x (Circuits and Electronics) is an on-line adaption of 6.002, MIT&rsquo;s first undergraduate analog design course. This prototype course will run, free of charge, for students worldwide from March 1, 2012 through June 8, 2012. Students will be given the opportunity to demonstrate their mastery of the material and earn a certificate from <em>MITx</em>.</p>
</section> </section>
</section> </section>
<script> <script>
......
<div class="header-wrapper"> <div class="header-wrapper">
<header> <header>
<h1><em>MITx</em> Circuits and Electronics</h1> <h1><em>MITx</em></h1>
<nav> <nav>
<h2><a href="/courseware">Circuits and Electronics</a></h2>
<ul class="coursenav"> <ul class="coursenav">
<li><a href="/info">Course Info</a></li>
<li><a href="/courseware">Courseware</a></li> <li><a href="/courseware">Courseware</a></li>
<li><a href="/info">Course Info</a></li>
<li><a href="/book">Textbook</a></li> <li><a href="/book">Textbook</a></li>
<li><a href="/discussion">Discussion</a></li> <li><a href="/discussion">Discussion</a></li>
<li><a href="/wiki">Wiki</a></li> <li><a href="/wiki">Wiki</a></li>
......
...@@ -84,8 +84,10 @@ $(function() { ...@@ -84,8 +84,10 @@ $(function() {
<!-- <div><a class="modal" href="#change_password_pop">Reset password</a></div> --> <!-- <div><a class="modal" href="#change_password_pop">Reset password</a></div> -->
<div id="change_password_pop"> <div id="change_password_pop">
<h2>Password reset</h2> <h2>Password change</h2>
<p>We'll e-mail you a password reset link at ${email}. Follow the link in the email to reset your password.</p> <p>We'll e-mail you a password reset link at ${email}. Follow
the link in the confirmation email to change your
password.</p>
<input id="id_email" type="hidden" name="email" maxlength="75" value="${email}" /> <input id="id_email" type="hidden" name="email" maxlength="75" value="${email}" />
<input type="submit" id="pwd_reset_button" value="Reset Password" /> <input type="submit" id="pwd_reset_button" value="Reset Password" />
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
{% trans "Please go to the following page and choose a new password:" %} {% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %} {% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %} https://6002x.mitx.mit.edu{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
{% endblock %} {% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.username }} {% trans "Your username, in case you've forgotten:" %} {{ user.username }}
{% trans "Thanks for using our site!" %} {% trans "Thanks for using our site!" %}
{% blocktrans %}The {{ site_name }} team{% endblocktrans %} {% blocktrans %}The MITx team{% endblocktrans %}
{% endautoescape %} {% endautoescape %}
...@@ -109,18 +109,24 @@ ...@@ -109,18 +109,24 @@
@extend .clearfix; @extend .clearfix;
a { a {
@include box-shadow(inset 1px 0 0 lighten(#f6efd4, 5%));
background: darken(#F6EFD4, 5%);
border-left: 1px solid darken(#f6efd4, 20%);
color: darken(#F6EFD4, 80%); color: darken(#F6EFD4, 80%);
padding: lh(.75);
text-transform: uppercase;
display: block;
&:hover { &:hover {
color: darken(#F6EFD4, 60%); color: darken(#F6EFD4, 60%);
text-decoration: none; text-decoration: none;
background: none; }
&.block-link {
@include box-shadow(inset 1px 0 0 lighten(#f6efd4, 5%));
background: darken(#F6EFD4, 5%);
border-left: 1px solid darken(#f6efd4, 20%);
padding: lh(.75);
text-transform: uppercase;
display: block;
&:hover {
background: none;
}
} }
} }
} }
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
// ---------------------------------------- // // ---------------------------------------- //
// fonts // fonts
$body-font-family: "Droid Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;; $body-font-family: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;;
$body-font-size: 14px; $body-font-size: 14px;
// grid // grid
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
outline-color: #ccc; outline-color: #ccc;
} }
h1, h2, h3, h4, h5, h6 {
a {
color: #000;
}
}
h1 { h1 {
font-size:1.6em; font-size:1.6em;
margin:20px 0 10px 0; margin:20px 0 10px 0;
...@@ -21,7 +27,6 @@ p { ...@@ -21,7 +27,6 @@ p {
em { em {
font-style: italic; font-style: italic;
font-family: Georgia, serif;
} }
#{$all-text-inputs}, textarea { #{$all-text-inputs}, textarea {
......
...@@ -3,7 +3,6 @@ section.course-content { ...@@ -3,7 +3,6 @@ section.course-content {
div.video-wrapper { div.video-wrapper {
float: left; float: left;
width: flex-grid(6, 9); width: flex-grid(6, 9);
margin-right: flex-gutter(9); margin-right: flex-gutter(9);
div.video-player { div.video-player {
...@@ -32,40 +31,112 @@ section.course-content { ...@@ -32,40 +31,112 @@ section.course-content {
} }
} }
section { // ul {
ul { // float: left;
display: inline-block;
// li {
// margin-top: 5px;
// display: inline-block;
// cursor: pointer;
// border: 0;
// padding: 0;
// div {
// &:empty {
// display: none;
// }
// }
// }
// }
section.video-controls {
@extend .clearfix;
background: #333;
border: 1px solid #000;
color: #ccc;
li { div#slider {
margin-top: 5px; @extend .clearfix;
display: inline-block; @include border-radius(0);
cursor: pointer; @include box-shadow(inset 0 1px 0 #eee, 0 1px 0 #555);
background: #c2c2c2;
border: none;
border-bottom: 1px solid #000;
height: 20px;
a.ui-slider-handle {
@include border-radius(0);
background: $mit-red url(/static/images/slider-handle.png) center center no-repeat;
border: 0; border: 0;
padding: 0; border-right: 1px solid darken($mit-red, 20%);
border-left: 1px solid darken($mit-red, 20%);
cursor: pointer;
height: 20px;
margin: 0;
top: 0;
width: 20px;
}
}
ul.vcr {
float: left;
margin-right: lh();
div { li {
&:empty { float: left;
display: none;
a {
@include box-shadow(1px 0 0 #555);
border-right: 1px solid #000;
display: block;
cursor: pointer;
height: 14px;
padding: lh(.75) lh();
text-indent: -9999px;
width: 14px;
&.play {
background: url('/static/images/play-icon.png') center center no-repeat;
&:hover {
background-color: #444;
}
}
&.pause {
background: url('/static/images/pause-icon.png') center center no-repeat;
&:hover {
background-color: #444;
}
} }
} }
} }
} }
div#slider {
margin: -14px 0 10px 60px;
}
div#vidtime { div#vidtime {
float: left; float: left;
font-weight: bold;
line-height: 46px; //height of play pause buttons
-webkit-font-smoothing: antialiased;
} }
div#video_speeds { div.speeds {
float: right; float: right;
cursor: pointer; line-height: 46px; //height of play pause buttons
margin-right: lh();
-webkit-font-smoothing: antialiased;
div#video_speeds {
@include inline-block();
font-weight: bold;
span { span {
&:hover { cursor: pointer;
color: $mit-red;
&:hover {
color: $mit-red;
}
} }
} }
} }
...@@ -75,6 +146,7 @@ section.course-content { ...@@ -75,6 +146,7 @@ section.course-content {
ol.subtitles { ol.subtitles {
float: left; float: left;
width: flex-grid(3, 9); width: flex-grid(3, 9);
min-height: 570px;
li { li {
margin-bottom: 0px; margin-bottom: 0px;
......
...@@ -65,6 +65,7 @@ div.course-wrapper { ...@@ -65,6 +65,7 @@ div.course-wrapper {
text-decoration: none; text-decoration: none;
margin-bottom: lh(.5); margin-bottom: lh(.5);
display: block; display: block;
color: #000;
&:hover { &:hover {
color: #666; color: #666;
...@@ -111,6 +112,10 @@ div.course-wrapper { ...@@ -111,6 +112,10 @@ div.course-wrapper {
margin-bottom: $body-line-height; margin-bottom: $body-line-height;
@extend .topbar; @extend .topbar;
a {
@extend .block-link;
}
li { li {
border: none; border: none;
cursor: pointer; cursor: pointer;
...@@ -160,7 +165,7 @@ div.course-wrapper { ...@@ -160,7 +165,7 @@ div.course-wrapper {
&.seq_video_visited { &.seq_video_visited {
width: 14px; width: 14px;
background: shade(#F6EFD4, 4%) url('/static/images/video-icon.png') -64px 15px no-repeat; background: shade(#F6EFD4, 4%) url('/static/images/video-icon.png') -81px 15px no-repeat;
&:hover { &:hover {
background-color: #F6EFD4; background-color: #F6EFD4;
} }
...@@ -168,7 +173,7 @@ div.course-wrapper { ...@@ -168,7 +173,7 @@ div.course-wrapper {
&.seq_video_active { &.seq_video_active {
width: 14px; width: 14px;
background: #FFFBEB url('/static/images/video-icon.png') -25px 15px no-repeat; background: #FFFBEB url('/static/images/video-icon.png') -32px 15px no-repeat;
@include box-shadow(inset -1px 0 0 darken(#F6EFD4, 20%),inset 1px 0 0 darken(#F6EFD4, 20%)); @include box-shadow(inset -1px 0 0 darken(#F6EFD4, 20%),inset 1px 0 0 darken(#F6EFD4, 20%));
&:hover { &:hover {
background-color: #F6EFD4; background-color: #F6EFD4;
......
...@@ -74,10 +74,6 @@ ul.question-list { ...@@ -74,10 +74,6 @@ ul.question-list {
font-weight: normal; font-weight: normal;
margin: 0px 0 15px 0; margin: 0px 0 15px 0;
text-transform: none; text-transform: none;
a {
color: #000;
}
} }
div.user-info { div.user-info {
...@@ -158,3 +154,41 @@ div.search-tips { ...@@ -158,3 +154,41 @@ div.search-tips {
.search-result-summary { .search-result-summary {
} }
div.post-update-info {
@include box-sizing(border-box);
@include border-radius(5px);
background:lighten(#F6EFD4, 5%);
padding: 10px;
a {
color:$mit-red ;
}
div.change-date {
font-size: 12px;
margin-bottom: 10px;
}
div.avatar {
display: inline-block;
float: left;
margin-right: 3px;
img.gravatar {
background: white;
border: 1px solid darken(#F6EFD4, 10%);
margin-right: 5px;
padding: 3px ;
vertical-align: bottom;
}
}
div.user-meta {
display: inline-block;
width: 60%;
span.user-badges {
display: block;
}
}
}
...@@ -10,13 +10,13 @@ ul.tags { ...@@ -10,13 +10,13 @@ ul.tags {
display: inline; display: inline;
font-size: 12px; font-size: 12px;
margin-left: 15px; margin-left: 15px;
padding: 5px 10px 5px 5px; padding: 3px 10px 5px 5px;
&:before { &:before {
content:""; content:"";
position:absolute; position:absolute;
top:0; top:0;
left:-12px; left:-11px;
width:0; width:0;
height:0; height:0;
border-color:transparent #eee transparent transparent; border-color:transparent #eee transparent transparent;
......
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on January 25, 2012 05:06:34 PM America/New_York */
// Not used in UI
// @font-face {
// font-family: 'Open Sans';
// src: url('/static/fonts/OpenSans-Light-webfont.eot');
// src: url('/static/fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
// url('/static/fonts/OpenSans-Light-webfont.woff') format('woff'),
// url('/static/fonts/OpenSans-Light-webfont.ttf') format('truetype'),
// url('/static/fonts/OpenSans-Light-webfont.svg#OpenSansLight') format('svg');
// font-weight: 300;
// font-style: normal;
// }
// @font-face {
// font-family: 'Open Sans';
// src: url('/static/fonts/OpenSans-LightItalic-webfont.eot');
// src: url('/static/fonts/OpenSans-LightItalic-webfont.eot?#iefix') format('embedded-opentype'),
// url('/static/fonts/OpenSans-LightItalic-webfont.woff') format('woff'),
// url('/static/fonts/OpenSans-LightItalic-webfont.ttf') format('truetype'),
// url('/static/fonts/OpenSans-LightItalic-webfont.svg#OpenSansLightItalic') format('svg');
// font-weight: 300;
// font-style: italic;
// }
@font-face { @font-face {
font-family: 'Droid Sans'; font-family: 'Open Sans';
font-style: normal; src: url('/static/fonts/OpenSans-Regular-webfont.eot');
font-weight: normal; src: url('/static/fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
src: local('Droid Sans'), local('DroidSans'), url('http://themes.googleusercontent.com/static/fonts/droidsans/v3/s-BiyweUPV0v-yRb-cjciL3hpw3pgy2gAi-Ip7WPMi0.woff') format('woff'); url('/static/fonts/OpenSans-Regular-webfont.woff') format('woff'),
url('/static/fonts/OpenSans-Regular-webfont.ttf') format('truetype'),
url('/static/fonts/OpenSans-Regular-webfont.svg#OpenSansRegular') format('svg');
font-weight: 600;
font-style: normal;
} }
@font-face { @font-face {
font-family: 'Droid Sans'; font-family: 'Open Sans';
font-style: normal; src: url('/static/fonts/OpenSans-Italic-webfont.eot');
font-weight: bold; src: url('/static/fonts/OpenSans-Italic-webfont.eot?#iefix') format('embedded-opentype'),
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('http://themes.googleusercontent.com/static/fonts/droidsans/v3/EFpQQyG9GqCrobXxL-KRMXbFhgvWbfSbdVg11QabG8w.woff') format('woff'); url('/static/fonts/OpenSans-Italic-webfont.woff') format('woff'),
url('/static/fonts/OpenSans-Italic-webfont.ttf') format('truetype'),
url('/static/fonts/OpenSans-Italic-webfont.svg#OpenSansItalic') format('svg');
font-weight: 400;
font-style: italic;
} }
// Not used in UI
// @font-face {
// font-family: 'Open Sans';
// src: url('/static/fonts/OpenSans-Semibold-webfont.eot');
// src: url('/static/fonts/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
// url('/static/fonts/OpenSans-Semibold-webfont.woff') format('woff'),
// url('/static/fonts/OpenSans-Semibold-webfont.ttf') format('truetype'),
// url('/static/fonts/OpenSans-Semibold-webfont.svg#OpenSansSemibold') format('svg');
// font-weight: 600;
// font-style: normal;
// }
// @font-face {
// font-family: 'Open Sans';
// src: url('/static/fonts/OpenSans-SemiboldItalic-webfont.eot');
// src: url('/static/fonts/OpenSans-SemiboldItalic-webfont.eot?#iefix') format('embedded-opentype'),
// url('/static/fonts/OpenSans-SemiboldItalic-webfont.woff') format('woff'),
// url('/static/fonts/OpenSans-SemiboldItalic-webfont.ttf') format('truetype'),
// url('/static/fonts/OpenSans-SemiboldItalic-webfont.svg#OpenSansSemiboldItalic') format('svg');
// font-weight: 600;
// font-style: italic;
// }
@font-face {
font-family: 'Open Sans';
src: url('/static/fonts/OpenSans-Bold-webfont.eot');
src: url('/static/fonts/OpenSans-Bold-webfont.eot?#iefix') format('embedded-opentype'),
url('/static/fonts/OpenSans-Bold-webfont.woff') format('woff'),
url('/static/fonts/OpenSans-Bold-webfont.ttf') format('truetype'),
url('/static/fonts/OpenSans-Bold-webfont.svg#OpenSansBold') format('svg');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'Open Sans';
src: url('/static/fonts/OpenSans-BoldItalic-webfont.eot');
src: url('/static/fonts/OpenSans-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
url('/static/fonts/OpenSans-BoldItalic-webfont.woff') format('woff'),
url('/static/fonts/OpenSans-BoldItalic-webfont.ttf') format('truetype'),
url('/static/fonts/OpenSans-BoldItalic-webfont.svg#OpenSansBoldItalic') format('svg');
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: 'Open Sans';
src: url('/static/fonts/OpenSans-ExtraBold-webfont.eot');
src: url('/static/fonts/OpenSans-ExtraBold-webfont.eot?#iefix') format('embedded-opentype'),
url('/static/fonts/OpenSans-ExtraBold-webfont.woff') format('woff'),
url('/static/fonts/OpenSans-ExtraBold-webfont.ttf') format('truetype'),
url('/static/fonts/OpenSans-ExtraBold-webfont.svg#OpenSansExtrabold') format('svg');
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: 'Open Sans';
src: url('/static/fonts/OpenSans-ExtraBoldItalic-webfont.eot');
src: url('/static/fonts/OpenSans-ExtraBoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
url('/static/fonts/OpenSans-ExtraBoldItalic-webfont.woff') format('woff'),
url('/static/fonts/OpenSans-ExtraBoldItalic-webfont.ttf') format('truetype'),
url('/static/fonts/OpenSans-ExtraBoldItalic-webfont.svg#OpenSansExtraboldItalic') format('svg');
font-weight: 800;
font-style: italic;
}
.wrapper {
@include box-sizing(border-box);
margin: 0 auto;
max-width: $fg-max-width;
min-width: $fg-min-width;
padding: lh();
width: flex-grid(12);
}
.subpage {
@extend .clearfix;
@extend .wrapper;
> div {
padding-left: flex-grid(4) + flex-gutter();
p {
margin-bottom: lh();
}
h1 {
margin-bottom: lh(.5);
}
h2 {
font: 18px $header-font-family;
color: #000;
margin-bottom: lh(.5);
}
ul {
list-style: disc outside none;
li {
list-style: disc outside none;
}
}
}
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.button {
@include border-radius(3px);
@include border-radius(3px);
@include inline-block();
@include transition();
background-color: $mit-red;
color: #fff;
margin: lh() 0 lh(.5);
padding: lh(.25) lh(.5);
text-decoration: none;
font-style: normal;
-webkit-font-smoothing: antialiased;
&:hover {
background-color: darken($mit-red, 10%);
}
span {
font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
font-style: italic;
}
}
...@@ -25,5 +25,5 @@ $header-font-family: "Open Sans", Helvetica, Arial, sans-serif; ...@@ -25,5 +25,5 @@ $header-font-family: "Open Sans", Helvetica, Arial, sans-serif;
$lh: golden-ratio($body-font-size, 1); $lh: golden-ratio($body-font-size, 1);
// Colors // Colors
$mit-red: #990000; $mit-red: #933;
$cream: #F6EFD4; $cream: #F6EFD4;
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url('http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: local('Open Sans Italic'), local('OpenSans-Italic'), url('http://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBrrIa-7acMAeDBVuclsi6Gc.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 800;
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url('http://themes.googleusercontent.com/static/fonts/opensans/v6/EInbV5DfGHOiMmvb1Xr-hqRDOzjiPcYnFooOUGCOsRk.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 800;
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), url('http://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxsBo4hlZyBvkZICS3KpNonM.woff') format('woff');
}
// Extends
//---------------------------------------- //
.wrapper {
@include box-sizing(border-box);
margin: 0 auto;
max-width: $fg-max-width;
min-width: $fg-min-width;
padding: lh();
width: flex-grid(12);
}
.subpage {
@extend .clearfix;
@extend .wrapper;
> div {
padding-left: flex-grid(4) + flex-gutter();
p {
margin-bottom: lh();
}
h1 {
margin-bottom: lh(.5);
}
h2 {
font: 18px $header-font-family;
color: #000;
margin-bottom: lh(.5);
}
ul {
list-style: disc outside none;
li {
list-style: disc outside none;
}
}
}
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.button {
@include border-radius(3px);
@include border-radius(3px);
@include inline-block();
@include transition();
background-color: $mit-red;
color: #fff;
margin: lh() 0 lh(.5);
padding: lh(.25) lh(.5);
text-decoration: none;
font-style: normal;
-webkit-font-smoothing: antialiased;
&:hover {
background-color: darken($mit-red, 10%);
}
span {
font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
font-style: italic;
}
}
body { body {
background-color: #fff; background-color: #fff;
color: #444; color: #444;
...@@ -144,17 +44,17 @@ body { ...@@ -144,17 +44,17 @@ body {
} }
header.announcement { header.announcement {
// @include background-size(cover); @include background-size(cover);
background: #333; background: #333;
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
color: #fff; color: #fff;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
&.home { &.home {
background: #e3e3e3 url("/static/images/marketing/shot-1-medium.jpg"); background: #e3e3e3 url("/static/images/marketing/shot-5-medium.jpg");
@media screen and (min-width: 1200px) { @media screen and (min-width: 1200px) {
background: #e3e3e3 url("/static/images/marketing/shot-1-large.jpg"); background: #e3e3e3 url("/static/images/marketing/shot-5-large.jpg");
} }
// @media screen and (max-width: 1199px) { // @media screen and (max-width: 1199px) {
...@@ -347,6 +247,10 @@ section.index-content { ...@@ -347,6 +247,10 @@ section.index-content {
letter-spacing: 1px; letter-spacing: 1px;
color: #666; color: #666;
margin-bottom: lh(); margin-bottom: lh();
span {
text-transform: none;
}
} }
p { p {
...@@ -454,7 +358,7 @@ section.index-content { ...@@ -454,7 +358,7 @@ section.index-content {
&.requirements { &.requirements {
clear: both; clear: both;
width: auto; width: 100%;
border-top: 1px solid #E5E5E5; border-top: 1px solid #E5E5E5;
padding-top: lh(); padding-top: lh();
margin-bottom: 0; margin-bottom: 0;
......
...@@ -6,12 +6,13 @@ html { ...@@ -6,12 +6,13 @@ html {
font: $body-font-size $body-font-family; font: $body-font-size $body-font-family;
text-align: center; text-align: center;
margin: 0; margin: 0;
background: #f3f3f3; background: #f6f6f6;
div.header-wrapper { div.header-wrapper {
@include box-shadow(inset 0 1px 0 lighten($mit-red, 10%), 0 1px 1px #ccc); // @include linear-gradient(lighten($mit-red, 5%), darken($mit-red, 5%));
@include linear-gradient(lighten($mit-red, 5%), darken($mit-red, 5%)); @include box-shadow(inset 0 -1px 2px darken($mit-red, 10%));
border-bottom: 1px solid darken($mit-red, 10%); background: $mit-red;
border-bottom: 1px solid #fff;
header { header {
@extend .clearfix; @extend .clearfix;
...@@ -21,37 +22,53 @@ html { ...@@ -21,37 +22,53 @@ html {
h1 { h1 {
border-right: 1px solid darken($mit-red, 5%); border-right: 1px solid darken($mit-red, 5%);
font-size: $body-font-size; color: #000;
font-weight: bold;
margin: 0 $gw-gutter 0 0;
padding: 15px $gw-gutter 15px 0;
display: block; display: block;
float: left; float: left;
color: #000; font-size: 20px;
font-weight: 800;
margin: 0 lh() 0 0;
padding: 17px lh() 17px 0;
text-shadow: 0 1px 0 lighten($mit-red, 10%); text-shadow: 0 1px 0 lighten($mit-red, 10%);
line-height: lh();
em {
@include inline-block();
padding-right: lh();
}
} }
nav { nav {
float: left; float: left;
display: block; display: block;
margin: 0; margin: 0;
padding: 0;
text-shadow: 0 -1px 0 darken($mit-red, 10%); text-shadow: 0 -1px 0 darken($mit-red, 10%);
-webkit-font-smoothing: antialiased;
h2 {
float: left;
margin: 0 lh() 0 0;
padding: 19px lh() 12px 0;
line-height: lh();
border-right: 1px solid darken($mit-red, 5%);
a {
color: #fff;
&:hover {
color: rgba(#fff, .7);
text-decoration: none;
}
}
}
ul { ul {
@extend .clearfix; @extend .clearfix;
display: inline-block; display: inline-block;
padding: 15px 0; padding: 19px 0 12px;
margin: 0; margin: 0;
li { li {
margin-right: lh(); margin-right: lh();
display: inline-block; display: inline-block;
margin-bottom: 0; margin-bottom: 0;
line-height: lh();
a { a {
color: #fff; color: #fff;
...@@ -71,11 +88,16 @@ html { ...@@ -71,11 +88,16 @@ html {
section.main-content { section.main-content {
@extend .clearfix; @extend .clearfix;
@extend .wrapper; @extend .wrapper;
@include box-shadow(0 1px 0 #fff); @include box-shadow(0 0 4px #ddd);
@include box-sizing(border-box); @include box-sizing(border-box);
background: #fff; background: #fff;
border: 1px solid #ccc; border-bottom: 1px solid #bbb;
border-top: 0;
@media screen and (min-width: 1400px) {
margin-top: lh(.5);
@include border-radius(3px);
border: 1px solid #bbb;
}
} }
img { img {
......
div.question-header {
div.vote-buttons {
display: inline-block;
float: left;
width: flex-grid(1,9);
margin-right: flex-gutter(9);
ul li {
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
font-weight: bold;
height: 20px;
list-style: none;
padding: 10px;
text-align: center;
width: 25px;
&.question-img-upvote, &.answer-img-upvote {
background-image: url(/static/images/askbot/vote-arrow-up-new.png);
background-color: #F6EFD4;
&:hover, &.on {
background-image: url(/static/images/askbot/vote-arrow-up-on-new.png);
}
}
&.question-img-downvote, &.answer-img-downvote {
background-image: url(/static/images/askbot/vote-arrow-down-new.png);
&:hover, &.on {
background-image: url(/static/images/askbot/vote-arrow-down-on-new.png);
}
}
}
}
div.question-container {
display: inline-block;
float: left;
width: flex-grid(8,9);
h1 {
margin-top: 0;
}
div.meta-bar {
border-bottom: 1px solid #eee;
display: block;
margin: 20px 0 10px;
overflow: hidden;
padding-bottom: 15px;
div.tag-list {
display: inline-block;
float:left;
width: flex-grid(4,8);
margin-right: flex-gutter(8);
}
div.question-actions {
display: inline-block;
float:left;
text-align: right;
width: flex-grid(4,8);
a {
color: darken(#F6EFD4, 50%);
&.question-delete {
color: $mit-red;
}
}
span.sep {
color: darken(#F6EFD4, 10%);
}
}
}
div.question-content {
overflow: hidden;
div.question-body {
display: inline-block;
float: left;
margin-right: flex-gutter(8);
width: flex-grid(6.2,8);
}
div.post-update-info {
display: inline-block;
float: left;
width: flex-grid(1.8,8);
}
}
}
}
...@@ -4,13 +4,39 @@ div.book-wrapper { ...@@ -4,13 +4,39 @@ div.book-wrapper {
ul#booknav { ul#booknav {
@extend .sidebar; @extend .sidebar;
@include box-sizing(border-box); @include box-sizing(border-box);
padding: lh();
a {
color: #000;
&:hover {
color: #666;
}
}
li { li {
background: none;
padding-left: 30px;
div.hitarea {
margin-left: -22px;
background-image: url('/static/images/treeview-default.gif');
&:hover {
opacity: 0.6;
filter: alpha(opacity=60);
}
}
ul { ul {
background: none; background: none;
} }
} }
> li {
border-bottom: 1px solid #d3d3d3;
@include box-shadow(0 1px 0 #eee);
padding: 7px 7px 7px 30px;
}
} }
section.book { section.book {
...@@ -20,6 +46,10 @@ div.book-wrapper { ...@@ -20,6 +46,10 @@ div.book-wrapper {
@extend .topbar; @extend .topbar;
@extend .clearfix; @extend .clearfix;
a {
@extend .block-link;
}
ul { ul {
@extend .clearfix; @extend .clearfix;
......
...@@ -21,7 +21,13 @@ form#wiki_revision { ...@@ -21,7 +21,13 @@ form#wiki_revision {
} }
#submit_delete { #submit_delete {
@include box-shadow(none);
background: none;
border: none;
color: #999;
float: right; float: right;
text-decoration: underline;
font-weight: normal;
} }
input[type="submit"] { input[type="submit"] {
...@@ -32,18 +38,25 @@ form#wiki_revision { ...@@ -32,18 +38,25 @@ form#wiki_revision {
#wiki_edit_instructions { #wiki_edit_instructions {
float: left; float: left;
width: flex-grid(3, 9); width: flex-grid(3, 9);
margin-top: lh();
color: #666;
&:hover {
color: #333;
}
.markdown-example { .markdown-example {
background-color: $light-gray; background-color: #e3e3e3;
padding-top: 5px; text-shadow: 0 1px 0 #fff;
padding-right: 2px;
padding-bottom: 5px; padding: {
padding-left: 5px; top: 5px;
right: 2px;
margin-top: 5px; bottom: 5px;
margin-bottom: 7px; left: 5px;
margin-left: 5px; }
margin: 5px 0 7px;
line-height: 1.0; line-height: 1.0;
} }
} }
...@@ -78,6 +78,10 @@ div.wiki-wrapper { ...@@ -78,6 +78,10 @@ div.wiki-wrapper {
header { header {
@extend .topbar; @extend .topbar;
a {
@extend .block-link;
}
p { p {
float: left; float: left;
padding: 15px; padding: 15px;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
@import "wiki-basic-html", "wiki-create", "wiki"; @import "wiki-basic-html", "wiki-create", "wiki";
@import "activation"; @import "activation";
@import "help"; @import "help";
@import "askbot-original", "discussion", "discussion-questions", "discussion-tags" ; @import "askbot-original", "discussion", "discussion-questions", "discussion-tags", "question-view" ;
// left over // left over
@import "theme"; @import "theme";
......
body {
margin: 0;
padding: 0;
}
.wrapper, .subpage, section.copyright, section.tos, section.privacy-policy, section.honor-code, header.announcement div, section.index-content, footer {
margin: 0;
overflow: hidden;
}
@import "bourbon/bourbon"; @import "bourbon/bourbon";
@import "reset"; @import "reset";
@import "font-face";
// pages // pages
@import "index-functions", "index-variables", "index"; @import "index-functions", "index-variables", "index-extends", "index";
@import "leanmodal"; @import "leanmodal";
<%inherit file="main.html" />
<section class="activation">
<h1>Currently the <em>MITx</em> servers are down</h1>
<p>Our staff is currently working to get the site back up as soon as possible. Please email us at <a href="mailto:technical@mitx.mit.edu">technical@mitx.mit.edu</a> to report any problems or downtime.</p>
</section>
<%inherit file="main.html" />
<section class="activation">
<h1>There has been an error on the <em>MITx</em> servers</h1>
<p>Our staff is currently working to get the site back up as soon as possible. Please email us at <a href="mailto:technical@mitx.mit.edu">technical@mitx.mit.edu</a> to report any problems or downtime.</p>
</section>
<%inherit file="main.html" />
<section class="activation">
<h1>Currently the <em>MITx</em> servers are overloaded</h1>
<p>Our staff is currently working to get the site back up as soon as possible. Please email us at <a href="mailto:technical@mitx.mit.edu">technical@mitx.mit.edu</a> to report any problems or downtime.</p>
</section>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]], tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]],
displayMath: [ ['$$','$$'], ["\\[","\\]"]]} displayMath: [ ['$$','$$'], ["\\[","\\]"]]}
}); });
</script> <script type="text/javascript" src="/static/lib/mathjax/MathJax.js?config=TeX-AMS_HTML-full"></script> </script> <script type="text/javascript" src="${ settings.LIB_URL }mathjax/MathJax.js?config=TeX-AMS_HTML-full"></script>
<script> <script>
$(function(){ $(function(){
$.ajaxSetup ({ $.ajaxSetup ({
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
id = $(this).attr("id"); id = $(this).attr("id");
name = id.substring(17); name = id.substring(17);
//alert(name); //alert(name);
$("#"+id).load("/edit_circuit/"+name); $("#"+id).load("/edit_circuit/"+name, function(){update_schematics();});
f=this; f=this;
}); });
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
$(this).parent().toggleClass("active"); $(this).parent().toggleClass("active");
}); });
update_schematics();}); });
</script> </script>
......
...@@ -12,7 +12,7 @@ ${ wiki_article.title } ...@@ -12,7 +12,7 @@ ${ wiki_article.title }
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/> <input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
</div> </div>
${wiki_form} ${wiki_form}
<input type="submit" id="submit_edit" name="edit" value="Edit article" /> <input type="submit" id="submit_edit" name="edit" value="Save Changes" />
<input type="submit" id="submit_delete" name="delete" value="Delete article" /> <input type="submit" id="submit_delete" name="delete" value="Delete article" />
</form> </form>
......
...@@ -74,6 +74,10 @@ ${wiki_error} ...@@ -74,6 +74,10 @@ ${wiki_error}
<p> <p>
The article you tried to access has been deleted. You may be able to restore it to an earlier version in its <a href="${reverse("wiki_history", args=[wiki_article.get_url(),1])}">history</a>, or <a href="${reverse("wiki_edit", args=[wiki_article.get_url()])}">create a new version</a>. The article you tried to access has been deleted. You may be able to restore it to an earlier version in its <a href="${reverse("wiki_history", args=[wiki_article.get_url(),1])}">history</a>, or <a href="${reverse("wiki_edit", args=[wiki_article.get_url()])}">create a new version</a>.
</p> </p>
%elif wiki_err_norevision is not UNDEFINED:
<p>
This article does not contain revision ${wiki_err_norevision | h}.
</p>
%else: %else:
<p> <p>
An error has occured. An error has occured.
......
...@@ -70,7 +70,8 @@ ${ wiki_article.title } ...@@ -70,7 +70,8 @@ ${ wiki_article.title }
</tfoot> </tfoot>
%endif %endif
</table> </table>
<input type="submit" name="change" value="Change revision" <input type="submit" name="view" value="View revision"/>
<input type="submit" name="change" value="Change to revision"
%if not wiki_write: %if not wiki_write:
disabled="true" disabled="true"
%endif %endif
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<p class="markdown-example">circuit:basic</p> <p class="markdown-example">circuit:basic</p>
<p class="markdown-example"><span>$</span>LaTeX Math Expression<span>$</span></p> <p class="markdown-example"><span>$</span>LaTeX Math Expression<span>$</span></p>
To create a new wiki article, create a link to it. Clicking the link gives you the creation page. To create a new wiki article, create a link to it. Clicking the link gives you the creation page.
<p class="markdown-example">[Article](/wiki/view/Article/Child/)</p> <p class="markdown-example">[Article](/wiki/view/Article/)</p>
Other useful examples:<br> Other useful examples:<br>
<p class="markdown-example">[Link](http://google.com)</p> <p class="markdown-example">[Link](http://google.com)</p>
<p class="markdown-example">Huge Header <p class="markdown-example">Huge Header
......
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
<%block name="wiki_body"> <%block name="wiki_body">
<div id="wiki_article"> <div id="wiki_article">
${ wiki_article.current_revision.contents_parsed| n} ${ wiki_article_revision.contents_parsed| n}
</div> </div>
</%block> </%block>
...@@ -16,7 +16,7 @@ function goto_page(n) { ...@@ -16,7 +16,7 @@ function goto_page(n) {
if(n<10) { if(n<10) {
prefix="00"; prefix="00";
} }
$("#bookpage").attr("src","/static/book/p"+prefix+n+".jpg"); $("#bookpage").attr("src","${ settings.BOOK_URL }p"+prefix+n+".jpg");
}; };
function prev_page() { function prev_page() {
...@@ -56,7 +56,7 @@ function next_page() { ...@@ -56,7 +56,7 @@ function next_page() {
</ul> </ul>
</nav> </nav>
<img id="bookpage" src="/static/book/p${ "%03i"%(page) }.jpg"> <img id="bookpage" src="${ settings.BOOK_URL }p${ "%03i"%(page) }.jpg">
</section> </section>
</section> </section>
</div> </div>
......
...@@ -8,13 +8,20 @@ ...@@ -8,13 +8,20 @@
</div> </div>
<section class="video-controls"> <section class="video-controls">
<ul>
<li><span class="ui-icon ui-icon-play" onclick="play();"></span></li>
<li><span class="ui-icon ui-icon-pause" onclick="pause();"></span></li>
</ul>
<div id="slider"></div> <div id="slider"></div>
<div id="vidtime">0:00/0:00</div>
<div id="video_speeds"></div> <section>
<ul class="vcr">
<li><a class="play" onclick="play();">Play</a></li>
<li><a class="pause" onclick="pause();">Pause</a></li>
</ul>
<div id="vidtime">0:00/0:00</div>
<div class="speeds">
Speed: <div id="video_speeds"></div>
</div>
</section>
</section> </section>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment