mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-08 15:43:24 +00:00
styling
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
<button id="random">Son aléatoire</button>
|
||||
<button id="reset">reset</button>
|
||||
<button id="random" class="random">🎲</button>
|
||||
<button id="reset" class="reset">❌</button>
|
||||
@@ -1,10 +1,12 @@
|
||||
<div id="filter">
|
||||
<span>
|
||||
<div id="filter">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="random">
|
||||
<div id="random">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<div id="list">
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ define("views/sounds", function(require) {
|
||||
Radio.channel("Sounds").trigger("sound:play", args.model.getSlug());
|
||||
},
|
||||
randomSound: function() {
|
||||
this.stopPlayingSound();
|
||||
|
||||
this.filterCollection("");
|
||||
var index = Math.floor(Math.random() * Math.floor(this.collection.length));
|
||||
var sound = this.collection.models[index];
|
||||
|
||||
Reference in New Issue
Block a user