tinywebex / randomtips Goto Github PK
View Code? Open in Web Editor NEWShows a random non obstrusive tip to the user under some constraints.
Home Page: https://tinywebex.github.io/RandomTips/
License: MIT License
Shows a random non obstrusive tip to the user under some constraints.
Home Page: https://tinywebex.github.io/RandomTips/
License: MIT License
We'd want a callback for the actions/URL, so we can adjust the URL dynamically.
The use case is to differentiate browsers.
But to make it more useful in general, I think it would be useful to have a callback given there, which returns the URL.
Also let's make sure it's "async", as that is often needed.
Provide the option of using the notifications API to display notifications. This is needed for extensions that do not have a popup (like Unicodify) or that need to display notifications when both the popup and options page are not open. This could also be used to show errors to the user instead of silently failing.
Additionally, you could provide the option of using the future notification bar API in Thunderbird (see Bug 1674002).
So you can limit the tip not to be shown when the user already clicked on a "show more" button or similar. Like maximumDismiss
it can be null
by default, but a common use case is likely to set it to 1
.
How to do?
actionButton
object, that additionally binds to the button, so it does not intercept/overwrite the click, but can actually count it. That may then be set by RandomTips manually…A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.