1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 23:21:47 +02:00

feat: add a bookmarklet

This commit is contained in:
Qi Xi 2021-12-27 21:18:13 +08:00
parent 6e73538257
commit ec24a5f66f
No known key found for this signature in database
GPG Key ID: D7FFA2EF44FBD63C

View File

@ -109,6 +109,12 @@
</div>
</div>
<h4>Bookmarklet: </h4>
<div class='row'>
<div class='col-md-8'>
<a class='btn btn-info' onclick="return false;" href='javascript:u=encodeURIComponent(location.href);s="{{env("APP_PROTOCOL")}}{{env("APP_ADDRESS")}}/api/v2/action/shorten?key={{$api_key}}&url="+u;window.open(s,"Shortened URL","location=no,width=400,height=300");'>Shorten</a> (Drag it to your bookmarks bar to use as a shortcut!)
</div>
</div>
<h4>API Quota: </h4>
<h2 class='api-quota'>