Widget: Homepage: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 109: | Line 109: | ||
function search(event) { | function search(event) { | ||
event.preventDefault(); | event.preventDefault(); | ||
console.log( | const val = document.getElementById('hp-search-input').value; | ||
console.log(value) | |||
} | } | ||
</script> | </script> | ||
Line 128: | Line 129: | ||
<div id="hp-main"> | <div id="hp-main"> | ||
<form class="hp-search" onsubmit="search(event)"> | <form class="hp-search" onsubmit="search(event)"> | ||
<input class="form-control form-control-lg" type="text" placeholder="Search"> | <input id="hp-search-input" class="form-control form-control-lg" type="text" placeholder="Search"> | ||
</form> | </form> | ||
Revision as of 13:59, 20 June 2022
Development verstion of the DCT Homepage.
Not ready for production!