

<input type="text" id="appendUrl" placeholder="Search..."/><a href="PASTE-YOUR-PORTAL-SEARCH-PAGE-LINK-HERE&q=" id="baseUrl"><i class="fas fa-search search-bar"></i></a>
function dmLoad() {
$('#baseUrl').click( function() {
window.location = $(this).attr('href') + $('#appendUrl').val();
return false;
});
var input = document.getElementById("appendUrl");
input.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById("baseUrl").click();
}
});
};
.search-bar {
padding:10px;
background:#ccc;
}
#appendUrl {
width:200px;
height:34px;
}

<div id="search-bar" > <form> <input type="search" id="appendUrl" placeholder="Search"> <a href="PASTE-YOUR-PORTAL-SEARCH-PAGE-LINK-HERE&q=" id="baseUrl"></a> </form> </div>
function dmLoad() {
$('#baseUrl').click( function() {
window.location = $(this).attr('href') + $('#appendUrl').val();
return false;
});
var input = document.getElementById("appendUrl");
input.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById("baseUrl").click();
}
});
};
#search-bar input {
outline: none;
}
#search-bar input[type=search] {
-webkit-appearance: textfield;
-webkit-box-sizing: content-box;
font-family: inherit;
font-size: 100%;
}
#search-bar input::-webkit-search-decoration,
#search-bar input::-webkit-search-cancel-button {
display: none;
}
#search-bar input[type=search] {
background: #ededed url(https://static.tumblr.com/ftv85bp/MIXmud4tx/search-icon.png) no-repeat 9px center;
border: solid 1px #ccc;
padding: 9px 10px 9px 32px;
width: 55px;
-webkit-border-radius: 10em;
-moz-border-radius: 10em;
border-radius: 10em;
-webkit-transition: all .5s;
-moz-transition: all .5s;
transition: all .5s;
}
#search-bar input[type=search]:focus {
width: 200px;
background-color: #fff;
border-color: #66CC75;
-webkit-box-shadow: 0 0 5px rgba(109,207,246,.5);
-moz-box-shadow: 0 0 5px rgba(109,207,246,.5);
box-shadow: 0 0 5px rgba(109,207,246,.5);
}
#search-bar input:-moz-placeholder {
color: #999;
}
#search-bar input::-webkit-input-placeholder {
color: #999;
}

<div id="search-bar"> <form action="" method=""> <input type="search" placeholder="What are you looking for?" id="appendUrl"> <a href="PASTE-YOUR-PORTAL-SEARCH-PAGE-LINK-HERE&q=" id="baseUrl"><button>Search</button></a> </form> </div>
function dmLoad() {
$('#baseUrl').click( function() {
window.location = $(this).attr('href') + $('#appendUrl').val();
return false;
});
var input = document.getElementById("appendUrl");
input.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById("baseUrl").click();
}
});
};
#search-bar input {
background: #222;
background: linear-gradient(#333, #222);
border: 1px solid #444;
border-radius: 5px 0 0 5px;
box-shadow: 0 2px 0 #000;
color: #888;
display: block;
float: left;
font-family: 'Cabin', helvetica, arial, sans-serif;
font-size: 13px;
font-weight: 400;
height: 40px;
margin: 0;
padding: 0 10px;
text-shadow: 0 -1px 0 #000;
width: 200px;
}
.ie #search-bar input {
line-height: 40px;
}
#search-bar input::-webkit-input-placeholder {
color: #888;
}
#search-bar input:-moz-placeholder {
color: #888;
}
#search-bar input:focus {
animation: glow 800ms ease-out infinite alternate;
background: #222922;
background: linear-gradient(#333933, #222922);
border-color: #393;
box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;
color: #efe;
outline: none;
}
#search-bar input:focus::-webkit-input-placeholder {
color: #efe;
}
#search-bar input:focus:-moz-placeholder {
color: #efe;
}
#search-bar button {
background: #222;
background: linear-gradient(#333, #222);
box-sizing: border-box;
border: 1px solid #444;
border-left-color: #000;
border-radius: 0 5px 5px 0;
box-shadow: 0 2px 0 #000;
color: #fff;
display: block;
float: left;
font-family: 'Cabin', helvetica, arial, sans-serif;
font-size: 13px;
font-weight: 400;
height: 40px;
line-height: 40px;
margin: 0;
padding: 0;
position: relative;
text-shadow: 0 -1px 0 #000;
width: 80px;
}
#search-bar button:hover,
#search-bar button:focus {
background: #292929;
background: linear-gradient(#393939, #292929);
color: #5f5;
outline: none;
}
#search-bar button:active {
background: #292929;
background: linear-gradient(#393939, #292929);
box-shadow: 0 1px 0 #000, inset 1px 0 1px #222;
top: 1px;
}
@keyframes glow {
0% {
border-color: #393;
box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;
}
100% {
border-color: #6f6;
box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4), 0 2px 0 #000;
}
}

