From 44d1a5a9f71b03d9aceeccd760a63fcdc45f8bad Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 12 Oct 2011 17:03:54 +0000 Subject: Improvements of "gf -server" mode and related setup "gf -server" mode now contains everything needed to run the minibar and the grammar editor (including example-based grammar writing). The Setup.hs script installs the required files where gf -server can find them. These files have been moved to a new directory: src/www. The separate server program pgf-http is now obsolete. --- src/editor/simple/slideshow.js | 86 ------------------------------------------ 1 file changed, 86 deletions(-) delete mode 100644 src/editor/simple/slideshow.js (limited to 'src/editor/simple/slideshow.js') diff --git a/src/editor/simple/slideshow.js b/src/editor/simple/slideshow.js deleted file mode 100644 index 307bcd98f..000000000 --- a/src/editor/simple/slideshow.js +++ /dev/null @@ -1,86 +0,0 @@ - -var internet_explorer=navigator.appName=="Microsoft Internet Explorer"; - -/* How to change opacity in IE: -http://joseph.randomnetworks.com/archives/2006/08/16/css-opacity-in-internet-explorer-ie/ -*/ - -var set_opacity = - internet_explorer - ? function(el,o) { el.style.filter="alpha(opacity="+Math.round(o*100)+")";} - : function(el,o) { el.style.opacity=o; }; - -function start_slideshow(img,options) { - var p=img.parentNode; - if(p.tagName=="A") p=p.parentNode; - var is=p.getElementsByTagName("img"); - if(is.length>1) { - var cur=0; - var w=img.width; - var h=img.height; - //p.style.position="relative"; - p.style.minWidth=w+"px"; - p.style.minHeight=h+"px"; - var images=[]; - for(var i=0;iw) { w=n.width; p.style.minWidth=w+"px"; } - if(n.height>h) { h=n.height; p.style.minHeight=h+"px"; } - c.style.position="absolute"; - c.style.zIndex=0; - fade(n,0,1,ft,function() { - if(c.width>n.width || c.height>n.height) fade(c,1,0,ft,null); - else set_opacity(c,0); }); - //debug.innerHTML=w+"x"+h; - //for(var i=0;i=1) { next=1; done(); } - if(next<=0) { next=0; done(); } - set_opacity(el,next); - el.current=next - } - if(!el.timer) { - el.current=start; - el.timer=setInterval(f,dt); - } -} -- cgit v1.2.3