зеркало из https://github.com/mozilla/gecko-dev.git
Bug 633613 - Add and localized Spark game graphic to Start page [r=vingtetun]
This commit is contained in:
Родитель
687001e43f
Коммит
88f56da001
|
@ -438,6 +438,7 @@ pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/beta/faq/");
|
||||||
pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/mobile/features/");
|
pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/mobile/features/");
|
||||||
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/faq/");
|
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/faq/");
|
||||||
#endif
|
#endif
|
||||||
|
pref("app.promo.spark.endDate", "2011-01-01");
|
||||||
|
|
||||||
// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
|
// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
|
||||||
pref("security.alternate_certificate_error_page", "certerror");
|
pref("security.alternate_certificate_error_page", "certerror");
|
||||||
|
|
|
@ -4,3 +4,4 @@ chrome.jar:
|
||||||
content/branding/logoWordmark.png (logoWordmark.png)
|
content/branding/logoWordmark.png (logoWordmark.png)
|
||||||
content/branding/logo.png (logo.png)
|
content/branding/logo.png (logo.png)
|
||||||
content/branding/favicon32.png (favicon32.png)
|
content/branding/favicon32.png (favicon32.png)
|
||||||
|
content/branding/spark.png (spark.png)
|
||||||
|
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 3.2 KiB |
|
@ -4,3 +4,4 @@ chrome.jar:
|
||||||
content/branding/logoWordmark.png (logoWordmark.png)
|
content/branding/logoWordmark.png (logoWordmark.png)
|
||||||
content/branding/logo.png (logo.png)
|
content/branding/logo.png (logo.png)
|
||||||
content/branding/favicon32.png (favicon32.png)
|
content/branding/favicon32.png (favicon32.png)
|
||||||
|
content/branding/spark.png (spark.png)
|
||||||
|
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 3.2 KiB |
|
@ -86,6 +86,8 @@
|
||||||
<div id="footer-wrapper">
|
<div id="footer-wrapper">
|
||||||
<span id="feedback" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.feedbackURL" onclick="openLink(this);" role="button">&aboutHome.giveFeedback;</span><span id="support" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.support.baseURL" onclick="openLink(this);" role="button">&aboutHome.getHelp;</span>
|
<span id="feedback" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.feedbackURL" onclick="openLink(this);" role="button">&aboutHome.giveFeedback;</span><span id="support" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.support.baseURL" onclick="openLink(this);" role="button">&aboutHome.getHelp;</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="promo"><img src="chrome://branding/content/spark.png"/><span>&aboutHome.promoSpark;</span></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- l10n hack -->
|
<!-- l10n hack -->
|
||||||
|
@ -124,6 +126,7 @@
|
||||||
function init() {
|
function init() {
|
||||||
initTabs();
|
initTabs();
|
||||||
initAddons();
|
initAddons();
|
||||||
|
initPromo();
|
||||||
}
|
}
|
||||||
|
|
||||||
function uninit() {
|
function uninit() {
|
||||||
|
@ -357,6 +360,12 @@
|
||||||
function uninitAddons() {
|
function uninitAddons() {
|
||||||
getChromeWin().Services.obs.removeObserver(updateAddons, "recommended-addons-cache-updated");
|
getChromeWin().Services.obs.removeObserver(updateAddons, "recommended-addons-cache-updated");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initPromo() {
|
||||||
|
let endDate = new Date(getChromeWin().Services.prefs.getCharPref("app.promo.spark.endDate"));
|
||||||
|
if (endDate > Date.now())
|
||||||
|
document.getElementById("promo").style.display = "block";
|
||||||
|
}
|
||||||
]]></script>
|
]]></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -8,3 +8,6 @@
|
||||||
<!ENTITY aboutHome.openAllTabs "Open all in tabs">
|
<!ENTITY aboutHome.openAllTabs "Open all in tabs">
|
||||||
<!ENTITY aboutHome.noTabs "No tabs from last time">
|
<!ENTITY aboutHome.noTabs "No tabs from last time">
|
||||||
<!ENTITY aboutHome.noAddons "No recommended add-ons">
|
<!ENTITY aboutHome.noAddons "No recommended add-ons">
|
||||||
|
|
||||||
|
<!-- LOCALIZATION NOTE: 'Firefox Spark' is the official name of the promotion and should not be translated -->
|
||||||
|
<!ENTITY aboutHome.promoSpark "Play Firefox Spark">
|
||||||
|
|
|
@ -232,3 +232,22 @@ body[dir="rtl"] {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-radius: 0 8px 8px 0;
|
border-radius: 0 8px 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#promo {
|
||||||
|
font-weight: bold;
|
||||||
|
color: rgb(254,210,13);
|
||||||
|
background-color: black;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 10px;
|
||||||
|
margin-top: 24px;
|
||||||
|
box-shadow: inset rgba(0, 0, 0, 0.2) 0 -3px 0px, rgba(0, 0, 0, 0.1) 0px 2px 0px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#promo > img {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#promo > span {
|
||||||
|
padding-left: 16px;
|
||||||
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче