mirror of
https://github.com/status-im/nimbus-site.git
synced 2025-01-22 09:50:04 +00:00
17 lines
387 B
JavaScript
17 lines
387 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
var searchWrap = document.getElementById('search-input-wrap');
|
|
var searchInput = document.getElementById('search-input');
|
|
var className = 'active';
|
|
|
|
searchWrap.onclick = function(e) {
|
|
searchWrap.classList.add(className);
|
|
searchInput.focus();
|
|
};
|
|
|
|
searchInput.onblur = function(e) {
|
|
searchWrap.classList.remove(className);
|
|
};
|
|
}());
|