Skip to content

Commit

Permalink
Update : Finish Label update timminggit
Browse files Browse the repository at this point in the history
  • Loading branch information
vestige committed Oct 7, 2012
1 parent bc25f81 commit 5bdb3cd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
17 changes: 9 additions & 8 deletions Resources/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ var ground = Ti.UI.createWindow({

var top = Ti.UI.createView({
backgroundColor: '#333',
height: 100
height: '20%'
});

var title = Ti.UI.createLabel({
text: 'toteka timer',
textAlign: 'center',
color: '#ddd',
height: '120%',
font:{fontSize: '100%'},
})

var contents = Ti.UI.createView({
Expand All @@ -35,12 +35,13 @@ var qa = Ti.UI.createLabel({
var count = Ti.UI.createLabel({
text: '88:88',
color: '#444',
font:{fontSize: '200%'},
top: 20,
font:{fontSize: '250%'},
});

var footer = Ti.UI.createView({
backgroundColor: '#333',
height: 50
height: '10%'
});

var toolview = Ti.UI.createView({
Expand Down Expand Up @@ -81,17 +82,17 @@ function date_format(counting) {
disp_time += sec;
console.log(disp_time);
return disp_time;
}
};

function update () {
var tmp_time = new Date();

if (tmp_time.getSeconds() - past_time.getSeconds() >= 1) {
if (tmp_time.getSeconds() != past_time.getSeconds()) {
counting -= 1;
if (counting < 0) {
stop.fireEvent('click');
qa.text = '';
count.text = "Finish";
stop.fireEvent('click');
} else {
if (counting == remain) {
contents.backgroundColor = '#777';
Expand Down Expand Up @@ -121,7 +122,7 @@ function timerClear(){
qa.text = '';
contents.backgroundColor = '#000';
pause = 0;
}
};

clear.addEventListener('click', function (){
timerClear();
Expand Down
2 changes: 1 addition & 1 deletion build/iphone/build/build.log
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ reporting an issue to help us understand your environment, build settings
and aid in debugging. Please attach this log to any issue that you report.
================================================================================

Starting build at 10/06/12 22:20
Starting build at 10/07/12 19:03

Build details:

Expand Down
Binary file removed build/iphone/lib/libTiCore.a
Binary file not shown.
1 change: 1 addition & 0 deletions build/iphone/lib/libTiCore.a
17 changes: 9 additions & 8 deletions build/mobileweb/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ var ground = Ti.UI.createWindow({

var top = Ti.UI.createView({
backgroundColor: '#333',
height: 100
height: '20%'
});

var title = Ti.UI.createLabel({
text: 'toteka timer',
textAlign: 'center',
color: '#ddd',
height: '120%',
font:{fontSize: '100%'},
})

var contents = Ti.UI.createView({
Expand All @@ -35,12 +35,13 @@ var qa = Ti.UI.createLabel({
var count = Ti.UI.createLabel({
text: '88:88',
color: '#444',
font:{fontSize: '200%'},
top: 20,
font:{fontSize: '250%'},
});

var footer = Ti.UI.createView({
backgroundColor: '#333',
height: 50
height: '10%'
});

var toolview = Ti.UI.createView({
Expand Down Expand Up @@ -81,17 +82,17 @@ function date_format(counting) {
disp_time += sec;
console.log(disp_time);
return disp_time;
}
};

function update () {
var tmp_time = new Date();

if (tmp_time.getSeconds() - past_time.getSeconds() >= 1) {
if (tmp_time.getSeconds() != past_time.getSeconds()) {
counting -= 1;
if (counting < 0) {
stop.fireEvent('click');
qa.text = '';
count.text = "Finish";
stop.fireEvent('click');
} else {
if (counting == remain) {
contents.backgroundColor = '#777';
Expand Down Expand Up @@ -121,7 +122,7 @@ function timerClear(){
qa.text = '';
contents.backgroundColor = '#000';
pause = 0;
}
};

clear.addEventListener('click', function (){
timerClear();
Expand Down
4 changes: 2 additions & 2 deletions build/mobileweb/titanium/filesystem.registry
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ts 1349592820000
ts 1349606178000
Default-Landscape.jpg 36232
Default-Portrait.jpg 28479
Default.jpg 17184
KS_nav_ui.png 1158
KS_nav_views.png 1074
app.js 2802
app.js 2824
appicon.png 19109
apple-touch-icon-114x114-precomposed.png 15820
apple-touch-icon-57x57-precomposed.png 6790
Expand Down
2 changes: 1 addition & 1 deletion tiapp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ti:app xmlns:ti="http://ti.appcelerator.org">
<deployment-targets>
<target device="mobileweb">true</target>
<target device="iphone">true</target>
<target device="iphone">false</target>
<target device="ipad">false</target>
<target device="android">false</target>
<target device="blackberry">false</target>
Expand Down

0 comments on commit 5bdb3cd

Please sign in to comment.