Widget: Homepage: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 258: | Line 258: | ||
</div> | </div> | ||
<div id="snippets"></div> | <div id="hp-main"> | ||
<div id="snippets"></div> | |||
<form class="hp-search form-inline w-100" onsubmit="search(event)"> | <form class="hp-search form-inline w-100" onsubmit="search(event)"> | ||
<input id="hp-search-input" class="form-control form-control-lg flex-grow-1" type="text" | <input id="hp-search-input" class="form-control form-control-lg flex-grow-1" type="text" | ||
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-inner">'; | |||
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 += '</a>'; | el += '</div></a>'; | ||
container.innerHTML += el; | container.innerHTML += el; | ||
} | } | ||
</script> | </script> | ||
</includeonly> | </includeonly> |
Revision as of 16:08, 27 October 2023
Second version of the LINKS Community Center homepage.
Do not modify!