Permalink
Browse files

Modify README for totekaApp

  • Loading branch information...
1 parent 5fdadc9 commit c1c535f783340162a42b6d5742773c16b2c2656f @vestige committed Oct 7, 2012
Showing with 34,727 additions and 51,576 deletions.
  1. +2 −0 README.md
  2. +167 −0 build/mobileweb/app.js.uncompressed.js
  3. +457 −17,894 build/mobileweb/index.html
  4. +1 −594 build/mobileweb/titanium.css
  5. +456 −17,299 build/mobileweb/titanium.js
  6. +17,272 −0 build/mobileweb/titanium.js.uncompressed.js
  7. +12 −419 build/mobileweb/titanium/Ti.js
  8. +419 −0 build/mobileweb/titanium/Ti.js.uncompressed.js
  9. +2 −43 build/mobileweb/titanium/Ti/API.js
  10. +43 −0 build/mobileweb/titanium/Ti/API.js.uncompressed.js
  11. +1 −34 build/mobileweb/titanium/Ti/Accelerometer.js
  12. +34 −0 build/mobileweb/titanium/Ti/Accelerometer.js.uncompressed.js
  13. +1 −35 build/mobileweb/titanium/Ti/Analytics.js
  14. +35 −0 build/mobileweb/titanium/Ti/Analytics.js.uncompressed.js
  15. +1 −26 build/mobileweb/titanium/Ti/App.js
  16. +26 −0 build/mobileweb/titanium/Ti/App.js.uncompressed.js
  17. +2 −85 build/mobileweb/titanium/Ti/App/Properties.js
  18. +85 −0 build/mobileweb/titanium/Ti/App/Properties.js.uncompressed.js
  19. +2 −50 build/mobileweb/titanium/Ti/Blob.js
  20. +50 −0 build/mobileweb/titanium/Ti/Blob.js.uncompressed.js
  21. +1 −5 build/mobileweb/titanium/Ti/BlobStream.js
  22. +5 −0 build/mobileweb/titanium/Ti/BlobStream.js.uncompressed.js
  23. +3 −98 build/mobileweb/titanium/Ti/Buffer.js
  24. +98 −0 build/mobileweb/titanium/Ti/Buffer.js.uncompressed.js
  25. +1 −5 build/mobileweb/titanium/Ti/BufferStream.js
  26. +5 −0 build/mobileweb/titanium/Ti/BufferStream.js.uncompressed.js
  27. +3 −68 build/mobileweb/titanium/Ti/Codec.js
  28. +68 −0 build/mobileweb/titanium/Ti/Codec.js.uncompressed.js
  29. +5 −208 build/mobileweb/titanium/Ti/Facebook.js
  30. +208 −0 build/mobileweb/titanium/Ti/Facebook.js.uncompressed.js
  31. +3 −66 build/mobileweb/titanium/Ti/Facebook/LoginButton.js
  32. +66 −0 build/mobileweb/titanium/Ti/Facebook/LoginButton.js.uncompressed.js
  33. +3 −88 build/mobileweb/titanium/Ti/Filesystem.js
  34. +88 −0 build/mobileweb/titanium/Ti/Filesystem.js.uncompressed.js
  35. +1 −7 build/mobileweb/titanium/Ti/Filesystem/File.js
  36. +7 −0 build/mobileweb/titanium/Ti/Filesystem/File.js.uncompressed.js
  37. +1 −5 build/mobileweb/titanium/Ti/Filesystem/FileStream.js
  38. +5 −0 build/mobileweb/titanium/Ti/Filesystem/FileStream.js.uncompressed.js
  39. +5 −219 build/mobileweb/titanium/Ti/Geolocation.js
  40. +219 −0 build/mobileweb/titanium/Ti/Geolocation.js.uncompressed.js
  41. +3 −92 build/mobileweb/titanium/Ti/Gesture.js
  42. +92 −0 build/mobileweb/titanium/Ti/Gesture.js.uncompressed.js
  43. +2 −47 build/mobileweb/titanium/Ti/IOStream.js
  44. +47 −0 build/mobileweb/titanium/Ti/IOStream.js.uncompressed.js
  45. +3 −82 build/mobileweb/titanium/Ti/Locale.js
  46. +82 −0 build/mobileweb/titanium/Ti/Locale.js.uncompressed.js
  47. +1 −27 build/mobileweb/titanium/Ti/Map.js
  48. +27 −0 build/mobileweb/titanium/Ti/Map.js.uncompressed.js
  49. +2 −51 build/mobileweb/titanium/Ti/Map/Annotation.js
  50. +51 −0 build/mobileweb/titanium/Ti/Map/Annotation.js.uncompressed.js
  51. +1 −7 build/mobileweb/titanium/Ti/Map/View.js
  52. +7 −0 build/mobileweb/titanium/Ti/Map/View.js.uncompressed.js
  53. +2 −58 build/mobileweb/titanium/Ti/Media.js
  54. +58 −0 build/mobileweb/titanium/Ti/Media.js.uncompressed.js
  55. +1 −6 build/mobileweb/titanium/Ti/Media/AudioPlayer.js
  56. +6 −0 build/mobileweb/titanium/Ti/Media/AudioPlayer.js.uncompressed.js
  57. +1 −6 build/mobileweb/titanium/Ti/Media/Sound.js
  58. +6 −0 build/mobileweb/titanium/Ti/Media/Sound.js.uncompressed.js
  59. +11 −301 build/mobileweb/titanium/Ti/Media/VideoPlayer.js
  60. +301 −0 build/mobileweb/titanium/Ti/Media/VideoPlayer.js.uncompressed.js
  61. +3 −82 build/mobileweb/titanium/Ti/Network.js
  62. +82 −0 build/mobileweb/titanium/Ti/Network.js.uncompressed.js
  63. +7 −176 build/mobileweb/titanium/Ti/Network/HTTPClient.js
  64. +176 −0 build/mobileweb/titanium/Ti/Network/HTTPClient.js.uncompressed.js
  65. +4 −115 build/mobileweb/titanium/Ti/Platform.js
  66. +115 −0 build/mobileweb/titanium/Ti/Platform.js.uncompressed.js
  67. +1 −27 build/mobileweb/titanium/Ti/Platform/DisplayCaps.js
  68. +27 −0 build/mobileweb/titanium/Ti/Platform/DisplayCaps.js.uncompressed.js
  69. +12 −393 build/mobileweb/titanium/Ti/UI.js
  70. +393 −0 build/mobileweb/titanium/Ti/UI.js.uncompressed.js
  71. +3 −96 build/mobileweb/titanium/Ti/UI/2DMatrix.js
  72. +96 −0 build/mobileweb/titanium/Ti/UI/2DMatrix.js.uncompressed.js
  73. +5 −156 build/mobileweb/titanium/Ti/UI/ActivityIndicator.js
  74. +156 −0 build/mobileweb/titanium/Ti/UI/ActivityIndicator.js.uncompressed.js
  75. +1 −12 build/mobileweb/titanium/Ti/UI/ActivityIndicatorStyle.js
  76. +12 −0 build/mobileweb/titanium/Ti/UI/ActivityIndicatorStyle.js.uncompressed.js
  77. +3 −111 build/mobileweb/titanium/Ti/UI/AlertDialog.js
  78. +111 −0 build/mobileweb/titanium/Ti/UI/AlertDialog.js.uncompressed.js
  79. +1 −36 build/mobileweb/titanium/Ti/UI/Animation.js
  80. +36 −0 build/mobileweb/titanium/Ti/UI/Animation.js.uncompressed.js
  81. +6 −151 build/mobileweb/titanium/Ti/UI/Button.js
  82. +151 −0 build/mobileweb/titanium/Ti/UI/Button.js.uncompressed.js
  83. +2 −69 build/mobileweb/titanium/Ti/UI/Clipboard.js
  84. +69 −0 build/mobileweb/titanium/Ti/UI/Clipboard.js.uncompressed.js
  85. +2 −58 build/mobileweb/titanium/Ti/UI/EmailDialog.js
  86. +58 −0 build/mobileweb/titanium/Ti/UI/EmailDialog.js.uncompressed.js
  87. +7 −259 build/mobileweb/titanium/Ti/UI/ImageView.js
  88. +259 −0 build/mobileweb/titanium/Ti/UI/ImageView.js.uncompressed.js
  89. +5 −155 build/mobileweb/titanium/Ti/UI/Label.js
  90. +155 −0 build/mobileweb/titanium/Ti/UI/Label.js.uncompressed.js
  91. +1 −10 build/mobileweb/titanium/Ti/UI/MobileWeb.js
  92. +10 −0 build/mobileweb/titanium/Ti/UI/MobileWeb.js.uncompressed.js
  93. +7 −227 build/mobileweb/titanium/Ti/UI/MobileWeb/NavigationGroup.js
  94. +227 −0 build/mobileweb/titanium/Ti/UI/MobileWeb/NavigationGroup.js.uncompressed.js
  95. +1 −10 build/mobileweb/titanium/Ti/UI/MobileWeb/TableViewSeparatorStyle.js
  96. +10 −0 build/mobileweb/titanium/Ti/UI/MobileWeb/TableViewSeparatorStyle.js.uncompressed.js
  97. +3 −102 build/mobileweb/titanium/Ti/UI/OptionDialog.js
  98. +102 −0 build/mobileweb/titanium/Ti/UI/OptionDialog.js.uncompressed.js
  99. +8 −279 build/mobileweb/titanium/Ti/UI/Picker.js
  100. +279 −0 build/mobileweb/titanium/Ti/UI/Picker.js.uncompressed.js
  101. +9 −305 build/mobileweb/titanium/Ti/UI/PickerColumn.js
  102. +305 −0 build/mobileweb/titanium/Ti/UI/PickerColumn.js.uncompressed.js
  103. +1 −24 build/mobileweb/titanium/Ti/UI/PickerRow.js
  104. +24 −0 build/mobileweb/titanium/Ti/UI/PickerRow.js.uncompressed.js
  105. +4 −117 build/mobileweb/titanium/Ti/UI/ProgressBar.js
  106. +117 −0 build/mobileweb/titanium/Ti/UI/ProgressBar.js.uncompressed.js
  107. +5 −179 build/mobileweb/titanium/Ti/UI/ScrollView.js
  108. +179 −0 build/mobileweb/titanium/Ti/UI/ScrollView.js.uncompressed.js
  109. +11 −390 build/mobileweb/titanium/Ti/UI/ScrollableView.js
  110. +390 −0 build/mobileweb/titanium/Ti/UI/ScrollableView.js.uncompressed.js
  111. +5 −141 build/mobileweb/titanium/Ti/UI/Slider.js
  112. +141 −0 build/mobileweb/titanium/Ti/UI/Slider.js.uncompressed.js
  113. +6 −172 build/mobileweb/titanium/Ti/UI/Switch.js
  114. +172 −0 build/mobileweb/titanium/Ti/UI/Switch.js.uncompressed.js
  115. +4 −126 build/mobileweb/titanium/Ti/UI/Tab.js
  116. +126 −0 build/mobileweb/titanium/Ti/UI/Tab.js.uncompressed.js
  117. +9 −342 build/mobileweb/titanium/Ti/UI/TabGroup.js
  118. +342 −0 build/mobileweb/titanium/Ti/UI/TabGroup.js.uncompressed.js
  119. +12 −384 build/mobileweb/titanium/Ti/UI/TableView.js
  120. +384 −0 build/mobileweb/titanium/Ti/UI/TableView.js.uncompressed.js
  121. +5 −163 build/mobileweb/titanium/Ti/UI/TableViewRow.js
  122. +163 −0 build/mobileweb/titanium/Ti/UI/TableViewRow.js.uncompressed.js
  123. +7 −205 build/mobileweb/titanium/Ti/UI/TableViewSection.js
  124. +205 −0 build/mobileweb/titanium/Ti/UI/TableViewSection.js.uncompressed.js
  125. +2 −40 build/mobileweb/titanium/Ti/UI/TextArea.js
  126. +40 −0 build/mobileweb/titanium/Ti/UI/TextArea.js.uncompressed.js
  127. +4 −131 build/mobileweb/titanium/Ti/UI/TextField.js
  128. +131 −0 build/mobileweb/titanium/Ti/UI/TextField.js.uncompressed.js
  129. +2 −83 build/mobileweb/titanium/Ti/UI/View.js
  130. +83 −0 build/mobileweb/titanium/Ti/UI/View.js.uncompressed.js
  131. +7 −247 build/mobileweb/titanium/Ti/UI/WebView.js
  132. +247 −0 build/mobileweb/titanium/Ti/UI/WebView.js.uncompressed.js
  133. +3 −96 build/mobileweb/titanium/Ti/UI/Window.js
  134. +96 −0 build/mobileweb/titanium/Ti/UI/Window.js.uncompressed.js
  135. +12 −302 build/mobileweb/titanium/Ti/Utils.js
  136. +302 −0 build/mobileweb/titanium/Ti/Utils.js.uncompressed.js
  137. +3 −64 build/mobileweb/titanium/Ti/XML.js
  138. +64 −0 build/mobileweb/titanium/Ti/XML.js.uncompressed.js
  139. +1 −27 build/mobileweb/titanium/Ti/Yahoo.js
  140. +27 −0 build/mobileweb/titanium/Ti/Yahoo.js.uncompressed.js
  141. +2 −47 build/mobileweb/titanium/Ti/_.js
  142. +47 −0 build/mobileweb/titanium/Ti/_.js.uncompressed.js
  143. +2 −65 build/mobileweb/titanium/Ti/_/Evented.js
  144. +65 −0 build/mobileweb/titanium/Ti/_/Evented.js.uncompressed.js
  145. +16 −523 build/mobileweb/titanium/Ti/_/Filesystem/Local.js
  146. +523 −0 build/mobileweb/titanium/Ti/_/Filesystem/Local.js.uncompressed.js
  147. +3 −70 build/mobileweb/titanium/Ti/_/Gestures/DoubleTap.js
  148. +70 −0 build/mobileweb/titanium/Ti/_/Gestures/DoubleTap.js.uncompressed.js
  149. +4 −81 build/mobileweb/titanium/Ti/_/Gestures/Dragging.js
  150. +81 −0 build/mobileweb/titanium/Ti/_/Gestures/Dragging.js.uncompressed.js
  151. +2 −70 build/mobileweb/titanium/Ti/_/Gestures/GestureRecognizer.js
  152. +70 −0 build/mobileweb/titanium/Ti/_/Gestures/GestureRecognizer.js.uncompressed.js
  153. +3 −59 build/mobileweb/titanium/Ti/_/Gestures/LongPress.js
  154. +59 −0 build/mobileweb/titanium/Ti/_/Gestures/LongPress.js.uncompressed.js
  155. +4 −101 build/mobileweb/titanium/Ti/_/Gestures/Pinch.js
  156. +101 −0 build/mobileweb/titanium/Ti/_/Gestures/Pinch.js.uncompressed.js
  157. +2 −61 build/mobileweb/titanium/Ti/_/Gestures/SingleTap.js
  158. +61 −0 build/mobileweb/titanium/Ti/_/Gestures/SingleTap.js.uncompressed.js
  159. +3 −77 build/mobileweb/titanium/Ti/_/Gestures/Swipe.js
  160. +77 −0 build/mobileweb/titanium/Ti/_/Gestures/Swipe.js.uncompressed.js
  161. +1 −21 build/mobileweb/titanium/Ti/_/Gestures/TouchCancel.js
  162. +21 −0 build/mobileweb/titanium/Ti/_/Gestures/TouchCancel.js.uncompressed.js
  163. +1 −25 build/mobileweb/titanium/Ti/_/Gestures/TouchEnd.js
  164. +25 −0 build/mobileweb/titanium/Ti/_/Gestures/TouchEnd.js.uncompressed.js
  165. +1 −25 build/mobileweb/titanium/Ti/_/Gestures/TouchMove.js
  166. +25 −0 build/mobileweb/titanium/Ti/_/Gestures/TouchMove.js.uncompressed.js
  167. +1 −25 build/mobileweb/titanium/Ti/_/Gestures/TouchStart.js
  168. +25 −0 build/mobileweb/titanium/Ti/_/Gestures/TouchStart.js.uncompressed.js
  169. +6 −133 build/mobileweb/titanium/Ti/_/Gestures/TwoFingerTap.js
  170. +133 −0 build/mobileweb/titanium/Ti/_/Gestures/TwoFingerTap.js.uncompressed.js
  171. +1 −15 build/mobileweb/titanium/Ti/_/Layouts.js
  172. +15 −0 build/mobileweb/titanium/Ti/_/Layouts.js.uncompressed.js
  173. +4 −94 build/mobileweb/titanium/Ti/_/Layouts/Base.js
  174. +94 −0 build/mobileweb/titanium/Ti/_/Layouts/Base.js.uncompressed.js
  175. +11 −447 build/mobileweb/titanium/Ti/_/Layouts/Composite.js
  176. +447 −0 build/mobileweb/titanium/Ti/_/Layouts/Composite.js.uncompressed.js
  177. +11 −432 build/mobileweb/titanium/Ti/_/Layouts/ConstrainingHorizontal.js
  178. +432 −0 build/mobileweb/titanium/Ti/_/Layouts/ConstrainingHorizontal.js.uncompressed.js
  179. +11 −433 build/mobileweb/titanium/Ti/_/Layouts/ConstrainingVertical.js
  180. +433 −0 build/mobileweb/titanium/Ti/_/Layouts/ConstrainingVertical.js.uncompressed.js
  181. +10 −389 build/mobileweb/titanium/Ti/_/Layouts/Horizontal.js
  182. +389 −0 build/mobileweb/titanium/Ti/_/Layouts/Horizontal.js.uncompressed.js
  183. +9 −369 build/mobileweb/titanium/Ti/_/Layouts/Vertical.js
  184. +369 −0 build/mobileweb/titanium/Ti/_/Layouts/Vertical.js.uncompressed.js
  185. +16 −442 build/mobileweb/titanium/Ti/_/Map/Google.js
  186. +442 −0 build/mobileweb/titanium/Ti/_/Map/Google.js.uncompressed.js
  187. +3 −101 build/mobileweb/titanium/Ti/_/Promise.js
  188. +101 −0 build/mobileweb/titanium/Ti/_/Promise.js.uncompressed.js
  189. +27 −977 build/mobileweb/titanium/Ti/_/UI/Element.js
  190. +977 −0 build/mobileweb/titanium/Ti/_/UI/Element.js.uncompressed.js
  191. +3 −90 build/mobileweb/titanium/Ti/_/UI/FontWidget.js
  192. +90 −0 build/mobileweb/titanium/Ti/_/UI/FontWidget.js.uncompressed.js
  193. +15 −446 build/mobileweb/titanium/Ti/_/UI/KineticScrollView.js
  194. +446 −0 build/mobileweb/titanium/Ti/_/UI/KineticScrollView.js.uncompressed.js
  195. +2 −62 build/mobileweb/titanium/Ti/_/UI/SuperView.js
  196. +62 −0 build/mobileweb/titanium/Ti/_/UI/SuperView.js.uncompressed.js
  197. +4 −147 build/mobileweb/titanium/Ti/_/UI/TextBox.js
  198. +147 −0 build/mobileweb/titanium/Ti/_/UI/TextBox.js.uncompressed.js
  199. +1 −28 build/mobileweb/titanium/Ti/_/UI/WebViewBridge.js
  200. +1 −0 build/mobileweb/titanium/Ti/_/UI/WebViewBridge.js.uncompressed.js
  201. +1 −0 build/mobileweb/titanium/Ti/_/UI/WebViewBridge.js.uncompressed.js.uncompressed.js
  202. +1 −6 build/mobileweb/titanium/Ti/_/UI/Widget.js
  203. +6 −0 build/mobileweb/titanium/Ti/_/UI/Widget.js.uncompressed.js
  204. +5 −175 build/mobileweb/titanium/Ti/_/analytics.js
  205. +175 −0 build/mobileweb/titanium/Ti/_/analytics.js.uncompressed.js
  206. +1 −6 build/mobileweb/titanium/Ti/_/browser.js
  207. +6 −0 build/mobileweb/titanium/Ti/_/browser.js.uncompressed.js
  208. +1 −32 build/mobileweb/titanium/Ti/_/css.js
  209. +32 −0 build/mobileweb/titanium/Ti/_/css.js.uncompressed.js
  210. +6 −299 build/mobileweb/titanium/Ti/_/declare.js
  211. +299 −0 build/mobileweb/titanium/Ti/_/declare.js.uncompressed.js
  212. +4 −160 build/mobileweb/titanium/Ti/_/dom.js
  213. +160 −0 build/mobileweb/titanium/Ti/_/dom.js.uncompressed.js
  214. +2 −62 build/mobileweb/titanium/Ti/_/encoding.js
  215. +62 −0 build/mobileweb/titanium/Ti/_/encoding.js.uncompressed.js
  216. +1 −18 build/mobileweb/titanium/Ti/_/event.js
  217. +18 −0 build/mobileweb/titanium/Ti/_/event.js.uncompressed.js
  218. +1 −55 build/mobileweb/titanium/Ti/_/has.js
  219. +55 −0 build/mobileweb/titanium/Ti/_/has.js.uncompressed.js
  220. +1 −17 build/mobileweb/titanium/Ti/_/image.js
  221. +17 −0 build/mobileweb/titanium/Ti/_/image.js.uncompressed.js
  222. +2 −54 build/mobileweb/titanium/Ti/_/include.js
  223. +54 −0 build/mobileweb/titanium/Ti/_/include.js.uncompressed.js
  224. +6 −202 build/mobileweb/titanium/Ti/_/lang.js
  225. +202 −0 build/mobileweb/titanium/Ti/_/lang.js.uncompressed.js
  226. +2 −64 build/mobileweb/titanium/Ti/_/ready.js
  227. +64 −0 build/mobileweb/titanium/Ti/_/ready.js.uncompressed.js
  228. +10 −361 build/mobileweb/titanium/Ti/_/string.js
  229. +361 −0 build/mobileweb/titanium/Ti/_/string.js.uncompressed.js
  230. +2 −74 build/mobileweb/titanium/Ti/_/style.js
  231. +74 −0 build/mobileweb/titanium/Ti/_/style.js.uncompressed.js
  232. +1 −33 build/mobileweb/titanium/Ti/_/text.js
  233. +33 −0 build/mobileweb/titanium/Ti/_/text.js.uncompressed.js
  234. +232 −116 build/mobileweb/titanium/filesystem.registry
