Skip to content

Commit

Permalink
loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Goulven.Furet authored and Goulven.Furet committed Dec 5, 2023
1 parent 0391457 commit 4e70d28
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ protected ModelAndView defaultModelAndView(final String tpl, final HttpServletRe
}

public String loaderImage() {
Random random = new Random();
int nb;
nb = random.nextInt(1,maxImg+1);
return "/assets/img/loader/"+nb+".jpg";

return "/assets/img/loader/"+random(1, maxImg)+".png";

}

public int random(int min, int max) {
return min + (int)(Math.random() * ((max - min) + 1));
}
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/src/main/resources/static/assets/img/loader/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4e70d28

Please sign in to comment.