cleanup
This commit is contained in:
parent
e279281330
commit
c13b2a48e6
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
.DS_Store
|
||||
*.swp
|
||||
target
|
||||
static/sound
|
||||
|
@ -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)
|
||||
|
@ -7,10 +7,7 @@
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="center aligned description">
|
||||
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.
|
||||
</div>
|
||||
</div>
|
||||
<a href="/random" class="ui green button">Start</a>
|
||||
|
@ -38,7 +38,7 @@
|
||||
})
|
||||
|
||||
clearInterval(interval)
|
||||
element.textContent = '♬'
|
||||
element.textContent = '♪'
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user