update video editor

This commit is contained in:
rlx 2012-01-15 20:35:17 +05:30
commit 688ae65cf1
8 changed files with 413 additions and 176 deletions

View file

@ -777,7 +777,7 @@ Ox.Map = function(options, self) {
getMapBounds(function(mapBounds) {
Ox.Log('Map', 'init', mapBounds.getSouthWest(), mapBounds.getNorthEast(), mapBounds.getCenter())
//Ox.Log('Map', 'init', mapBounds.getSouthWest(), mapBounds.getNorthEast(), mapBounds.getCenter())
self.elevationService = new google.maps.ElevationService();
self.geocoder = new google.maps.Geocoder();
@ -855,22 +855,6 @@ Ox.Map = function(options, self) {
Ox.forEach(self.$placeControls, function($placeControl) {
$placeControl.appendTo(self.$map);
});
setTimeout(function() {
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)
}
}
@ -882,6 +866,25 @@ Ox.Map = function(options, self) {
&& southWest.lng() == northEast.lng();
}
function formatTerms() {
setTimeout(function() {
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);
}
function mapChanged() {
// gets called after panning or zooming
Ox.Log('Map', 'mapChanged');
@ -971,6 +974,7 @@ Ox.Map = function(options, self) {
if (self.zoomChanged) {
self.zoomChanged = false;
}
formatTerms();
}
function pan(x, y) {