<div id="search-bar">
<form>
<input id="appendUrl" name="search" type="text" placeholder="What're we looking for ?">
<a href="PASTE-YOUR-PORTAL-SEARCH-PAGE-LINK-HERE&q=" id="baseUrl"><input id="search_submit" value="Rechercher" type="submit"></a>
</form>
</div>
function dmLoad() {
$('#baseUrl').click( function() {
window.location = $(this).attr('href') + $('#appendUrl').val();
return false;
});
var input = document.getElementById("appendUrl");
input.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById("baseUrl").click();
}
});
};
#search-bar input[type="text"] {
height: 60px;
font-size: 55px;
display: inline-block;
font-family: "Lato";
font-weight: 100;
border: none;
outline: none;
color: #555;
padding: 3px;
padding-right: 60px;
width: 0px;
position: absolute;
top: 0;
right: 0;
background: none;
z-index: 3;
transition: width .4s cubic-bezier(0.000, 0.795, 0.000, 1.000);
cursor: pointer;
}
#search-bar input[type="text"]:focus:hover {
border-bottom: 1px solid #BBB;
}
#search-bar input[type="text"]:focus {
width: 700px;
z-index: 1;
border-bottom: 1px solid #BBB;
cursor: text;
}
#search-bar input[type="submit"] {
height: 67px;
width: 63px;
display: inline-block;
color:red;
float: right;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADNQTFRFU1NT9fX1lJSUXl5e1dXVfn5+c3Nz6urqv7+/tLS0iYmJqampn5+fysrK39/faWlp////Vi4ZywAAABF0Uk5T/////////////////////wAlrZliAAABLklEQVR42rSWWRbDIAhFHeOUtN3/ags1zaA4cHrKZ8JFRHwoXkwTvwGP1Qo0bYObAPwiLmbNAHBWFBZlD9j0JxflDViIObNHG/Do8PRHTJk0TezAhv7qloK0JJEBh+F8+U/hopIELOWfiZUCDOZD1RADOQKA75oq4cvVkcT+OdHnqqpQCITWAjnWVgGQUWz12lJuGwGoaWgBKzRVBcCypgUkOAoWgBX/L0CmxN40u6xwcIJ1cOzWYDffp3axsQOyvdkXiH9FKRFwPRHYZUaXMgPLeiW7QhbDRciyLXJaKheCuLbiVoqx1DVRyH26yb0hsuoOFEPsoz+BVE0MRlZNjGZcRQyHYkmMp2hBTIzdkzCTc/pLqOnBrk7/yZdAOq/q5NPBH1f7x7fGP4C3AAMAQrhzX9zhcGsAAAAASUVORK5CYII=) center center no-repeat;
text-indent: -10000px;
border: none;
position: absolute;
top: 0;
right: 0;
z-index: 2;
cursor: pointer;
opacity: 0.4;
cursor: pointer;
transition: opacity .4s ease;
}
#search-bar input[type="submit"]:hover {
opacity: 0.8;
}
If you have any ideas for portal customizations you'd like to see us tackle or need help implementing one of these search bars, email our support team at support@docketmanager.ca