Widget: Homepage: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 150: | Line 150: | ||
margin: 4em 0; | margin: 4em 0; | ||
} | } | ||
.snippet | .snippet { | ||
display: flex; | display: flex; | ||
flex-flow: column nowrap; | flex-flow: column nowrap; | ||
Line 499: | Line 499: | ||
const snippet = snippets[index]; | const snippet = snippets[index]; | ||
let el = '<a class="snippet ' + snippet.product + '" href="' + snippet.action + '">'; | let el = '<a class="snippet ' + snippet.product + '" href="' + snippet.action + '">'; | ||
el += '<div class="snippet-header">' + snippet.title + '</div>'; | el += '<div class="snippet-header">' + snippet.title + '</div>'; | ||
el += '<div class="snippet-body">' + snippet.body + '</div>'; | el += '<div class="snippet-body">' + snippet.body + '</div>'; | ||
el += ' | el += '</a>'; | ||
container.innerHTML += el; | container.innerHTML += el; | ||
} | } | ||
</script> | </script> | ||
</includeonly> | </includeonly> |
Revision as of 16:10, 27 October 2023
Second version of the LINKS Community Center homepage.
Do not modify!