/ Published in: JavaScript
This checks for jquery on the page, adding a green border if yes. If not already there, load the latest...add a red border. Asks if you want the API.
Expand |
Embed | Plain Text
javascript:try{_c='green';void(jQuery);}catch(e){_s=document.createElement('script');_s.src='http:/'+'/code.jquery.com/jquery-latest.js';document.getElementsByTagName('body')[0].appendChild(_s);_c='red'}finally{_f=function(){$('body').css('border','1px solid '+_c);if(_c==='green'&&typeof jQuery!='undefined'&&confirm('API?'))_w=window.open('http:/'+'/docs.jquery.com/Core')};void(window.setTimeout(_f,999))}
Comments
Subscribe to comments
You need to login to post a comment.

This checks for jquery on the page, adding a green border if yes. If not already there, load the latest, then add a red border.