diff --git a/README b/README deleted file mode 100644 index c453b94..0000000 --- a/README +++ /dev/null @@ -1,5 +0,0 @@ -Checkout: - -1) git clone -2) Create new Flex Builder project in widget/ -3) Link mate .swc in libs folder in build path/library path \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..9b3d983 --- /dev/null +++ b/index.html @@ -0,0 +1,84 @@ + + + + + + + jarinudom/goonfleet-notifier @ GitHub + + + + + + + Fork me on GitHub + +
+ +
+ + + + +
+ +

goonfleet-notifier + by jarinudom

+ +
+ Goonfleet notifier for ops, notices, etc. +
+ +

This is pretty much useless unless you have an active goonfleet.com account.

Dependencies

+

Flex Builder 3

+

Install

+

See README

+

Authors

+

Jarin Udom (jarin.udom@gmail.com)

+

Contact

+

Jarin Udom (jarin.udom@gmail.com)

+ + +

Download

+

+ You can download this project in either + zip or + tar formats. +

+

You can also clone the project with Git + by running: +

$ git clone git://github.com/jarinudom/goonfleet-notifier
+

+ + + +
+ + + + diff --git a/notifier.xml b/notifier.xml new file mode 100644 index 0000000..4824adc --- /dev/null +++ b/notifier.xml @@ -0,0 +1,82 @@ + + + 2009-02-12 23:54:21 UTC + 2009-02-12 15:54:21 -8 + + + + 1236268800 + true + The Mittani + Kenny Regains Full Sov in Delve + + + + + GET TO THE CHOPPA (XGH Evac Op) + 2009-02-13 00:00:00 UTC + 2009-02-13 23:00:00 UTC + critical + http://goonfleet.com/showthread.php?t=125012 + XGH + All Ships! + + Solo Drakban + + + 8WA CSAA out of reinforced (US TZ KILL TITAN) + 2009-02-13 02:00:00 UTC + 2009-02-13 03:00:00 UTC + critical + http://goonfleet.com/showthread.php?t=125781 + 319- + Battleships > hictors > dictors + + Solo Drakban + + + K-9 convoy Thurs 11pm US (Fri 0400 EVE) + 2009-02-13 04:00:00 UTC + 2009-02-13 07:00:00 UTC + regular + http://goonfleet.com/showthread.php?t=125761 + K-9 + + + lljkDeathscythe + + + Kenny regains Sov in Delve! + 2009-03-03 16:00:00 UTC + 2009-03-03 16:30:00 UTC + critical + + + + + Solo Drakban + + + TODAY KENNY GETS SOV 3 BACK + 2009-03-04 00:00:00 UTC + 2009-03-04 12:00:00 UTC + critical + http://goonfleet.com/showthread.php?p=2665972 + Delve + EVERYTHING YOU GOT + + Praetorius Rex + + + \ No newline at end of file diff --git a/widget/.gitignore b/widget/.gitignore deleted file mode 100644 index 7127960..0000000 --- a/widget/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -bin-debug -.actionScriptProperties -.flexProperties -.project -.settings \ No newline at end of file diff --git a/widget/bin-release/AC_OETags.js b/widget/bin-release/AC_OETags.js deleted file mode 100644 index 6366467..0000000 --- a/widget/bin-release/AC_OETags.js +++ /dev/null @@ -1,292 +0,0 @@ -// Flash Player Version Detection - Rev 1.6 -// Detect Client Browser type -// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } else if (versionRevision[0] == "b") { - versionRevision = versionRevision.substring(1); - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - var qIndex = src.indexOf('?'); - if ( qIndex != -1) - { - // Add the extention (if needed) before the query params - var path = src.substring(0, qIndex); - if (path.length >= ext.length && path.lastIndexOf(ext) == (path.length - ext.length)) - return src; - else - return src.replace(/\?/, ext+'?'); - } - else - { - // Add the extension (if needed) to the end of the URL - if (src.length >= ext.length && src.lastIndexOf(ext) == (src.length - ext.length)) - return src; // Already have extension - else - return src + ext; - } -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - str += ''; - } else { - str += ' 0 && typeof o[0].SetVariable != "undefined") { - return o[0]; - } - else if (e.length > 0 && typeof e[0].SetVariable != "undefined") { - return e[0]; - } - } - } - else { - var o = document.getElementsByTagName("object"); - var e = document.getElementsByTagName("embed"); - if (e.length > 0 && typeof e[0].SetVariable != "undefined") { - return e[0]; - } - else if (o.length > 0 && typeof o[0].SetVariable != "undefined") { - return o[0]; - } - else if (o.length > 1 && typeof o[1].SetVariable != "undefined") { - return o[1]; - } - } - return undefined; - } - - function getPlayers() { - var players = []; - if (players.length == 0) { - var tmp = document.getElementsByTagName('object'); - players = tmp; - } - - if (players.length == 0 || players[0].object == null) { - var tmp = document.getElementsByTagName('embed'); - players = tmp; - } - return players; - } - - function getIframeHash() { - var doc = getHistoryFrame().contentWindow.document; - var hash = String(doc.location.search); - if (hash.length == 1 && hash.charAt(0) == "?") { - hash = ""; - } - else if (hash.length >= 2 && hash.charAt(0) == "?") { - hash = hash.substring(1); - } - return hash; - } - - /* Get the current location hash excluding the '#' symbol. */ - function getHash() { - // It would be nice if we could use document.location.hash here, - // but it's faulty sometimes. - var idx = document.location.href.indexOf('#'); - return (idx >= 0) ? document.location.href.substr(idx+1) : ''; - } - - /* Get the current location hash excluding the '#' symbol. */ - function setHash(hash) { - // It would be nice if we could use document.location.hash here, - // but it's faulty sometimes. - if (hash == '') hash = '#' - document.location.hash = hash; - } - - function createState(baseUrl, newUrl, flexAppUrl) { - return { 'baseUrl': baseUrl, 'newUrl': newUrl, 'flexAppUrl': flexAppUrl, 'title': null }; - } - - /* Add a history entry to the browser. - * baseUrl: the portion of the location prior to the '#' - * newUrl: the entire new URL, including '#' and following fragment - * flexAppUrl: the portion of the location following the '#' only - */ - function addHistoryEntry(baseUrl, newUrl, flexAppUrl) { - - //delete all the history entries - forwardStack = []; - - if (browser.ie) { - //Check to see if we are being asked to do a navigate for the first - //history entry, and if so ignore, because it's coming from the creation - //of the history iframe - if (flexAppUrl == defaultHash && document.location.href == initialHref && window['_ie_firstload']) { - currentHref = initialHref; - return; - } - if ((!flexAppUrl || flexAppUrl == defaultHash) && window['_ie_firstload']) { - newUrl = baseUrl + '#' + defaultHash; - flexAppUrl = defaultHash; - } else { - // for IE, tell the history frame to go somewhere without a '#' - // in order to get this entry into the browser history. - getHistoryFrame().src = historyFrameSourcePrefix + flexAppUrl; - } - setHash(flexAppUrl); - } else { - - //ADR - if (backStack.length == 0 && initialState.flexAppUrl == flexAppUrl) { - initialState = createState(baseUrl, newUrl, flexAppUrl); - } else if(backStack.length > 0 && backStack[backStack.length - 1].flexAppUrl == flexAppUrl) { - backStack[backStack.length - 1] = createState(baseUrl, newUrl, flexAppUrl); - } - - if (browser.safari) { - // for Safari, submit a form whose action points to the desired URL - if (browser.version <= 419.3) { - var file = window.location.pathname.toString(); - file = file.substring(file.lastIndexOf("/")+1); - getFormElement().innerHTML = '
'; - //get the current elements and add them to the form - var qs = window.location.search.substring(1); - var qs_arr = qs.split("&"); - for (var i = 0; i < qs_arr.length; i++) { - var tmp = qs_arr[i].split("="); - var elem = document.createElement("input"); - elem.type = "hidden"; - elem.name = tmp[0]; - elem.value = tmp[1]; - document.forms.historyForm.appendChild(elem); - } - document.forms.historyForm.submit(); - } else { - top.location.hash = flexAppUrl; - } - // We also have to maintain the history by hand for Safari - historyHash[history.length] = flexAppUrl; - _storeStates(); - } else { - // Otherwise, write an anchor into the page and tell the browser to go there - addAnchor(flexAppUrl); - setHash(flexAppUrl); - } - } - backStack.push(createState(baseUrl, newUrl, flexAppUrl)); - } - - function _storeStates() { - if (browser.safari) { - getRememberElement().value = historyHash.join(","); - } - } - - function handleBackButton() { - //The "current" page is always at the top of the history stack. - var current = backStack.pop(); - if (!current) { return; } - var last = backStack[backStack.length - 1]; - if (!last && backStack.length == 0){ - last = initialState; - } - forwardStack.push(current); - } - - function handleForwardButton() { - //summary: private method. Do not call this directly. - - var last = forwardStack.pop(); - if (!last) { return; } - backStack.push(last); - } - - function handleArbitraryUrl() { - //delete all the history entries - forwardStack = []; - } - - /* Called periodically to poll to see if we need to detect navigation that has occurred */ - function checkForUrlChange() { - - if (browser.ie) { - if (currentHref != document.location.href && currentHref + '#' != document.location.href) { - //This occurs when the user has navigated to a specific URL - //within the app, and didn't use browser back/forward - //IE seems to have a bug where it stops updating the URL it - //shows the end-user at this point, but programatically it - //appears to be correct. Do a full app reload to get around - //this issue. - if (browser.version < 7) { - currentHref = document.location.href; - document.location.reload(); - } else { - if (getHash() != getIframeHash()) { - // this.iframe.src = this.blankURL + hash; - var sourceToSet = historyFrameSourcePrefix + getHash(); - getHistoryFrame().src = sourceToSet; - } - } - } - } - - if (browser.safari) { - // For Safari, we have to check to see if history.length changed. - if (currentHistoryLength >= 0 && history.length != currentHistoryLength) { - //alert("did change: " + history.length + ", " + historyHash.length + "|" + historyHash[history.length] + "|>" + historyHash.join("|")); - // If it did change, then we have to look the old state up - // in our hand-maintained array since document.location.hash - // won't have changed, then call back into BrowserManager. - currentHistoryLength = history.length; - var flexAppUrl = historyHash[currentHistoryLength]; - if (flexAppUrl == '') { - //flexAppUrl = defaultHash; - } - //ADR: to fix multiple - if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) { - var pl = getPlayers(); - for (var i = 0; i < pl.length; i++) { - pl[i].browserURLChange(flexAppUrl); - } - } else { - getPlayer().browserURLChange(flexAppUrl); - } - _storeStates(); - } - } - if (browser.firefox) { - if (currentHref != document.location.href) { - var bsl = backStack.length; - - var urlActions = { - back: false, - forward: false, - set: false - } - - if ((window.location.hash == initialHash || window.location.href == initialHref) && (bsl == 1)) { - urlActions.back = true; - // FIXME: could this ever be a forward button? - // we can't clear it because we still need to check for forwards. Ugg. - // clearInterval(this.locationTimer); - handleBackButton(); - } - - // first check to see if we could have gone forward. We always halt on - // a no-hash item. - if (forwardStack.length > 0) { - if (forwardStack[forwardStack.length-1].flexAppUrl == getHash()) { - urlActions.forward = true; - handleForwardButton(); - } - } - - // ok, that didn't work, try someplace back in the history stack - if ((bsl >= 2) && (backStack[bsl - 2])) { - if (backStack[bsl - 2].flexAppUrl == getHash()) { - urlActions.back = true; - handleBackButton(); - } - } - - if (!urlActions.back && !urlActions.forward) { - var foundInStacks = { - back: -1, - forward: -1 - } - - for (var i = 0; i < backStack.length; i++) { - if (backStack[i].flexAppUrl == getHash() && i != (bsl - 2)) { - arbitraryUrl = true; - foundInStacks.back = i; - } - } - for (var i = 0; i < forwardStack.length; i++) { - if (forwardStack[i].flexAppUrl == getHash() && i != (bsl - 2)) { - arbitraryUrl = true; - foundInStacks.forward = i; - } - } - handleArbitraryUrl(); - } - - // Firefox changed; do a callback into BrowserManager to tell it. - currentHref = document.location.href; - var flexAppUrl = getHash(); - if (flexAppUrl == '') { - //flexAppUrl = defaultHash; - } - //ADR: to fix multiple - if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) { - var pl = getPlayers(); - for (var i = 0; i < pl.length; i++) { - pl[i].browserURLChange(flexAppUrl); - } - } else { - getPlayer().browserURLChange(flexAppUrl); - } - } - } - //setTimeout(checkForUrlChange, 50); - } - - /* Write an anchor into the page to legitimize it as a URL for Firefox et al. */ - function addAnchor(flexAppUrl) - { - if (document.getElementsByName(flexAppUrl).length == 0) { - getAnchorElement().innerHTML += "" + flexAppUrl + ""; - } - } - - var _initialize = function () { - if (browser.ie) - { - var scripts = document.getElementsByTagName('script'); - for (var i = 0, s; s = scripts[i]; i++) { - if (s.src.indexOf("history.js") > -1) { - var iframe_location = (new String(s.src)).replace("history.js", "historyFrame.html"); - } - } - historyFrameSourcePrefix = iframe_location + "?"; - var src = historyFrameSourcePrefix; - - var iframe = document.createElement("iframe"); - iframe.id = 'ie_historyFrame'; - iframe.name = 'ie_historyFrame'; - //iframe.src = historyFrameSourcePrefix; - try { - document.body.appendChild(iframe); - } catch(e) { - setTimeout(function() { - document.body.appendChild(iframe); - }, 0); - } - } - - if (browser.safari) - { - var rememberDiv = document.createElement("div"); - rememberDiv.id = 'safari_rememberDiv'; - document.body.appendChild(rememberDiv); - rememberDiv.innerHTML = ''; - - var formDiv = document.createElement("div"); - formDiv.id = 'safari_formDiv'; - document.body.appendChild(formDiv); - - var reloader_content = document.createElement('div'); - reloader_content.id = 'safarireloader'; - var scripts = document.getElementsByTagName('script'); - for (var i = 0, s; s = scripts[i]; i++) { - if (s.src.indexOf("history.js") > -1) { - html = (new String(s.src)).replace(".js", ".html"); - } - } - reloader_content.innerHTML = ''; - document.body.appendChild(reloader_content); - reloader_content.style.position = 'absolute'; - reloader_content.style.left = reloader_content.style.top = '-9999px'; - iframe = reloader_content.getElementsByTagName('iframe')[0]; - - if (document.getElementById("safari_remember_field").value != "" ) { - historyHash = document.getElementById("safari_remember_field").value.split(","); - } - - } - - if (browser.firefox) - { - var anchorDiv = document.createElement("div"); - anchorDiv.id = 'firefox_anchorDiv'; - document.body.appendChild(anchorDiv); - } - - //setTimeout(checkForUrlChange, 50); - } - - return { - historyHash: historyHash, - backStack: function() { return backStack; }, - forwardStack: function() { return forwardStack }, - getPlayer: getPlayer, - initialize: function(src) { - _initialize(src); - }, - setURL: function(url) { - document.location.href = url; - }, - getURL: function() { - return document.location.href; - }, - getTitle: function() { - return document.title; - }, - setTitle: function(title) { - try { - backStack[backStack.length - 1].title = title; - } catch(e) { } - //if on safari, set the title to be the empty string. - if (browser.safari) { - if (title == "") { - try { - var tmp = window.location.href.toString(); - title = tmp.substring((tmp.lastIndexOf("/")+1), tmp.lastIndexOf("#")); - } catch(e) { - title = ""; - } - } - } - document.title = title; - }, - setDefaultURL: function(def) - { - defaultHash = def; - def = getHash(); - //trailing ? is important else an extra frame gets added to the history - //when navigating back to the first page. Alternatively could check - //in history frame navigation to compare # and ?. - if (browser.ie) - { - window['_ie_firstload'] = true; - var sourceToSet = historyFrameSourcePrefix + def; - var func = function() { - getHistoryFrame().src = sourceToSet; - window.location.replace("#" + def); - setInterval(checkForUrlChange, 50); - } - try { - func(); - } catch(e) { - window.setTimeout(function() { func(); }, 0); - } - } - - if (browser.safari) - { - currentHistoryLength = history.length; - if (historyHash.length == 0) { - historyHash[currentHistoryLength] = def; - var newloc = "#" + def; - window.location.replace(newloc); - } else { - //alert(historyHash[historyHash.length-1]); - } - //setHash(def); - setInterval(checkForUrlChange, 50); - } - - - if (browser.firefox || browser.opera) - { - var reg = new RegExp("#" + def + "$"); - if (window.location.toString().match(reg)) { - } else { - var newloc ="#" + def; - window.location.replace(newloc); - } - setInterval(checkForUrlChange, 50); - //setHash(def); - } - - }, - - /* Set the current browser URL; called from inside BrowserManager to propagate - * the application state out to the container. - */ - setBrowserURL: function(flexAppUrl, objectId) { - if (browser.ie && typeof objectId != "undefined") { - currentObjectId = objectId; - } - //fromIframe = fromIframe || false; - //fromFlex = fromFlex || false; - //alert("setBrowserURL: " + flexAppUrl); - //flexAppUrl = (flexAppUrl == "") ? defaultHash : flexAppUrl ; - - var pos = document.location.href.indexOf('#'); - var baseUrl = pos != -1 ? document.location.href.substr(0, pos) : document.location.href; - var newUrl = baseUrl + '#' + flexAppUrl; - - if (document.location.href != newUrl && document.location.href + '#' != newUrl) { - currentHref = newUrl; - addHistoryEntry(baseUrl, newUrl, flexAppUrl); - currentHistoryLength = history.length; - } - - return false; - }, - - browserURLChange: function(flexAppUrl) { - var objectId = null; - if (browser.ie && currentObjectId != null) { - objectId = currentObjectId; - } - pendingURL = ''; - - if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) { - var pl = getPlayers(); - for (var i = 0; i < pl.length; i++) { - try { - pl[i].browserURLChange(flexAppUrl); - } catch(e) { } - } - } else { - try { - getPlayer(objectId).browserURLChange(flexAppUrl); - } catch(e) { } - } - - currentObjectId = null; - } - - } - -})(); - -// Initialization - -// Automated unit testing and other diagnostics - -function setURL(url) -{ - document.location.href = url; -} - -function backButton() -{ - history.back(); -} - -function forwardButton() -{ - history.forward(); -} - -function goForwardOrBackInHistory(step) -{ - history.go(step); -} - -//BrowserHistoryUtils.addEvent(window, "load", function() { BrowserHistory.initialize(); }); -(function(i) { - var u =navigator.userAgent;var e=/*@cc_on!@*/false; - var st = setTimeout; - if(/webkit/i.test(u)){ - st(function(){ - var dr=document.readyState; - if(dr=="loaded"||dr=="complete"){i()} - else{st(arguments.callee,10);}},10); - } else if((/mozilla/i.test(u)&&!/(compati)/.test(u)) || (/opera/i.test(u))){ - document.addEventListener("DOMContentLoaded",i,false); - } else if(e){ - (function(){ - var t=document.createElement('doc:rdy'); - try{t.doScroll('left'); - i();t=null; - }catch(e){st(arguments.callee,0);}})(); - } else{ - window.onload=i; - } -})( function() {BrowserHistory.initialize();} ); diff --git a/widget/bin-release/history/historyFrame.html b/widget/bin-release/history/historyFrame.html deleted file mode 100644 index 07e3806..0000000 --- a/widget/bin-release/history/historyFrame.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - Hidden frame for Browser History support. - - diff --git a/widget/bin-release/main.html b/widget/bin-release/main.html deleted file mode 100644 index f51a40b..0000000 --- a/widget/bin-release/main.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/widget/bin-release/main.swf b/widget/bin-release/main.swf deleted file mode 100644 index 5da7bda..0000000 Binary files a/widget/bin-release/main.swf and /dev/null differ diff --git a/widget/bin-release/notifier.swf b/widget/bin-release/notifier.swf deleted file mode 100644 index d2e0058..0000000 Binary files a/widget/bin-release/notifier.swf and /dev/null differ diff --git a/widget/bin-release/playerProductInstall.swf b/widget/bin-release/playerProductInstall.swf deleted file mode 100644 index bdc3437..0000000 Binary files a/widget/bin-release/playerProductInstall.swf and /dev/null differ diff --git a/widget/html-template/AC_OETags.js b/widget/html-template/AC_OETags.js deleted file mode 100644 index 6366467..0000000 --- a/widget/html-template/AC_OETags.js +++ /dev/null @@ -1,292 +0,0 @@ -// Flash Player Version Detection - Rev 1.6 -// Detect Client Browser type -// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. -var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; -var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; -var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; - -function ControlVersion() -{ - var version; - var axo; - var e; - - // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry - - try { - // version will be set for 7.X or greater players - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); - version = axo.GetVariable("$version"); - } catch (e) { - } - - if (!version) - { - try { - // version will be set for 6.X players only - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); - - // installed player is some revision of 6.0 - // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, - // so we have to be careful. - - // default to the first public version - version = "WIN 6,0,21,0"; - - // throws if AllowScripAccess does not exist (introduced in 6.0r47) - axo.AllowScriptAccess = "always"; - - // safe to call for 6.0r47 or greater - version = axo.GetVariable("$version"); - - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 4.X or 5.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = axo.GetVariable("$version"); - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 3.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); - version = "WIN 3,0,18,0"; - } catch (e) { - } - } - - if (!version) - { - try { - // version will be set for 2.X player - axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); - version = "WIN 2,0,0,11"; - } catch (e) { - version = -1; - } - } - - return version; -} - -// JavaScript helper required to detect Flash Player PlugIn version information -function GetSwfVer(){ - // NS/Opera version >= 3 check for Flash plugin in plugin array - var flashVer = -1; - - if (navigator.plugins != null && navigator.plugins.length > 0) { - if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { - var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; - var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; - var descArray = flashDescription.split(" "); - var tempArrayMajor = descArray[2].split("."); - var versionMajor = tempArrayMajor[0]; - var versionMinor = tempArrayMajor[1]; - var versionRevision = descArray[3]; - if (versionRevision == "") { - versionRevision = descArray[4]; - } - if (versionRevision[0] == "d") { - versionRevision = versionRevision.substring(1); - } else if (versionRevision[0] == "r") { - versionRevision = versionRevision.substring(1); - if (versionRevision.indexOf("d") > 0) { - versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); - } - } else if (versionRevision[0] == "b") { - versionRevision = versionRevision.substring(1); - } - var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; - } - } - // MSN/WebTV 2.6 supports Flash 4 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; - // WebTV 2.5 supports Flash 3 - else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; - // older WebTV supports Flash 2 - else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; - else if ( isIE && isWin && !isOpera ) { - flashVer = ControlVersion(); - } - return flashVer; -} - -// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available -function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) -{ - versionStr = GetSwfVer(); - if (versionStr == -1 ) { - return false; - } else if (versionStr != 0) { - if(isIE && isWin && !isOpera) { - // Given "WIN 2,0,0,11" - tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] - tempString = tempArray[1]; // "2,0,0,11" - versionArray = tempString.split(","); // ['2', '0', '0', '11'] - } else { - versionArray = versionStr.split("."); - } - var versionMajor = versionArray[0]; - var versionMinor = versionArray[1]; - var versionRevision = versionArray[2]; - - // is the major.revision >= requested major.revision AND the minor version >= requested minor - if (versionMajor > parseFloat(reqMajorVer)) { - return true; - } else if (versionMajor == parseFloat(reqMajorVer)) { - if (versionMinor > parseFloat(reqMinorVer)) - return true; - else if (versionMinor == parseFloat(reqMinorVer)) { - if (versionRevision >= parseFloat(reqRevision)) - return true; - } - } - return false; - } -} - -function AC_AddExtension(src, ext) -{ - var qIndex = src.indexOf('?'); - if ( qIndex != -1) - { - // Add the extention (if needed) before the query params - var path = src.substring(0, qIndex); - if (path.length >= ext.length && path.lastIndexOf(ext) == (path.length - ext.length)) - return src; - else - return src.replace(/\?/, ext+'?'); - } - else - { - // Add the extension (if needed) to the end of the URL - if (src.length >= ext.length && src.lastIndexOf(ext) == (src.length - ext.length)) - return src; // Already have extension - else - return src + ext; - } -} - -function AC_Generateobj(objAttrs, params, embedAttrs) -{ - var str = ''; - if (isIE && isWin && !isOpera) - { - str += ' '; - str += ''; - } else { - str += ' 0 && typeof o[0].SetVariable != "undefined") { - return o[0]; - } - else if (e.length > 0 && typeof e[0].SetVariable != "undefined") { - return e[0]; - } - } - } - else { - var o = document.getElementsByTagName("object"); - var e = document.getElementsByTagName("embed"); - if (e.length > 0 && typeof e[0].SetVariable != "undefined") { - return e[0]; - } - else if (o.length > 0 && typeof o[0].SetVariable != "undefined") { - return o[0]; - } - else if (o.length > 1 && typeof o[1].SetVariable != "undefined") { - return o[1]; - } - } - return undefined; - } - - function getPlayers() { - var players = []; - if (players.length == 0) { - var tmp = document.getElementsByTagName('object'); - players = tmp; - } - - if (players.length == 0 || players[0].object == null) { - var tmp = document.getElementsByTagName('embed'); - players = tmp; - } - return players; - } - - function getIframeHash() { - var doc = getHistoryFrame().contentWindow.document; - var hash = String(doc.location.search); - if (hash.length == 1 && hash.charAt(0) == "?") { - hash = ""; - } - else if (hash.length >= 2 && hash.charAt(0) == "?") { - hash = hash.substring(1); - } - return hash; - } - - /* Get the current location hash excluding the '#' symbol. */ - function getHash() { - // It would be nice if we could use document.location.hash here, - // but it's faulty sometimes. - var idx = document.location.href.indexOf('#'); - return (idx >= 0) ? document.location.href.substr(idx+1) : ''; - } - - /* Get the current location hash excluding the '#' symbol. */ - function setHash(hash) { - // It would be nice if we could use document.location.hash here, - // but it's faulty sometimes. - if (hash == '') hash = '#' - document.location.hash = hash; - } - - function createState(baseUrl, newUrl, flexAppUrl) { - return { 'baseUrl': baseUrl, 'newUrl': newUrl, 'flexAppUrl': flexAppUrl, 'title': null }; - } - - /* Add a history entry to the browser. - * baseUrl: the portion of the location prior to the '#' - * newUrl: the entire new URL, including '#' and following fragment - * flexAppUrl: the portion of the location following the '#' only - */ - function addHistoryEntry(baseUrl, newUrl, flexAppUrl) { - - //delete all the history entries - forwardStack = []; - - if (browser.ie) { - //Check to see if we are being asked to do a navigate for the first - //history entry, and if so ignore, because it's coming from the creation - //of the history iframe - if (flexAppUrl == defaultHash && document.location.href == initialHref && window['_ie_firstload']) { - currentHref = initialHref; - return; - } - if ((!flexAppUrl || flexAppUrl == defaultHash) && window['_ie_firstload']) { - newUrl = baseUrl + '#' + defaultHash; - flexAppUrl = defaultHash; - } else { - // for IE, tell the history frame to go somewhere without a '#' - // in order to get this entry into the browser history. - getHistoryFrame().src = historyFrameSourcePrefix + flexAppUrl; - } - setHash(flexAppUrl); - } else { - - //ADR - if (backStack.length == 0 && initialState.flexAppUrl == flexAppUrl) { - initialState = createState(baseUrl, newUrl, flexAppUrl); - } else if(backStack.length > 0 && backStack[backStack.length - 1].flexAppUrl == flexAppUrl) { - backStack[backStack.length - 1] = createState(baseUrl, newUrl, flexAppUrl); - } - - if (browser.safari) { - // for Safari, submit a form whose action points to the desired URL - if (browser.version <= 419.3) { - var file = window.location.pathname.toString(); - file = file.substring(file.lastIndexOf("/")+1); - getFormElement().innerHTML = '
'; - //get the current elements and add them to the form - var qs = window.location.search.substring(1); - var qs_arr = qs.split("&"); - for (var i = 0; i < qs_arr.length; i++) { - var tmp = qs_arr[i].split("="); - var elem = document.createElement("input"); - elem.type = "hidden"; - elem.name = tmp[0]; - elem.value = tmp[1]; - document.forms.historyForm.appendChild(elem); - } - document.forms.historyForm.submit(); - } else { - top.location.hash = flexAppUrl; - } - // We also have to maintain the history by hand for Safari - historyHash[history.length] = flexAppUrl; - _storeStates(); - } else { - // Otherwise, write an anchor into the page and tell the browser to go there - addAnchor(flexAppUrl); - setHash(flexAppUrl); - } - } - backStack.push(createState(baseUrl, newUrl, flexAppUrl)); - } - - function _storeStates() { - if (browser.safari) { - getRememberElement().value = historyHash.join(","); - } - } - - function handleBackButton() { - //The "current" page is always at the top of the history stack. - var current = backStack.pop(); - if (!current) { return; } - var last = backStack[backStack.length - 1]; - if (!last && backStack.length == 0){ - last = initialState; - } - forwardStack.push(current); - } - - function handleForwardButton() { - //summary: private method. Do not call this directly. - - var last = forwardStack.pop(); - if (!last) { return; } - backStack.push(last); - } - - function handleArbitraryUrl() { - //delete all the history entries - forwardStack = []; - } - - /* Called periodically to poll to see if we need to detect navigation that has occurred */ - function checkForUrlChange() { - - if (browser.ie) { - if (currentHref != document.location.href && currentHref + '#' != document.location.href) { - //This occurs when the user has navigated to a specific URL - //within the app, and didn't use browser back/forward - //IE seems to have a bug where it stops updating the URL it - //shows the end-user at this point, but programatically it - //appears to be correct. Do a full app reload to get around - //this issue. - if (browser.version < 7) { - currentHref = document.location.href; - document.location.reload(); - } else { - if (getHash() != getIframeHash()) { - // this.iframe.src = this.blankURL + hash; - var sourceToSet = historyFrameSourcePrefix + getHash(); - getHistoryFrame().src = sourceToSet; - } - } - } - } - - if (browser.safari) { - // For Safari, we have to check to see if history.length changed. - if (currentHistoryLength >= 0 && history.length != currentHistoryLength) { - //alert("did change: " + history.length + ", " + historyHash.length + "|" + historyHash[history.length] + "|>" + historyHash.join("|")); - // If it did change, then we have to look the old state up - // in our hand-maintained array since document.location.hash - // won't have changed, then call back into BrowserManager. - currentHistoryLength = history.length; - var flexAppUrl = historyHash[currentHistoryLength]; - if (flexAppUrl == '') { - //flexAppUrl = defaultHash; - } - //ADR: to fix multiple - if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) { - var pl = getPlayers(); - for (var i = 0; i < pl.length; i++) { - pl[i].browserURLChange(flexAppUrl); - } - } else { - getPlayer().browserURLChange(flexAppUrl); - } - _storeStates(); - } - } - if (browser.firefox) { - if (currentHref != document.location.href) { - var bsl = backStack.length; - - var urlActions = { - back: false, - forward: false, - set: false - } - - if ((window.location.hash == initialHash || window.location.href == initialHref) && (bsl == 1)) { - urlActions.back = true; - // FIXME: could this ever be a forward button? - // we can't clear it because we still need to check for forwards. Ugg. - // clearInterval(this.locationTimer); - handleBackButton(); - } - - // first check to see if we could have gone forward. We always halt on - // a no-hash item. - if (forwardStack.length > 0) { - if (forwardStack[forwardStack.length-1].flexAppUrl == getHash()) { - urlActions.forward = true; - handleForwardButton(); - } - } - - // ok, that didn't work, try someplace back in the history stack - if ((bsl >= 2) && (backStack[bsl - 2])) { - if (backStack[bsl - 2].flexAppUrl == getHash()) { - urlActions.back = true; - handleBackButton(); - } - } - - if (!urlActions.back && !urlActions.forward) { - var foundInStacks = { - back: -1, - forward: -1 - } - - for (var i = 0; i < backStack.length; i++) { - if (backStack[i].flexAppUrl == getHash() && i != (bsl - 2)) { - arbitraryUrl = true; - foundInStacks.back = i; - } - } - for (var i = 0; i < forwardStack.length; i++) { - if (forwardStack[i].flexAppUrl == getHash() && i != (bsl - 2)) { - arbitraryUrl = true; - foundInStacks.forward = i; - } - } - handleArbitraryUrl(); - } - - // Firefox changed; do a callback into BrowserManager to tell it. - currentHref = document.location.href; - var flexAppUrl = getHash(); - if (flexAppUrl == '') { - //flexAppUrl = defaultHash; - } - //ADR: to fix multiple - if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) { - var pl = getPlayers(); - for (var i = 0; i < pl.length; i++) { - pl[i].browserURLChange(flexAppUrl); - } - } else { - getPlayer().browserURLChange(flexAppUrl); - } - } - } - //setTimeout(checkForUrlChange, 50); - } - - /* Write an anchor into the page to legitimize it as a URL for Firefox et al. */ - function addAnchor(flexAppUrl) - { - if (document.getElementsByName(flexAppUrl).length == 0) { - getAnchorElement().innerHTML += "" + flexAppUrl + ""; - } - } - - var _initialize = function () { - if (browser.ie) - { - var scripts = document.getElementsByTagName('script'); - for (var i = 0, s; s = scripts[i]; i++) { - if (s.src.indexOf("history.js") > -1) { - var iframe_location = (new String(s.src)).replace("history.js", "historyFrame.html"); - } - } - historyFrameSourcePrefix = iframe_location + "?"; - var src = historyFrameSourcePrefix; - - var iframe = document.createElement("iframe"); - iframe.id = 'ie_historyFrame'; - iframe.name = 'ie_historyFrame'; - //iframe.src = historyFrameSourcePrefix; - try { - document.body.appendChild(iframe); - } catch(e) { - setTimeout(function() { - document.body.appendChild(iframe); - }, 0); - } - } - - if (browser.safari) - { - var rememberDiv = document.createElement("div"); - rememberDiv.id = 'safari_rememberDiv'; - document.body.appendChild(rememberDiv); - rememberDiv.innerHTML = ''; - - var formDiv = document.createElement("div"); - formDiv.id = 'safari_formDiv'; - document.body.appendChild(formDiv); - - var reloader_content = document.createElement('div'); - reloader_content.id = 'safarireloader'; - var scripts = document.getElementsByTagName('script'); - for (var i = 0, s; s = scripts[i]; i++) { - if (s.src.indexOf("history.js") > -1) { - html = (new String(s.src)).replace(".js", ".html"); - } - } - reloader_content.innerHTML = ''; - document.body.appendChild(reloader_content); - reloader_content.style.position = 'absolute'; - reloader_content.style.left = reloader_content.style.top = '-9999px'; - iframe = reloader_content.getElementsByTagName('iframe')[0]; - - if (document.getElementById("safari_remember_field").value != "" ) { - historyHash = document.getElementById("safari_remember_field").value.split(","); - } - - } - - if (browser.firefox) - { - var anchorDiv = document.createElement("div"); - anchorDiv.id = 'firefox_anchorDiv'; - document.body.appendChild(anchorDiv); - } - - //setTimeout(checkForUrlChange, 50); - } - - return { - historyHash: historyHash, - backStack: function() { return backStack; }, - forwardStack: function() { return forwardStack }, - getPlayer: getPlayer, - initialize: function(src) { - _initialize(src); - }, - setURL: function(url) { - document.location.href = url; - }, - getURL: function() { - return document.location.href; - }, - getTitle: function() { - return document.title; - }, - setTitle: function(title) { - try { - backStack[backStack.length - 1].title = title; - } catch(e) { } - //if on safari, set the title to be the empty string. - if (browser.safari) { - if (title == "") { - try { - var tmp = window.location.href.toString(); - title = tmp.substring((tmp.lastIndexOf("/")+1), tmp.lastIndexOf("#")); - } catch(e) { - title = ""; - } - } - } - document.title = title; - }, - setDefaultURL: function(def) - { - defaultHash = def; - def = getHash(); - //trailing ? is important else an extra frame gets added to the history - //when navigating back to the first page. Alternatively could check - //in history frame navigation to compare # and ?. - if (browser.ie) - { - window['_ie_firstload'] = true; - var sourceToSet = historyFrameSourcePrefix + def; - var func = function() { - getHistoryFrame().src = sourceToSet; - window.location.replace("#" + def); - setInterval(checkForUrlChange, 50); - } - try { - func(); - } catch(e) { - window.setTimeout(function() { func(); }, 0); - } - } - - if (browser.safari) - { - currentHistoryLength = history.length; - if (historyHash.length == 0) { - historyHash[currentHistoryLength] = def; - var newloc = "#" + def; - window.location.replace(newloc); - } else { - //alert(historyHash[historyHash.length-1]); - } - //setHash(def); - setInterval(checkForUrlChange, 50); - } - - - if (browser.firefox || browser.opera) - { - var reg = new RegExp("#" + def + "$"); - if (window.location.toString().match(reg)) { - } else { - var newloc ="#" + def; - window.location.replace(newloc); - } - setInterval(checkForUrlChange, 50); - //setHash(def); - } - - }, - - /* Set the current browser URL; called from inside BrowserManager to propagate - * the application state out to the container. - */ - setBrowserURL: function(flexAppUrl, objectId) { - if (browser.ie && typeof objectId != "undefined") { - currentObjectId = objectId; - } - //fromIframe = fromIframe || false; - //fromFlex = fromFlex || false; - //alert("setBrowserURL: " + flexAppUrl); - //flexAppUrl = (flexAppUrl == "") ? defaultHash : flexAppUrl ; - - var pos = document.location.href.indexOf('#'); - var baseUrl = pos != -1 ? document.location.href.substr(0, pos) : document.location.href; - var newUrl = baseUrl + '#' + flexAppUrl; - - if (document.location.href != newUrl && document.location.href + '#' != newUrl) { - currentHref = newUrl; - addHistoryEntry(baseUrl, newUrl, flexAppUrl); - currentHistoryLength = history.length; - } - - return false; - }, - - browserURLChange: function(flexAppUrl) { - var objectId = null; - if (browser.ie && currentObjectId != null) { - objectId = currentObjectId; - } - pendingURL = ''; - - if (typeof BrowserHistory_multiple != "undefined" && BrowserHistory_multiple == true) { - var pl = getPlayers(); - for (var i = 0; i < pl.length; i++) { - try { - pl[i].browserURLChange(flexAppUrl); - } catch(e) { } - } - } else { - try { - getPlayer(objectId).browserURLChange(flexAppUrl); - } catch(e) { } - } - - currentObjectId = null; - } - - } - -})(); - -// Initialization - -// Automated unit testing and other diagnostics - -function setURL(url) -{ - document.location.href = url; -} - -function backButton() -{ - history.back(); -} - -function forwardButton() -{ - history.forward(); -} - -function goForwardOrBackInHistory(step) -{ - history.go(step); -} - -//BrowserHistoryUtils.addEvent(window, "load", function() { BrowserHistory.initialize(); }); -(function(i) { - var u =navigator.userAgent;var e=/*@cc_on!@*/false; - var st = setTimeout; - if(/webkit/i.test(u)){ - st(function(){ - var dr=document.readyState; - if(dr=="loaded"||dr=="complete"){i()} - else{st(arguments.callee,10);}},10); - } else if((/mozilla/i.test(u)&&!/(compati)/.test(u)) || (/opera/i.test(u))){ - document.addEventListener("DOMContentLoaded",i,false); - } else if(e){ - (function(){ - var t=document.createElement('doc:rdy'); - try{t.doScroll('left'); - i();t=null; - }catch(e){st(arguments.callee,0);}})(); - } else{ - window.onload=i; - } -})( function() {BrowserHistory.initialize();} ); diff --git a/widget/html-template/history/historyFrame.html b/widget/html-template/history/historyFrame.html deleted file mode 100644 index 07e3806..0000000 --- a/widget/html-template/history/historyFrame.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - Hidden frame for Browser History support. - - diff --git a/widget/html-template/index.template.html b/widget/html-template/index.template.html deleted file mode 100644 index 20ee809..0000000 --- a/widget/html-template/index.template.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - -${title} - - - - - - - - - - - - - - - diff --git a/widget/html-template/playerProductInstall.swf b/widget/html-template/playerProductInstall.swf deleted file mode 100644 index bdc3437..0000000 Binary files a/widget/html-template/playerProductInstall.swf and /dev/null differ diff --git a/widget/libs/.gitignore b/widget/libs/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/widget/libs/Mate_08_5.swc b/widget/libs/Mate_08_5.swc deleted file mode 100644 index 246c0fa..0000000 Binary files a/widget/libs/Mate_08_5.swc and /dev/null differ diff --git a/widget/src/assets/kingnarestyle.swf b/widget/src/assets/kingnarestyle.swf deleted file mode 100755 index 1ecb2fe..0000000 Binary files a/widget/src/assets/kingnarestyle.swf and /dev/null differ diff --git a/widget/src/assets/style.css b/widget/src/assets/style.css deleted file mode 100755 index 6b2af1f..0000000 --- a/widget/src/assets/style.css +++ /dev/null @@ -1,181 +0,0 @@ -/* -//------------------------------ -// Application -//------------------------------ -*/ -Application -{ - backgroundColor: #ffffff; -} - - - -/* -//------------------------------ -// global -//------------------------------ - -global -{ - backgroundGradientAlphas: 1.0, 1.0; - backgroundGradientColors: #000000, #000000; - backgroundDisabledColor: #DDDDDD; - focusThickness: 1; - /* focusAlpha: 0.05; - focusAlpha: 0.0; - themeColor: #FFFFFF; -} - - - - -//------------------------------ -// Button -//------------------------------ -Button -{ - color: #000000; - textRollOverColor: #FFFFFF; - textSelectedColor:#FFFFFF; - disabledColor:#5A5A5A; - fontWeight:normal; - - upSkin: Embed(source="kingnarestyle.swf", symbol="Button_upSkin"); - overSkin: Embed(source="kingnarestyle.swf", symbol="Button_overSkin"); - downSkin: Embed(source="kingnarestyle.swf", symbol="Button_downSkin"); - disabledSkin: Embed(source="kingnarestyle.swf", symbol="Button_disabledSkin"); - - selectedUpSkin: Embed(source='kingnarestyle.swf', symbol='Button_selectedUpSkin'); - selectedOverSkin: Embed(source='kingnarestyle.swf', symbol='Button_selectedOverSkin'); - selectedDownSkin: Embed(source='kingnarestyle.swf', symbol='Button_selectedDownSkin'); - selectedDisabledSkin: Embed(source='kingnarestyle.swf', symbol='Button_selectedDisabledSkin'); -} - - - -//------------------------------ -// CursorManager -//------------------------------ -*/ -CursorManager -{ - busyCursor: Embed(source="kingnarestyle.swf", symbol="BusyCursor"); - busyCursorBackground: Embed(source="kingnarestyle.swf",symbol="BusyCursor"); -} - - -/* -//------------------------------ -// HScrollBar -//------------------------------ -*/ -HScrollBar -{ - - trackSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_trackSkin"); - thumbUpSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbUpSkin"); - thumbOverSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbOverSkin"); - thumbDownSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbDownSkin"); - thumbIcon: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbIcon"); - upArrowSkin: ClassReference(null); - downArrowSkin: ClassReference(null); -} - - - -/* -//------------------------------ -// Label -//------------------------------ -*/ -Label -{ - color: #000000; - disabledColor: #cccccc; -} - - -/* -//------------------------------ -// LinkButton -//------------------------------ -LinkButton -{ - rollOverColor: #222222; - selectionColor: #000000; - focusAlpha: 0.1; - cornerRadius: 0; -} - -/* -//------------------------------ -// ToolTip -//------------------------------ -*/ -ToolTip -{ - color: #FFFFFF; - backgroundColor: 0; - borderSkin: Embed(source="kingnarestyle.swf", symbol="ToolTip_Border"); - paddingLeft: 10; - paddingRight: 10; -} - -/* -//------------------------------ -// VScrollBar -//------------------------------ -*/ -VScrollBar -{ - trackUpSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_trackSkin"); - trackOverSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_trackSkin"); - trackDownSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_trackSkin"); - trackDisabledSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_trackSkin"); - - thumbUpSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbUpSkin"); - thumbOverSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbOverSkin"); - thumbDownSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbDownSkin"); - thumbIcon: Embed(source="kingnarestyle.swf", symbol="ScrollBars_thumbIcon"); - - downArrowUpSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_downArrowUpSkin"); - downArrowOverSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_downArrowOverSkin"); - downArrowDownSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_downArrowDownSkin"); - downArrowDisabledSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_downArrowDisabledSkin"); - upArrowUpSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_upArrowUpSkin"); - upArrowOverSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_upArrowOverSkin"); - upArrowDownSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_upArrowDownSkin"); - upArrowDisabledSkin: Embed(source="kingnarestyle.swf", symbol="ScrollBars_upArrowDisabledSkin"); - - /* upArrowSkin: ClassReference(null); - downArrowSkin: ClassReference(null); */ -} - - -/* End */ - -/* -KingnareStyle by Jinxin. -Based on instructions from Adobe and inspired by Express Photoshop. - -Copyright (c) 2008 www.kingnare.com See: -http://code.google.com/p/kingnarestyle - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/business/NotificationManager.as b/widget/src/com/goonfleet/notifier/business/NotificationManager.as deleted file mode 100755 index 7ab0313..0000000 --- a/widget/src/com/goonfleet/notifier/business/NotificationManager.as +++ /dev/null @@ -1,88 +0,0 @@ -package com.goonfleet.notifier.business -{ - import com.goonfleet.notifier.classes.Notice; - import com.goonfleet.notifier.events.ClockEvent; - - import flash.events.TimerEvent; - import flash.utils.Timer; - - import mx.collections.ArrayCollection; - import mx.collections.Sort; - import mx.collections.SortField; - import mx.core.Application; - - public class NotificationManager - { - - private var ticker:Timer = null; - - private var noticeTicker:Timer = null; - - [Bindable] - public var eveTime:Date; - - [Bindable] - public var ops:ArrayCollection; - - [Bindable] - public var notices:ArrayCollection; - - [Bindable] - public var currentNotice:Notice = new Notice; - - - public function storeNotification(notification:Object):void { - var opSort:Sort = new Sort(); - opSort.fields = [new SortField("startTime")]; - - ops = notification.ops; - ops.sort = opSort; - ops.refresh(); // apply the sort - - notices = notification.notices; - - if (notices.length > 0) { - currentNotice.text = notices[0].text; - currentNotice.expires = notices[0].expires; - currentNotice.countdown = notices[0].countdown; - currentNotice.poster = notices[0].poster; - currentNotice.index = 0; - } - - eveTime = notification.eveTime; - startClock(); - } - - public function startClock():void { - ticker = new Timer(1000); - ticker.addEventListener(TimerEvent.TIMER, updateClock); - ticker.start(); - - if (notices.length > 0) { - noticeTicker = new Timer(5000); - noticeTicker.addEventListener(TimerEvent.TIMER, rotateNotices); - noticeTicker.start(); - } - } - - public function updateClock(event:TimerEvent):void { - eveTime = new Date(eveTime.time + 1000); - - var clockEvent:ClockEvent = new ClockEvent(ClockEvent.TICK); - Application.application.dispatchEvent(clockEvent); - } - - public function rotateNotices(event:TimerEvent):void { - if (currentNotice.index >= (notices.length -1)) { - currentNotice.index = 0; - } else { - currentNotice.index++; - } - - currentNotice.text = notices[currentNotice.index].text; - currentNotice.expires = notices[currentNotice.index].expires; - currentNotice.countdown = notices[currentNotice.index].countdown; - currentNotice.poster = notices[currentNotice.index].poster; - } - } -} \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/business/NotificationServiceParser.as b/widget/src/com/goonfleet/notifier/business/NotificationServiceParser.as deleted file mode 100755 index f46b701..0000000 --- a/widget/src/com/goonfleet/notifier/business/NotificationServiceParser.as +++ /dev/null @@ -1,57 +0,0 @@ -package com.goonfleet.notifier.business -{ - import com.goonfleet.notifier.classes.*; - - import mx.collections.ArrayCollection; - - - // -------------------------------------------- - // This helper class parses data coming from the - // notification XML file and converts it into - // an object - - public class NotificationServiceParser - { - public function parseNotificationResults(notification:Object):Object { - - var notificationObject:Object = new Object(); - - - notificationObject.eveTime = parseDate(notification.opapp.timedata.evetime); - - notificationObject.ops = new ArrayCollection(); - - if (notification.opapp.ops.op.length == undefined) { - notificationObject.ops.addItem(new Op(notification.opapp.ops.op)); - } else { - for each (var op:Object in notification.opapp.ops.op) { - notificationObject.ops.addItem(new Op(op)); - } - } - - notificationObject.notices = new ArrayCollection(); - - if (notification.opapp.notices.notice.length == undefined) { - notificationObject.notices.addItem(new Notice(notification.opapp.notices.notice)); - } else { - for each (var notice:Object in notification.opapp.notices.notice) { - notificationObject.ops.addItem(new Notice(notice)); - } - notificationObject.notices = notification.opapp.notices.notice; - } - - return notificationObject; - } - - private function parseDate(dateString:String):Date { - var pattern:RegExp = /-/; - - // Replace the first 2 dashes with slashes - dateString = dateString.replace(pattern, "/"); - dateString = dateString.replace(pattern, "/"); - - return new Date(dateString); - } - - } -} \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/classes/Notice.as b/widget/src/com/goonfleet/notifier/classes/Notice.as deleted file mode 100644 index 94635a8..0000000 --- a/widget/src/com/goonfleet/notifier/classes/Notice.as +++ /dev/null @@ -1,37 +0,0 @@ -package com.goonfleet.notifier.classes -{ - - public class Notice - { - [Bindable] - public var index:int; - - [Bindable] - public var text:String; - - [Bindable] - public var countdown:Boolean; - - [Bindable] - public var poster:String; - - [Bindable] - public var expires:Date; - - - public function Notice(notice:Object = null) - { - if (notice) { - text = notice.text; - expires = parseDate(notice.expires); - countdown = notice.countdown; - poster = notice.poster; - } - } - - private function parseDate(dateString:Object):Date { - return new Date(Number(dateString) * 1000); - } - - } -} \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/classes/Op.as b/widget/src/com/goonfleet/notifier/classes/Op.as deleted file mode 100644 index 42adbd9..0000000 --- a/widget/src/com/goonfleet/notifier/classes/Op.as +++ /dev/null @@ -1,77 +0,0 @@ -package com.goonfleet.notifier.classes -{ - - public class Op - { - [Bindable] - public var title:String; - - [Bindable] - public var startTime:Date; - - [Bindable] - public var endTime:Date; - - [Bindable] - public var priority:String; - - [Bindable] - public var priorityLabelColor:uint; - - [Bindable] - public var bgColor:uint; - - [Bindable] - public var thread:String; - - [Bindable] - public var formUp:String; - - [Bindable] - public var shipTypes:String; - - [Bindable] - public var text:String; - - [Bindable] - public var poster:String; - - - public function Op(op:Object) - { - title = op.title; - startTime = parseDate(op.startTime); - endTime = parseDate(op.endTime); - priority = op.priority; - thread = op.thread; - formUp = op.formup; - shipTypes = op.shiptypes; - text = op.text; - poster = op.poster; - - switch (priority) { - case "important": - bgColor = 0xFCFDAD; - priorityLabelColor = 0x888800; - break; - case "critical": - bgColor = 0xF9D1C3; - priorityLabelColor = 0x660000; - break; - default: - bgColor = 0xEEEEEE; - priorityLabelColor = 0x000000; - } - } - - private function parseDate(dateString:String):Date { - var pattern:RegExp = /-/; - - // Replace the first 2 dashes with slashes - dateString = dateString.replace(pattern, "/"); - dateString = dateString.replace(pattern, "/"); - - return new Date(dateString); - } - } -} \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/events/ClockEvent.as b/widget/src/com/goonfleet/notifier/events/ClockEvent.as deleted file mode 100755 index d6946ab..0000000 --- a/widget/src/com/goonfleet/notifier/events/ClockEvent.as +++ /dev/null @@ -1,17 +0,0 @@ -package com.goonfleet.notifier.events -{ - import flash.events.Event; - - public class ClockEvent extends Event - { - public static const TICK: String = "tickEvent"; - - public static const ROTATE_NOTICES: String = "rotateNoticesEvent"; - - public function ClockEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) - { - super(type, bubbles, cancelable); - } - - } -} \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/events/NotificationEvent.as b/widget/src/com/goonfleet/notifier/events/NotificationEvent.as deleted file mode 100755 index 5f13116..0000000 --- a/widget/src/com/goonfleet/notifier/events/NotificationEvent.as +++ /dev/null @@ -1,15 +0,0 @@ -package com.goonfleet.notifier.events -{ - import flash.events.Event; - - public class NotificationEvent extends Event - { - public static const GET: String = "getNotificationEvent"; - - public function NotificationEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) - { - super(type, bubbles, cancelable); - } - - } -} \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/maps/MainEventMap.mxml b/widget/src/com/goonfleet/notifier/maps/MainEventMap.mxml deleted file mode 100755 index f2eb6f4..0000000 --- a/widget/src/com/goonfleet/notifier/maps/MainEventMap.mxml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/widget/src/com/goonfleet/notifier/views/EVEClock.mxml b/widget/src/com/goonfleet/notifier/views/EVEClock.mxml deleted file mode 100644 index b35888c..0000000 --- a/widget/src/com/goonfleet/notifier/views/EVEClock.mxml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/widget/src/com/goonfleet/notifier/views/MainView.mxml b/widget/src/com/goonfleet/notifier/views/MainView.mxml deleted file mode 100755 index 97dc989..0000000 --- a/widget/src/com/goonfleet/notifier/views/MainView.mxml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/widget/src/com/goonfleet/notifier/views/Notices.mxml b/widget/src/com/goonfleet/notifier/views/Notices.mxml deleted file mode 100644 index c27061d..0000000 --- a/widget/src/com/goonfleet/notifier/views/Notices.mxml +++ /dev/null @@ -1,65 +0,0 @@ - - - - 0) result += months + "m "; - - var weeks:int = secs/(7 * 24 * 3600); - secs = secs % (7 * 24 * 3600); - if(weeks > 0) result += weeks + "w "; - - var days:int = secs/(24 * 3600); - secs = secs % (24 * 3600); - if(days > 0) result += days + "d "; - - var hours:int = secs/3600; - secs = secs % 3600; - if(hours > 0) result += hours + "h "; - - var minutes:int = secs/60; - secs = secs % 60; - if(minutes > 0) result += minutes + "m "; - - if(Math.round(secs) > 0) result += Math.round(secs) + "s"; - - return result; - } - ]]> - - - - - - - - - diff --git a/widget/src/com/goonfleet/notifier/views/Ops.mxml b/widget/src/com/goonfleet/notifier/views/Ops.mxml deleted file mode 100644 index 05fba6d..0000000 --- a/widget/src/com/goonfleet/notifier/views/Ops.mxml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - diff --git a/widget/src/com/goonfleet/notifier/views/opItemRenderer.mxml b/widget/src/com/goonfleet/notifier/views/opItemRenderer.mxml deleted file mode 100644 index 188303b..0000000 --- a/widget/src/com/goonfleet/notifier/views/opItemRenderer.mxml +++ /dev/null @@ -1,119 +0,0 @@ - - - - 0) result += months + "m "; - - var weeks:int = secs/(7 * 24 * 3600); - secs = secs % (7 * 24 * 3600); - if(weeks > 0) result += weeks + "w "; - - var days:int = secs/(24 * 3600); - secs = secs % (24 * 3600); - if(days > 0) result += days + "d "; - - var hours:int = secs/3600; - secs = secs % 3600; - if(hours > 0) result += hours + "h "; - - var minutes:int = secs/60; - secs = secs % 60; - if(minutes > 0) result += minutes + "m "; - - // if(Math.round(secs) > 0) result += Math.round(secs) + "s"; - - return result; - } - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/widget/src/main.mxml b/widget/src/main.mxml deleted file mode 100644 index 82313dd..0000000 --- a/widget/src/main.mxml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - -