48 lines
1.0 KiB
JavaScript
48 lines
1.0 KiB
JavaScript
$(document).ready(function() {
|
|
|
|
//Search Bar
|
|
|
|
var $search = $("input[name='q']");
|
|
|
|
$("span[name='yt']").click(function() {
|
|
var curr = $search.val();
|
|
$search.val("!arch " + curr);
|
|
$search.focus();
|
|
});
|
|
|
|
$("span[name='sr']").click(function() {
|
|
var curr = $search.val();
|
|
$search.val("!archforums " + curr);
|
|
$search.focus();
|
|
});
|
|
|
|
$("span[name='a']").click(function() {
|
|
var curr = $search.val();
|
|
$search.val("!pkg " + curr);
|
|
$search.focus();
|
|
});
|
|
|
|
$("span[name='w']").click(function() {
|
|
var curr = $search.val();
|
|
$search.val("!openbox" + curr);
|
|
$search.focus();
|
|
});
|
|
|
|
//Tabs
|
|
|
|
$(".stripe").mouseenter(function() {
|
|
$(this).stop().animate({
|
|
width: '100vw'
|
|
});
|
|
$(this).find(".content").stop().fadeIn().children().show();
|
|
});
|
|
|
|
$(".stripe").mouseleave(function() {
|
|
$(this).stop().animate({
|
|
width: '40px'
|
|
});
|
|
$(this).find(".content").stop().fadeOut();
|
|
});
|
|
|
|
});
|