Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
61a713f2
Commit
61a713f2
authored
Jan 09, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed some style for the courseware, fixed the footer links and fixed the modal window
parent
8b29b153
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
72 additions
and
63 deletions
+72
-63
.sass-cache/d71392d31c3b10df78042d13a0384e71b83fa11e/_courseware.scssc
+0
-0
accordion_init.js
+5
-3
index.html
+2
-5
login.html
+1
-1
main.html
+58
-48
profile.html
+2
-4
sass/_courseware.scss
+3
-0
simplewiki_base.html
+1
-2
No files found.
.sass-cache/d71392d31c3b10df78042d13a0384e71b83fa11e/_courseware.scssc
View file @
61a713f2
No preview for this file type
accordion_init.js
View file @
61a713f2
$
(
"#accordion"
).
accordion
({
active
:
$
{
active_chapter
}});
$
(
"#accordion"
).
accordion
({
active
:
$
{
active_chapter
},
autoHeight
:
false
});
$
(
'.ui-accordion'
).
bind
(
'accordionchange'
,
function
(
event
,
ui
)
{
var
event_data
=
{
'newheader'
:
ui
.
newHeader
.
text
(),
'oldheader'
:
ui
.
oldHeader
.
text
()};
log_event
(
'accordion'
,
event_data
);
});
\ No newline at end of file
});
index.html
View file @
61a713f2
...
...
@@ -2,9 +2,6 @@
<script>
$
(
function
()
{
/* Set up FancyBox pop-ups */
$
(
"a#inline"
).
fancybox
({
'hideOnContentClick'
:
false
});
// TODO: Clean up as per http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
...
...
@@ -107,8 +104,8 @@ $(function() {
<center>
<table>
<tr><td
align=
right
><big><a
id=
"inline
"
href=
"#enroll"
>
Enroll
>>
</a><br><br><br>
<a
id=
"inline
"
href=
"#login"
>
Log In
>>
</a></big></td><td><div
style=
"width:50px; float:center;"
></div></td><td>
<tr><td
align=
right
><big><a
class=
"modal
"
href=
"#enroll"
>
Enroll
>>
</a><br><br><br>
<a
class=
"modal
"
href=
"#login"
>
Log In
>>
</a></big></td><td><div
style=
"width:50px; float:center;"
></div></td><td>
<div
style=
"width:300px; float:center;"
>
Taught by Anant Agarwal, with Gerald Sussman, Piotr Mitros, and Chris
Terman, "6.002 Circuits and Electronics" is an an on-line adaption of
...
...
login.html
View file @
61a713f2
...
...
@@ -11,6 +11,6 @@
</form>
</td></tr></table>
<div
align=
center
>
<div
id=
"lost_password"
><a
id=
"inline
"
href=
"#pwd_reset"
>
Lost password?
</a></div>
<div
id=
"lost_password"
><a
class=
"modal
"
href=
"#pwd_reset"
>
Lost password?
</a></div>
</div>
</div>
main.html
View file @
61a713f2
...
...
@@ -28,13 +28,12 @@
<script>
$
(
function
()
{
// Set up FancyBox pop-ups
$
(
"a
#inline
"
).
fancybox
({
$
(
"a
.modal
"
).
fancybox
({
'hideOnContentClick'
:
false
});
});
</script>
<
%
block
name=
"headextra"
/>
</head>
...
...
@@ -45,57 +44,68 @@ $(function() {
<
%
block
name=
"bodyextra"
/>
<footer>
<p>
Copyright (c). 2011. MIT.
<a
href=
http://creativecommons.org/licenses/by-sa/3.0/
>
Some rights reserved.
</a>
Please give us
<a
id=
"inline"
href=
"#feedback_div"
>
feedback
</a>
. Try our
<a
id=
"inline"
href=
"#calculator_div"
>
calculator
</a>
.
<!-- Template based on a design from http://www.dotemplate.com/ - Donated $10 (pmitros) so we don't need to include credit. -->
</p>
<div
style=
"display:none"
><div
id=
"feedback_div"
>
Found a bug? Got an
idea for improving our system? Let us know.
<br>
Subject:
<br><input
id=
"feedback_subject"
size=
40
>
<br>
Feedback:
<br><textarea
id=
"feedback_message"
cols=
"40"
rows=
"5"
>
</textarea>
<br>
<input
id=
"feedback_button"
type=
"button"
value=
"Submit"
>
<script>
$
(
function
()
{
$
(
"#feedback_button"
).
click
(
function
(){
postJSON
(
"/send_feedback"
,
{
"subject"
:
$
(
"#feedback_subject"
).
attr
(
"value"
),
"url"
:
document
.
URL
,
"message"
:
$
(
"#feedback_message"
).
attr
(
"value"
)},
function
(
data
){
$
(
"#feedback_subject"
).
attr
(
"value"
,
""
);
$
(
"#feedback_message"
).
attr
(
"value"
,
""
);
$
(
"#feedback_div"
).
html
(
"Feedback submitted. Thank you"
);
});
});
});
</script>
</div></div>
<div
style=
"display:none"
><div
id=
"calculator_div"
>
<input
id=
"calculator_input"
>
<input
id=
"calculator_button"
type=
button
value=
"=>"
>
<input
id=
"calculator_output"
readonly
>
<script>
$
(
function
()
{
$
(
"#calculator_button"
).
click
(
function
(){
$
.
getJSON
(
"/calculate"
,
{
"equation"
:
$
(
"#calculator_input"
).
attr
(
"value"
)},
function
(
data
){
$
(
"#calculator_output"
).
attr
(
"value"
,
data
.
result
);
});
});
});
</script>
<br>
Supported operations: ^ * / + - || ()
<br>
Supported suffixes: %kMGTcmunp
</div></div>
<!-- Template based on a design from http://www.dotemplate.com/ - Donated $10 (pmitros) so we don't need to include credit. -->
<p>
Copyright (c). 2011. MIT.
<a
href=
http://creativecommons.org/licenses/by-sa/3.0/
>
Some rights reserved.
</a></p>
<ul>
<li><a
href=
"#feedback_div"
class=
"modal"
>
Feedback
</a></li>
<li><a
href=
"#calculator_div"
class=
"modal"
>
Calculator
</a></li>
<li><a
href=
"/s/help.html"
>
Help
</a></li>
<li><a
href=
"/logout"
>
Log out
</a></li>
</ul>
</footer>
<div
style=
"display:none"
>
<div
id=
"feedback_div"
>
Found a bug? Got an idea for improving our system? Let us know.
<form>
<ol>
<li><label>
Subject:
</label>
<input
id=
"feedback_subject"
size=
40
></li>
<li><label>
Feedback:
</label><textarea
id=
"feedback_message"
cols=
"40"
rows=
"5"
></textarea></li>
<li><input
id=
"feedback_button"
type=
"button"
value=
"Submit"
></li>
</ol>
</form>
</div>
</div>
<div
style=
"display:none"
>
<div
id=
"calculator_div"
>
<input
id=
"calculator_input"
>
<input
id=
"calculator_button"
type=
button
value=
"=>"
>
<input
id=
"calculator_output"
readonly
>
<p>
Supported operations: ^ * / + - || ()
</p>
<p>
Supported suffixes: %kMGTcmunp
</p>
</div>
</div>
<script>
// Feedback form
$
(
function
()
{
$
(
"#feedback_button"
).
click
(
function
(){
postJSON
(
"/send_feedback"
,
{
"subject"
:
$
(
"#feedback_subject"
).
attr
(
"value"
),
"url"
:
document
.
URL
,
"message"
:
$
(
"#feedback_message"
).
attr
(
"value"
)},
function
(
data
){
$
(
"#feedback_subject"
).
attr
(
"value"
,
""
);
$
(
"#feedback_message"
).
attr
(
"value"
,
""
);
$
(
"#feedback_div"
).
html
(
"Feedback submitted. Thank you"
);
});
});
});
// Calculator
$
(
function
()
{
$
(
"#calculator_button"
).
click
(
function
(){
$
.
getJSON
(
"/calculate"
,
{
"equation"
:
$
(
"#calculator_input"
).
attr
(
"value"
)},
function
(
data
){
$
(
"#calculator_output"
).
attr
(
"value"
,
data
.
result
);
});
});
});
</script>
</body>
</html>
profile.html
View file @
61a713f2
...
...
@@ -45,9 +45,8 @@ $(function() {
}
});
$
(
'#change_password'
).
click
(
function
(){
$
(
'
#inline
'
).
trigger
(
'click'
);
$
(
'
.modal
'
).
trigger
(
'click'
);
log_event
(
"profile"
,
{
"type"
:
"password_show"
});
});
...
...
@@ -75,10 +74,9 @@ $(function() {
<li>
E-mail: ${email}
</li>
<li>
Location: ${location}
</li>
<li>
Language: ${language}
</li>
<li>
Password: ********
</li>
</ul>
<!-- <div><a href="#change_password_pop">Reset password</a></div> -->
<!-- <div><a
class="modal"
href="#change_password_pop">Reset password</a></div> -->
<!-- hidden trigger for password -->
<div
id=
"change_password_pop"
>
...
...
sass/_courseware.scss
View file @
61a713f2
...
...
@@ -14,6 +14,9 @@ div.course-wrapper {
width
:
grid-width
(
3
);
h3
{
overflow
:
hidden
;
margin
:
0
;
&
:last-child
{
@include
box-shadow
(
none
);
}
...
...
simplewiki_base.html
View file @
61a713f2
...
...
@@ -136,4 +136,4 @@ update_schematics();});
<
%
block
name=
"wiki_body"
/>
</section>
</
%
block>
\ No newline at end of file
</
%
block>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment