Last active
April 19, 2016 03:49
-
-
Save JimboFromLimbo/4cf34d8866f99c282a6f7dca8ab798d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var signaturePads = []; | |
var studentSignaturePad = new SignaturePad(document.getElementById('student-signature-pad'), { | |
backgroundColor: 'rgba(255, 255, 255, 0)', | |
penColor: 'rgb(0, 0, 0)' | |
}); | |
var saveButton = document.getElementById('submit'); | |
var cancelButton = document.getElementById('clear1'); | |
signaturePads.push(studentSignaturePad); | |
var signaturePadsContent = signaturePads.indexOf("studentSignaturePad") | |
console.log(signaturePads.length); | |
// saveButton.addEventListener("click", function (event) { | |
function checksig(){ | |
for(var i in signaturePads) { | |
if (signaturePads[i].isEmpty){ | |
$.each(signaturePads , function(index, val){ | |
alert(signaturePads[i]) | |
}); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment