|
|
|
@ -26,7 +26,7 @@ var Main = (function(answer) { "use strict";
|
|
|
|
|
|
|
|
|
|
|
|
p(changed, ctx) {
|
|
|
|
p(changed, ctx) {
|
|
|
|
if (changed.answer) {
|
|
|
|
if (changed.answer) {
|
|
|
|
text_1.data = ctx.answer;
|
|
|
|
setData(text_1, ctx.answer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
@ -80,6 +80,10 @@ var Main = (function(answer) { "use strict";
|
|
|
|
target.appendChild(node);
|
|
|
|
target.appendChild(node);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setData(text, data) {
|
|
|
|
|
|
|
|
text.data = '' + data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function detachNode(node) {
|
|
|
|
function detachNode(node) {
|
|
|
|
node.parentNode.removeChild(node);
|
|
|
|
node.parentNode.removeChild(node);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|