Skip to content
Browse files

fixed IE problems

  • Loading branch information...
1 parent 7efe305 commit 927259a6f93746c7f8de381987dff82d65ef7118 @Mottie Mottie committed Aug 14, 2011
Showing with 21 additions and 12 deletions.
  1. +3 −0 README.markdown
  2. +3 −2 css/builder.css
  3. BIN images/buttons.png
  4. +13 −8 js/builder.js
  5. +2 −2 js/builder.min.js
View
3 README.markdown
@@ -104,6 +104,9 @@ $('#slider').anythingSlider({
## Change Log
+### Version 1.0.2beta
+* Fixed a bug so the builder works with IE7 and IE8
+
### Version 1.0.1beta
* Fixed an element selector bug.
* Added a random element to the list on startup, as an example.
View
5 css/builder.css
@@ -22,12 +22,13 @@
#as-fxb-builder { font: bold 14px Helvetica,Sans-Serif; border: #333 1px solid; background: #fff; color: #000; border-radius: 1em; -moz-border-radius: 1em; -webkit-border-radius: 1em; padding: 10px; position: absolute; top: 0; left: 0; }
#as-fxb-builder * { font: 14px Helvetica,Sans-Serif; }
#as-fxb-builder h2 { font: bold 1.5em Helvetica,Sans-Serif; cursor: move; text-align: center; background: #eee; color: #026; border-radius: .4em; -moz-border-radius: .4em; -webkit-border-radius: .4em; padding: 0; }
-#as-fxb-builder h2 span.close { cursor: pointer; float: right; width: 13px; height: 16px; display: block; margin: 6px 15px 0 0; background: transparent url(../images/buttons.png) no-repeat right top; }
+#as-fxb-builder h2 span.close { cursor: pointer; float: right; width: 13px; height: 16px; display: block; position: relative; top: 5px; right: 5px; background: transparent url(../images/buttons.png) no-repeat right top; }
+#as-fxb-builder h2 a { cursor: pointer; float: right; width: 13px; height: 16px; display: block; position: relative; top: 5px; right: 5px; background: transparent url(../images/buttons.png) no-repeat right -14px; }
#as-fxb-builder a:link, #as-fxb-builder .asfxbuildertooltip { color: #008; cursor: pointer; }
#as-fxb-builder a:hover, #as-fxb-builder .asfxbuildertooltip:hover { color: #888; }
#as-fxb-builder a:visited, a:active { color: #00f; }
#as-fxb-selections select, #as-fxb-selections input { width: 100px; margin: 0; }
-#as-fxb-selections table { border-collapse: collapse; border: #777 1px solid; margin: 0 auto; }
+#as-fxb-selections table { border-collapse: collapse; border: #777 1px solid; margin: 0 auto; width: 100%; }
#as-fxb-selections thead th, #as-fxb-selections .examples { color: #002088; font: 18px bold; margin: 0; text-align: center; vertical-align: bottom; padding-bottom: 3px; }
#as-fxb-selections thead { border-bottom: #777 4px solid; }
#as-fxb-selections th.el, #as-fxb-selections th.cu, #as-fxb-selections th.fx, #as-fxb-selections th.di, #as-fxb-selections th.ti, #as-fxb-selections th.ea, #as-fxb-selections th.bu { width: 100px; }
View
BIN images/buttons.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
21 js/builder.js
@@ -1,5 +1,5 @@
/*
- * AnythingSlider FX Builder 1.0.1 beta
+ * AnythingSlider FX Builder 1.0.2 beta
* By Rob Garrison (aka Mottie & Fudgey)
* Dual licensed under the MIT and GPL licenses.
*/
@@ -17,19 +17,18 @@ function setupFxBuilder(){
.attr({
rel : "stylesheet",
type: "text/css",
- // local: "file:///C:/Temp/AnythingSlider-Fx-Builder/css/builder.css"
href: "http://mottie.github.com/AnythingSlider-Fx-Builder/css/builder.css"
});
}
- // load easing function if needed - local: "file:///C:/Temp/AnythingSlider/js/jquery.easing.1.2.js");
+ // load easing function if needed
var e = typeof jQuery.easing;
if (e === 'undefined' || (e === 'object' && typeof jQuery.easing.easeInQuad === 'undefined')) {
jQuery.getScript("http://proloser.github.com/AnythingSlider/js/jquery.easing.1.2.js");
}
if (typeof jQuery.fn.anythingSliderFx !== 'function'){
- // load fx extension - local: file:///C:/Temp/AnythingSlider/js/jquery.anythingslider.fx.js
+ // load fx extension
jQuery.getScript("http://proloser.github.com/AnythingSlider/js/jquery.anythingslider.fx.js", function(){
anythingSliderFxBuilder();
});
@@ -95,7 +94,12 @@ function anythingSliderFxBuilder(){
}
}
popup = '<div id="as-fxb-builder">' +
- '<h2>AnythingSlider FX Builder<span class="close"></span></h2>' +
+ '<!--[if lte IE 7]><style type="text/css" media="screen">#as-fxb-builder{width:780px;}#as-fxb-builder h2 span.close,#as-fxb-builder h2 a{top:-20px;}</style><![endif]-->' +
+ '<h2>' +
+ 'AnythingSlider FX Builder ' +
+ '<span class="close"></span>' +
+ '<a class="asfxbuildertooltip" target="_blank" title="Need Help? Click me!" href="https://github.com/Mottie/AnythingSlider-Fx-Builder"></a>' +
+ '</h2>' +
'<div id="as-fxb-selections">' +
'<table>' +
'<thead>' +
@@ -226,7 +230,6 @@ function anythingSliderFxBuilder(){
selections = jQuery('#as-fxb-selections');
panels = slider.children('li'); // panel class added by the plugin, but add here just in case
dat = slider.data('AnythingSlider');
-
panels.filter(':not(.cloned)').find('*').each(function(i){
that = jQuery(this);
// get panel index or class
@@ -246,17 +249,19 @@ function anythingSliderFxBuilder(){
t = '.' + jQuery.trim( (' ' + tag.attr('class') + ' ').replace('panel ','').replace('activePage','') ); // hoping only one class name is added
}
tag = this.tagName.toLowerCase();
+ // tags to ignore - /embed for ie7 (http://bugs.jquery.com/ticket/10047) & HTML5 tags (http://bugs.jquery.com/ticket/10048)
+ if (tag.match('area|br|param|source|style|script|colgroup|option') || /^\//.test(tag)) { return; }
// get id or class
tar = (this.id) ? '#' + this.id : (that.attr('class')) ? '.' + that.attr('class') : '';
if (tar === '') {
// find content/attribute to differentiate the element
- if (tag.match('table|thead|tbody|tfoot|tr|ul|br|hr|area|map|embed|object|param|canvas|audio|video|img|iframe')){
+ if (tag.match('table|thead|tbody|tfoot|tr|ul|hr|map|embed|object|canvas|audio|video|img|iframe')){
content = '';
} else {
content = jQuery.trim( that.text() );
}
// show img/iframe src
- if (tag.match('img|iframe')) {
+ if (tag.match('img|iframe|embed')) {
s = that.attr('src');
content = s.substring( s.lastIndexOf('/') + 1, s.length);
}
View
4 js/builder.min.js
@@ -1,9 +1,9 @@
/*
- * AnythingSlider FX Builder 1.0.1 beta
+ * AnythingSlider FX Builder 1.0.2 beta
* By Rob Garrison (aka Mottie & Fudgey)
* Dual licensed under the MIT and GPL licenses.
*/
-function setupFxBuilder(){if(typeof jQuery!=="undefined"&&jQuery(".anythingBase").length){jQuery.find("link.fxbuilder").length||jQuery("head").append("<link class='fxbuilder'>").find(".fxbuilder").attr({rel:"stylesheet",type:"text/css",href:"http://mottie.github.com/AnythingSlider-Fx-Builder/css/builder.css"});var b=typeof jQuery.easing;(b==="undefined"||b==="object"&&typeof jQuery.easing.easeInQuad==="undefined")&&jQuery.getScript("http://proloser.github.com/AnythingSlider/js/jquery.easing.1.2.js"); typeof jQuery.fn.anythingSliderFx!=="function"?jQuery.getScript("http://proloser.github.com/AnythingSlider/js/jquery.anythingslider.fx.js",function(){anythingSliderFxBuilder()}):anythingSliderFxBuilder()}} function anythingSliderFxBuilder(){if(jQuery(".anythingBase").length){jQuery("#as-fxb-builder").remove();var b,f,s="",g="",n,j,a,d,l,k,o,i,m="",m="",t=!!window.localStorage,p=jQuery(".anythingBase:first").anythingSliderFx(),q,r=!1,u=function(e,h,a,c,b,d){/\d+(px|\%)/i.test(c)||(isNaN(c)&&(c=parseInt(c,10)||""),c+=c===""?"":"px");isNaN(b)&&(b=parseInt(b,10)||"");e="<tr><td>"+e+"</td><td>"+h+"</td><td>"+a.join(" ")+"</td><td>"+c+"</td><td>"+b+"</td><td>"+d+'</td><td class="panel"><a href="#" class="button test asfxbuildertooltip {width:100px;}" title="Test the FX"><span>&#9654;</span></a> <a href="#" title="Remove this FX" class="button delete asfxbuildertooltip {width:120px;}"><span>X</span></a></td></tr>'; f.find("tbody").append(e)},v=function(e){var h,a,c=".anythingSliderFx({\n",b={},d=f.find("tbody tr").not("tr.spacer"),g=d.length-1;d.each(function(e){h=jQuery(this).find("td");for(a=[h.eq(2).text(),h.eq(3).text(),h.eq(4).text(),h.eq(5).text()];a[a.length-1]==="";)a.pop();b[h.eq(0).text()+h.eq(1).text()]=a;c+=' "'+h.eq(0).text()+h.eq(1).text()+'" : [ "'+a.join('", "')+'" ]';c+=e<g?",\n":""});return e?b:c+"\n});"};for(n in jQuery.easing)n.match("ease")&&(m+="<option>"+n+"</option>");m='<div id="as-fxb-builder"><h2>AnythingSlider FX Builder<span class="close"></span></h2><div id="as-fxb-selections"><table><thead><tr><th>Element<span class="required asfxbuildertooltip" title="Choose one of the elements inside your slider <span class=required>(required if Custom Selector block is empty)</span>">*</span><br><select id="as-fxb-elements"><option data-sel="" selected>{none}</option></select></th><th>Custom<br>Selector<span class="required asfxbuildertooltip" title="Add a custom jQuery selector to target the element(s) <span class=required>(required if the Element block is empty)</span>">*</span><br><input id="as-fxb-custom" type="text" placeholder="Add a custom selector"></th><th>FX<span class="required asfxbuildertooltip" title="Choose one or more FX styles <span class=required>(required)</span>">*</span><br><select id="as-fxb-fxlist" multiple><option>'+ "top,bottom,left,right,fade,expand,listLR,listRL,caption-Top,caption-Bottom,caption-Left,caption-Right".split(",").join("</option><option>")+'</option></select></th><th>Distance/Size<br>(<span class="asfxbuildertooltip" title="Enter a distance to set how far the element moves from its original position (use pixels or percentage)">px or %</span>)<br><input type="text" id="as-fxb-distance" placeholder="Enter distance"></th><th>Time<br>(<span class="asfxbuildertooltip" title="Enter the effects time in milliseconds (1000 ms = 1 second)">ms</span>)<br><input type="text" id="as-fxb-time" placeholder="Enter a time"></th><th>Easing (<a class="asfxbuildertooltip" title="Easing is basically the style of the animation. It can be applied to resizing as well as movement. Click this link to see what each one does" target="_blank" href="http://jquery-ui.googlecode.com/svn/trunk/demos/effect/easing.html">?</a>)<br><select id="as-fxb-easing"><option selected>swing</option><option>linear</option>'+ m+'</select></th><th class="fxbu"><a href="#" class="button getcode asfxbuildertooltip" title="Get the current FX list code"><span>Get Code</span></a><a href="#" class="button test testall asfxbuildertooltip {width:100px;}" title="Test all FX"><span>&#9654; all</span></a><hr><a href="#" class="button add asfxbuildertooltip" title="Add current selections to the list"><span>Add</span></a></th></tr></thead><tfoot><tr><th colspan="7"><span class="examples">Examples:</span></th></tr><tr><th>div.quoteSlide</th><th></th><th>top</th><th>500px</th><th>400</th><th colspan="2">easeOutElastic</th></tr><tr><th>img</th><th>:first</th><th>expand</th><th>10%</th><th></th><th colspan="2">easeOutBounce</th></tr><tr><th>ul</th><th>&gt; li</th><th>listLR</th><th></th><th></th><th colspan="2">easeInOutBounce</th></tr><tr><th></th><th>li:odd</th><th>left</th><th></th><th></th><th colspan="2"></th></tr></tfoot><tbody><tr class="spacer"><td colspan="7"></td></tr></tbody></table><div class="note"><span class="required">*</span> = required; Element and/or Custom Selector is required.</div></div>'; jQuery("body").append(m).bind("mouseup mouseleave",function(){r=!1}).bind("mousemove",function(e){if(r){var a=q[0]+e.pageX,e=q[1]+e.pageY;b[0].style.left=(a<0?0:a)+"px";b[0].style.top=(e<0?0:e)+"px";t&&localStorage.setItem("asfxbPosition",[a<0?0:a,e<0?0:e])}return!1});b=jQuery("#as-fxb-builder");b.find("h2").bind("mousedown",function(e){q=[b.offset().left-e.pageX,b.offset().top-e.pageY];r=!0}).find("span").bind("click",function(){b.remove()});a=t?localStorage.getItem("asfxbPosition")||"":"";a=a=== ""?"250,400":a;a=a.split(",");b.css({left:a[0]+"px",top:a[1]+"px"});jQuery("#as-fxb-fxlist").chosen();jQuery.jatt();f=jQuery("#as-fxb-selections");o=p.children("li");i=p.data("AnythingSlider");o.filter(":not(.cloned)").find("*").each(function(){k=jQuery(this);d=k.closest(".panel");d.is(".panel")?(a=d.index(),a=a===0?".panel:first ":a===jQuery(".panel").length-1?".panel:last ":".panel:eq("+a+") "):a="."+jQuery.trim((" "+d.attr("class")+" ").replace("panel ","").replace("activePage",""));d=this.tagName.toLowerCase(); l=this.id?"#"+this.id:k.attr("class")?"."+k.attr("class"):"";l===""&&(g=d.match("table|thead|tbody|tfoot|tr|ul|br|hr|area|map|embed|object|param|canvas|audio|video|img|iframe")?"":jQuery.trim(k.text()),d.match("img|iframe")&&(j=k.attr("src"),g=j.substring(j.lastIndexOf("/")+1,j.length)));d=a+" "+d;g=g.length>10?g.substring(0,15)+"...":g;s+='<option data-sel="'+d+l+'">'+d+(l!==""?l:g!==""?" ("+g+")":"")+"</option>"});f.find("#as-fxb-elements").append(s);j=jQuery("#as-fxb-elements option");a=Math.floor(Math.random()* (j.length-1))+1;u(j.eq(a).attr("data-sel"),"",["top"],"500","","easeOutBounce");f.find("a.add").bind("click",function(){var e=f.find("#as-fxb-fxlist").val()||"",a=f.find("#as-fxb-elements option:selected").attr("data-sel")||"",b=f.find("#as-fxb-custom").val()||"",c=f.find("#as-fxb-easing").val()||"",d=f.find("#as-fxb-distance").val()||"",g=f.find("#as-fxb-time").val()||"";if(e===""||a===""&&b==="")return f.find("tr.remove").length||(f.find("tbody").prepend('<tr class="remove"><td colspan="7"><h3 class="delete">You must select or enter the required fields!</h3></td></tr>'), setTimeout(function(){f.find("tr.remove").remove()},5E3)),!1;u(a,b,e,d,g,c);return!1}).end().find("a.getcode").bind("click",function(){var a=v();jQuery('<div id="as-fxb-getcode"><textarea>'+a+'</textarea></div><div id="as-fxb-overlay"></div>').appendTo("body");jQuery("#as-fxb-overlay").click(function(){jQuery("#as-fxb-getcode, #as-fxb-overlay").remove()});return!1}).end().delegate("a.delete","click",function(){jQuery(this).closest("tr").remove();return!1}).delegate("a.test","click",function(){var a= jQuery(this).is(".testall"),b=jQuery(this).closest("tr").find("td"),d,c=[];i.$items.find(".fxapplied").each(function(){d=this.style;jQuery.each("top,left,right,bottom,width,opacity".split(","),function(a,b){d[b]!==""&&(d[b]="")})});if(a)i.fx=v(!0),i.startStop(!0);else{for(a=0;a<6;a++)c[a]=b.eq(a).text()||"";b=p.find(c[0]===""?c[1]:c[0].split(" ")[0]).closest(".panel");i.fx={};i.fx[c[0]+c[1]]=[c[2],c[3],c[4],c[5]];i.gotoPage(o.index(b)+(i.options.infiniteSlides?0:1))}return!1});jQuery(document).keyup(function(a){a.which=== 27&&jQuery("#as-fxb-getcode, #as-fxb-overlay").remove()})}};
+function setupFxBuilder(){if(typeof jQuery!=="undefined"&&jQuery(".anythingBase").length){jQuery.find("link.fxbuilder").length||jQuery("head").append("<link class='fxbuilder'>").find(".fxbuilder").attr({rel:"stylesheet",type:"text/css",href:"http://mottie.github.com/AnythingSlider-Fx-Builder/css/builder.css"});var d=typeof jQuery.easing;(d==="undefined"||d==="object"&&typeof jQuery.easing.easeInQuad==="undefined")&&jQuery.getScript("http://proloser.github.com/AnythingSlider/js/jquery.easing.1.2.js"); typeof jQuery.fn.anythingSliderFx!=="function"?jQuery.getScript("http://proloser.github.com/AnythingSlider/js/jquery.anythingslider.fx.js",function(){anythingSliderFxBuilder()}):anythingSliderFxBuilder()}} function anythingSliderFxBuilder(){if(jQuery(".anythingBase").length){jQuery("#as-fxb-builder").remove();var d,f,s="",g="",n,j,a,b,l,k,o,i,m="",m="",t=!!window.localStorage,p=jQuery(".anythingBase:first").anythingSliderFx(),q,r=!1,u=function(e,h,a,c,b,d){/\d+(px|\%)/i.test(c)||(isNaN(c)&&(c=parseInt(c,10)||""),c+=c===""?"":"px");isNaN(b)&&(b=parseInt(b,10)||"");e="<tr><td>"+e+"</td><td>"+h+"</td><td>"+a.join(" ")+"</td><td>"+c+"</td><td>"+b+"</td><td>"+d+'</td><td class="panel"><a href="#" class="button test asfxbuildertooltip {width:100px;}" title="Test the FX"><span>&#9654;</span></a> <a href="#" title="Remove this FX" class="button delete asfxbuildertooltip {width:120px;}"><span>X</span></a></td></tr>'; f.find("tbody").append(e)},v=function(e){var h,a,c=".anythingSliderFx({\n",b={},d=f.find("tbody tr").not("tr.spacer"),g=d.length-1;d.each(function(e){h=jQuery(this).find("td");for(a=[h.eq(2).text(),h.eq(3).text(),h.eq(4).text(),h.eq(5).text()];a[a.length-1]==="";)a.pop();b[h.eq(0).text()+h.eq(1).text()]=a;c+=' "'+h.eq(0).text()+h.eq(1).text()+'" : [ "'+a.join('", "')+'" ]';c+=e<g?",\n":""});return e?b:c+"\n});"};for(n in jQuery.easing)n.match("ease")&&(m+="<option>"+n+"</option>");m='<div id="as-fxb-builder"><\!--[if lte IE 7]><style type="text/css" media="screen">#as-fxb-builder{width:780px;}#as-fxb-builder h2 span.close,#as-fxb-builder h2 a{top:-20px;}</style><![endif]--\><h2>AnythingSlider FX Builder <span class="close"></span><a class="asfxbuildertooltip" target="_blank" title="Need Help? Click me!" href="https://github.com/Mottie/AnythingSlider-Fx-Builder"></a></h2><div id="as-fxb-selections"><table><thead><tr><th>Element<span class="required asfxbuildertooltip" title="Choose one of the elements inside your slider <span class=required>(required if Custom Selector block is empty)</span>">*</span><br><select id="as-fxb-elements"><option data-sel="" selected>{none}</option></select></th><th>Custom<br>Selector<span class="required asfxbuildertooltip" title="Add a custom jQuery selector to target the element(s) <span class=required>(required if the Element block is empty)</span>">*</span><br><input id="as-fxb-custom" type="text" placeholder="Add a custom selector"></th><th>FX<span class="required asfxbuildertooltip" title="Choose one or more FX styles <span class=required>(required)</span>">*</span><br><select id="as-fxb-fxlist" multiple><option>'+ "top,bottom,left,right,fade,expand,listLR,listRL,caption-Top,caption-Bottom,caption-Left,caption-Right".split(",").join("</option><option>")+'</option></select></th><th>Distance/Size<br>(<span class="asfxbuildertooltip" title="Enter a distance to set how far the element moves from its original position (use pixels or percentage)">px or %</span>)<br><input type="text" id="as-fxb-distance" placeholder="Enter distance"></th><th>Time<br>(<span class="asfxbuildertooltip" title="Enter the effects time in milliseconds (1000 ms = 1 second)">ms</span>)<br><input type="text" id="as-fxb-time" placeholder="Enter a time"></th><th>Easing (<a class="asfxbuildertooltip" title="Easing is basically the style of the animation. It can be applied to resizing as well as movement. Click this link to see what each one does" target="_blank" href="http://jquery-ui.googlecode.com/svn/trunk/demos/effect/easing.html">?</a>)<br><select id="as-fxb-easing"><option selected>swing</option><option>linear</option>'+ m+'</select></th><th class="fxbu"><a href="#" class="button getcode asfxbuildertooltip" title="Get the current FX list code"><span>Get Code</span></a><a href="#" class="button test testall asfxbuildertooltip {width:100px;}" title="Test all FX"><span>&#9654; all</span></a><hr><a href="#" class="button add asfxbuildertooltip" title="Add current selections to the list"><span>Add</span></a></th></tr></thead><tfoot><tr><th colspan="7"><span class="examples">Examples:</span></th></tr><tr><th>div.quoteSlide</th><th></th><th>top</th><th>500px</th><th>400</th><th colspan="2">easeOutElastic</th></tr><tr><th>img</th><th>:first</th><th>expand</th><th>10%</th><th></th><th colspan="2">easeOutBounce</th></tr><tr><th>ul</th><th>&gt; li</th><th>listLR</th><th></th><th></th><th colspan="2">easeInOutBounce</th></tr><tr><th></th><th>li:odd</th><th>left</th><th></th><th></th><th colspan="2"></th></tr></tfoot><tbody><tr class="spacer"><td colspan="7"></td></tr></tbody></table><div class="note"><span class="required">*</span> = required; Element and/or Custom Selector is required.</div></div>'; jQuery("body").append(m).bind("mouseup mouseleave",function(){r=!1}).bind("mousemove",function(e){if(r){var a=q[0]+e.pageX,e=q[1]+e.pageY;d[0].style.left=(a<0?0:a)+"px";d[0].style.top=(e<0?0:e)+"px";t&&localStorage.setItem("asfxbPosition",[a<0?0:a,e<0?0:e])}return!1});d=jQuery("#as-fxb-builder");d.find("h2").bind("mousedown",function(e){q=[d.offset().left-e.pageX,d.offset().top-e.pageY];r=!0}).find("span").bind("click",function(){d.remove()});a=t?localStorage.getItem("asfxbPosition")||"":"";a=a=== ""?"250,400":a;a=a.split(",");d.css({left:a[0]+"px",top:a[1]+"px"});jQuery("#as-fxb-fxlist").chosen();jQuery.jatt();f=jQuery("#as-fxb-selections");o=p.children("li");i=p.data("AnythingSlider");o.filter(":not(.cloned)").find("*").each(function(){k=jQuery(this);b=k.closest(".panel");b.is(".panel")?(a=b.index(),a=a===0?".panel:first ":a===jQuery(".panel").length-1?".panel:last ":".panel:eq("+a+") "):a="."+jQuery.trim((" "+b.attr("class")+" ").replace("panel ","").replace("activePage",""));b=this.tagName.toLowerCase(); !b.match("area|br|param|source|style|script|colgroup|option")&&!/^\//.test(b)&&(l=this.id?"#"+this.id:k.attr("class")?"."+k.attr("class"):"",l===""&&(g=b.match("table|thead|tbody|tfoot|tr|ul|hr|map|embed|object|canvas|audio|video|img|iframe")?"":jQuery.trim(k.text()),b.match("img|iframe|embed")&&(j=k.attr("src"),g=j.substring(j.lastIndexOf("/")+1,j.length))),b=a+" "+b,g=g.length>10?g.substring(0,15)+"...":g,s+='<option data-sel="'+b+l+'">'+b+(l!==""?l:g!==""?" ("+g+")":"")+"</option>")});f.find("#as-fxb-elements").append(s); j=jQuery("#as-fxb-elements option");a=Math.floor(Math.random()*(j.length-1))+1;u(j.eq(a).attr("data-sel"),"",["top"],"500","","easeOutBounce");f.find("a.add").bind("click",function(){var e=f.find("#as-fxb-fxlist").val()||"",a=f.find("#as-fxb-elements option:selected").attr("data-sel")||"",b=f.find("#as-fxb-custom").val()||"",c=f.find("#as-fxb-easing").val()||"",d=f.find("#as-fxb-distance").val()||"",g=f.find("#as-fxb-time").val()||"";if(e===""||a===""&&b==="")return f.find("tr.remove").length||(f.find("tbody").prepend('<tr class="remove"><td colspan="7"><h3 class="delete">You must select or enter the required fields!</h3></td></tr>'), setTimeout(function(){f.find("tr.remove").remove()},5E3)),!1;u(a,b,e,d,g,c);return!1}).end().find("a.getcode").bind("click",function(){var a=v();jQuery('<div id="as-fxb-getcode"><textarea>'+a+'</textarea></div><div id="as-fxb-overlay"></div>').appendTo("body");jQuery("#as-fxb-overlay").click(function(){jQuery("#as-fxb-getcode, #as-fxb-overlay").remove()});return!1}).end().delegate("a.delete","click",function(){jQuery(this).closest("tr").remove();return!1}).delegate("a.test","click",function(){var a= jQuery(this).is(".testall"),b=jQuery(this).closest("tr").find("td"),d,c=[];i.$items.find(".fxapplied").each(function(){d=this.style;jQuery.each("top,left,right,bottom,width,opacity".split(","),function(a,b){d[b]!==""&&(d[b]="")})});if(a)i.fx=v(!0),i.startStop(!0);else{for(a=0;a<6;a++)c[a]=b.eq(a).text()||"";b=p.find(c[0]===""?c[1]:c[0].split(" ")[0]).closest(".panel");i.fx={};i.fx[c[0]+c[1]]=[c[2],c[3],c[4],c[5]];i.gotoPage(o.index(b)+(i.options.infiniteSlides?0:1))}return!1});jQuery(document).keyup(function(a){a.which=== 27&&jQuery("#as-fxb-getcode, #as-fxb-overlay").remove()})}};
// Chosen, a Select Box Enhancer for jQuery and Protoype
// by Patrick Filler for Harvest, http://getharvest.com

0 comments on commit 927259a

Please sign in to comment.
Something went wrong with that request. Please try again.