This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
mystic/themes/hueman/layout/search/baidu.ejs

12 lines
493 B
Plaintext
Raw Normal View History

2018-09-03 07:41:16 +00:00
<form class="search-form" method="GET" action="https://www.baidu.com/s?">
<input name="wd" type="text" class="search-form-input" placeholder="<%= __('index.search') %>" />
</form>
<script>
(function ($) {
$('.search-form').on('submit', function (e) {
var keyword = $('.search-form-input[name="wd"]').val();
window.location = 'https://www.baidu.com/s?wd=site:<%= config.url.replace(/http(s)*:\/\//, "") %> ' + keyword;
return false;
});
})(jQuery);
</script>