/* ########################################################## START LOGIN MANAGER ########################################################## */ $.fn.e4eLogin = function () { var args = arguments[0] || {}; var options = $.extend({}, $.e4eLogin.defaults, args); var elem = $(this); this.each(function () { new $.e4eLogin.construct(elem, options); }); }; $.e4eLogin = { defaults:{ overlay:true, overlaySettings:{ setClass:'login-overlay', color:'#000', opacity: 0.6 }, minimal:false, animate:true, redirectURL1: ""+window.location, formSettings:{ setClass: 'login-panel', forgottenLink:false, forgottenInput:true, forgottenInputSettings:{ preHTML: '

Having trouble logging in?

If you would like us to reset your password via email please enter your username:

' }, logo:true, websiteName:true, loginHTML:"

Welcome to the

St Athan Primary School

Secure Login

", closeButton: true, signup: false } }, loginCount: 0, construct:function(elem, options){ $.e4eLogin.loginCount++; $(elem) .append( (options.overlay === true? $('
') .addClass(options.overlaySettings.setClass) .css({ width: $(elem).width(), height: $(elem).height(), position: 'absolute', top:0, left:0, background: options.overlaySettings.color, opacity: (options.animate === true ? 0 : options.overlaySettings.opacity) // starts off transparent? }) .animate({opacity:(options.animate === false ? 1 : options.overlaySettings.opacity)}, 500) : '' ) ) .append( (options.overlay === true ? $('
').addClass('login-shadow').css({opacity:0.4}) :'') ) .append( $('
') .addClass(options.formSettings.setClass) .addClass((options.minimal === true ? 'login-inline' : '')) .css({ opacity: (options.animate === true ? 0 : 1) // starts off transparent? }) .append( $('
') .addClass('login-input-form') .append('') .append( (options.minimal === false ? $('
') .addClass('login-input-form-div') .append((options.formSettings.closeButton === true ? $('
') // close button .addClass('login-close') .click(function(){ $.e4eLogin.doClose($(this)); }) : '')) .append((options.formSettings.logo === true ? $('
').addClass('login-logo') : '')) // show / hide logo .append(options.formSettings.loginHTML) .append( $('
') .addClass('login-inputArea') .append( $('') .addClass('login-input-username') .append( $('