File tree Expand file tree Collapse file tree 4 files changed +66
-0
lines changed Expand file tree Collapse file tree 4 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ Tomato is a Pomodoro timer extension developed to introduce chrome extensions during a GT WebDev presentation.
Original file line number Diff line number Diff line change
1
+ {
2
+ "manifest_version" : 2 ,
3
+
4
+ "name" : " Tomato" ,
5
+ "description" : " This extension is a timer based on the Pomodoro Technique" ,
6
+ "version" : " 1.0" ,
7
+
8
+ "browser_action" : {
9
+ "default_icon" : " icon.png" ,
10
+ "default_popup" : " popup.html" ,
11
+ "default_title" : " Tomato: Your Pomodoro Timer"
12
+ },
13
+ "permissions" : [
14
+ ]
15
+ }
Original file line number Diff line number Diff line change
1
+ <!doctype html>
2
+ <!--
3
+ This page is shown when the extension button is clicked, because the
4
+ "browser_action" field in manifest.json contains the "default_popup" key with
5
+ value "popup.html".
6
+ -->
7
+ < html >
8
+ < head >
9
+ <!--
10
+ - JavaScript and HTML must be in separate files: see our Content Security
11
+ - Policy documentation[1] for details and explanation.
12
+ -
13
+ - [1]: https://developer.chrome.com/extensions/contentSecurityPolicy
14
+ -->
15
+ < script src ="popup.js "> </ script >
16
+ </ head >
17
+ < body >
18
+ < div id ="container ">
19
+ < h1 > Tomato</ h1 > < small > Your Pomodoro Helper</ small >
20
+ < div class ="setting-section ">
21
+ < h2 > Pomodoro</ h2 >
22
+ < div class ="time-buttons-group ">
23
+ < button type ="button "> 15</ button >
24
+ < button type ="button "> 25</ button >
25
+ < button type ="button "> 45</ button >
26
+ </ div >
27
+ < p > minutes</ p >
28
+ </ div >
29
+ < div class ="setting-section ">
30
+ < h2 > Breaks</ h2 >
31
+ < h3 > Short</ h3 >
32
+ < div class ="time-buttons-group ">
33
+ < button type ="button "> 5</ button >
34
+ < button type ="button "> 10</ button >
35
+ < button type ="button "> 15</ button >
36
+ </ div >
37
+ < p > minutes</ p >
38
+ < h3 > Long</ h3 >
39
+ < div class ="time-buttons-group ">
40
+ < button type ="button "> 15</ button >
41
+ < button type ="button "> 20</ button >
42
+ < button type ="button "> 30</ button >
43
+ </ div >
44
+ < p > minutes</ p >
45
+ </ div >
46
+ < button type ="button " id ="timer-start "> Start</ button >
47
+ </ div >
48
+ </ body >
49
+ </ html >
50
+
You can’t perform that action at this time.
0 commit comments