Skip to content
Extraits de code Groupes Projets
Valider f99ed413 rédigé par Gregor Aisch's avatar Gregor Aisch
Parcourir les fichiers

'auto commit'

parent 81a9a4b6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -18,6 +18,7 @@ RealTimeMap.run = function(config) { ...@@ -18,6 +18,7 @@ RealTimeMap.run = function(config) {
lastVisits = [], lastVisits = [],
visitSymbols, visitSymbols,
oldest, oldest,
isFullscreenWidget = $('.widget').parent().get(0) == document.body,
now, now,
nextReqTimer, nextReqTimer,
symbolFadeInTimer = [], symbolFadeInTimer = [],
...@@ -349,6 +350,31 @@ RealTimeMap.run = function(config) { ...@@ -349,6 +350,31 @@ RealTimeMap.run = function(config) {
colorMode = ({ colorMode = ({
'default': 'referrerType', 'default': 'referrerType',
referrerType: 'default'})[colorMode]; referrerType: 'default'})[colorMode];
// shift+alt+B: switch to black background
if (evt.shiftKey && evt.altKey && evt.keyCode == 66) {
$('#RealTimeMap').css({ background: '#000' });
if (isFullscreenWidget) {
$('body').css({ background: '#000 '});
$('.widget').css({ 'border-width': 1 });
}
map.getLayer('countries')
.style('fill', '#444440')
.style('stroke', '#000');
}
// shift+alt+W: return to white background
if (evt.shiftKey && evt.altKey && evt.keyCode == 87) {
$('#RealTimeMap').css({ background: '#fff' });
if (isFullscreenWidget) {
$('body').css({ background: '#fff '});
$('.widget').css({ 'border-width': 1 });
}
map.getLayer('countries')
.style('fill', '#aa9')
.style('stroke', '#fff');
}
}); });
// make sure the map adapts to the widget size // make sure the map adapts to the widget size
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter