#982 ESCET website: add more news teasers + JS loading improvements
- Best to review per commit. Some changes are split over multiple commits, so intermediate commits may not be fully functional.
- End-user visible changes:
- Added news teasers to Chi, CIF and ToolDef home pages + community page.
- Load website news asynchronously. Script load is asynchronous. Script executes after DOM is fully available, asynchronously. Improves website load performance.
- Other changes:
- Moved
initNewsfunction fromeclipse-escet.jstoeclipse-escet-news.js. Renamedeclipse-escet.jstoeclipse-escet-versions.js. - Renamed
ESCET_DEBUGtoESCET_DEBUG_VERSIONSandESCET_DEBUG_NEWSto avoid duplicate definition in two JS files. - Changed website versions loading from
onLoadfunction to inline code. Registered for execution after DOM is fully loaded. Including the file is now enough to get the functionality. - Since we now have news teasers in HTML pages that are not in the website root directory, and to ensure proper links to news page for all pages with news teasers, the JavaScript code now looks for a data attribute on the relevant HTML element, to deduce how to create proper links.
- Moved
Addresses #982
Edited by Dennis Hendriks