This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
popup.html
95 lines (92 loc) · 3.1 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html>
<head>
<style type="text/css">
body {
background: url("../img/bg.png") repeat-x #222;
padding: 10px 10px 0 10px;
}
h1 {
font-family: 'Raleway', sans-serif;
font-weight: normal;
color: #fff;
font-size: 21px;
text-shadow: 0 0 1px rgba(255,255,255,.5);
margin: 0;
}
h1 span {
font-size: 20px;
}
input[type = 'button'] {
width: 155px;
tex-align: center;
padding: 3px 0;
margin: 10px 0 0 0;
-webkit-border-radius: 2px;
border-top: 1px solid #fff;
border-left: 1px solid #fff;
border-bottom: 1px solid #444;
border-right: 1px solid #444;
background: -webkit-gradient(linear, left bottom, left top, from(rgb(150,150,150)), to(rgb(200,200,200)));
}
input[type = 'button']:hover {
background: -webkit-gradient(linear, left bottom, left top, from(rgb(150,150,150)), to(rgb(150,150,150)));
}
input[type = 'button']:active {
border-top: 1px solid #444;
border-left: 1px solid #444;
border-bottom: 1px solid #fff;
border-right: 1px solid #fff;
background: -webkit-gradient(linear, left top, left bottom, from(rgb(150,150,150)), to(rgb(200,200,200)));
}
</style>
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Raleway:100' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
<script type="text/javascript">
function toggle() {
chrome.extension.sendRequest({action: 'toggle'}, function(response) {});
chrome.extension.sendRequest({action: 'reload'}, function(response) {});
}
function options() {
if (localStorage["uncheckedUpdate"] == "true") {
chrome.tabs.create({url:chrome.extension.getURL("options.html#update")});
chrome.pageAction.setIcon({tabId: tab.id, path:"img/icons/icon19.png"});
chrome.pageAction.setTitle({tabId: tab.id, title:"Minimalist for Google Calendar Options"});
localStorage["uncheckedUpdate"] = false;
} else {
chrome.tabs.create({url:chrome.extension.getURL("options.html")});
}
}
function reload() {
chrome.extension.sendRequest({action: 'reload'}, function(response) {});
}
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21124660-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<h1>Minimalist<br /><span>Google Calendar</span></h1>
<input type="button" onclick="options()" value="Options" /><br />
<input type="button" onclick="toggle()" value="Toggle on/off" /><br />
<input type="button" onclick="reload()" value="PANIC!" />
</body>
</html>