Difference between revisions of "Widget:Homepage"
From LINKS Community Center
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 14:59, 20 June 2022
Development verstion of the DCT Homepage.
Not ready for production!