Commit 88c57839 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Added JSON request to front end

parent 64ede98e
Pipeline #65787 passed with stages
in 3 minutes and 18 seconds
......@@ -41,7 +41,15 @@
<span>HTML</span>
</label>
</div>
<div>
<input name="format" type="radio" value="json">
<label>
<div class="icon">
<i class="fas fa-code"></i>
</div>
<span>JSON</span>
</label>
</div>
<div>
<input name="format" type="radio" value="md">
<label>
......
......@@ -11,7 +11,7 @@ bg_param.setAttribute("value", default_bg_clr);
/* Listens for changes in search field */
query.addEventListener('input', function(event) {
query.addEventListener('input', function (event) {
/* Timeout to prevent epilepsy */
if (!timeout) {
timeout = true;
......@@ -33,4 +33,4 @@ query.addEventListener('input', function(event) {
/* Reset the timeout flag */
function reset_timeout() {
timeout = false;
}
\ No newline at end of file
}
......@@ -62,8 +62,6 @@ section#center {
-moz-appearance: none;
appearance: none;
outline: none;
flex-grow: 2;
margin-right: 25px;
}
.search-input::-webkit-search-cancel-button {
-webkit-appearance: none;
......@@ -89,6 +87,7 @@ section#center {
text-align: right;
margin-top: 8px;
margin-right: 15px;
width: 100%;
}
.search-option div {
position: relative;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment