mui.plusReady(function() {
plus.screen.lockOrientation('landscape-secondary');
});
$(document).ready(function() {
$("#signature").jSignature()
});
document.getElementById("clear").addEventListener('tap', function() {
$("#signature").jSignature("reset");
$("#pic")[0][removed] = '';
});
document.getElementById("save").addEventListener('tap', function() {
var datapair = $("#signature").jSignature("getData", "image");
var array = datapair.splice(",");
mui.toast(array[1]);
});
document.getElementById("export").addEventListener('tap', function() {
var datapair = $("#signature").jSignature("getData", "image");
var i = new Image();
i.src = "data:" + datapair[0] + "," + datapair[1];
$(i).appendTo($("#pic"));
});