Last active
April 19, 2016 03:59
-
-
Save JimboFromLimbo/c01d72db5f97b338b9502a12c5d451b2 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'); | |
var trainerSignaturePad = new SignaturePad(document.getElementById('trainer-signature-pad'), { | |
backgroundColor: 'rgba(255, 255, 255, 0)', | |
penColor: 'rgb(0, 0, 0)' | |
}); | |
var saveButton = document.getElementById('submit-button'); | |
var cancelButton = document.getElementById('clear2'); | |
cancelButton.addEventListener('click', function (event) { | |
trainerSignaturePad.clear(); | |
}); | |
var employerSignaturePad = new SignaturePad(document.getElementById('employer-signature-pad'), { | |
backgroundColor: 'rgba(255, 255, 255, 0)', | |
penColor: 'rgb(0, 0, 0)' | |
}); | |
var saveButton = document.getElementById('submit-button'); | |
var cancelButton = document.getElementById('clear3'); | |
cancelButton.addEventListener('click', function (event) { | |
employerSignaturePad.clear(); | |
}); | |
signaturePads.push(studentSignaturePad); | |
signaturePads.push(trainerSignaturePad); | |
signaturePads.push(employerSignaturePad); | |
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