// JavaScript Document// JavaScript Document function getEmbed(){ var e = window.frames["mygiftlist_bookmarklet_iframe"]; return e; } function addCSS(url){ var headID = document.getElementsByTagName("head")[0]; var cssNode = document.createElement('link'); cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = url; cssNode.media = 'screen'; headID.appendChild(cssNode); } function toggleItem(id){ var item = document.getElementById(id); if(item){ if ( item.style.display == "none"){ item.style.display = ""; } else{ item.style.display = "none"; } } } function removeItem(id){ var item = document.getElementById(id); if(item){ document.body.removeChild(item); } } function showItem(id){ try{ var item = document.getElementById(id); if(item){ item.style.display = ""; } } catch(e){ } } function hideDiv() { //alert('yay!'); var existing_iframe = document.getElementById('mygiftlist_bookmarklet_iframe'); if (existing_iframe){ toggleItem('mygiftlist_bookmarklet'); return; } } (function(){ var iframe_url = "http://zeode.com/mygiftlist/mgl.bookmarklet.php?deviceid=" + window['devID'] + "&pagetitle=" + encodeURIComponent(document.title) + "&pageurl=" + encodeURIComponent(window.location); var existing_iframe = document.getElementById('mygiftlist_bookmarklet_iframe'); if (existing_iframe){ //removeItem('mygiftlist_bookmarklet'); //return; } //alert('device id'); //alert('device id is ' + window['devID']); // alert("hi there: [" + calcstring + "]"); // alert('window location is ' + window.location); addCSS("http://zeode.com/mygiftlist/mgl.bookmarklet.css"); var div = document.createElement("div"); div.id = "mygiftlist_bookmarklet"; // var addurl = "http://www.zeode.com/mygiftlist/ws/add.php?deviceid=" + window['devID'] + "&pagetitle=" + encodeURIComponent(document.title) + "&pageurl=" + encodeURIComponent(window.location); var str = ""; str += "
"; str += ""; // str += ""; str += " |