gecko/mobile/chrome/content/firstrun.xhtml
Gavin Sharp fa8b2fd28d Bug 528586: change some text on the first run page, r=mfinkle
--HG--
extra : rebase_source : fb640dede9cf49d1b3fad0a1ceb8f0e7ebfb502c
2009-11-14 16:03:10 -05:00

121 lines
4.9 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd" >
%globalDTD;
<!ENTITY % firstrunDTD SYSTEM "chrome://browser/locale/firstrun.dtd" >
%firstrunDTD;
]>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Mozilla Communicator client code, released
- March 31, 1998.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1998-1999
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Henrik Gemal <mozilla@gemal.dk>
- Daniel Veditz <dveditz@netscape.com>
- Alexey Chernyak <alexeyc@bigfoot.com>
- Steffen Wilberg <steffen.wilberg@web.de>
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the GPL or the LGPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
-
- ***** END LICENSE BLOCK ***** -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&welcome.title;</title>
<link rel="icon" type="image/png" href="chrome://branding/content/favicon32.png" />
<link rel="stylesheet" href="chrome://browser/skin/header.css" type="text/css"/>
<link rel="stylesheet" href="chrome://browser/skin/firstRun.css" type="text/css"/>
<script><![CDATA[
var Ci = Components.interfaces, Cc = Components.classes;
function reloadIfDone(aImg) {
if (!(aImg instanceof Ci.nsIImageLoadingContent))
return;
var request = aImg.getRequest(Ci.nsIImageLoadingContent.CURRENT_REQUEST);
var imgIContainer = request.image;
if (imgIContainer.currentFrameIndex == imgIContainer.numFrames - 1) {
imgIContainer.resetAnimation();
imgIContainer.startAnimation();
}
}
function goToAddons(aSearchString) {
var chromeWin = window
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShellTreeItem)
.rootTreeItem
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindow)
.QueryInterface(Ci.nsIDOMChromeWindow);
var BrowserUI = chromeWin.BrowserUI;
BrowserUI.showPanel("addons-container");
if (aSearchString) {
// ExtensionsView initialization is delayed, so need to delay triggering
// the search as well
setTimeout(function () {
// do the search
chromeWin.ExtensionsView.doSearch(aSearchString);
}, 0);
}
}
]]></script>
</head>
<body dir="&locale.dir;">
<div id="wrapper">
<div class="intro">
<img id="welcomeImage" src="chrome://branding/content/logoWordmark.png"/>
<img id="welcomeAnim" onclick="reloadIfDone(this);" src="chrome://browser/content/firstRunAnimation.gif"/>
</div>
<p id="overview" class="title">&intro.description;</p>
<div class="go" id="weave">
<p class="title">&weave.title;</p>
<p>&weave.description;</p>
<img src="chrome://browser/skin/images/weave.png"/>
<p class="rightalign"><input type="button" id="sync" onclick="goToAddons('weave');" value="&weave.linkLabel;"/></p>
</div>
<div class="go" id="addons">
<p class="title">&getPersonal.title;</p>
<p>&getPersonal.description;</p>
<img src="chrome://browser/skin/images/addons.png"/>
<p class="rightalign"><input type="button" id="getPersonal" onclick="goToAddons();" value="&getPersonal.linkLabel;"/></p>
</div>
</div>
</body>
</html>