Difference between revisions of "Template:Groningen"

Line 183: Line 183:
 
}
 
}
 
}else if(secid){
 
}else if(secid){
if(!hid){
+
hid = secid;
hid = 'h-'+secid;
+
secid = 'sec-'+hid;
h.attr('id', hid);
+
h.attr('id', hid);
id = secid;
+
sec.attr('id', secid);
}
+
id = secid;
 
}else{
 
}else{
 
id = 'collapser-'+(collapsers.nextId++);
 
id = 'collapser-'+(collapsers.nextId++);
 
secid = 'sec-'+id;
 
secid = 'sec-'+id;
 
sec.attr('id', secid);
 
sec.attr('id', secid);
hid = 'h-'+id;
+
hid = id;
 
h.attr('id', hid);
 
h.attr('id', hid);
 
}
 
}
 +
console.log(id, hid, secid);
 
 
 
h.insertBefore(sec);
 
h.insertBefore(sec);
Line 210: Line 211:
 
}
 
}
 
});
 
});
 
function toggleAll(){
 
collapsers.all.forEach(function(act){
 
 
});
 
}
 
 
}
 
}
 
collapsers.allowConditional = false;
 
collapsers.allowConditional = false;
Line 223: Line 218:
  
 
function postcollapse(){
 
function postcollapse(){
 +
function toggleAll(){
 +
collapsers.all.forEach(function(act){
 +
 +
});
 +
}
 +
 
if(collapsers.all.length){
 
if(collapsers.all.length){
 
var wrap = $('#ayoop-wrapper'),
 
var wrap = $('#ayoop-wrapper'),

Revision as of 14:20, 17 October 2016

CryptoGE®M
Team
Project
Biology
Computing
Human Practice
Acknowledgements