For this section, we'll start off by transferring the to-do list app from the chapter1
folder to PhoneGap. As you may have already guessed, shifting the to-do list app to a PhoneGap version simply requires the installation of cordova.js
. Let's see how this is done in the next section.
Let's quickly get started by shifting the to-do list app from chapter1
to PhoneGap. Perform the following steps:
Change the directory to
chapter2
and navigate towww/
where your PhoneGap files are located.Change
index.html
toindex_concepts.html
.Now, copy the contents from
index.html
fromchapter1
(where the basic HTML structure for todo app resides) to our newindex.html
file.Copy
todo.js
fromtodo/
inchapter1
tojs/
inwww/
in thechapter2
folder.Your directory should look like this for todo app of chapter2:
So, as of now, your
index.html
file for this chapter should look like...