wfyson / opendatabutton Goto Github PK
View Code? Open in Web Editor NEWInitial work on an Open Data button, to identify and highlight datasets which are not accessible.
License: MIT License
Initial work on an Open Data button, to identify and highlight datasets which are not accessible.
License: MIT License
I've added a simple filter for the Twitter links (e.g. /entry/1), but clearly we had more in mind when we talked about this. Let's start putting together a clearer sketch of what users should be able to see when they click on a link.
I've minified your initial code with Closure Compiler, but haven't manage to make it work due to quoting issues. The initial API and home page are checked in here: https://github.com/loleg/OpenDataButton-Server
Timestamp: 13/01/14 14:16:58
I've just tried to use the button in Firefox 26.0 and it gives this error.
Error: SyntaxError: return not in function
Source File: javascript:if(location.protocol=='https:'){return%20window.alert('Sorry,%20HTTPS%20websites%20are%20not%20yet%20supported%20by%20the%20Open%20Data%20Button%20:(');}%20var%20o=document.getElementById('odb-bkmlt');%20if(o!=null){o.parentNode.removeChild(o);}%20document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('id','odb-bkmlt');document.getElementById('odb-bkmlt').setAttribute('src','http://button.datalets.ch/bookmarklet');
Line: 1, Column: 32
Source Code:
if(location.protocol=='https:'){return window.alert('Sorry, HTTPS websites are not yet suppo
This error is consistently reproducible.
This firefox is running on a 64-bit Linux installation.
https://github.com/OAButton/server - http://oabutton.herokuapp.com/
Different but with similarities - perhaps there are connections
PS: I know these folks and fellow Open Knowledge Foundation Lab'ber @andylulz is involved with it ...
Do we really need jQuery UI? I'm quite sure a bit of CSS would do the trick, the bookmarklet would be faster.. and it would work. Right now I'm getting .dialog() is undefined errors.
After drag and dropping the button to my Safary and Firefox bookmarks bars, it does not work. Regardless of what page I'm on, after clicking nothing happens.
Not sure how to figure out what is going on here. There are no warnings, no error messages. When I open the "Show All Bookmarks" window, I can see the button's address is:
javascript:document.getElementsByTagName('body')%5B0%5D.appendChild(document.createElement('script')).setAttribute('id','odb-bkmlt');document.getElementById('odb-bkmlt').setAttribute('src','http://button.datalets.ch/bookmarklet');
When I click on this "address" in the "Show All Bookmarks" window than it works.
Possible connection with IsItOpenData app: http://www.isitopendata.org/
Project was "retired" last year (currently just static) but is in process of being rebooted - see rufuspollock/ideas#41
Secure websites do not allow script injection, so the button does not work. We need to figure out how to detect this and offer an explanation to the user (alert box or so).
The bookmarklet submission now works, the data is saved. Time to make it useful :)
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.