Difference between revisions of "Template:HSNU-TAIPEI/members js"
Line 39: | Line 39: | ||
}; | }; | ||
− | var generatePersonFigure = function(personName | + | var generatePersonFigure = function(personName) { |
var figure = "<figure>"; | var figure = "<figure>"; | ||
figure += generatePersonName(personName); | figure += generatePersonName(personName); | ||
− | |||
figure += "</figure>"; | figure += "</figure>"; | ||
return figure; | return figure; | ||
Line 53: | Line 52: | ||
var profile = document.createElement('div'); | var profile = document.createElement('div'); | ||
var content = generatePersonImg(personName, personSrc); | var content = generatePersonImg(personName, personSrc); | ||
− | |||
profile.setAttribute('class', 'profile'); | profile.setAttribute('class', 'profile'); | ||
profile.innerHTML = content; | profile.innerHTML = content; |
Revision as of 12:39, 2 July 2015