add locale files for french

This commit is contained in:
bkfox
2016-08-13 17:21:48 +02:00
parent e8d3be3133
commit a82b73f70e
16 changed files with 1263 additions and 56 deletions

View File

@ -324,6 +324,8 @@ ul.list {
}
main .player .actions .action:not(.add),
.section_player .actions .action.add,
.player .list_item.live:hover .actions {
display: none;
}

View File

@ -117,18 +117,19 @@ main.detail {
}
main.detail > header img.cover {
width: 70%;
display: inline-block;
width: 70%;
vertical-align: middle;
display: inline-block;
}
main.detail header .summary {
display: inline-block;
padding: 1em;
width: calc(20% - 2em);
vertical-align: top;
font-size: 1.2em;
font-weight: bold;
background-color: white;
display: inline-block;
padding: 1em;
width: calc(20% - 2em);
vertical-align: middle;
font-size: 1.2em;
font-weight: bold;
background-color: white;
}

View File

@ -66,6 +66,20 @@ Sound.prototype = {
'click', function(event) { playlist.remove(self); }, false
);
item.querySelector('.action.add').addEventListener(
'click', function(event) {
player.playlist.add(new Sound(
title = self.title,
detail = self.detail,
duration = self.duration,
streams = self.streams,
cover = self.cover,
on_air = self.on_air
));
}, false
);
item.addEventListener('click', function(event) {
if(event.target.className.indexOf('action') != -1)
return;
@ -315,7 +329,7 @@ Player.prototype = {
var self = this;
window.setTimeout(function() {
self.update_on_air();
}, 60*1000);
}, 60*2000);
if(!this.playlist.on_air)
return;