-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookmarklet.php
264 lines (216 loc) · 9.61 KB
/
bookmarklet.php
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<title>pungle - bookmarklet</title>
<meta name="description" content="this is your sweet bookmarklet tools">
<meta name="author" content="pungle.me">
<?php require("include/head.php"); ?>
<!-- !!MUST SET THIS IMPORTANT!! -->
<link rel="canonical" href="http://pungle.me/bookmarklet/" />
<style type="text/css">
html, body {
padding: 0;
margin: 0;
overflow: hidden;
}
body { background: transparent; }
#content {
width: 474px;
padding: 0 8px;
margin-top: 10px;
}
.row {
width: 474px;
margin: 0;
}
.dribbble { margin: 3px; line-height: 16px; float: left; }
#bookmarkletUtility {
margin: 4px;
margin-bottom: 8px;
}
#quickSearch {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: #FFF url('/images/magnifying_glass.gif') 96% center no-repeat;
/* -webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
-moz-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); */
padding: 6px 6px 4px;
color: #444;
display: inline-block;
width: 292px;
height: 22px;
line-height: 22px;
margin-right: 5px;
}
#addRemoveStores {
background: url('/images/addremovestores148x36.png') 0 0;
display: inline-block;
vertical-align: middle;
margin-left: 5px;
width: 148px;
height: 36px;
text-indent: -99999px;
}
#addRemoveStores:hover {
background: url('/images/addremovestores148x36.png') 148px 0;
}
#headerbook {
background: transparent url('/images/bookmarklet_hdr_bg.gif') repeat-x;
width: 100%;
height: 53px;
line-height: 53px;
margin: 0;
position: relative;
}
.headerBannerInterior {
margin: 6px 10px;
}
#headerbook #mbp #mbpRating {
position: static;
padding: 3px 0 3px 0;
margin: 0 6px 0 4px;
height: 23px;
width: 80px;
font-size: 14px;
line-height: 23px;
}
#storeBtnFrame {
background: #e3e3e3;
display: inline-block;
border: 1px solid #bbb;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: inset 0 0 1px 1px #f6f6f6;
-webkit-box-shadow: inset 0 0 1px 1px #f6f6f6;
box-shadow: inset 0 0 1px 1px #f6f6f6;
color: #333;
font-family: "helvetica neue", helvetica, arial, sans-serif;
font-size: 18px;
font-weight: bold;
line-height: 58px;
padding: 8px 0 9px;
text-shadow: 0 1px 0 #fff;
margin: 6px 3px;
margin-right: 8px;
}
#storeBtn {
display: block;
background: #ff4ec2;
background: -moz-linear-gradient(top, #ff4ec2 0%, #ed3cb0 100%);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff4ec2), to(#ed3cb0));
border: 1px solid #d0359b;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
/* -moz-box-shadow: inset 0 1px 0 0 #96ca6d;
-webkit-box-shadow: inset 0 1px 0 0 #96ca6d;
box-shadow: inset 0 1px 0 0 #96ca6d; */
color: #fff;
font-family: "helvetica neue", helvetica, arial, sans-serif;
font-size: 14px;
font-weight: bold;
line-height: 23px;
padding: 3px 8px;
margin: 0 4px 0 4px;
text-align: center;
text-shadow: 0 -1px 0 #8f216a;
height: 23px;
}
#storeBtn:hover {
background: #ff59c5;
background: -moz-linear-gradient(top, #ff59c5 0%, #f73eb6 100%);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff59c5), to(#f73eb6));
cursor: pointer;
}
#storeBtn:active {
border: 1px solid #db37a2;
-moz-box-shadow: inset 0 0 8px 4px #e339a7, 0 1px 0 0 #eee;
-webkit-box-shadow: inset 0 0 8px 4px #e339a7, 0 1px 0 0 #eee;
box-shadow: inset 0 0 8px 4px #e339a7, 0 1px 0 0 #eee;
}
#headerbook #mbp { height: 31px; width: 90px; float: right; margin: 6px 3px; padding: 4px 0 4px 0; }
#headerbook #storeBtnFrame { height: 31px; float: right; padding: 4px 0 4px 0; }
.dribbble.smallButton { font-size: 10px; line-height: 16px; }
#causeIconFrame {
display: inline-block;
background: #e3e3e3;
float: left;
border: 1px solid #bbb;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: inset 0 0 1px 1px #f6f6f6;
-webkit-box-shadow: inset 0 0 1px 1px #f6f6f6;
box-shadow: inset 0 0 1px 1px #f6f6f6;
padding: 6px;
margin: 8px;
}
#causeIcon {
display: block;
width: 24px;
height: 24px;
text-indent: -999999px;
}
.EMP { background: url('/images/ca_emp_ico24x24.png') 0 0 no-repeat; }
.POT { background: url('/images/ca_water_ico24x24.png') 0 0 no-repeat; }
.TEC { background: url('/images/ca_tech_ico24x24.png') 0 0 no-repeat; }
.NAT { background: url('/images/ca_nature_ico24x24.png') 0 0 no-repeat; }
.EDU { background: url('/images/ca_edu_ico24x24.png') 0 0 no-repeat; }
.VAC { background: url('/images/ca_vacc_ico24x24.png') 0 0 no-repeat; }
.CLE { background: url('/images/ca_energy_ico24x24.png') 0 0 no-repeat; }
</style>
</head>
<body>
<div id="headerbook">
<a href="/" title="Time to save the world in the name of social good!" target="_blank" ><h1 class="headerBannerInterior">Social Good</h1></a>
<div id="storeBtnFrame">
<a id="storeBtn" href="http://pungle.storenvy.com" title="Shop at the pungle store to raise the PIR!" target="_blank">
<img style="float: left; margin-right: 4px; vertical-align: middle;" src="/images/highfive24x24.png" width="24" height="24" />Pungle Products
</a>
</div>
<div id="causeIconFrame">
<a id="causeIcon" href="/cause-portfolio/#" title="Check on the progress of your cause!" target="_blank">Cause</a>
</div>
<!-- <div id="mbp">
<a id="mbpRating" href="/financial/" title="Current donation efficiency, help us raise it." target="_blank">35% PIR</a>
</div> -->
</div>
<div id="content" class="clearfix">
<div class="row">
<div id="bookmarkletUtility" class="clearfix">
<input type="text" id="quickSearch"><a id="addRemoveStores" href="/shop/" title="Return to pungle to add/remove stores." target="_blank">Add/Remove Stores</a>
</div>
<div id="bookmarkletButtons"></div>
</div>
</div>
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script>!window.jQuery && document.write('<script src="/core/libs/jquery.min.js" type="text/javascript"><\/script>')</script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js" type="text/javascript"></script>
<script>!$.ui && document.write('<script src="/core/libs/jquery-ui-1.8.9.min.js" type="text/javascript"><\/script>')</script>
<script src="/core/pungleJSON.js"></script>
<script src="/core/pungle.js?v=5"></script>
<script type="text/javascript">
$(document).ready(function(){
pungle.bookmarklet();
});
</script>
<script>
var _gaq = [['_setAccount', 'UA-10898547-10'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
</script>
</body>
</html>