1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-17 14:50:08 -07:00

Changed msgView layout and added navigator.appName

This commit is contained in:
Andrew Van Tassel 2011-04-11 12:08:09 -06:00
parent 47ee1306ad
commit 1d68d49640
9 changed files with 25 additions and 24 deletions

BIN
._chrome.manifest Normal file

Binary file not shown.

View File

@ -1,3 +1,3 @@
content mailhops jar:chrome/mailhops.jar!/content/
skin mailhops classic/1.0 jar:chrome/mailhops.jar!/skin/classic/
overlay chrome://messenger/content/msgHdrViewOverlay.xul chrome://mailhops/content/mailWindowOverlay.xul
overlay chrome://messenger/content/msgHdrViewOverlay.xul chrome://mailhops/content/msgHdrViewOverlay.xul

Binary file not shown.

Binary file not shown.

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="chrome://mailhops/skin/mailhops.css" type="text/css"?>
<overlay id="mailrouteOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript" src="chrome://mailhops/content/mailhops.js"/>
<rows id="expandedHeader2Rows">
<row id="mailhops" collapsed="false">
<label id="mailhopsLabel" value="route " class="headerName"/>
<hbox id="mailhopsResult" flex="2">
<image id="mailhopsResultImage" tooltiptext="Click to view the travel map of this message." width="16" height="11"/>
<hbox id="mailhopsResultText"/>
</hbox>
</row>
</rows>
</overlay>

View File

@ -9,6 +9,7 @@ var gNativeJSON = Components.classes["@mozilla.org/dom/json;1"].createInstance(C
//IP regex
var gIPRegEx=/(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}$/;
var gAllIPRegEx = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}/g;
var gAppName = window.navigator.appName!=null?window.navigator.appName:'';
var mailHops =
{
@ -19,13 +20,13 @@ var mailHops =
isLoaded: false,
map: 'goog',
unit: 'mi',
appVersion: 'MailHops Postbox 0.4.3'
appVersion: 'MailHops '+gAppName+' 0.4.3'
}
mailHops.startLoading = function()
{
mailHops.isLoaded = true;
mailHops.container = document.getElementById ( "mailhops" ) ;
mailHops.container = document.getElementById ( "mailhopsBox" ) ;
mailHops.resultBox = document.getElementById ( "mailhopsResult" ) ;
mailHops.resultImage = document.getElementById ( "mailhopsResultImage" ) ;
mailHops.resultText = document.getElementById ( "mailhopsResultText" ) ;

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="chrome://mailhops/skin/mailhops.css" type="text/css"?>
<overlay id="mailrouteOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript" src="chrome://mailhops/content/mailhops.js"/>
<vbox id="expandedHeaders">
<hbox id="mailhopsBox" class="mailheader" collapsed="false" flex="1">
<label id="mailhopsLabel" class="headerName" value="route: "/>
<hbox id="mailhopsResult" flex="2">
<image id="mailhopsResultImage" tooltiptext="Click to view the travel map of this message." width="16" height="11"/>
<hbox id="mailhopsResultText"></hbox>
</hbox>
</hbox>
</vbox>
</overlay>

BIN
mailhops-0.4.2.xpi Normal file

Binary file not shown.

BIN
mailhops-pb-0.4.3.xpi Normal file

Binary file not shown.