test/dummy/tmp/cache/assets/D14/170/sprockets%2F40a7b83bb067eea7ce2c8394e1529287 in cytoplasm-0.1.4 vs test/dummy/tmp/cache/assets/D14/170/sprockets%2F40a7b83bb067eea7ce2c8394e1529287 in cytoplasm-0.1.5

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357586231.770189: @value"U,{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357768041.092706: @value"Ô-{I" class:EFI"BundledAsset;FI"logical_path;FI"cytoplasm/cytoplasm.js;FI" pathname;FI"f/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoplasm.js.erb;FI"content_type;FI"application/javascript;FI" -mtime;FI"2013-01-07T14:17:11-05:00;FI" length;Fih*I" digest;F"%a0f854e68a8e1ad4ad6653196cf12deeI" source;FI"h*// CytoPlasm jQuery Setup v0.1 +mtime;FI"2013-01-09T16:47:20-05:00;FI" length;Fiç+I" digest;F"%cd9580ac090e2bea673ef7a02d0f5027I" source;FI"ç+// CytoPlasm jQuery Setup v0.1 // By MacKinley Smith // Initialize global JS variables var Cytoplasm; @@ -17,13 +17,13 @@ // Setup callback messages $.each(["success","sending","error"],function(i,v){ var $this = $('#'+v+'_message'); if (!$this.is('*')) { $this = $('<p />').addClass('callback_message').attr("id",v+"_message"); - if (header.children(':first-child').is('h1')) $this.insertAfter(header.children(':first-child')); - else $this.prependTo(header); - $this.hide(); + //if (header.children(':first-child').is('h1')) $this.insertAfter(header.children(':first-child')); + //else $this.prependTo(header); + $this.hide().appendTo(header); } }); }); })(jQuery); @@ -35,10 +35,11 @@ }; var conf = {}; var vars = {}; var ready = false; + // Gradient manipulation library var parseGradient = function(grad,reverse){ // Return untouched if not gradient if (grad.indexOf("gradient")==-1) return grad; if (reverse!=true) reverse = false; var o = {}; @@ -114,10 +115,11 @@ if (nstr.slice(-1) == "%") nstr = nstr.split(" ").slice(0,-1).join(" "); nstr = nstr.replace(/\s\s*/g,'') // Remove all spaces if ($.inArray(nstr,['aqua','black','blue','fuchsia','gray','grey','green','lime','maroon','navy','olive','purple','red','silver','teal','white','yellow'])>-1) return true; return (nstr.match(/^#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})/) || nstr.match(/^#([\da-fA-F])([\da-fA-F])([\da-fA-F])/) || nstr.match(/^rgba\(([\d]+),([\d]+),([\d]+),([\d]+|[\d]*.[\d]+)\)/) || nstr.match(/^rgb\(([\d]+),([\d]+),([\d]+)\)/)); }; + var compileStyles = function(element,styles){ output = ""; output += element+" { "; $.each(styles,function(prop,value){ if (typeof value == "object") output += compileStyles(prop,value); @@ -131,17 +133,18 @@ }; var methods = { init:function(options){ var settings = $.extend(true,{},defaults,options); + $('body').css("overflow","hidden").children(':not(header)').css("opacity",0); // Fetch latest settings via AJAX $.cytoAjax("/cytoplasm/settings/fetch",{},function(data){ conf = data.conf; vars = data.vars; - methods.setStyles.apply(this); $('body').data('cytoplasm',settings); + methods.setStyles.apply(this); ready = true; }); }, setStyles:function(){ // Remove existing cytoplasm styles @@ -286,12 +289,16 @@ $('body').data('cytoplasm',null); }, ready:function(callback){ var interval = setInterval(function(){ if (ready) { - callback.apply(); - clearInterval(interval) + clearInterval(interval); + var allexceptheader = $('body').children(':not(header)').animate({opacity:1},250,function(){ + $('body').css('overflow-y','scroll'); + $(window).bind('beforeunload',function(){allexceptheader.animate({opacity:0},100);}); + callback.apply(); + }); } },10); } }; @@ -302,6 +309,6 @@ }; $(document).ready(function(){$.Cytoplasm()}); })(jQuery); -;FI"required_assets_digest;F"%281c12e34ee0ef90e05fe232f4edcb0fI" _version;F"%6776f581a4329e299531e1d52aa59832 +;FI"required_assets_digest;F"%5663d59a4529c7d316af0624a1f731c8I" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file