mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
standardize binary names
This commit is contained in:
BIN
basics/static-files/static/images/logo.png
Normal file
BIN
basics/static-files/static/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
11
basics/static-files/static/root/css/example.css
Normal file
11
basics/static-files/static/root/css/example.css
Normal file
@ -0,0 +1,11 @@
|
||||
body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
img {
|
||||
transition: .5s ease-in-out;
|
||||
}
|
BIN
basics/static-files/static/root/favicon.ico
Normal file
BIN
basics/static-files/static/root/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
13
basics/static-files/static/root/index.html
Normal file
13
basics/static-files/static/root/index.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8" />
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/example.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="/js/example.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Actix-web</h1>
|
||||
<img src="/images/logo.png" alt="Actix logo" />
|
||||
</body>
|
||||
</html>
|
7
basics/static-files/static/root/js/example.js
Normal file
7
basics/static-files/static/root/js/example.js
Normal file
@ -0,0 +1,7 @@
|
||||
jQuery(document).ready(function () {
|
||||
let rotation = 0;
|
||||
jQuery("img").click(function () {
|
||||
rotation += 360;
|
||||
jQuery("img").css({'transform': 'rotate(' + rotation + 'deg)'});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user