/* * jQuery Mobile Framework : plugin to provide a date and time picker. * Copyright (c) JTSage * CC 3.0 Attribution. May be relicensed without permission/notification. * https://github.com/jtsage/jquery-mobile-datebox */ (function(a){a.extend(a.mobile.datebox.prototype.options,{themeDateHigh:"b",themeDatePick:"b",themeDate:"a",useSetButton:true,validHours:false,flen:{y:15,m:12,d:20,h:12,i:15,a:3}});a.extend(a.mobile.datebox.prototype,{_fbox_pos:function(){var b=this,f=null,e=null,d=this.d.intHTML.find(".ui-datebox-flipcontent").innerHeight(),c=null;b.d.intHTML.find(".ui-datebox-flipcenter").each(function(){f=a(this);e=f.innerHeight();f.css("top",((d/2)-(e/2)-3)*-1)});b.d.intHTML.find("ul").each(function(){f=a(this);d=f.parent().innerHeight();e=f.find("li").first();c=f.find("li").size()*e.outerHeight();fixer=f.find("li").last().offset().top-f.find("li").first().offset().top;pos1=(((c/2)-(d/2)+(e.outerHeight()/2))*-1);if(fixer>0){pos1=((((fixer-d)/2)+e.outerHeight())*-1)}e.css("marginTop",pos1)})}});a.extend(a.mobile.datebox.prototype._build,{timeflipbox:function(){this._build.flipbox.apply(this)},flipbox:function(){var l=this,d=this.options,e,j,m,f,k,g=(l.d.input.val()==="")?l._startOffset(l._makeDate(l.d.input.val())):l._makeDate(l.d.input.val()),h="ui-datebox-",c=a("
"),b=a("