This is a Proof-of-Concept that tries to check, if you are logged into some famous but distracting systems. It is inspired
by Mike Cardwells Blog Article.
Most of the examples work best in non MSIE-Browsers (Firefox).
You can download the code from here. There is also a Moodle-block
using this code which can be found at oncode.info.
How to use this code:
Code the callback script. It receives two arguments as POST: name and loggedin. The text returned will be added to the results-div.
Put a div with id distractor-results in your webpage.
You can define an element with the id distractor-noresults. This element will be shown if there are no results.
You can define an element with the id distractor-hasresults. This element will be shown if there are results.