Widget:CJP3: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
pillScoring = val.printouts["Pill Scoring"]; | pillScoring = val.printouts["Pill Scoring"]; | ||
ndc = val.printouts["NDC"]; | ndc = val.printouts["NDC"]; | ||
pillName = val.printouts["Pill Name"].split(' ').join('_'); | pillName = String(val.printouts["Pill Name"][0]).split(' ').join('_'); | ||
//Look up file Directory with MD5: | //Look up file Directory with MD5: | ||
md5 = | md5 = CryptoJS.MD5(pillName); | ||
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 | ||