Created
June 24, 2016 00:11
-
-
Save JimboFromLimbo/6077391fb181a914649c927058a5d1ce 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
function createSignaturePads() { | |
//-----Selects all elements that start with the id signaturePad-// | |
var elems=document.querySelectorAll("*[id^='signaturePad-']"); | |
//-----Start of the forEach Loop// | |
[].forEach.call(elems,function(elem){ | |
console.log(elem) | |
var oldId=elem.getAttribute("id"); | |
console.log(oldId) | |
// can not resizeCanvas with out getElementById of 'oldId' | |
var canvas = document.getElementById(oldId); | |
// signaturePad Creation | |
var oldId=new SignaturePad | |
(document.getElementById(oldId)) | |
resizeCanvas(canvas); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment