liberty-prettydiff
Version:
Language aware code comparison tool for several web based languages. It also beautifies, minifies, and a few other things.
19 lines (17 loc) • 615 B
Plain Text
function nav(dir) {
var postData = {
game_id : "{{.ActiveGame.ID}}",
src : $("#txtSrc").val(),
trans : $("#txtTrans").val(),
untrans : $("#untranslated").is(":checked"),
direction : dir,
{{if eq .Mode 0 }} //note this should not be valid js/html syntax
image : VisualTranslation.getPic(),
overlay: VisualTranslation.getData(),
{{end}}
tid : trans_id,
lang : "{{.ActiveLang}}",
mode : "{{.Mode}}"
};
$.ajax({url: "/api/next", type: "POST", data: postData)};
}