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 = String(val.printouts["Pill Name"][0]).split(' ').join('_');
pillName = String(val.printouts["Pill Name"][0]).split(' ').join('_');
//Look up file Directory with MD5:
//Look up file Directory with MD5:
md5 = CryptoJS.MD5(pillName);
md5 = String(CryptoJS.MD5(pillName));
alert(md5);
imageDirect = 'http://static.wikidoc.org/' + md5.charAt(0) + '/' + md5.substring(0,2) + '/' + pillName
imageDirect = 'http://static.wikidoc.org/' + md5.charAt(0) + '/' + md5.substring(0,2) + '/' + pillName

Revision as of 22:55, 3 June 2014