Twenty five timer

Next, we are going to create our first jQuery mobile web app. It is a simple count down app called “Twenty Five”.

Pomodoro

The idea of the app is to make use of the Pomodoro technique which suggest our brain starts losing focus on the current task after 25-30 minutes of highly concentration. So we should divide our working time into segments of 25 minutes in order to keep ourselves in the top focus and productivity state.

So we will clone the project folder we just created in last section. And change the content of the root page as the following:

1<div data-role='page' id='root'>
2  <div data-role='header'>
3    <h1>TwentyFive</h1>
4  </div>
5  <div data-role='content'>
6    <p id='timer'>00:00</p>
7  </div>
8</div>

And we got a styling for the timer in content session.

1#timer {
2  text-align: center;
3  font-size: 4em;
4  text-shadow: #fff 0 1px 0, #000 0 -2px 0;
5}

Please note that the shadow is subtle and not easy to be discovered. Otherwise it will distract the user from the content.

Twentyfive 0000

What’s next? We’re going to take a look at “Linking pages”.

overlaied image when clicked on thumbnail

Makzan | Mobile web app dev with phonegap | Table of Content