users/statistics: add systems/browsers

This commit is contained in:
rolux 2012-10-27 18:57:28 +02:00
parent 1872621d8c
commit b86f8d73c8
2 changed files with 14 additions and 5 deletions

View file

@ -7,18 +7,26 @@ pandora.ui.statisticsDialog = function() {
var colors = { var colors = {
system: { system: {
'Android': [0, 255, 0], 'Android': [0, 255, 0],
'BlackBerry': [64, 64, 64],
'BSD': [255, 0, 0], 'BSD': [255, 0, 0],
'iOS': [0, 128, 255], 'iOS': [0, 128, 255],
'Java': [128, 128, 128],
'Linux': [255, 128, 0], 'Linux': [255, 128, 0],
'Mac OS X': [0, 255, 255], 'Mac OS X': [0, 255, 255],
'Nokia': [255, 0, 255],
'PlayStation': [192, 192, 192],
'Unix': [255, 255, 0], 'Unix': [255, 255, 0],
'Windows': [0, 0, 255] 'Windows': [0, 0, 255]
}, },
browser: { browser: {
'Chrome Frame': [255, 255, 0], 'Camino': [192, 192, 192],
'Chrome': [0, 255, 0], 'Chrome': [0, 255, 0],
'Chrome Frame': [255, 255, 0],
'Epiphany': [128, 128, 128],
'Firefox': [255, 128, 0], 'Firefox': [255, 128, 0],
'Internet Explorer': [0, 0, 255], 'Internet Explorer': [0, 0, 255],
'Konqueror': [64, 64, 64],
'Nokia Browser': [255, 0, 255],
'Opera': [255, 0, 0], 'Opera': [255, 0, 0],
'Safari': [0, 255, 255], 'Safari': [0, 255, 255],
'WebKit': [0, 255, 128] 'WebKit': [0, 255, 128]

View file

@ -5,16 +5,17 @@
pandora.ui.usersDialog = function() { pandora.ui.usersDialog = function() {
var browsers = [ var browsers = [
'Chrome', 'Chrome Frame', 'Firefox', 'Camino', 'Chrome', 'Chrome Frame', 'Epiphany', 'Firefox',
'Internet Explorer', 'Opera', 'Safari', 'WebKit' 'Internet Explorer', 'Konqueror', 'Nokia Browser', 'Opera',
'Safari', 'WebKit'
], ],
dialogHeight = Math.round((window.innerHeight - 48) * 0.9), dialogHeight = Math.round((window.innerHeight - 48) * 0.9),
dialogWidth = Math.round(window.innerWidth * 0.9), dialogWidth = Math.round(window.innerWidth * 0.9),
formWidth = 256, formWidth = 256,
numberOfUsers = 0, numberOfUsers = 0,
systems = [ systems = [
'Android', 'BSD', 'iOS', 'Linux', 'Android', 'BlackBerry', 'BSD', 'iOS', 'Java', 'Linux', 'Mac OS X',
'Mac OS X', 'Unix', 'Windows' 'Nokia', 'PlayStation', 'Unix', 'Windows'
], ],
userLevels = pandora.site.userLevels.map(function(userLevel) { userLevels = pandora.site.userLevels.map(function(userLevel) {
return Ox.toTitleCase(userLevel); return Ox.toTitleCase(userLevel);