1
0
mirror of https://github.com/actix/examples synced 2025-06-29 10:14:58 +02:00

Improve the static files example. (#317)

* Improve the static files example.

* Replace the broken websocket example with a simple static HTML page.
* Show how to serve a second directory which is located inside the main
  directory but has file listing enabled.
* Demonstrate that a hierarchy of static files can be served by placing the
  JS and CSS files in their respective subfolders.
* Document how to use the example in the README.

* Improve formatting.
This commit is contained in:
Pieter Frenssen
2020-05-18 01:28:47 +03:00
committed by GitHub
parent 20301845fc
commit bc6f614f78
8 changed files with 55 additions and 96 deletions

View 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)'});
});
});