Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #32793 from KevinGrandon/bug_1217674_update_b2gdro…
Browse files Browse the repository at this point in the history
…id_text

Bug 1217674 - [B2gdroid] Follow-up, update branding
  • Loading branch information
KevinGrandon committed Oct 29, 2015
2 parents 4ecb77a + ee31fc3 commit b7f93d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
10 changes: 6 additions & 4 deletions distros/b2gdroid/apps/ftu/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="theme-color" content="#eeeeee">
<link rel="stylesheet" href="style/app.css">

<title>Welcome to B2GDroid</title>
<title>Welcome to Firefox OS developer preview</title>

<!-- Localization -->
<meta name="defaultLanguage" content="en-US">
Expand All @@ -23,9 +23,11 @@
<body class="theme-settings">
<section>
<h1 data-l10n-id="welcome"></h1>
<p data-l10n-id="welcomeBody"></p>
<p>
<span data-l10n-id="getInvolved"></span> <a class="external-link" href="https://www.mozilla.org/contribute">https://www.mozilla.org/contribute</a>
<p data-l10n-id="welcomeBody1"></p>
<p data-l10n-id="welcomeBody2"></p>
<p data-l10n-id="welcomeBody3">
<a class="external-link" href="https://www.mozilla.org/contribute"></a>
<a class="external-link" href="https://github.com/mozilla-b2g/gaia"></a>
</p>

<gaia-buttons class="nav">
Expand Down
10 changes: 6 additions & 4 deletions distros/b2gdroid/apps/ftu/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
window.close();
});

var link = document.querySelector('.external-link');
link.addEventListener('click', e => {
e.preventDefault();
window.open(e.target.href, '', 'dialog');
var links = document.querySelectorAll('.external-link');
Array.slice(links).forEach(link => {
link.addEventListener('click', e => {
e.preventDefault();
window.open(e.target.href, '', 'dialog');
});
});

}());
6 changes: 4 additions & 2 deletions distros/b2gdroid/apps/ftu/locales/ftu-droid.en-US.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
welcome=Welcome
welcomeBody=Welcome to B2GDroid, an experiment from Mozilla that lets you experience Firefox OS. B2GDroid is an early preview and we’d love your help to shape the future of the Web.
getInvolved=To find out how to get involved, visit:
welcomeBody1=Welcome to the Firefox OS developer preview, an experimental Android app from Mozilla that lets you experience Firefox OS.
welcomeBody2=We would love for you to get involved in shaping the future of the Web.
# LOCALIZATION NOTE: Keep the order of these links the same as in en-US so the hrefs do not get mixed up.
welcomeBody3=To find out how, visit: <a>https://www.mozilla.org/contribute</a> or just grab the source code: <a>https://github.com/mozilla-b2g/gaia</a>
done=Done

0 comments on commit b7f93d8

Please sign in to comment.