Widget:CJP3: Difference between revisions

Jump to navigation Jump to search
Christopher Popma (talk | contribs)
No edit summary
Christopher Popma (talk | contribs)
No edit summary
Line 33: Line 33:
pillName = val.printouts["Pill Name"];
pillName = val.printouts["Pill Name"];
//Look up file Directory with MD5:
//Look up file Directory with MD5:
md5 = CryptoJS.MD5(pillName[0]);
md5 = string(CryptoJS.MD5(pillName[0]));
                                        alert(String(md5))
imageDirect = 'http://static.wikidoc.org/' + md5.charAt(0) + '/' + md5.substring(0,1) + '/' + pillName
imageDirect = 'http://static.wikidoc.org/' + md5.charAt(0) + '/' + md5.charAt(0) + md5.charAt(1) + '/' + pillName
//Find a <table> element with id="resultsTable-body":
//Find a <table> element with id="resultsTable-body":

Revision as of 22:43, 3 June 2014