diff --git a/public/assets/application-40a5b778861df53ec85be7fc49dbd4c8.js b/public/assets/application-40a5b778861df53ec85be7fc49dbd4c8.js new file mode 100644 index 0000000..e198363 --- /dev/null +++ b/public/assets/application-40a5b778861df53ec85be7fc49dbd4c8.js @@ -0,0 +1,45 @@ +/** + * Unobtrusive scripting adapter for jQuery + * + * Requires jQuery 1.4.4 or later. + * https://github.com/rails/jquery-ujs + + * Uploading file using rails.js + * ============================= + * + * By default, browsers do not allow files to be uploaded via AJAX. As a result, if there are any non-blank file fields + * in the remote form, this adapter aborts the AJAX submission and allows the form to submit through standard means. + * + * The `ajax:aborted:file` event allows you to bind your own handler to process the form submission however you wish. + * + * Ex: + * $('form').live('ajax:aborted:file', function(event, elements){ + * // Implement own remote file-transfer handler here for non-blank file inputs passed in `elements`. + * // Returning false in this handler tells rails.js to disallow standard form submission + * return false; + * }); + * + * The `ajax:aborted:file` event is fired when a file-type input is detected with a non-blank value. + * + * Third-party tools can use this hook to detect when an AJAX file upload is attempted, and then use + * techniques like the iframe method to upload the file instead. + * + * Required fields in rails.js + * =========================== + * + * If any blank required inputs (required="required") are detected in the remote form, the whole form submission + * is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission. + * + * The `ajax:aborted:required` event allows you to bind your own handler to inform the user of blank required inputs. + * + * !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never + * get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior. + * + * Ex: + * $('form').live('ajax:aborted:required', function(event, elements){ + * // Returning false in this handler tells rails.js to submit the form anyway. + * // The blank required inputs are passed to this function in `elements`. + * return ! confirm("Would you like to submit the form with missing info?"); + * }); + */ +(function(a){var b;a.rails=b={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required],textarea[name][required]",fileInputSelector:"input:file",CSRFProtection:function(b){var c=a('meta[name="csrf-token"]').attr("content");c&&b.setRequestHeader("X-CSRF-Token",c)},fire:function(b,c,d){var e=a.Event(c);b.trigger(e,d);return e.result!==!1},confirm:function(a){return confirm(a)},ajax:function(b){return a.ajax(b)},handleRemote:function(c){var d,e,f,g=c.data("type")||a.ajaxSettings&&a.ajaxSettings.dataType;if(b.fire(c,"ajax:before")){if(c.is("form")){d=c.attr("method"),e=c.attr("action"),f=c.serializeArray();var h=c.data("ujs:submit-button");h&&(f.push(h),c.data("ujs:submit-button",null))}else d=c.data("method"),e=c.attr("href"),f=null;b.ajax({url:e,type:d||"GET",data:f,dataType:g,beforeSend:function(a,d){d.dataType===undefined&&a.setRequestHeader("accept","*/*;q=0.5, "+d.accepts.script);return b.fire(c,"ajax:beforeSend",[a,d])},success:function(a,b,d){c.trigger("ajax:success",[a,b,d])},complete:function(a,b){c.trigger("ajax:complete",[a,b])},error:function(a,b,d){c.trigger("ajax:error",[a,b,d])}})}},handleMethod:function(b){var c=b.attr("href"),d=b.data("method"),e=a("meta[name=csrf-token]").attr("content"),f=a("meta[name=csrf-param]").attr("content"),g=a('
'),h='';f!==undefined&&e!==undefined&&(h+=''),g.hide().append(h).appendTo("body"),g.submit()},disableFormElements:function(c){c.find(b.disableSelector).each(function(){var b=a(this),c=b.is("button")?"html":"val";b.data("ujs:enable-with",b[c]()),b[c](b.data("disable-with")),b.attr("disabled","disabled")})},enableFormElements:function(c){c.find(b.enableSelector).each(function(){var b=a(this),c=b.is("button")?"html":"val";b.data("ujs:enable-with")&&b[c](b.data("ujs:enable-with")),b.removeAttr("disabled")})},allowAction:function(a){var c=a.data("confirm"),d=!1,e;if(!c)return!0;b.fire(a,"confirm")&&(d=b.confirm(c),e=b.fire(a,"confirm:complete",[d]));return d&&e},blankInputs:function(b,c,d){var e=a(),f,g=c||"input,textarea";b.find(g).each(function(){f=a(this);if(d?f.val():!f.val())e=e.add(f)});return e.length?e:!1},nonBlankInputs:function(a,c){return b.blankInputs(a,c,!0)},stopEverything:function(a){a.stopImmediatePropagation();return!1},callFormSubmitBindings:function(b){var c=b.data("events"),d=!0;c!==undefined&&c.submit!==undefined&&a.each(c.submit,function(a,b){if(typeof b.handler=="function")return d=b.handler(b.data)});return d}},"ajaxPrefilter"in a?a.ajaxPrefilter(function(a,c,d){b.CSRFProtection(d)}):a(document).ajaxSend(function(a,c){b.CSRFProtection(c)}),a(b.linkClickSelector).live("click.rails",function(c){var d=a(this);if(!b.allowAction(d))return b.stopEverything(c);if(d.data("remote")!==undefined){b.handleRemote(d);return!1}if(d.data("method")){b.handleMethod(d);return!1}}),a(b.formSubmitSelector).live("submit.rails",function(c){var d=a(this),e=d.data("remote")!==undefined,f=b.blankInputs(d,b.requiredInputSelector),g=b.nonBlankInputs(d,b.fileInputSelector);if(!b.allowAction(d))return b.stopEverything(c);if(f&&b.fire(d,"ajax:aborted:required",[f]))return!e;if(e){if(g)return b.fire(d,"ajax:aborted:file",[g]);if(!a.support.submitBubbles&&b.callFormSubmitBindings(d)===!1)return b.stopEverything(c);b.handleRemote(d);return!1}setTimeout(function(){b.disableFormElements(d)},13)}),a(b.formInputClickSelector).live("click.rails",function(c){var d=a(this);if(!b.allowAction(d))return b.stopEverything(c);var e=d.attr("name"),f=e?{name:e,value:d.val()}:null;d.closest("form").data("ujs:submit-button",f)}),a(b.formSubmitSelector).live("ajax:beforeSend.rails",function(c){this==c.target&&b.disableFormElements(a(this))}),a(b.formSubmitSelector).live("ajax:complete.rails",function(c){this==c.target&&b.enableFormElements(a(this))})})(jQuery),jQuery.cookie=function(a,b,c){if(typeof b=="undefined"){var i=null;if(document.cookie&&document.cookie!=""){var j=document.cookie.split(";");for(var k=0;k').addClass(c&&c.position?c.position:a.jGrowl.defaults.position).appendTo("body"),a("#jGrowl").jGrowl(b,c)},a.fn.jGrowl=function(b,c){if(a.isFunction(this.each)){var d=arguments;return this.each(function(){var e=this;a(this).data("jGrowl.instance")==undefined&&(a(this).data("jGrowl.instance",a.extend(new a.fn.jGrowl,{notifications:[],element:null,interval:null})),a(this).data("jGrowl.instance").startup(this)),a.isFunction(a(this).data("jGrowl.instance")[b])?a(this).data("jGrowl.instance")[b].apply(a(this).data("jGrowl.instance"),a.makeArray(d).slice(1)):a(this).data("jGrowl.instance").create(b,c)})}},a.extend(a.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:!0,closeTemplate:"×",closerTemplate:"
[ close all ]
",log:function(a,b,c){},beforeOpen:function(a,b,c){},afterOpen:function(a,b,c){},open:function(a,b,c){},beforeClose:function(a,b,c){},close:function(a,b,c){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(b,c){var c=a.extend({},this.defaults,c);typeof c.speed!="undefined"&&(c.openDuration=c.speed,c.closeDuration=c.speed),this.notifications.push({message:b,options:c}),c.log.apply(this.element,[this.element,b,c])},render:function(b){var c=this,d=b.message,e=b.options,b=a('
'+'
'+e.closeTemplate+"
"+'
'+e.header+"
"+'
'+d+"
").data("jGrowl",e).addClass(e.theme).children("div.jGrowl-close").bind("click.jGrowl",function(){a(this).parent().trigger("jGrowl.close")}).parent();a(b).bind("mouseover.jGrowl",function(){a("div.jGrowl-notification",c.element).data("jGrowl.pause",!0)}).bind("mouseout.jGrowl",function(){a("div.jGrowl-notification",c.element).data("jGrowl.pause",!1)}).bind("jGrowl.beforeOpen",function(){e.beforeOpen.apply(b,[b,d,e,c.element])!=!1&&a(this).trigger("jGrowl.open")}).bind("jGrowl.open",function(){e.open.apply(b,[b,d,e,c.element])!=!1&&(e.glue=="after"?a("div.jGrowl-notification:last",c.element).after(b):a("div.jGrowl-notification:first",c.element).before(b),a(this).animate(e.animateOpen,e.openDuration,e.easing,function(){a.browser.msie&&(parseInt(a(this).css("opacity"),10)===1||parseInt(a(this).css("opacity"),10)===0)&&this.style.removeAttribute("filter"),a(this).data("jGrowl").created=new Date,a(this).trigger("jGrowl.afterOpen")}))}).bind("jGrowl.afterOpen",function(){e.afterOpen.apply(b,[b,d,e,c.element])}).bind("jGrowl.beforeClose",function(){e.beforeClose.apply(b,[b,d,e,c.element])!=!1&&a(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){a(this).data("jGrowl.pause",!0),a(this).animate(e.animateClose,e.closeDuration,e.easing,function(){a(this).remove();var f=e.close.apply(b,[b,d,e,c.element]);a.isFunction(f)&&f.apply(b,[b,d,e,c.element])})}).trigger("jGrowl.beforeOpen"),e.corners!=""&&a.fn.corner!=undefined&&a(b).corner(e.corners),a("div.jGrowl-notification:parent",c.element).size()>1&&a("div.jGrowl-closer",c.element).size()==0&&this.defaults.closer!=!1&&a(this.defaults.closerTemplate).addClass("jGrowl-closer ui-state-highlight ui-corner-all").addClass(this.defaults.theme).appendTo(c.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){a(this).siblings().trigger("jGrowl.beforeClose"),a.isFunction(c.defaults.closer)&&c.defaults.closer.apply(a(this).parent()[0],[a(this).parent()[0]])})},update:function(){a(this.element).find("div.jGrowl-notification:parent").each(function(){a(this).data("jGrowl")!=undefined&&a(this).data("jGrowl").created!=undefined&&a(this).data("jGrowl").created.getTime()+parseInt(a(this).data("jGrowl").life)<(new Date).getTime()&&a(this).data("jGrowl").sticky!=!0&&(a(this).data("jGrowl.pause")==undefined||a(this).data("jGrowl.pause")!=!0)&&a(this).trigger("jGrowl.beforeClose")}),this.notifications.length>0&&(this.defaults.pool==0||a(this.element).find("div.jGrowl-notification:parent").size()'),this.interval=setInterval(function(){a(b).data("jGrowl.instance").update()},parseInt(this.defaults.check)),a.browser.msie&&parseInt(a.browser.version)<7&&!window.XMLHttpRequest&&a(this.element).addClass("ie6")},shutdown:function(){a(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove(),clearInterval(this.interval)},close:function(){a(this.element).find("div.jGrowl-notification").each(function(){a(this).trigger("jGrowl.beforeClose")})}}),a.jGrowl.defaults=a.fn.jGrowl.prototype.defaults}(jQuery),$(function(){var a=function(a){try{return JSON.parse(a)}catch(b){return{text:a}}},b=function(a,b){typeof a=="string"&&(a=JSON.parse(a)),$.jGrowl(a.text,$.extend(a,b))};$.notify={error:function(a){b(a,{theme:"error"})},warn:function(a){b(a,{theme:"warn"})},notice:function(a){b(a,{theme:"notice"})},all:function(){$.cookie("flash.error")&&($.notify.error($.cookie("flash.error")),$.cookie("flash.error",null,{path:"/"})),$.cookie("flash.warn")&&($.notify.warn($.cookie("flash.warn")),$.cookie("flash.warn",null,{path:"/"})),$.cookie("flash.notice")&&($.notify.notice($.cookie("flash.notice")),$.cookie("flash.notice",null,{path:"/"}))}},$.notify.all()}) \ No newline at end of file diff --git a/public/assets/application-bc7f3577787fd1bb5c3766d659c8930e.css b/public/assets/application-bc7f3577787fd1bb5c3766d659c8930e.css new file mode 100644 index 0000000..db09fd9 --- /dev/null +++ b/public/assets/application-bc7f3577787fd1bb5c3766d659c8930e.css @@ -0,0 +1 @@ +div.jGrowl{padding:10px;z-index:9999;color:#fff;font-size:12px}div.ie6{position:absolute}div.ie6.top-right{right:auto;bottom:auto;left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.top-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-right{left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.center{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );width:100%}div.jGrowl{position:absolute}body > div.jGrowl{position:fixed}div.jGrowl.top-left{left:0px;top:0px}div.jGrowl.top-right{right:0px;top:0px}div.jGrowl.bottom-left{left:0px;bottom:0px}div.jGrowl.bottom-right{right:0px;bottom:0px}div.jGrowl.center{top:0px;width:50%;left:25%}div.center div.jGrowl-notification,div.center div.jGrowl-closer{margin-left:auto;margin-right:auto}div.jGrowl div.jGrowl-notification,div.jGrowl div.jGrowl-closer{background-color:#000;opacity:.85;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85);zoom:1;width:235px;padding:10px;margin-top:5px;margin-bottom:5px;font-family:Tahoma, Arial, Helvetica, sans-serif;font-size:1em;text-align:left;display:none;-moz-border-radius:5px;-webkit-border-radius:5px}div.jGrowl div.jGrowl-notification{min-height:40px}div.jGrowl div.jGrowl-notification div.jGrowl-header{font-weight:bold;font-size:.85em}div.jGrowl div.jGrowl-notification div.jGrowl-close{z-index:99;float:right;font-weight:bold;font-size:1em;cursor:pointer}div.jGrowl div.jGrowl-closer{padding-top:4px;padding-bottom:4px;cursor:pointer;font-size:.9em;font-weight:bold;text-align:center}@media print{div.jGrowl{display:none}}dl dt{font-weight:bold}dl dd{margin-left:1em}.boxes{display:-webkit-box;display:-moz-box}@media only screen and (max-width: 767px){.boxes{display:block}}div.jGrowl div.notice div.jGrowl-message{color:#66cc00}div.jGrowl div.warn div.jGrowl-message{color:#ff9900}div.jGrowl div.error div.jGrowl-message{color:red}body > header h1{font-weight:normal}body > header p{color:#666666}body > header a{color:#333333;text-decoration:none}body > header a:hover{color:#666666}body > header .money{opacity:0.6}body > header figure{width:100%;height:150px;margin:25px 0;overflow:hidden;border-radius:6px}@media only screen and (max-width: 767px){body > header figure{height:60px}}body > footer{color:#666666;font-size:13px;text-align:right;margin-top:20px}body > footer a{color:#666666;text-decoration:none}body > footer a:hover{color:#333333}body > footer ul{list-style:none}body > footer ul li{display:inline-block;padding-left:15px}html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,hr,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figure,figcaption,hgroup,menu,footer,header,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0}article,aside,canvas,figure,figure img,figcaption,hgroup,footer,header,nav,section,audio,video{display:block}a img{border:0}.gigantic{font-size:110px;line-height:120px}.huge,h1{font-size:24px;line-height:32px}.large,h2{font-size:20px;line-height:28px}.bigger,h3{font-size:16px;line-height:24px}.big,h4{font-size:16px;line-height:24px}body{font:16px/24px Georgia, serif}.small,small{font-size:13px;line-height:18px}body{width:896px;margin:0 auto;padding:72px 48px 84px;background:#e8e8e8;color:#3c3c3c;-webkit-text-size-adjust:100%}@media only screen and (min-width: 768px) and (max-width: 991px){body{width:712px;padding:48px 28px 60px}}@media only screen and (max-width: 767px){body{width:252px;padding:48px 34px 60px}}@media only screen and (min-width: 480px) and (max-width: 767px){body{width:436px;padding:36px 22px 48px}}.payments dl{margin:1% 0;padding:15px;border:1px solid #dddddd;border-radius:6px}.payments .unsubscribe{font-size:12px}.payments .unsubscribe a{color:#dd0000;text-decoration:none}.payments .unsubscribe a:hover{color:#990000}.top section{margin:20px 0}.top article{width:45%;margin:10px 0;padding:10px 2%;border:1px solid #dddddd;border-radius:6px}.top article form{text-align:right}.top article input[type=submit]{opacity:0.6;text-indent:-9999px;width:150px;height:33px;border:none;background:url(https://www.paypal.com/en_US/i/btn/btn_dg_pay_w_paypal.gif)}.top article input[type=submit]:hover{opacity:1}.top article input[type=submit]:active{opacity:0.8}.top .boxes article:first-child{margin-right:2%}@media only screen and (max-width: 767px){.top article{width:92%;padding:10px 4%}.top .boxes article:first-child{margin-right:0}.top .popup{display:none}}