Relink index page to use demo, fix demo's library inclusion paths, de-absolute-ify...
[htmlpurifier-web.git] / del.icio.us.js
blob212c0bfd13ec783c29232f3e1ba27e5ebf0afa9f
1 function open_delicious() {
2     window.open(
3         'http://del.icio.us/post?v=4&noui&jump=close&url='+
4         encodeURIComponent(location.href)+
5         '&title='+encodeURIComponent(document.title),
6         'delicious','toolbar=no,width=700,height=400');
7     return false;
10 function setup_delicious() {
11     var link = document.getElementById('delicious');
12     link.onclick = open_delicious;
15 if (window.addEventListener) {
16     window.addEventListener("load", setup_delicious, false);
17 } else if (window.attachEvent) {
18     window.attachEvent("onload", setup_delicious);