index +search info

This commit is contained in:
gauthiier
2019-07-17 12:55:47 +02:00
parent f06a720e55
commit 07a026e93f
12 changed files with 186 additions and 210 deletions
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

+17
View File
@@ -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);
};
+6 -1
View File
@@ -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>";