Difference between revisions of "Widget:InfoLink"

From LNF Wiki
Jump to navigation Jump to search
 
Line 13: Line 13:
 
document.getElementById('infolink').innerHTML = "<a rel='nofollow' target='_blank' class='external text' href='http://ssel-sched.eecs.umich.edu/sselonline/?view=/sselScheduler/ResourceContact.aspx?tabindex=3&path=0:0:0:<!--{$toolid}-->'>Request more information</a>";
 
document.getElementById('infolink').innerHTML = "<a rel='nofollow' target='_blank' class='external text' href='http://ssel-sched.eecs.umich.edu/sselonline/?view=/sselScheduler/ResourceContact.aspx?tabindex=3&path=0:0:0:<!--{$toolid}-->'>Request more information</a>";
 
} else {
 
} else {
document.getElementById('infolink').innerHTML = "<a rel='nofollow' target='_blank' class='external text' href='mailto:lnf-info@umich.edu'>Request more information</a>";
+
document.getElementById('infolink').innerHTML = "<a rel='nofollow' target='_blank' class='external text' href='mailto:info@lnf.umich.edu'>Request more information</a>";
 
}
 
}
 
});
 
});

Latest revision as of 10:18, 12 May 2016

This widget displays a link that varies depending on the toolid and whether the user is logged in. Use the following code:

{{#widget:InfoLink|toolid=#####}}