fix bugs in map and video player
This commit is contained in:
parent
617ad0e5ca
commit
5803633835
2 changed files with 15 additions and 9 deletions
|
@ -860,11 +860,20 @@ Ox.Map = function(options, self) {
|
|||
$placeControl.appendTo(self.$map);
|
||||
});
|
||||
setTimeout(function() {
|
||||
var element = self.$map.$element[0].children[0].children[2].children[0];
|
||||
element.style.backgroundImage = '-webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0.1) 50px)';
|
||||
element.style.color = 'rgb(192, 192, 192)';
|
||||
element.style.textShadow = '1px 1px 0 rgb(64, 64, 64)';
|
||||
element.children[3].style.color = 'rgb(192, 192, 192)';
|
||||
var $element;
|
||||
try {
|
||||
$element = $(self.$map.find('a[href$="terms_maps.html"]').parent()).css({
|
||||
color: 'rgb(192, 192, 192)',
|
||||
textShadow: '1px 1px 0 rgb(64, 64, 64)'
|
||||
});
|
||||
['moz', 'o', 'webkit'].forEach(function(browser) {
|
||||
$element.css({
|
||||
backgroundImage: '-' + browser
|
||||
+ '-linear-gradient(left, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0.1) 50px)',
|
||||
});
|
||||
});
|
||||
$element.children().css({color: 'rgb(192, 192, 192)'});
|
||||
} catch (e) {}
|
||||
}, 0)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1000,9 +1000,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
setSizes(function() {
|
||||
self.options.fullscreen && enterFullscreen();
|
||||
});
|
||||
self.options.fullscreen ? setSizes(enterFullscreen) : setSizes();
|
||||
|
||||
function censor() {
|
||||
if (self.options.type == 'play') {
|
||||
|
@ -2102,7 +2100,6 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
|
||||
function toggleFullscreen(from) {
|
||||
// FIXME: hiding controls won't work if video begins in fullscreen
|
||||
var parentOffset, playOnFullscreen;
|
||||
self.options.fullscreen = !self.options.fullscreen;
|
||||
if (!self.options.paused) {
|
||||
|
|
Loading…
Reference in a new issue