index +search info
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 527 B |
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 894 B |
@@ -0,0 +1,17 @@
|
||||
var c = 255
|
||||
var x = 0
|
||||
function b() {
|
||||
c -= 1;
|
||||
document.body.style.backgroundColor = 'rgb(' + c + ',' + c + ',' + c + ')';
|
||||
}
|
||||
function m() {
|
||||
x += 0.7
|
||||
s = document.getElementById('search');
|
||||
s.style.left = x + 'px'
|
||||
s.style.top = x + 'px'
|
||||
}
|
||||
window.onload = function () {
|
||||
// setInterval(b, 500);
|
||||
setInterval(m, 200);
|
||||
};
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
$(document).ready(function(){
|
||||
$('#loading').hide()
|
||||
|
||||
$('#info').click( function() {
|
||||
console.log("click");
|
||||
$('#info-search').toggle();
|
||||
});
|
||||
|
||||
$('#search').submit(function(e) {
|
||||
e.preventDefault();
|
||||
args = $(this).serialize();
|
||||
@@ -38,7 +43,7 @@ function search_result_archive(a) {
|
||||
|
||||
$.each(r.hits, function(j, h){
|
||||
// console.log(h)
|
||||
let hit = '<li><a href="' + h.url+ '">' + h.subject + '</a> -- <i>' + h.author_name + '</i></li>';
|
||||
let hit = '<li><a href="' + h.url+ '" target="_blank">' + h.subject + '</a> -- <i>' + h.author_name + '</i></li>';
|
||||
hits += hit;
|
||||
});
|
||||
hits += "</ul>";
|
||||
|
||||
Reference in New Issue
Block a user