Difference between revisions of "Template:HSNU-TAIPEI/members js"

Line 39: Line 39:
 
};
 
};
  
var generatePersonFigure = function(personName, personRole) {
+
var generatePersonFigure = function(personName) {
 
var figure = "<figure>";
 
var figure = "<figure>";
 
figure += generatePersonName(personName);
 
figure += generatePersonName(personName);
figure += generatePersonRole(personRole);
 
 
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);
content += generatePersonFigure(personName, personRole);
 
 
profile.setAttribute('class', 'profile');
 
profile.setAttribute('class', 'profile');
 
profile.innerHTML = content;
 
profile.innerHTML = content;

Revision as of 12:39, 2 July 2015