Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses-legacy
Commits
a8cc7409
Commit
a8cc7409
authored
5 years ago
by
Bruno Martin
Browse files
Options
Download
Email Patches
Plain Diff
fix slide reveal admin and course display
parent
ed9c2e6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
0 deletions
+52
-0
courses_legacy/static/js/admin/lesson/admin.lesson.app.js
courses_legacy/static/js/admin/lesson/admin.lesson.app.js
+1
-0
courses_legacy/static/js/admin/lesson/admin.lesson.directives.js
..._legacy/static/js/admin/lesson/admin.lesson.directives.js
+37
-0
courses_legacy/templates/administration/lesson.html
courses_legacy/templates/administration/lesson.html
+1
-0
courses_legacy/templates/empty.html
courses_legacy/templates/empty.html
+13
-0
No files found.
courses_legacy/static/js/admin/lesson/admin.lesson.app.js
View file @
a8cc7409
...
...
@@ -4,6 +4,7 @@
angular
.
module
(
'
admin.lesson
'
,
[
'
admin.lesson.controllers
'
,
'
admin.lesson.services
'
,
'
admin.lesson.directives
'
,
'
new-course.directives
'
,
'
djangular
'
,
'
directive.waiting-screen
'
,
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/static/js/admin/lesson/admin.lesson.directives.js
0 → 100644
View file @
a8cc7409
(
function
(
angular
)
{
'
use strict
'
;
var
app
=
angular
.
module
(
'
admin.lesson.directives
'
,
[]);
var
empty
=
'
<html><body style="padding:0;margin:0;display:table;height:100%;width:100%">
'
+
'
<div style="display:table-cell;vertical-align:middle">
'
+
'
<p style="color:#555;font-size:63px;text-align:center;font-family:monospace;">
'
+
'
Preview Area</p></div></body></html>
'
;
app
.
directive
(
'
framepreview
'
,
function
(){
return
{
'
restrict
'
:
'
A
'
,
'
scope
'
:
{
'
content
'
:
'
=cmBind
'
,
},
'
link
'
:
function
(
scope
,
element
,
attrs
,
ngModel
)
{
var
iframe
=
element
[
0
];
var
preview
=
iframe
.
contentDocument
||
iframe
.
contentWindow
.
document
;
preview
.
write
(
empty
);
scope
.
$watch
(
'
content
'
,
function
(
v1
,
v2
){
updatePreview
(
v1
||
empty
);
});
function
updatePreview
(
value
)
{
if
(
!
iframe
)
return
;
preview
.
open
();
preview
.
write
(
value
);
preview
.
close
();
}
}
};
});
})(
window
.
angular
);
This diff is collapsed.
Click to expand it.
courses_legacy/templates/administration/lesson.html
View file @
a8cc7409
...
...
@@ -14,6 +14,7 @@
<script
src=
"{% static 'js/admin/lesson/admin.lesson.app.js' %}"
></script>
<script
src=
"{% static 'js/admin/lesson/admin.lesson.controllers.js' %}"
></script>
<script
src=
"{% static 'js/admin/lesson/admin.lesson.services.js' %}"
></script>
<script
src=
"{% static 'js/admin/lesson/admin.lesson.directives.js' %}"
></script>
<script
src=
"{% static 'js/core-services.js' %}"
></script>
<script
src=
"{% static 'js/admin/new-course/directives.js' %}"
></script>
<script
src=
"{% static 'js/admin/filters/text.js' %}"
></script>
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/templates/empty.html
0 → 100644
View file @
a8cc7409
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title></title>
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
</head>
<body>
<p></p>
</body>
</html>
This diff is collapsed.
Click to expand it.
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