This commit is contained in:
Sebastian Hugentobler 2017-02-10 15:36:02 +01:00
parent e279281330
commit c13b2a48e6
5 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.DS_Store .DS_Store
*.swp *.swp
target target
static/sound

1
README.md Normal file
View File

@ -0,0 +1 @@
TODO

View File

@ -31,7 +31,7 @@ struct RandomContext {
#[get("/")] #[get("/")]
fn index() -> Template { 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) Template::render("index", &context)
} }
@ -55,10 +55,10 @@ fn random() -> Template {
let file_title = chosen_one.file_stem().unwrap().to_str().unwrap(); let file_title = chosen_one.file_stem().unwrap().to_str().unwrap();
let context = RandomContext { let context = RandomContext {
title: String::from(format!(" {}", file_title)), title: String::from(format!(" {}", file_title)),
music_file: String::from(file_name), music_file: String::from(file_name),
music_title: String::from(file_title), music_title: String::from(file_title),
interval: 5, interval: 3,
}; };
Template::render("random", &context) Template::render("random", &context)

View File

@ -7,10 +7,7 @@
</div> </div>
<div class="content"> <div class="content">
<div class="center aligned description"> <div class="center aligned description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Allgemeins Erinnerigstraining für vergässlegi Fasnächtler.
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.
</div> </div>
</div> </div>
<a href="/random" class="ui green button">Start</a> <a href="/random" class="ui green button">Start</a>

View File

@ -38,7 +38,7 @@
}) })
clearInterval(interval) clearInterval(interval)
element.textContent = '' element.textContent = ''
} }
}, 1000); }, 1000);
} }