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

Postbox first version

This commit is contained in:
Andrew Van Tassel 2011-04-11 12:59:59 -06:00
parent 1d68d49640
commit 8453a9bc98
8 changed files with 12 additions and 16 deletions

Binary file not shown.

Binary file not shown.

View File

@ -9,7 +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 gApp = 'Postbox';
var mailHops =
{
@ -20,7 +20,7 @@ var mailHops =
isLoaded: false,
map: 'goog',
unit: 'mi',
appVersion: 'MailHops '+gAppName+' 0.4.3'
appVersion: 'MailHops '+gApp+' 0.4.3'
}
mailHops.startLoading = function()

View File

@ -8,12 +8,14 @@
<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>
<vbox id="headers">
<hbox id="mailhopsBox" class="mailheader" collapsed="false" inminmode="true">
<label id="mailhopsLabel" class="headerName plain" value="route: "/>
<hbox flex="1">
<mailheadervalue id="mailhopsResult" flex="1">
<image id="mailhopsResultImage" tooltiptext="Click to view the travel map of this message." width="16px" height="11px"/>
<hbox id="mailhopsResultText" class="headerValue plain"></hbox>
</mailheadervalue>
</hbox>
</hbox>
</vbox>

View File

@ -1,6 +1,6 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#mailhops {cursor:pointer;}
#mailhopsBox {cursor:pointer;}
#mailhopsResultText {padding-left:4px;}

View File

@ -20,12 +20,6 @@
<em:optionsURL>chrome://mailhops/content/preferences.xul</em:optionsURL>
<em:targetApplication>
<!-- Thunderbird -->
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>3.0</em:minVersion>
<em:maxVersion>3.1</em:maxVersion>
</Description>
<!-- Postbox -->
<Description>

Binary file not shown.