View
@@ -4,5 +4,7 @@
timer application
+---
+直下にあるtotekaApp.tarを展開して、index.htmlを開けば動かすことができます(たぶん)
@@ -0,0 +1,167 @@
+Titanium.UI.setBackgroundColor('#000');
+
+var ground = Ti.UI.createWindow({
+ layout: 'vertical'
+});
+
+var top = Ti.UI.createView({
+ backgroundColor: '#333',
+ height: '20%'
+});
+
+var title = Ti.UI.createLabel({
+ text: 'toteka timer',
+ textAlign: 'center',
+ color: '#ddd',
+ font:{fontSize: '100%'},
+})
+
+var contents = Ti.UI.createView({
+ backgroundColor: '#000',
+ height: '70%',
+ layout: 'vertical',
+});
+
+var qa = Ti.UI.createLabel({
+ text: '',
+ color: 'white',
+ font:{fontSize: '70%'},
+});
+
+var count = Ti.UI.createLabel({
+ text: '00:00',
+ color: '#444',
+ top: 20,
+ font:{fontSize: '250%'},
+});
+
+var footer = Ti.UI.createView({
+ backgroundColor: '#333',
+ height: '10%'
+});
+
+var toolview = Ti.UI.createView({
+ backgroundColor: '#333',
+ layout: 'horizontal',
+ left: 20,
+ top: 10
+});
+
+var start = Ti.UI.createButton({
+ title: 'start',
+ height: 42,
+});
+
+var stop = Ti.UI.createButton({
+ title: 'stop',
+ left: 10,
+ height: 42,
+});
+
+var clear = Ti.UI.createButton({
+ title: 'clear',
+ left: 10,
+ height: 42,
+});
+
+var spanSwitch = Ti.UI.createSwitch({
+ left: 10,
+ value: true
+});
+
+function date_format(counting) {
+ var min = parseInt(counting / 60);
+ var sec = counting % 60;
+ var disp_time = '';
+
+ if (min < 10) {
+ disp_time += '0';
+ }
+ disp_time += min;
+ disp_time += ':';
+ if (sec < 10) {
+ disp_time += '0';
+ }
+ disp_time += sec;
+ return disp_time;
+};
+
+function update () {
+ var tmp_time = new Date();
+
+ if (tmp_time.getSeconds() != past_time.getSeconds()) {
+ counting -= 1;
+ if (counting < 0) {
+ qa.text = 'Finish!';
+ count.text = "88888888";
+ stop.fireEvent('click');
+ } else {
+ if (counting == remain) {
+ contents.backgroundColor = '#777';
+ qa.text = 'Question?';
+ }
+ count.text = date_format(counting);
+ past_time = tmp_time;
+ timer_id = setTimeout("update()", 300);
+ }
+ } else {
+ timer_id = setTimeout("update()", 300);
+ }
+};
+
+var past_time;
+var counting;
+var timer_id;
+var pause = 0;
+
+function timerClear(){
+ var start_time = new Date();
+ past_time = start_time;
+ if (spanSwitch.value) {
+ counting = 25 * 60;
+ } else {
+ counting = 15 * 60;
+ }
+ remain = 5 * 60;
+ count.text = date_format(counting);
+ qa.text = '';
+ contents.backgroundColor = '#000';
+ pause = 0;
+};
+
+clear.addEventListener('click', function (){
+ timerClear();
+});
+
+start.addEventListener('click', function () {
+ if (pause === 0) {
+ timerClear();
+ } else {
+ var tmp_time = new Date();
+ past_time = tmp_time;
+ }
+ pause = 0;
+ timer_id = setTimeout("update()", 300);
+});
+
+stop.addEventListener('click', function () {
+ clearTimeout(timer_id);
+ pause = 1;
+});
+
+top.add(title);
+contents.add(qa);
+contents.add(count);
+
+toolview.add(start);
+toolview.add(stop);
+toolview.add(clear);
+toolview.add(spanSwitch);
+footer.add(toolview);
+
+ground.add(top);
+ground.add(contents);
+ground.add(footer);
+ground.open();
+
+
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c1c535f

Please sign in to comment.