summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/codeq.js2
-rw-r--r--js/prolog.js6
-rw-r--r--sins.py4
3 files changed, 9 insertions, 3 deletions
diff --git a/js/codeq.js b/js/codeq.js
index e867ffd..472cab0 100644
--- a/js/codeq.js
+++ b/js/codeq.js
@@ -726,7 +726,7 @@ window.phandler = null; // TODO: this is for debug only
codeq.system.load({
type: 'text',
- url: 'sister.py',
+ url: 'sins.py',
callback: function (data, status, url) {
if (!data) return;
var info = codeq.parseDefinition(data);
diff --git a/js/prolog.js b/js/prolog.js
index c405200..28c1b69 100644
--- a/js/prolog.js
+++ b/js/prolog.js
@@ -190,7 +190,11 @@
};
var jqButtons = $('#block-toolbar button');
- $(jqButtons.get(0)).on('click', function () { handler.processServerHints([{id:'x_must_be_female'}]); });
+// $(jqButtons.get(0)).on('click', function () { handler.processServerHints([{id:'x_must_be_female'}]); });
+// $(jqButtons.get(1)).on('click', function () { handler.processServerHints([{id:'popup_unknown', start: 20, end: 26}]); });
+// $(jqButtons.get(2)).on('click', function () { handler.processServerHints([{id:'drop_down', start: 20, end: 26, choices:['ena', 'dva', 'tri']}]); });
+
+ $(jqButtons.get(0)).on('click', function () { handler.processServerHints([{id:'list_empty'}]); });
$(jqButtons.get(1)).on('click', function () { handler.processServerHints([{id:'popup_unknown', start: 20, end: 26}]); });
$(jqButtons.get(2)).on('click', function () { handler.processServerHints([{id:'drop_down', start: 20, end: 26, choices:['ena', 'dva', 'tri']}]); });
diff --git a/sins.py b/sins.py
index b37d154..812c363 100644
--- a/sins.py
+++ b/sins.py
@@ -18,9 +18,11 @@ hint['list_empty'] = {
'type': 'static',
'message': """
Kaj se zgodi, če je <code>SortedList</code> prazen?<br>
-<svg> xmlns="http://www.w3.org/2000/svg"
+<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 150 70"
+ width="300"
+ height="140"
preserveAspectRatio="xMidYMid"
version="1.1">
<desc>Animates sorted insert (sins/3) with rectangles.</desc>