From 59661ee7bf8ea27b3f8e9a738907d0d961eb8087 Mon Sep 17 00:00:00 2001 From: Afshin Mehrabani Date: Wed, 20 Mar 2013 20:42:55 +0330 Subject: [PATCH] Remove bad debugging code! --- intro.js | 1 - minified/intro.min.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/intro.js b/intro.js index 6839d3ac2..52faa0bdb 100644 --- a/intro.js +++ b/intro.js @@ -180,7 +180,6 @@ arrowLayer.className = 'introjs-arrow bottom'; break; case 'right': - console.log(tooltipLayerPosition); tooltipLayer.style.right = "-" + (tooltipLayerPosition.width + 10) + "px"; arrowLayer.className = 'introjs-arrow left'; break; diff --git a/minified/intro.min.js b/minified/intro.min.js index 491bda0f8..bb02b4687 100644 --- a/minified/intro.min.js +++ b/minified/intro.min.js @@ -1 +1 @@ -(function(){function t(e){this._targetElement=e}function n(e){var t=e.querySelectorAll("*[data-intro]"),n=[],o=this;if(t.length<1){return false}for(var u=0,a=t.length;u"+e.getAttribute("data-intro")+"
";v.appendChild(m);y.appendChild(g);v.appendChild(y);var b=document.createElement("a");b.onclick=function(){r.call(t)};b.className="introjs-button introjs-nextbutton";b.href="javascript:void(0);";b.innerHTML="Next →";var w=document.createElement("a");w.onclick=function(){i.call(t)};w.className="introjs-button introjs-prevbutton";w.href="javascript:void(0);";w.innerHTML="← Back";var E=document.createElement("a");E.className="introjs-button introjs-skipbutton";E.href="javascript:void(0);";E.innerHTML="Skip";E.onclick=function(){s.call(t,t._targetElement)};var S=y.querySelector(".introjs-tooltipbuttons");S.appendChild(E);S.appendChild(w);S.appendChild(b);o(e,y,g)}e.className+=" introjs-showElement";var x="";if(e.currentStyle){x=e.currentStyle["position"]}else if(document.defaultView&&document.defaultView.getComputedStyle){x=document.defaultView.getComputedStyle(e,null).getPropertyValue("position")}x=x.toLowerCase();if(x!="absolute"&&x!="relative"){e.className+=" introjs-relativePosition"}if(!a(e)){var T=e.getBoundingClientRect();top=T.bottom-T.height,bottom=T.bottom-window.innerHeight;if(top<0){window.scrollBy(0,top-30)}else{window.scrollBy(0,bottom+100)}}}function a(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}function f(e){var t=document.createElement("div"),n="",r=this;t.className="introjs-overlay";if(e.tagName.toLowerCase()=="body"){n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;";t.setAttribute("style",n)}else{var i=l(e);if(i){n+="width: "+i.width+"px; height:"+i.height+"px; top:"+i.top+"px;left: "+i.left+"px;";t.setAttribute("style",n)}}e.appendChild(t);t.onclick=function(){s.call(r,e)};setTimeout(function(){n+="opacity: .5;";t.setAttribute("style",n)},10);return true}function l(e){var t={};t.width=e.offsetWidth;t.height=e.offsetHeight;var n=0;var r=0;while(e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop)){n+=e.offsetLeft;r+=e.offsetTop;e=e.offsetParent}t.top=r;t.left=n;return t}var e="0.2.1";var c=function(e){if(typeof e==="object"){return new t(e)}else if(typeof e==="string"){var n=document.querySelector(e);if(n){return new t(n)}else{throw new Error("There's no element with given selector.")}}else{return new t(document.body)}};c.version=e;c.fn=t.prototype={clone:function(){return new t(this)},start:function(){n.call(this,this._targetElement);return this},oncomplete:function(e){if(typeof e==="function"){this._introCompleteCallback=e}else{throw new Error("Provided callback for oncomplete was not a function.")}return this},onexit:function(e){if(typeof e==="function"){this._introExitCallback=e}else{throw new Error("Provided callback for onexit was not a function.")}return this}};window["introJs"]=c})() \ No newline at end of file +(function(){function t(e){this._targetElement=e}function n(e){var t=e.querySelectorAll("*[data-intro]"),n=[],o=this;if(t.length<1){return false}for(var u=0,a=t.length;u"+e.getAttribute("data-intro")+"
";v.appendChild(m);y.appendChild(g);v.appendChild(y);var b=document.createElement("a");b.onclick=function(){r.call(t)};b.className="introjs-button introjs-nextbutton";b.href="javascript:void(0);";b.innerHTML="Next →";var w=document.createElement("a");w.onclick=function(){i.call(t)};w.className="introjs-button introjs-prevbutton";w.href="javascript:void(0);";w.innerHTML="← Back";var E=document.createElement("a");E.className="introjs-button introjs-skipbutton";E.href="javascript:void(0);";E.innerHTML="Skip";E.onclick=function(){s.call(t,t._targetElement)};var S=y.querySelector(".introjs-tooltipbuttons");S.appendChild(E);S.appendChild(w);S.appendChild(b);o(e,y,g)}e.className+=" introjs-showElement";var x="";if(e.currentStyle){x=e.currentStyle["position"]}else if(document.defaultView&&document.defaultView.getComputedStyle){x=document.defaultView.getComputedStyle(e,null).getPropertyValue("position")}x=x.toLowerCase();if(x!="absolute"&&x!="relative"){e.className+=" introjs-relativePosition"}if(!a(e)){var T=e.getBoundingClientRect();top=T.bottom-T.height,bottom=T.bottom-window.innerHeight;if(top<0){window.scrollBy(0,top-30)}else{window.scrollBy(0,bottom+100)}}}function a(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}function f(e){var t=document.createElement("div"),n="",r=this;t.className="introjs-overlay";if(e.tagName.toLowerCase()=="body"){n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;";t.setAttribute("style",n)}else{var i=l(e);if(i){n+="width: "+i.width+"px; height:"+i.height+"px; top:"+i.top+"px;left: "+i.left+"px;";t.setAttribute("style",n)}}e.appendChild(t);t.onclick=function(){s.call(r,e)};setTimeout(function(){n+="opacity: .5;";t.setAttribute("style",n)},10);return true}function l(e){var t={};t.width=e.offsetWidth;t.height=e.offsetHeight;var n=0;var r=0;while(e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop)){n+=e.offsetLeft;r+=e.offsetTop;e=e.offsetParent}t.top=r;t.left=n;return t}var e="0.2.1";var c=function(e){if(typeof e==="object"){return new t(e)}else if(typeof e==="string"){var n=document.querySelector(e);if(n){return new t(n)}else{throw new Error("There's no element with given selector.")}}else{return new t(document.body)}};c.version=e;c.fn=t.prototype={clone:function(){return new t(this)},start:function(){n.call(this,this._targetElement);return this},oncomplete:function(e){if(typeof e==="function"){this._introCompleteCallback=e}else{throw new Error("Provided callback for oncomplete was not a function.")}return this},onexit:function(e){if(typeof e==="function"){this._introExitCallback=e}else{throw new Error("Provided callback for onexit was not a function.")}return this}};window["introJs"]=c})() \ No newline at end of file