tatemae / capret Goto Github PK
View Code? Open in Web Editor NEWAnalytics for OER
License: MIT License
Analytics for OER
License: MIT License
The tailored OER cut and paste logging offered by the CaPReT/ hummingbird server is a valuable tool.
However, I suggest that a logging solution based around generic analytics tools like Piwik is possible, and may be desirable for some content publishers. So, I've written a slot-in replacement for public/js/capret.js.
Since we can't (or can we) notify users when we've made changes that may require them to update the javascript code they've inserted on their sites, we should have some way of communicating when we make changes that might require them to update their code.
I see this as corresponding to releases, so folks can see this page was last updated on month dd, yyyy perhaps I should update my code. Or something else that accomplishes the same thing.
The sort of thing I mean is when I copy the title of a blog post and paste it twitter, or copy & paste someone's name in order to get the spelling right, having the extra attribution text appear is just a nuisance. Would it be possible to only add the attribution text to the clipboard contents if more than x words/chars are copied (X~10-20 words?)
When pasting text into LibreOffice 3.3.3 (Ubuntu) there is small image, or place holder for a missing image, inserted at the end of the text. Not sure what it is but the text http://cap is just visible.
Check n.hasAttributes() is defined before calling..
https://github.com/tatemae/capret/blob/master/public/js/oer_license_parser.js#L111
Chrome 13.0.7
Windows XP
No JS Error reported
(Originally posted to Issue #1)
FWIW, I'm not sure if this is meaningful or not.
Sometimes the screen flickers after a cut.
I swore I reproduced this on Phil's site using Safari 5.0 or perhaps the same version of Chrome as Pat, but now I don't know if I can reproduce it.
(So it might have to do with other scripts running on Phil's site, or a browser plugin that I was running on the MBP I was using earlier today.)
On Tue, Aug 16, 2011 at 10:45 AM, Phil Barker [email protected] wrote:
Not on Firefox 5.0, though the page flickers, as if being re-writ.
Phil
On Tue, Aug 16, 2011 at 3:39 PM, Phil [email protected] wrote:
I have it running on my home pagehttp://www.icbl.hw.ac.uk/~philb/.
Haven't managed to break it yet.
Note, this means only the 'copy' is logged, not subsequent views of the pasted content :(. Still, it's a start.
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.