Comments (2)
Hello, we plan to add support for custom buttons and a proper guide on how to do it a button in version 3.0, which will be released sometime later this year.
Here's a quick and dirty way. Place it inside the top likely
block:
<div class="likely__widget" >
<a class="likely__button" style="color:black" href="javascript:void((function(){if(document.pnctLoadStarted)return;var%20d=document.createElement('div');d.setAttribute('id','pnctPreloader');d.setAttribute('style','position:fixed;top:0;bottom:0;left:0;right:0;z-index:100501;background-color:rgba(255,255,255,.9);padding:20px;text-align:center;font-family:helvetica;font-size:20px;font-weight:bold;');d.innerHTML='%3C%3F%3DYii%3A%3At%28%22uniprogy%22%2C+%22Loading%22%29%3F%3E...<a%20id="pnctCancelBtn"%20href="#"%20style="float:right;width:24px;height:24px;text-decoration:none;border:1px%20solid%20#ccc;border-radius:5px"><img src="//postila.ru/images/window_close.png" alt="x"/></a>';document.body.appendChild(d);document.pnctLoadStarted=(new%20Date()).getTime();document.pnctCnclLoad=function(){document.pnctLoadStarted=0;pl=document.getElementById('pnctPreloader');if(pl)pl.parentNode.removeChild(pl)};document.getElementById('pnctCancelBtn').addEventListener('click',function(e){e.preventDefault();document.pnctCnclLoad()});setTimeout(function(){var%20st=document.pnctLoadStarted;if(st>0&&((new%20Date()).getTime()-st>=14000)){document.pnctCnclLoad();alert('%3C%3F%3DYii%3A%3At%28%22uniprogy%22%2C+%22Unfortunately%2C+the+image+search+is+not+available.%22%29%3F%3E')}},15000);var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//postila.ru/post.js?ver=1&m=b&rnd='+Math.random()*99999999);document.body.appendChild(e)})());"><img class="likely__icon" alt="" border="0" src="http://postila.ru/images/buttons/16x16.png"> Post
</a>
</div>
from likely.
Closing because of inactivity.
from likely.
Related Issues (20)
- Vertical margins slightly differ HOT 6
- Improve interpretation of attributes HOT 3
- Version 2.5 epic HOT 7
- Fix Travis CI build
- Proofread and clean up the readme HOT 3
- Uncaught TypeError: o.promises[t] is not a function HOT 12
- Plans for 2.6 HOT 3
- Update colors and icons
- twitter data-title issue HOT 3
- Version 3.1 epic HOT 3
- 2.5.0 bug "Uncaught TypeError: Cannot read property 'trigger' of undefined" HOT 5
- Text duplication on twitter share HOT 2
- Facebook: (#2) Service temporarily unavailable HOT 1
- Problem with whatsapp HOT 3
- data-url param adds dup url HOT 2
- share button works only one time in share modal HOT 2
- Homepage: Update Likely to 3.0 HOT 2
- Use flexbox with gap instead of margins HOT 3
- Will a new twitter logo be added? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from likely.