Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-du committed Jan 20, 2021
1 parent 64bac55 commit f3f6ddd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handler/get_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub async fn search(req: Request<()>) -> tide::Result {
}
Err(err) => {
error!(
"Search keyword `{}` wiki error,type => {:?}",
"Search keyword \"{}\" wiki error,type => {:?}",
words.clone(),
err
);
Expand Down
5 changes: 4 additions & 1 deletion src/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h1>Wiki Search</h1>
}

function search(words) {
// document.getElementById("main").style.display = "none";
document.getElementById("main").style.display = "none";
document.getElementById("loading").style.display = "";

$.ajax({
Expand Down Expand Up @@ -280,6 +280,9 @@ <h1>Wiki Search</h1>
document.getElementById("chart").style.height = "100%";
document.getElementById("chart").style.width = "100%";
document.getElementById("chart").style.position = "absolute";
document.getElementById("chart").style.marginRight = "auto";
document.getElementById("chart").style.marginLeft = "auto";

am4core.ready(function () {
am4core.useTheme(am4themes_animated);
var chart = am4core.create("chart", am4plugins_forceDirected.ForceDirectedTree);
Expand Down

0 comments on commit f3f6ddd

Please sign in to comment.