aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-01 11:00:27 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-01 11:00:27 +0200
commit99dd7d38772251035fb2a7688c0633a00d440fed (patch)
treeec9503ff3f092000118a9cb2c313414f29b96740 /tpl
parent4d8bcc0c6b4902f3c7a37f3c8eaf18a064028869 (diff)
downloadwallabag-99dd7d38772251035fb2a7688c0633a00d440fed.tar.gz
wallabag-99dd7d38772251035fb2a7688c0633a00d440fed.tar.zst
wallabag-99dd7d38772251035fb2a7688c0633a00d440fed.zip
testing icon in bookmarklet, thanks to @GeekShadow in #94
Diffstat (limited to 'tpl')
-rw-r--r--tpl/config.html2
-rw-r--r--tpl/head.html20
2 files changed, 21 insertions, 1 deletions
diff --git a/tpl/config.html b/tpl/config.html
index 1100d455..43c0104c 100644
--- a/tpl/config.html
+++ b/tpl/config.html
@@ -2,7 +2,7 @@
2 <h2>Bookmarklet</h2> 2 <h2>Bookmarklet</h2>
3 <p>Thanks to the bookmarklet, you will be able to easily add a link to your poche. If you don't know how use a bookmarklet, <a href="http://support.mozilla.org/en-US/kb/bookmarklets-perform-common-web-page-tasks">have a look here</a>.</p> 3 <p>Thanks to the bookmarklet, you will be able to easily add a link to your poche. If you don't know how use a bookmarklet, <a href="http://support.mozilla.org/en-US/kb/bookmarklets-perform-common-web-page-tasks">have a look here</a>.</p>
4 <p>Drag & drop this link to your bookmarks bar and have fun with poche.</p> 4 <p>Drag & drop this link to your bookmarks bar and have fun with poche.</p>
5 <p><a style="cursor: move; border: 1px dashed grey; background: white;" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></p> 5 <p><a ondragend="this.click();" style="cursor: move; border: 1px dashed grey; background: white;" title="i am a bookmarklet, use me !" href="javascript:if(top['bookmarklet-url@inthepoche.com']){top['bookmarklet-url@inthepoche.com'];}else{(function(){var%20url%20=%20location.href%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();void(0);}">poche it !</a></p>
6 6
7 <h2>Password</h2> 7 <h2>Password</h2>
8 <form method="post" action="?config" name="loginform"> 8 <form method="post" action="?config" name="loginform">
diff --git a/tpl/head.html b/tpl/head.html
index e95f6100..dfb12788 100644
--- a/tpl/head.html
+++ b/tpl/head.html
@@ -19,4 +19,24 @@
19 <link rel="stylesheet" href="./css/style-light.css" media="all" title="light-style"> 19 <link rel="stylesheet" href="./css/style-light.css" media="all" title="light-style">
20 <!-- Dark Theme --> 20 <!-- Dark Theme -->
21 <link rel="alternate stylesheet" href="./css/style-dark.css" media="all" title="dark-style"> 21 <link rel="alternate stylesheet" href="./css/style-dark.css" media="all" title="dark-style">
22 <script>
23 top["bookmarklet-url@inthepoche.com"] = ''
24 +'<!DOCTYPE html>'
25 +'<html>'
26 +'<head>'
27 +'<title>poche it !</title>'
28 +'<link rel="icon" href="{$poche_url}img/favicon.ico" />'
29 +'</head>'
30 +'<body>'
31 +'<script>'
32 +'window.onload=function(){'
33 +'window.setTimeout(function(){'
34 +'history.back();'
35 +'},250);'
36 +'};'
37 +'</scr'+'ipt>'
38 +'</body>'
39 +'</html>'
40 ;
41 </script>
22 </head> \ No newline at end of file 42 </head> \ No newline at end of file