mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-08 15:43:24 +00:00
Random button styling
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
<button id="random" class="random">🎲</button>
|
||||
<button id="reset" class="reset">❌</button>
|
||||
<button id="random" class="btn">Aléatoire</button>
|
||||
<button id="reset" class="btn hidden">Réinitialiser</button>
|
||||
@@ -1,12 +1,10 @@
|
||||
<span>
|
||||
<div id="filter">
|
||||
<div id="filter">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="random">
|
||||
<div id="random">
|
||||
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="list">
|
||||
|
||||
|
||||
@@ -20,9 +20,11 @@ define("views/random", function(require) {
|
||||
this.channel = Radio.channel("Sounds");
|
||||
},
|
||||
random: function() {
|
||||
this.$el.find(this.ui.resetButton).removeClass('hidden');
|
||||
this.channel.trigger("sounds:random");
|
||||
},
|
||||
reset: function() {
|
||||
this.$el.find(this.ui.resetButton).addClass('hidden');
|
||||
this.channel.trigger("sounds:reset");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user