From c13b2a48e6b5a6db1f556b845df83ccd378ee146 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Fri, 10 Feb 2017 15:36:02 +0100 Subject: [PATCH] cleanup --- .gitignore | 1 + README.md | 1 + src/main.rs | 6 +++--- templates/index.html.tera | 5 +---- templates/random.html.tera | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 README.md diff --git a/.gitignore b/.gitignore index f0eba74..cc33722 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .DS_Store *.swp target +static/sound diff --git a/README.md b/README.md new file mode 100644 index 0000000..1333ed7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +TODO diff --git a/src/main.rs b/src/main.rs index 538ed54..68a5401 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ struct RandomContext { #[get("/")] fn index() -> Template { - let context = IndexContext { title: String::from("Lern die Märsch!") }; + let context = IndexContext { title: String::from("Gäll de kennsch mi nit?") }; Template::render("index", &context) } @@ -55,10 +55,10 @@ fn random() -> Template { let file_title = chosen_one.file_stem().unwrap().to_str().unwrap(); let context = RandomContext { - title: String::from(format!("♬ {}", file_title)), + title: String::from(format!("♪ {}", file_title)), music_file: String::from(file_name), music_title: String::from(file_title), - interval: 5, + interval: 3, }; Template::render("random", &context) diff --git a/templates/index.html.tera b/templates/index.html.tera index 867b14d..3fadb32 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -7,10 +7,7 @@
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur - sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + Allgemeins Erinnerigstraining für vergässlegi Fasnächtler.
Start diff --git a/templates/random.html.tera b/templates/random.html.tera index e340fd9..397e30e 100644 --- a/templates/random.html.tera +++ b/templates/random.html.tera @@ -38,7 +38,7 @@ }) clearInterval(interval) - element.textContent = '♬' + element.textContent = '♪' } }, 1000); }