summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/debug.js8
-rw-r--r--js/lfpe.js3
2 files changed, 7 insertions, 4 deletions
diff --git a/js/debug.js b/js/debug.js
index 4ff95de..e54d3f1 100644
--- a/js/debug.js
+++ b/js/debug.js
@@ -5,12 +5,14 @@ $().ready(function()
$(this).click(function(){
$.ajax({url: $(this).attr("tgt"), success: function(result){
$("#control_reply").html(result);
- }});
+ }});
})
})
-
+
// display svg
- var d = atob(document.getElementById("svg_b64").innerHTML);
+ var d = atob(document.getElementById("svg_b64").innerHTML);
$('#svg').append($('<svg width="10000px">'+d+'</svg>'));
+ d = atob(document.getElementById("original_svg_b64").innerHTML);
+ $('#original_svg').append($('<svg width="10000px">'+d+'</svg>'));
});
diff --git a/js/lfpe.js b/js/lfpe.js
index 4c7dc72..9185018 100644
--- a/js/lfpe.js
+++ b/js/lfpe.js
@@ -177,6 +177,7 @@ function Next()
post_edit = "";
send_data["post_edit"] = encodeURIComponent(post_edit);
send_data['type'] = 'g';
+ send_data["original_svg"] = document.getElementById("original_svg").value;
} else {
post_edit = trim(target_textarea.value);
send_data["post_edit"] = post_edit;
@@ -186,7 +187,6 @@ function Next()
send_data["key"] = key;
// send data
- // ???
if (oov_correct.value=="false" && post_edit != "") {
send_data["EDIT"] = true;
send_data["duration"] = Timer.get();
@@ -362,6 +362,7 @@ function Next()
DE_init();
var x = trim(JSON.parse(DE_extract_data())["target"].join(" "));
last_post_edit.value = x;
+ document.getElementById("original_svg").value = DE_get_raw_svg_data();
}
// start timer