-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5a53246
Showing
280 changed files
with
10,026 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
global, Label | |||
{ | |||
color: #222222; | |||
} | |||
|
|||
ApplicationControlBar { | |||
|
|||
fillColors: #F7F7F7, #246EA0; | |||
corner-radius: 0; | |||
drop-shadow-enabled: false; | |||
|
|||
} | |||
|
|||
ToolTip{ | |||
fontSize: 14; | |||
color: #222222; | |||
background-color: #F7F7F7; | |||
background-alpha: 1; | |||
corner-radius: 3; | |||
} | |||
|
|||
VRule | |||
{ | |||
strokeWidth:1; | |||
strokeColor:#888888; | |||
} | |||
|
|||
VDividedBox, HDividedBox, VBox | |||
{ | |||
horizontal-gap: 1; | |||
vertical-gap: 1; | |||
divider-affordance: 20; | |||
divider-thickness: 8; | |||
} | |||
|
|||
|
|||
Container | |||
{ | |||
padding-bottom: 0; | |||
padding-left: 0; | |||
padding-right: 0; | |||
padding-top: 0; | |||
} | |||
|
|||
.tipStyleName | |||
{ | |||
background-color: #F7F7F7; | |||
background-alpha: 1; | |||
color: #222222; | |||
font-weight:bold; | |||
font-size:12; | |||
} | |||
.gaugeTitle | |||
{ | |||
font-family: Verdana; | |||
font-size:10; | |||
color:#222222; | |||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,96 @@ | |||
global, Label | |||
{ | |||
color: #CECECE; | |||
} | |||
|
|||
ToolTip{ | |||
fontSize: 14; | |||
color: #FFFFFF; | |||
background-color: #222222; | |||
background-alpha: 1; | |||
corner-radius: 3; | |||
} | |||
|
|||
VRule | |||
{ | |||
strokeWidth:1; | |||
strokeColor:#888888; | |||
} | |||
|
|||
VDividedBox, HDividedBox, VBox | |||
{ | |||
horizontal-gap: 1; | |||
vertical-gap: 1; | |||
divider-affordance: 20; | |||
divider-thickness: 8; | |||
} | |||
|
|||
|
|||
Container | |||
{ | |||
padding-bottom: 0; | |||
padding-left: 0; | |||
padding-right: 0; | |||
padding-top: 0; | |||
} | |||
|
|||
.tipStyleName | |||
{ | |||
background-color: #555555; | |||
background-alpha: 1; | |||
color: #CECECE; | |||
font-weight:bold; | |||
font-size:12; | |||
} | |||
.gaugeTitle | |||
{ | |||
font-family: Verdana; | |||
font-size:10; | |||
color:#CECECE; | |||
} | |||
|
|||
DataGrid | |||
{ | |||
headerStyleName: "dataGridHeader"; | |||
headerColors: #888888, #222222; | |||
color:#CECECE; | |||
rollOverColor: #333333; | |||
selectionColor: #333333; | |||
disabledColor: #1e1e1e; | |||
textRollOverColor:#ffffff; | |||
textSelectedColor:#ffffff; | |||
selectiondDisabledColor: #1e1e1e; | |||
verticalGridLines: false; | |||
alternatingItemColors: #151515, #111111; | |||
backgroundColor: #3e3e3e; | |||
borderStyle: solid; | |||
borderColor:#222222; | |||
borderThickness:1; | |||
vertical-scroll-bar-style-name: vertScroll; | |||
} | |||
|
|||
RadioButton, ToggleButtonBar, Button | |||
{ | |||
textRollOverColor:#FFFFFF; | |||
textSelectedColor:#F00205; | |||
color:#CECECE; | |||
} | |||
|
|||
LinkButton | |||
{ | |||
text-roll-over-color: #000000; | |||
} | |||
.dataGridHeader | |||
{ | |||
color: #cccccc; | |||
textRollOverColor:#ffffff; | |||
textSelectedColor:#ffffff; | |||
} | |||
|
|||
.vertScroll | |||
{ | |||
trackColors: black, #222222; | |||
border-color: #555555; | |||
fill-colors: #000000, #000000; | |||
highlight-fill: black, black; | |||
} |
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,79 @@ | |||
/////////////////////////////////////////////////////////////////////////////// | |||
// Licensed Materials - Property of IBM | |||
// 5724-Y31 | |||
// (c) Copyright IBM Corporation 2007, 2009. All Rights Reserved. | |||
// | |||
// Note to U.S. Government Users Restricted Rights: | |||
// Use, duplication or disclosure restricted by GSA ADP Schedule | |||
// Contract with IBM Corp. | |||
/////////////////////////////////////////////////////////////////////////////// | |||
package | |||
{ | |||
|
|||
public class DashboardUtils | |||
{ | |||
|
|||
public static function formatDate(d:Date, local:Boolean = true, showDay:Boolean = false):String | |||
{ | |||
var day:String = String(local ? d.date - 1 : d.dateUTC - 1); | |||
if (day != "0") | |||
day = day + ' day(s), '; | |||
else | |||
day = ''; | |||
var h:String = String(local ? d.hours : d.hoursUTC); | |||
if (h.length == 1) | |||
h = '0' + h; | |||
var m:String = String(local ? d.minutes : d.minutesUTC); | |||
if (m.length == 1) | |||
m = '0' + m; | |||
var s:String = String(local ? d.seconds : d.secondsUTC); | |||
if (s.length == 1) | |||
s = '0' + s; | |||
return (showDay ? day : "") + h + ':' + m + ':' + s; | |||
} | |||
|
|||
[Embed(source="../resources/ccodes.xml", mimeType = "application/octet-stream")] | |||
private static var CC:Class; | |||
|
|||
private static var indexedByAlpha2:Object; | |||
private static var indexedByAlpha3:Object; | |||
|
|||
private static var codes:XML = XML(new CC()); | |||
|
|||
|
|||
private static function initIndexedByAlpha2():void | |||
{ | |||
if (indexedByAlpha2 == null) | |||
{ | |||
indexedByAlpha2 = {}; | |||
indexedByAlpha3 = {}; | |||
for each (var r:Object in codes.Row) | |||
{ | |||
indexedByAlpha2[r.Data[3]] = {name: String(r.Data[0]), iso3: String(r.Data[2])}; | |||
indexedByAlpha3[r.Data[2]] = {name: String(r.Data[0]), iso3: String(r.Data[3])}; | |||
} | |||
} | |||
} | |||
|
|||
public static function countryName2(code:String):String | |||
{ | |||
initIndexedByAlpha2(); | |||
return indexedByAlpha2[code].name; | |||
} | |||
|
|||
public static function countryName3(code:String):String | |||
{ | |||
initIndexedByAlpha2(); | |||
if (indexedByAlpha3[code]) | |||
return indexedByAlpha3[code].name; | |||
else | |||
return "..."; | |||
} | |||
|
|||
public static function countryIso3(code:String):String | |||
{ | |||
initIndexedByAlpha2(); | |||
return indexedByAlpha2[code].iso3; | |||
} | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,83 @@ | |||
/////////////////////////////////////////////////////////////////////////////// | |||
// Licensed Materials - Property of IBM | |||
// 5724-Y31 | |||
// (c) Copyright IBM Corporation 2007, 2009. All Rights Reserved. | |||
// | |||
// Note to U.S. Government Users Restricted Rights: | |||
// Use, duplication or disclosure restricted by GSA ADP Schedule | |||
// Contract with IBM Corp. | |||
/////////////////////////////////////////////////////////////////////////////// | |||
package | |||
{ | |||
import flash.events.EventDispatcher; | |||
import flash.utils.getTimer; | |||
|
|||
public class HitDataItem extends EventDispatcher | |||
{ | |||
|
|||
public function HitDataItem() | |||
{ | |||
playerTime = getTimer(); | |||
} | |||
|
|||
public var timestamp:Date; | |||
public var ip:String; | |||
[Bindable] | |||
public var city:String; | |||
[Bindable] | |||
public var country:String; | |||
public var sampleId:String; | |||
public var lon:Number; | |||
public var lat:Number; | |||
public var playerTime:uint; | |||
|
|||
|
|||
|
|||
|
|||
[Bindable] | |||
public function get flagSource():String | |||
{ | |||
//return "http://www.translatorscafe.com/cafe/images/flags/" + country + ".gif"; | |||
return "flags/" + country.toLowerCase() + ".gif"; | |||
} | |||
|
|||
public function set flagSource(value:String):void | |||
{ | |||
// Avoid bindable warnings | |||
} | |||
|
|||
public function get category():String | |||
{ | |||
return ObjectsInfo.getSampleData(sampleId, "cat"); | |||
} | |||
|
|||
public function get title():String | |||
{ | |||
return ObjectsInfo.getSampleData(sampleId, "title"); | |||
} | |||
|
|||
[Bindable] | |||
public function get fullSampleTitle():String | |||
{ | |||
if (title == "" || category == "") | |||
return ""; | |||
return category + ' > ' + title; | |||
} | |||
|
|||
public function set fullSampleTitle(value:String):void | |||
{ | |||
// Avoid bindable warnings | |||
} | |||
|
|||
public function get localHour():String | |||
{ | |||
return DashboardUtils.formatDate(timestamp); | |||
} | |||
|
|||
public function sameLocation(h:HitDataItem):Boolean | |||
{ | |||
return h.lat == lat && h.lon == lon && h.city == city; | |||
} | |||
|
|||
} | |||
} |
Oops, something went wrong.