Difference between revisions of "Widget:Homepage"
From LINKS Community Center
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 17:10, 27 October 2023
Second version of the LINKS Community Center homepage.
Do not modify!