no consol debugs

This commit is contained in:
gauthiier 2019-07-12 11:47:36 +02:00
parent fc79f7348c
commit 0c47c22556

View File

@ -11,7 +11,7 @@ $(document).ready(function(){
$('#loading').show()
$.get('/search?'+ args, function(data) {
$('#loading').hide()
console.log(data);
// console.log(data);
// $('#graph').empty();
// $('#results').empty();
$.each(data.result, function(i, item) {
@ -36,8 +36,6 @@ function search_result_archive(a) {
}).appendTo('#' + a.archive);
let hits = "<ul>";
console.log("---")
$.each(r.hits, function(j, h){
console.log(h)
@ -47,9 +45,6 @@ function search_result_archive(a) {
});
hits += "</ul>";
$('#' + r.thread + "-" + a.archive).append(hits);
console.log("***");
});
}
@ -72,7 +67,6 @@ function format(date) {
"Nov", "Dec"
];
return month_names[date.getMonth()] + ' ' + date.getFullYear();
//return date.getMonth() + ' - ' + date.getFullYear();
}
@ -90,17 +84,6 @@ function graph(data) {
vec.push(ar_vec);
}
// var x_axis = new Array(d + 1);
// x_axis[0] = 'x';
// for (let i = 1; i < d+1; i++) {
// let d = new Date(min_month.getFullYear(), min_month.getMonth());
// d.setMonth(d.getMonth() + (i - 1));
// x_axis[i] = format(d);
// }
// vec.push(x_axis);
var x_axis = new Array(d);
for (let i = 0; i < d; i++) {
let d = new Date(min_month.getFullYear(), min_month.getMonth());