fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a528895
)
Epic spelling mistake
author
Marcin Koziej
<mkoziej@ksi.(none)>
Wed, 30 Jan 2013 10:19:25 +0000
(11:19 +0100)
committer
Marcin Koziej
<mkoziej@ksi.(none)>
Wed, 30 Jan 2013 10:19:25 +0000
(11:19 +0100)
lib/librarian
patch
|
blob
|
history
redakcja/static/edumed/css/edumed.css
patch
|
blob
|
history
redakcja/static/edumed/js/edumed.coffee
patch
|
blob
|
history
redakcja/static/edumed/js/edumed.js
patch
|
blob
|
history
diff --git
a/lib/librarian
b/lib/librarian
index
ae0c7dc
..
cdde48a
160000
(submodule)
--- a/
lib/librarian
+++ b/
lib/librarian
@@
-1
+1
@@
-Subproject commit
ae0c7dcc02fae67423974e65fe8bfdf6e7a7636a
+Subproject commit
cdde48a1896f8ff4c49221fba175d9b1108b8d21
diff --git
a/redakcja/static/edumed/css/edumed.css
b/redakcja/static/edumed/css/edumed.css
index
d63ce5b
..
1d2b9ea
100644
(file)
--- a/
redakcja/static/edumed/css/edumed.css
+++ b/
redakcja/static/edumed/css/edumed.css
@@
-439,7
+439,7
@@
em.person {
}
}
-.ex
c
ercise .buttons {
+.exercise .buttons {
text-align: right;
}
text-align: right;
}
@@
-465,7
+465,7
@@
em.person {
-.ex
c
ercise .lista.predicate {
+.exercise .lista.predicate {
list-style: none;
position: relative;
clear: both;
list-style: none;
position: relative;
clear: both;
@@
-473,12
+473,12
@@
em.person {
}
}
-.ex
c
ercise .subjects {
+.exercise .subjects {
padding-left: 0;
}
padding-left: 0;
}
-.ex
c
ercise .lista.predicate > li {
+.exercise .lista.predicate > li {
list-style: none;
display: block;
float: left;
list-style: none;
display: block;
float: left;
@@
-486,28
+486,28
@@
em.person {
margin: 2px;
}
margin: 2px;
}
-.ex
c
ercise.wide .lista.predicate > li {
+.exercise.wide .lista.predicate > li {
width: 100%;
margin: 2px;
}
width: 100%;
margin: 2px;
}
-.ex
c
ercise .lista.predicate .droppable {
+.exercise .lista.predicate .droppable {
min-height: 50px;
border: 1px dotted black;
}
min-height: 50px;
border: 1px dotted black;
}
-.ex
c
ercise .draggable {
+.exercise .draggable {
padding: 3px;
border: 1px dotted black;
display: inline-block;
}
padding: 3px;
border: 1px dotted black;
display: inline-block;
}
-.ex
c
ercise .draggable.disabled {
+.exercise .draggable.disabled {
background-color: grey;
}
background-color: grey;
}
-.ex
c
ercise .placeholder {
+.exercise .placeholder {
padding: 3px;
border: 1px dotted black;
display: inline-block;
padding: 3px;
border: 1px dotted black;
display: inline-block;
@@
-515,12
+515,12
@@
em.person {
min-height: 1em;
}
min-height: 1em;
}
-.ex
c
ercise .placeholder.accepting.dragover {
+.exercise .placeholder.accepting.dragover {
background-color: #ffff99;
}
background-color: #ffff99;
}
-.ex
c
ercise.zastap .paragraph .placeholder {
+.exercise.zastap .paragraph .placeholder {
display: inline;
min-width: none;
min-height: none;
display: inline;
min-width: none;
min-height: none;
@@
-530,12
+530,12
@@
em.person {
-.ex
c
ercise .lista.subjects {
+.exercise .lista.subjects {
padding-left: 0px;
}
padding-left: 0px;
}
-.ex
c
ercise.uporzadkuj li {
+.exercise.uporzadkuj li {
cursor: move;
}
cursor: move;
}
@@
-546,7
+546,7
@@
em.person {
margin-left: 5px;
}
margin-left: 5px;
}
-.ex
c
ercise.wybor li[data-name] {
+.exercise.wybor li[data-name] {
list-style: none;
}
list-style: none;
}
diff --git
a/redakcja/static/edumed/js/edumed.coffee
b/redakcja/static/edumed/js/edumed.coffee
index
227bce6
..
14c700c
100644
(file)
--- a/
redakcja/static/edumed/js/edumed.coffee
+++ b/
redakcja/static/edumed/js/edumed.coffee
@@
-17,11
+17,11
@@
class EduModule extends Binding
# $(".teacher", @element).removeClass "show"
# $(".teacher", @element).removeClass "show"
-class Ex
c
ercise extends Binding
+class Exercise extends Binding
constructor: (element) ->
constructor: (element) ->
- super 'ex
c
ercise', element
- # just save the html to reset the ex
c
ercise
- $(@element).data("ex
c
ercise-html", $(@element).html())
+ super 'exercise', element
+ # just save the html to reset the exercise
+ $(@element).data("exercise-html", $(@element).html())
$(".check", @element).click (ev) =>
@check()
$(".check", @element).click (ev) =>
@check()
@@
-38,8
+38,8
@@
class Excercise extends Binding
@reset()
reset: ->
@reset()
reset: ->
- $(@element).html($(@element).data('ex
c
ercise-html'))
- ex
c
ercise @element
+ $(@element).html($(@element).data('exercise-html'))
+ exercise @element
piece_correct: (qpiece) ->
$(qpiece).removeClass('incorrect').addClass('correct')
piece_correct: (qpiece) ->
$(qpiece).removeClass('incorrect').addClass('correct')
@@
-178,7
+178,7
@@
class Excercise extends Binding
-class Wybor extends Ex
c
ercise
+class Wybor extends Exercise
constructor: (element) ->
super element
constructor: (element) ->
super element
@@
-224,7
+224,7
@@
class Wybor extends Excercise
-class Uporzadkuj extends Ex
c
ercise
+class Uporzadkuj extends Exercise
constructor: (element) ->
super element
$('ol, ul', @element).sortable({ items: "> li" })
constructor: (element) ->
super element
$('ol, ul', @element).sortable({ items: "> li" })
@@
-263,7
+263,7
@@
class Uporzadkuj extends Excercise
# XXX propozycje="1/0"
# XXX propozycje="1/0"
-class Luki extends Ex
c
ercise
+class Luki extends Exercise
constructor: (element) ->
super element
@dragging false, false
constructor: (element) ->
super element
@dragging false, false
@@
-288,7
+288,7
@@
class Luki extends Excercise
@draggable_move $qp, $(placeholder), false
@draggable_move $qp, $(placeholder), false
-class Zastap extends Ex
c
ercise
+class Zastap extends Exercise
constructor: (element) ->
super element
$(".paragraph", @element).each (i, par) =>
constructor: (element) ->
super element
$(".paragraph", @element).each (i, par) =>
@@
-354,7
+354,7
@@
class Zastap extends Excercise
$(chld).remove()
$(chld).remove()
-class Przyporzadkuj extends Ex
c
ercise
+class Przyporzadkuj extends Exercise
is_multiple: ->
for qp in $(".question-piece", @element)
if $(qp).data('solution').split(/[ ,]+/).length > 1
is_multiple: ->
for qp in $(".question-piece", @element)
if $(qp).data('solution').split(/[ ,]+/).length > 1
@@
-417,7
+417,7
@@
class Przyporzadkuj extends Excercise
-class PrawdaFalsz extends Ex
c
ercise
+class PrawdaFalsz extends Exercise
constructor: (element) ->
super element
constructor: (element) ->
super element
@@
-457,7
+457,7
@@
class PrawdaFalsz extends Excercise
##########
##########
-ex
c
ercise = (ele) ->
+exercise = (ele) ->
es =
wybor: Wybor
uporzadkuj: Uporzadkuj
es =
wybor: Wybor
uporzadkuj: Uporzadkuj
@@
-480,5
+480,5
@@
window.edumed =
$(document).ready () ->
new EduModule($("#book-text"))
$(document).ready () ->
new EduModule($("#book-text"))
- $(".ex
c
ercise").each (i, el) ->
- ex
c
ercise(this)
\ No newline at end of file
+ $(".exercise").each (i, el) ->
+ exercise(this)
\ No newline at end of file
diff --git
a/redakcja/static/edumed/js/edumed.js
b/redakcja/static/edumed/js/edumed.js
index
75ecc9e
..
cc7b9e1
100644
(file)
--- a/
redakcja/static/edumed/js/edumed.js
+++ b/
redakcja/static/edumed/js/edumed.js
@@
-1,6
+1,6
@@
// Generated by CoffeeScript 1.4.0
(function() {
// Generated by CoffeeScript 1.4.0
(function() {
- var $, Binding, EduModule, Ex
cercise, Luki, PrawdaFalsz, Przyporzadkuj, Uporzadkuj, Wybor, Zastap, exc
ercise,
+ var $, Binding, EduModule, Ex
ercise, Luki, PrawdaFalsz, Przyporzadkuj, Uporzadkuj, Wybor, Zastap, ex
ercise,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
@@
-30,14
+30,14
@@
})(Binding);
})(Binding);
- Ex
c
ercise = (function(_super) {
+ Exercise = (function(_super) {
- __extends(Ex
c
ercise, _super);
+ __extends(Exercise, _super);
- function Ex
c
ercise(element) {
+ function Exercise(element) {
var _this = this;
var _this = this;
- Ex
cercise.__super__.constructor.call(this, 'exc
ercise', element);
- $(this.element).data("ex
c
ercise-html", $(this.element).html());
+ Ex
ercise.__super__.constructor.call(this, 'ex
ercise', element);
+ $(this.element).data("exercise-html", $(this.element).html());
$(".check", this.element).click(function(ev) {
_this.check();
$(ev.target).next(".retry").show();
$(".check", this.element).click(function(ev) {
_this.check();
$(ev.target).next(".retry").show();
@@
-57,20
+57,20
@@
});
}
});
}
- Ex
c
ercise.prototype.reset = function() {
- $(this.element).html($(this.element).data('ex
c
ercise-html'));
- return ex
c
ercise(this.element);
+ Exercise.prototype.reset = function() {
+ $(this.element).html($(this.element).data('exercise-html'));
+ return exercise(this.element);
};
};
- Ex
c
ercise.prototype.piece_correct = function(qpiece) {
+ Exercise.prototype.piece_correct = function(qpiece) {
return $(qpiece).removeClass('incorrect').addClass('correct');
};
return $(qpiece).removeClass('incorrect').addClass('correct');
};
- Ex
c
ercise.prototype.piece_incorrect = function(qpiece) {
+ Exercise.prototype.piece_incorrect = function(qpiece) {
return $(qpiece).removeClass('correct').addClass('incorrect');
};
return $(qpiece).removeClass('correct').addClass('incorrect');
};
- Ex
c
ercise.prototype.check = function() {
+ Exercise.prototype.check = function() {
var score, scores,
_this = this;
scores = [];
var score, scores,
_this = this;
scores = [];
@@
-85,7
+85,7
@@
return this.show_score(score);
};
return this.show_score(score);
};
- Ex
c
ercise.prototype.show_solutions = function() {
+ Exercise.prototype.show_solutions = function() {
var _this = this;
this.reset();
return $(".question", this.element).each(function(i, question) {
var _this = this;
this.reset();
return $(".question", this.element).each(function(i, question) {
@@
-93,7
+93,7
@@
});
};
});
};
- Ex
c
ercise.prototype.get_value_list = function(elem, data_key, numbers) {
+ Exercise.prototype.get_value_list = function(elem, data_key, numbers) {
var vl;
vl = $(elem).attr("data-" + data_key).split(/[ ,]+/).map($.trim);
if (numbers) {
var vl;
vl = $(elem).attr("data-" + data_key).split(/[ ,]+/).map($.trim);
if (numbers) {
@@
-104,7
+104,7
@@
return vl;
};
return vl;
};
- Ex
c
ercise.prototype.get_value_optional_list = function(elem, data_key) {
+ Exercise.prototype.get_value_optional_list = function(elem, data_key) {
var mandat, opt, v, vals, _i, _len;
vals = this.get_value_list(elem, data_key);
mandat = [];
var mandat, opt, v, vals, _i, _len;
vals = this.get_value_list(elem, data_key);
mandat = [];
@@
-120,15
+120,15
@@
return [mandat, opt];
};
return [mandat, opt];
};
- Ex
c
ercise.prototype.show_score = function(score) {
+ Exercise.prototype.show_score = function(score) {
return $(".message", this.element).text("Wynik: " + score[0] + " / " + score[1]);
};
return $(".message", this.element).text("Wynik: " + score[0] + " / " + score[1]);
};
- Ex
c
ercise.prototype.draggable_equal = function($draggable1, $draggable2) {
+ Exercise.prototype.draggable_equal = function($draggable1, $draggable2) {
return false;
};
return false;
};
- Ex
c
ercise.prototype.draggable_accept = function($draggable, $droppable) {
+ Exercise.prototype.draggable_accept = function($draggable, $droppable) {
var d, dropped, _i, _len;
dropped = $droppable.closest("ul, ol").find(".draggable");
for (_i = 0, _len = dropped.length; _i < _len; _i++) {
var d, dropped, _i, _len;
dropped = $droppable.closest("ul, ol").find(".draggable");
for (_i = 0, _len = dropped.length; _i < _len; _i++) {
@@
-140,7
+140,7
@@
return true;
};
return true;
};
- Ex
c
ercise.prototype.draggable_move = function($draggable, $placeholder, ismultiple) {
+ Exercise.prototype.draggable_move = function($draggable, $placeholder, ismultiple) {
var $added,
_this = this;
$added = $draggable.clone();
var $added,
_this = this;
$added = $draggable.clone();
@@
-162,7
+162,7
@@
});
};
});
};
- Ex
c
ercise.prototype.dragging = function(ismultiple, issortable) {
+ Exercise.prototype.dragging = function(ismultiple, issortable) {
var _this = this;
return $(".question", this.element).each(function(i, question) {
var draggable_opts, self;
var _this = this;
return $(".question", this.element).each(function(i, question) {
var draggable_opts, self;
@@
-204,7
+204,7
@@
});
};
});
};
- return Ex
c
ercise;
+ return Exercise;
})(Binding);
})(Binding);
@@
-269,7
+269,7
@@
return Wybor;
return Wybor;
- })(Ex
c
ercise);
+ })(Exercise);
Uporzadkuj = (function(_super) {
Uporzadkuj = (function(_super) {
@@
-329,7
+329,7
@@
return Uporzadkuj;
return Uporzadkuj;
- })(Ex
c
ercise);
+ })(Exercise);
Luki = (function(_super) {
Luki = (function(_super) {
@@
-370,7
+370,7
@@
return Luki;
return Luki;
- })(Ex
c
ercise);
+ })(Exercise);
Zastap = (function(_super) {
Zastap = (function(_super) {
@@
-461,7
+461,7
@@
return Zastap;
return Zastap;
- })(Ex
c
ercise);
+ })(Exercise);
Przyporzadkuj = (function(_super) {
Przyporzadkuj = (function(_super) {
@@
-553,7
+553,7
@@
return Przyporzadkuj;
return Przyporzadkuj;
- })(Ex
c
ercise);
+ })(Exercise);
PrawdaFalsz = (function(_super) {
PrawdaFalsz = (function(_super) {
@@
-614,9
+614,9
@@
return PrawdaFalsz;
return PrawdaFalsz;
- })(Ex
c
ercise);
+ })(Exercise);
- ex
c
ercise = function(ele) {
+ exercise = function(ele) {
var cls, es;
es = {
wybor: Wybor,
var cls, es;
es = {
wybor: Wybor,
@@
-636,8
+636,8
@@
$(document).ready(function() {
new EduModule($("#book-text"));
$(document).ready(function() {
new EduModule($("#book-text"));
- return $(".ex
c
ercise").each(function(i, el) {
- return ex
c
ercise(this);
+ return $(".exercise").each(function(i, el) {
+ return exercise(this);
});
});
});
});