Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By : Kerri Shotts
Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By: Kerri Shotts

Overview of this book

<p>PhoneGap allows you to use your existing knowledge of HTML, CSS, and JavaScript to create useful and exciting mobile applications.<br /><br />This book will present you with 12 exciting projects that will introduce you to the dynamic world of app development in PhoneGap. Starting with their design and following through to their completion, you will develop real-world mobile applications. Each app uses a combination of core PhoneGap technologies, plugins, and various frameworks covering the necessary concepts you can use to create many more great apps for mobile devices.</p>
Table of Contents (21 chapters)
PhoneGap 3.x Mobile Application Development HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Modifying the Options view


At this point, we're nearly ready to start using Parse. However, before we can, we need a mechanism to identify players; simply submitting a score does no good if there isn't a name attached to it. Furthermore, we should be certain that users want to participate in this global leader-board. As such, we need to modify the Options view so that it can allow the user to choose a screen name and opt-in to the submission of scores online.

When done, we'll have a view that looks like what is shown in the following screenshot:

Getting on with it

This requires work in every file related to the Options view. Let's start in the template at www/html/optionsView.html. I've highlighted the changes:

<html>
  <body>
    <div class="ui-scroll-container">
      <div class="control-scheme action-group">
        <div class="control-scheme-tilt button">%TILT%</div>
        <div class="control-scheme-slide button">%SLIDE%</div>
        &lt...