Skip to content

Commit

Permalink
Merge pull request #50 from healthonnet/feat-donate-link
Browse files Browse the repository at this point in the history
add donate link in footer
  • Loading branch information
williambelle authored Feb 20, 2017
2 parents da9acb5 + c830919 commit f0a4d2e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
7 changes: 4 additions & 3 deletions app/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ <h2 id="khresmoi"></h2>
</div>

<div class="footer">
<p>
<span id="donate" class="pull-left"></span>
<span class="pull-right">
© 2017 -
<a href="https://www.hon.ch/20-years" target="_blank">Health On the Net</a>
- <a href="http://kconnect.eu/" target="_blank">KConnect</a>
</p>
- <a href="http://kconnect.eu/" target="_blank">KConnect</a>
</span>
</div>

<script src="./lib/jquery/dist/jquery.min.js"></script>
Expand Down
9 changes: 9 additions & 0 deletions app/scripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,14 @@ chrome.tabs.query(query, function(tabs) {
$('#q').attr('placeholder',
chrome.i18n.getMessage('khresmoiPlaceholder'));
$('#searchSubmit').text(chrome.i18n.getMessage('khresmoiSearch'));
$('#donate').append(
$('<a>', {
target: '_blank',
href: 'https://www.paypal.com/cgi-bin/webscr' +
'?cmd=_s-xclick&hosted_button_id=YH3ZJP32PN4PS',
}).text(' ' + chrome.i18n.getMessage('donate')).prepend(
$('<i>', {class: 'fa fa-heart'})
)
);
honcode.setBadges(currentTab.url);
});
7 changes: 4 additions & 3 deletions app/styles.scss/popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ form {
background-color: white;
border-top: #dbdcdb solid 1px;
padding: 2px 10px;
p {
margin: 0;
}
}

#seal-badge {
Expand Down Expand Up @@ -264,3 +261,7 @@ form {
.white {
color: white;
}

#donate a {
color: #ff3b66;
}

0 comments on commit f0a4d2e

Please sign in to comment.