Complete rewrite to add likes
This commit replaces the icon with a SVG and adds the possibility to like pages too. To do this the whole structure was rewritten which makes it in the future easier to add new functions.
This commit is contained in:
parent
760adf4d85
commit
6ca1f57d1c
9 changed files with 220 additions and 26 deletions
20
popup.html
Normal file
20
popup.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Indie Buttons</title>
|
||||
<style>
|
||||
body { line-height: 0; vertical-align: middle; }
|
||||
img { width: 20px; height: 20px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a data-href="https://jeena.net/notes/new?in_reply_to=">
|
||||
<img src="icons/reply.svg" alt="reply">
|
||||
</a>
|
||||
<a data-href="https://jeena.net/likes/new?url=">
|
||||
<img src="icons/like.svg" alt="like">
|
||||
</a>
|
||||
<script src="button.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue