Skip to content

Commit cf6e382

Browse files
Adding pandas donation exit popup
1 parent 559d7d3 commit cf6e382

File tree

3 files changed

+92
-1
lines changed

3 files changed

+92
-1
lines changed
Loading

pandas/assets/js/bioep.min.js

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pandas/index.html

+82-1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,87 @@
213213
"lng": 36.817345},
214214
];
215215
</script>
216+
<style type="text/css">
217+
#bio_ep {
218+
height: 300px;
219+
padding: 30px 50px;
220+
}
221+
#bio_ep p {
222+
margin-bottom: 10px;
223+
}
224+
#bio_ep .note {
225+
color: #808080;
226+
}
227+
#bio_ep .main {
228+
font-weight: bold;
229+
}
230+
#bio_ep .links {
231+
width: 100%;
232+
text-align: center;
233+
margin-bottom: 0;
234+
}
235+
#bio_ep a.footnote {
236+
color: #808080;
237+
}
238+
#bio_ep a.button {
239+
margin-top: 30px;
240+
-moz-box-shadow:inset 0px 1px 0px 0px #f5978e;
241+
-webkit-box-shadow:inset 0px 1px 0px 0px #f5978e;
242+
box-shadow:inset 0px 1px 0px 0px #f5978e;
243+
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f24537), color-stop(1, #c62d1f));
244+
background:-moz-linear-gradient(top, #f24537 5%, #c62d1f 100%);
245+
background:-webkit-linear-gradient(top, #f24537 5%, #c62d1f 100%);
246+
background:-o-linear-gradient(top, #f24537 5%, #c62d1f 100%);
247+
background:-ms-linear-gradient(top, #f24537 5%, #c62d1f 100%);
248+
background:linear-gradient(to bottom, #f24537 5%, #c62d1f 100%);
249+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f24537', endColorstr='#c62d1f',GradientType=0);
250+
background-color:#f24537;
251+
-moz-border-radius:6px;
252+
-webkit-border-radius:6px;
253+
border-radius:6px;
254+
border:1px solid #d02718;
255+
display:inline-block;
256+
cursor:pointer;
257+
color:#ffffff;
258+
font-family:Arial;
259+
font-size:15px;
260+
font-weight:bold;
261+
padding:6px 24px;
262+
text-decoration:none;
263+
text-shadow:0px 1px 0px #810e05;
264+
}
265+
#bio_ep a.button:hover {
266+
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #c62d1f), color-stop(1, #f24537));
267+
background:-moz-linear-gradient(top, #c62d1f 5%, #f24537 100%);
268+
background:-webkit-linear-gradient(top, #c62d1f 5%, #f24537 100%);
269+
background:-o-linear-gradient(top, #c62d1f 5%, #f24537 100%);
270+
background:-ms-linear-gradient(top, #c62d1f 5%, #f24537 100%);
271+
background:linear-gradient(to bottom, #c62d1f 5%, #f24537 100%);
272+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#c62d1f', endColorstr='#f24537',GradientType=0);
273+
background-color:#c62d1f;
274+
}
275+
#bio_ep a.button:active {
276+
position:relative;
277+
top:1px;
278+
}
279+
#bio_ep_close {
280+
margin: -38px 0 0 -12px;
281+
}
282+
</style>
283+
<script type="text/javascript" src="assets/js/bioep.min.js"></script>
284+
<script type="text/javascript">
285+
var popup = '<p class="note">before you leave...</p>';
286+
popup += '<p><img alt="" src="assets/images/pandas_logo_donation.png"/>';
287+
popup += '<p class="main">You can contribute to make pandas better, even if you can\'t join the sprint.</p>';
288+
popup += '<p class="links"><a class="button" href="https://www.flipcause.com/secure/cause_pdetails/MzA3OA==">DONATE TO PANDAS NOW</a></p>';
289+
popup += '<p class="links"><a class="footnote" href="http://pandas.pydata.org/donate.html">More info</a></p>';
290+
bioEp.init({
291+
html: popup,
292+
css: '',
293+
cookieExp: 0,
294+
delay: 1
295+
});
296+
</script>
216297
</head>
217298
<body data-spy="scroll" data-target="#site-nav">
218299
<nav id="site-nav" class="navbar navbar-fixed-top navbar-custom">
@@ -244,7 +325,7 @@
244325
<!-- navigation menu -->
245326
<li class="active"><a data-scroll href="#about">About</a></li>
246327
<li><a data-scroll href="#location">Locations</a></li>
247-
<li><a data-scroll href="#partner">Supporters</a></li>
328+
<li><a data-scroll href="#partner">Supporters</a></li>
248329
<li><a data-scroll href="#faq">FAQ</a></li>
249330
<li><a data-scroll href="#photos">Photos</a></li>
250331

0 commit comments

Comments
 (0)