pmtarantino / wikiup Goto Github PK
View Code? Open in Web Editor NEWGet Wikipedia descriptions in tooltips.
Get Wikipedia descriptions in tooltips.
$('div[data-wiki]').wikiUp({ lang: 'es' });
(this makes all wikiUp-able elements start on Spanish by default instead of English)$('div[data-wiki]').wikiUp({ error: 'Oopsy wopsy! Wikipedia doesn\'t have that.' });
would it be possible to run the wikiLoad function on each hyperlinked result contained in the current element in wikiUp? If so, you would get a really cool "tunnel" effect.
Would it be as simple as wrapping each new hyperlink in data tags?
Viewing your demo page http://pmtarantino.github.com/wikiUp/ . In Firefox 17 (64-bit Ubuntu), if I move the mouse from San Francisco to Buenos Aires or from Steve Jobs up to San Francisco, both tooltips flicker endlessly.
The same action on Chromium results in a few flickers, and then occasionally it'll end up displaying the tooltip for the old location.
As I slide from "San Francisco" to "I live in", the tooltip needlessly shifts higher in both browsers (and doesn't go away), but only in Firefox does it flicker.
As per @shmup fork has: https://github.com/shmup/wikiUp
It could be nice to be able to set a preload option that will load the articles' text within page load, instead of requesting it on users' mouse over.
Such as listed below.
Short-term
Mid-term
div
, or even better, just always-visible div
Long-term
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.