Book Image

Learning Firefox OS Application Development

By : Tanay Pant
Book Image

Learning Firefox OS Application Development

By: Tanay Pant

Overview of this book

With broad compatibility, the latest in web technologies, and powerful development tools, Firefox is a great choice for both web developers and end users. Firefox OS’s promotion of HTML5 as a first class citizen opens up the walled gardens of mobile application development for web developers. It is because of this initiative that no special SDKs are required to develop for Firefox OS. This book will help you excel in the art of developing applications for Firefox OS. It sequentially covers knowledge building, skills acquisition, and practical applications. Starting with an introduction to Firefox OS, usage of WebIDE, and then the application structure, this book introduces applications of increasing complexity with each chapter. An application that measures your tapping speed, a geolocation tagging application, and a photo editing and sharing application are the three applications that will be built from scratch. You will learn about topics such as the difference between various types of Firefox OS applications, application manifest files, offline apps, and designing principles for applications. You will also learn to test and submit the applications to the marketplace and finally maintain the repository of the Firefox OS application. By the end, you will be able to develop beautifully designed, fully-fledged, and rigorously tested Firefox OS applications and also share them at the Firefox OS Marketplace.
Table of Contents (17 chapters)
Learning Firefox OS Application Development
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building FoxFoto


After going through the extensive set of mind-boggling Web APIs and activities, it's the perfect time to get our hands dirty by building an app which uses these APIs and activities collaboratively.

The application which we are going to develop is an app that edits and shares images, with additional features to create collages from different images.

The HTML file

Let's now take a look at the HTML file present at GitHub for this application from the following link: https://github.com/tanay1337/FoxFoto.

This HTML code gives you the basic markup of the app, but without the use of CSS, it generates just a pale UI.

Note

Due to the space limitations of the book, full code of CSS is not shown here. The complete CSS code file can be found at https://github.com/tanay1337/FoxFoto.

After the implementation of CSS from the preceding link, the UI can be seen, as shown in the following screenshot:

The UI shifts from pale black and white text to a sleek and intuitive version. CSS is also quite...