code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/* http://keith-wood.name/datepick.html Slovenian localisation for jQuery Datepicker. Written by Jaka Jancar (jaka@kubje.org). */ /* c = č, s = š z = ž C = Č S = Š Z = Ž */ (function($) { $.datepick.regional['sl'] = { monthNames: ['Januar','Februar','Marec','April','Maj','Junij', 'Julij','Avgust','September','Oktober','November','December'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Avg','Sep','Okt','Nov','Dec'], dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'], dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'], dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '<Prejšnji', prevStatus: 'Prikaži prejšnji mesec', prevJumpText: '<<', prevJumpStatus: '', nextText: 'Naslednji>', nextStatus: 'Prikaži naslednji mesec', nextJumpText: '>>', nextJumpStatus: '', currentText: 'Trenutni', currentStatus: 'Prikaži trenutni mesec', todayText: 'Trenutni', todayStatus: 'Prikaži trenutni mesec', clearText: 'Izbriši', clearStatus: 'Izbriši trenutni datum', closeText: 'Zapri', closeStatus: 'Zapri brez spreminjanja', yearStatus: 'Prikaži drugo leto', monthStatus: 'Prikaži drug mesec', weekText: 'Teden', weekStatus: 'Teden v letu', dayStatus: 'Izberi DD, d MM yy', defaultStatus: 'Izbira datuma', isRTL: false }; $.datepick.setDefaults($.datepick.regional['sl']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-sl.js
JavaScript
asf20
1,638
/* ThemeRoller Blitzer override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #ffffff; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #f6f6f6; /* Set (.ui-state-hover) colours from theme here */ color: #111111; } .ui-widget-header select, .ui-widget-header option { background-color: #cc0000; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #555555; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-blitzer.datepick.css
CSS
asf20
618
/* http://keith-wood.name/datepick.html French localisation for jQuery Datepicker. Stéphane Nahmani (sholby@sholby.net). */ (function($) { $.datepick.regional['fr'] = { monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', 'Jul','Aoû','Sep','Oct','Nov','Déc'], dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '<Préc', prevStatus: 'Voir le mois précédent', prevJumpText: '<<', prevJumpStatus: 'Voir l\'année précédent', nextText: 'Suiv>', nextStatus: 'Voir le mois suivant', nextJumpText: '>>', nextJumpStatus: 'Voir l\'année suivant', currentText: 'Courant', currentStatus: 'Voir le mois courant', todayText: 'Aujourd\'hui', todayStatus: 'Voir aujourd\'hui', clearText: 'Effacer', clearStatus: 'Effacer la date sélectionnée', closeText: 'Fermer', closeStatus: 'Fermer sans modifier', yearStatus: 'Voir une autre année', monthStatus: 'Voir un autre mois', weekText: 'Sm', weekStatus: 'Semaine de l\'année', dayStatus: '\'Choisir\' le DD d MM', defaultStatus: 'Choisir la date', isRTL: false }; $.datepick.setDefaults($.datepick.regional['fr']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-fr.js
JavaScript
asf20
1,542
/* http://keith-wood.name/datepick.html Swedish localisation for jQuery Datepicker. Written by Anders Ekdahl ( anders@nomadiz.se). */ (function($) { $.datepick.regional['sv'] = { monthNames: ['Januari','Februari','Mars','April','Maj','Juni', 'Juli','Augusti','September','Oktober','November','December'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Aug','Sep','Okt','Nov','Dec'], dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'], dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'], dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'], dateFormat: 'yyyy-mm-dd', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '«Förra', prevStatus: '', prevJumpText: '<<', prevJumpStatus: '', nextText: 'Nästa»', nextStatus: '', nextJumpText: '>>', nextJumpStatus: '', currentText: 'Idag', currentStatus: '', todayText: 'Idag', todayStatus: '', clearText: 'Rensa', clearStatus: '', closeText: 'Stäng', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Ve', weekStatus: '', dayStatus: 'D, M d', defauktStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['sv']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-sv.js
JavaScript
asf20
1,319
/* http://keith-wood.name/datepick.html Serbian localisation for jQuery Datepicker. Written by Dejan Dimić. */ (function($){ $.datepick.regional['sr-SR'] = { monthNames: ['Januar','Februar','Mart','April','Maj','Jun', 'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Avg','Sep','Okt','Nov','Dec'], dayNames: ['Nedelja','Ponedeljak','Utorak','Sreda','Četvrtak','Petak','Subota'], dayNamesShort: ['Ned','Pon','Uto','Sre','Čet','Pet','Sub'], dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '<', prevStatus: 'Prikaži prethodni mesec', prevJumpText: '<<', prevJumpStatus: 'Prikaži prethodnu godinu', nextText: '>', nextStatus: 'Prikaži sledeći mesec', nextJumpText: '>>', nextJumpStatus: 'Prikaži sledeću godinu', currentText: 'Danas', currentStatus: 'Tekući mesec', todayText: 'Danas', todayStatus: 'Tekući mesec', clearText: 'Obriši', clearStatus: 'Obriši trenutni datum', closeText: 'Zatvori', closeStatus: 'Zatvori kalendar', yearStatus: 'Prikaži godine', monthStatus: 'Prikaži mesece', weekText: 'Sed', weekStatus: 'Sedmica', dayStatus: '\'Datum\' D, M d', defaultStatus: 'Odaberi datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['sr-SR']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-sr-SR.js
JavaScript
asf20
1,463
/* http://keith-wood.name/datepick.html Armenian localisation for jQuery Datepicker. Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ (function($) { $.datepick.regional['hy'] = { monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս', 'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'], monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս', 'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'], dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'], dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '<Նախ.', prevStatus: '', prevJumpText: '<<', prevJumpStatus: '', nextText: 'Հաջ.>', nextStatus: '', nextJumpText: '>>', nextJumpStatus: '', currentText: 'Այսօր', currentStatus: '', todayText: 'Այսօր', todayStatus: '', clearText: 'Մաքրել', clearStatus: '', closeText: 'Փակել', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'ՇԲՏ', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['hy']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-hy.js
JavaScript
asf20
1,562
/* ThemeRoller Blacktie override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #eeeeee; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #1c1c1c; /* Set (.ui-state-hover) colours from theme here */ color: #ffffff; } .ui-widget-header select, .ui-widget-header option { background-color: #333333; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #363636; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-blacktie.datepick.css
CSS
asf20
619
/* http://keith-wood.name/datepick.html Albanian localisation for jQuery Datepicker. Written by Flakron Bytyqi (flakron@gmail.com). */ (function($) { $.datepick.regional['sq'] = { monthNames: ['Janar','Shkurt','Mars','Prill','Maj','Qershor', 'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'], monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer', 'Kor','Gus','Sht','Tet','Nën','Dhj'], dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'], dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'], dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '<mbrapa', prevStatus: 'trego muajin e fundit', prevJumpText: '<<', prevJumpStatus: '', nextText: 'Përpara>', nextStatus: 'trego muajin tjetër', nextJumpText: '>>', nextJumpStatus: '', currentText: 'sot', currentStatus: '', todayText: 'sot', todayStatus: '', clearText: 'fshije', clearStatus: 'fshije datën aktuale', closeText: 'mbylle', closeStatus: 'mbylle pa ndryshime', yearStatus: 'trego tjetër vit', monthStatus: 'trego muajin tjetër', weekText: 'Ja', weekStatus: 'Java e muajit', dayStatus: '\'Zgjedh\' D, M d', defaultStatus: 'Zgjedhe një datë', isRTL: false }; $.datepick.setDefaults($.datepick.regional['sq']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-sq.js
JavaScript
asf20
1,431
/* http://keith-wood.name/datepick.html Romanian localisation for jQuery Datepicker. Written by Edmond L. (ll_edmond@walla.com) and Ionut G. Stan (ionut.g.stan@gmail.com). */ (function($) { $.datepick.regional['ro'] = { monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie', 'Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'], monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sep', 'Oct', 'Noi', 'Dec'], dayNames: ['Duminică', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'], dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'], dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sâ'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '«Precedenta', prevStatus: 'Arata luna precedenta', prevJumpText: '««', prevJumpStatus: '', nextText: 'Urmatoare»', nextStatus: 'Arata luna urmatoare', nextJumpText: '»»', nextJumpStatus: '', currentText: 'Azi', currentStatus: 'Arata luna curenta', todayText: 'Azi', todayStatus: 'Arata luna curenta', clearText: 'Curat', clearStatus: 'Sterge data curenta', closeText: 'Închide', closeStatus: 'Închide fara schimbare', yearStatus: 'Arat un an diferit', monthStatus: 'Arata o luna diferita', weekText: 'Săpt', weekStatus: 'Săptamana anului', dayStatus: 'Selecteaza D, M d', defaultStatus: 'Selecteaza o data', isRTL: false }; $.datepick.setDefaults($.datepick.regional['ro']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ro.js
JavaScript
asf20
1,563
/* http://keith-wood.name/datepick.html Greek localisation for jQuery Datepicker. Written by Alex Cicovic (http://www.alexcicovic.com) */ (function($) { $.datepick.regional['el'] = { monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος', 'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'], monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν', 'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'], dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'], dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'], dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: 'Προηγούμενος', prevStatus: 'Επισκόπηση προηγούμενου μήνα', prevJumpText: '<<', prevJumpStatus: '', nextText: 'Επόμενος', nextStatus: 'Επισκόπηση επόμενου μήνα', nextJumpText: '>>', nextJumpStatus: '', currentText: 'Τρέχων Μήνας', currentStatus: 'Επισκόπηση τρέχοντος μήνα', todayText: 'Τρέχων Μήνας', todayStatus: 'Επισκόπηση τρέχοντος μήνα', clearText: 'Σβήσιμο', clearStatus: 'Σβήσιμο της επιλεγμένης ημερομηνίας', closeText: 'Κλείσιμο', closeStatus: 'Κλείσιμο χωρίς αλλαγή', yearStatus: 'Επισκόπηση άλλου έτους', monthStatus: 'Επισκόπηση άλλου μήνα', weekText: 'Εβδ', weekStatus: '', dayStatus: 'Επιλογή DD d MM', defaultStatus: 'Επιλέξτε μια ημερομηνία', isRTL: false }; $.datepick.setDefaults($.datepick.regional['el']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-el.js
JavaScript
asf20
2,051
/* ThemeRoller MintChoc override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #222222; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #44372c; /* Set (.ui-state-hover) colours from theme here */ color: #add978; } .ui-widget-header select, .ui-widget-header option { background-color: #cdc2a1; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #ffffff; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-mintchoc.datepick.css
CSS
asf20
619
/* http://keith-wood.name/datepick.html Swiss-German localisation for jQuery Datepicker. Written by Douglas Jose & Juerg Meier. */ (function($) { $.datepick.regional['de-CH'] = { monthNames: ['Januar','Februar','März','April','Mai','Juni', 'Juli','August','September','Oktober','November','Dezember'], monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', 'Jul','Aug','Sep','Okt','Nov','Dez'], dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '<zurück', prevStatus: 'letzten Monat zeigen', prevJumpText: '<<', prevJumpStatus: '', nextText: 'nächster>', nextStatus: 'nächsten Monat zeigen', nextJumpText: '>>', nextJumpStatus: '', currentText: 'heute', currentStatus: '', todayText: 'heute', todayStatus: '', clearText: 'löschen', clearStatus: 'aktuelles Datum löschen', closeText: 'schliessen', closeStatus: 'ohne Änderungen schliessen', yearStatus: 'anderes Jahr anzeigen', monthStatus: 'anderen Monat anzeigen', weekText: 'Wo', weekStatus: 'Woche des Monats', dayStatus: 'Wähle D, M d', defaultStatus: 'Wähle ein Datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['de-CH']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-de-CH.js
JavaScript
asf20
1,458
/* http://keith-wood.name/datepick.html Russian localisation for jQuery Datepicker. Written by Andrew Stromnov (stromnov@gmail.com). */ (function($) { $.datepick.regional['ru'] = { monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', 'Июл','Авг','Сен','Окт','Ноя','Дек'], dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '<Пред', prevStatus: '', prevJumpText: '<<', prevJumpStatus: '', nextText: 'След>', nextStatus: '', nextJumpText: '>>', nextJumpStatus: '', currentText: 'Сегодня', currentStatus: '', todayText: 'Сегодня', todayStatus: '', clearText: 'Очистить', clearStatus: '', closeText: 'Закрыть', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Не', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['ru']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ru.js
JavaScript
asf20
1,510
/* http://keith-wood.name/datepick.html Datepicker extensions for jQuery v4.0.3. Written by Keith Wood (kbwood{at}iinet.com.au) August 2009. Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. Please attribute the author if you use it. */ (function($) { // Hide scope, no $ conflict var themeRollerRenderer = { picker: '<div{popup:start} id="ui-datepicker-div"{popup:end} class="ui-datepicker ui-widget ' + 'ui-widget-content ui-helper-clearfix ui-corner-all{inline:start} ui-datepicker-inline{inline:end}">' + '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all">' + '{link:prev}{link:today}{link:next}</div>{months}' + '{popup:start}<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ' + 'ui-corner-all">{button:clear}{button:close}</div>{popup:end}' + '<div class="ui-helper-clearfix"></div></div>', monthRow: '<div class="ui-datepicker-row-break">{months}</div>', month: '<div class="ui-datepicker-group">' + '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all">{monthHeader:MM yyyy}</div>' + '<table class="ui-datepicker-calendar"><thead>{weekHeader}</thead><tbody>{weeks}</tbody></table></div>', weekHeader: '<tr>{days}</tr>', dayHeader: '<th>{day}</th>', week: '<tr>{days}</tr>', day: '<td>{day}</td>', monthSelector: '.ui-datepicker-group', daySelector: 'td', rtlClass: 'ui-datepicker-rtl', multiClass: 'ui-datepicker-multi', defaultClass: 'ui-state-default', selectedClass: 'ui-state-active', highlightedClass: 'ui-state-hover', todayClass: 'ui-state-highlight', otherMonthClass: 'ui-datepicker-other-month', weekendClass: 'ui-datepicker-week-end', commandClass: 'ui-datepicker-cmd', commandButtonClass: 'ui-state-default ui-corner-all', commandLinkClass: '', disabledClass: 'ui-datepicker-disabled' }; $.extend($.datepick, { // Template for generating a datepicker showing week of year. weekOfYearRenderer: $.extend({}, $.datepick.defaultRenderer, { weekHeader: '<tr><th class="datepick-week">' + '<span title="{l10n:weekStatus}">{l10n:weekText}</span></th>{days}</tr>', week: '<tr><td class="datepick-week">{weekOfYear}</td>{days}</tr>' }), // ThemeRoller template for generating a datepicker. themeRollerRenderer: themeRollerRenderer, // ThemeRoller template for generating a datepicker showing week of year. themeRollerWeekOfYearRenderer: $.extend({}, themeRollerRenderer, { weekHeader: '<tr><th class="ui-state-hover"><span>{l10n:weekText}</span></th>{days}</tr>', week: '<tr><td class="ui-state-hover">{weekOfYear}</td>{days}</tr>' }), /* Don't allow weekends to be selected. Usage: onDate: $.datepick.noWeekends. @param date (Date) the current date @return (object) information about this date */ noWeekends: function(date) { return {selectable: (date.getDay() || 7) < 6}; }, /* Change the first day of the week by clicking on the day header. Usage: onShow: $.datepick.changeFirstDay. @param picker (jQuery) the completed datepicker division @param inst (object) the current instance settings */ changeFirstDay: function(picker, inst) { var target = $(this); picker.find('th span').each(function() { var parent = $(this).parent(); if (parent.is('.datepick-week') || parent.is('.ui-state-hover')) { return; } $('<a href="javascript:void(0)" class="' + this.className + '" title="Change first day of the week">' + $(this).text() + '</a>'). click(function() { var dow = parseInt(this.className.replace(/^.*datepick-dow-(\d+).*$/, '$1'), 10); target.datepick('option', {firstDay: dow}); }). replaceAll(this); }); }, /* Add a callback when hovering over dates. Usage: onShow: $.datepick.hoverCallback(handleHover). @param onHover (function) the callback when hovering, it receives the current date and a flag indicating selectability as parameters on entry, and no parameters on exit, this refers to the target input or division */ hoverCallback: function(onHover) { return function(picker, inst) { var target = this; var renderer = inst.get('renderer'); picker.find(renderer.daySelector + ' a, ' + renderer.daySelector + ' span'). hover(function() { onHover.apply(target, [$.datepick.retrieveDate(target, this), this.nodeName.toLowerCase() == 'a']); }, function() { onHover.apply(target, []); }); }; }, /* Highlight the entire week when hovering over it. Usage: onShow: $.datepick.highlightWeek. @param picker (jQuery) the completed datepicker division @param inst (object) the current instance settings */ highlightWeek: function(picker, inst) { var target = this; var renderer = inst.get('renderer'); picker.find(renderer.daySelector + ' a, ' + renderer.daySelector + ' span'). hover(function() { $(this).parents('tr').find(renderer.daySelector + ' *'). addClass(renderer.highlightedClass); }, function() { $(this).parents('tr').find(renderer.daySelector + ' *'). removeClass(renderer.highlightedClass); }); }, /* Show a status bar with messages. Usage: onShow: $.datepick.showStatus. @param picker (jQuery) the completed datepicker division @param inst (object) the current instance settings */ showStatus: function(picker, inst) { var renderer = inst.get('renderer'); var isTR = (renderer.selectedClass == themeRollerRenderer.selectedClass); var defaultStatus = inst.get('defaultStatus') || '&nbsp;'; var status = $('<div class="' + (!isTR ? 'datepick-status' : 'ui-datepicker-status ui-widget-header ui-helper-clearfix ui-corner-all') + '">' + defaultStatus + '</div>'). insertAfter(picker.find('.datepick-month-row:last,.ui-datepicker-row-break:last')); picker.find('*[title]').each(function() { var title = $(this).attr('title'); $(this).removeAttr('title').hover( function() { status.text(title || defaultStatus); }, function() { status.text(defaultStatus); }); }); }, /* Allow easier navigation by month/year. Usage: onShow: $.datepick.monthNavigation. @param picker (jQuery) the completed datepicker division @param inst (object) the current instance settings */ monthNavigation: function(picker, inst) { var target = $(this); var renderer = inst.get('renderer'); var isTR = (renderer.selectedClass == themeRollerRenderer.selectedClass); var minDate = inst.curMinDate(); var maxDate = inst.get('maxDate'); var monthNames = inst.get('monthNames'); var monthNamesShort = inst.get('monthNamesShort'); var month = inst.drawDate.getMonth(); var year = inst.drawDate.getFullYear(); var html = '<div class="' + (!isTR ? 'datepick-month-nav' : 'ui-datepicker-month-nav') + '"' + ' style="display: none;">'; for (var i = 0; i < monthNames.length; i++) { var inRange = ((!minDate || new Date(year, i + 1, 0).getTime() >= minDate.getTime()) && (!maxDate || new Date(year, i, 1).getTime() <= maxDate.getTime())); html += '<div>' + (inRange ? '<a href="#" class="dp' + new Date(year, i, 1).getTime() + '"' : '<span') + ' title="' + monthNames[i] + '">' + monthNamesShort[i] + (inRange ? '</a>' : '</span>') + '</div>'; } for (var i = -6; i <= 6; i++) { if (i == 0) { continue; } var inRange = ((!minDate || new Date(year + i, 12 - 1, 31).getTime() >= minDate.getTime()) && (!maxDate || new Date(year + i, 1 - 1, 1).getTime() <= maxDate.getTime())); html += '<div>' + (inRange ? '<a href="#" class="dp' + new Date(year + i, month, 1).getTime() + '"' : '<span') + ' title="' + (year + i) + '">' + (year + i) + (inRange ? '</a>' : '</span>') + '</div>'; } html += '</div>'; html = $(html).insertAfter(picker.find('div.datepick-nav,div.ui-datepicker-header:first')); html.find('a').click(function() { var date = $.datepick.retrieveDate(target[0], this); target.datepick('showMonth', date.getFullYear(), date.getMonth() + 1); return false; }); picker.find('div.datepick-month-header,div.ui-datepicker-month-header').click(function() { html.slideToggle(); }).css('cursor', 'pointer'); }, /* Select an entire week when clicking on a week number. Use in conjunction with weekOfYearRenderer or themeRollerWeekOfYearRenderer. Usage: onShow: $.datepick.selectWeek. @param picker (jQuery) the completed datepicker division @param inst (object) the current instance settings */ selectWeek: function(picker, inst) { var target = $(this); picker.find('td.datepick-week span,td.ui-state-hover span').each(function() { $('<a href="javascript:void(0)" class="' + this.className + '" title="Select the entire week">' + $(this).text() + '</a>'). click(function() { var date = target.datepick('retrieveDate', this); var dates = [date]; for (var i = 1; i < 7; i++) { dates.push(date = $.datepick.add($.datepick.newDate(date), 1, 'd')); } if (inst.get('rangeSelect')) { dates.splice(1, dates.length - 2); } target.datepick('setDate', dates).datepick('hide'); }). replaceAll(this); }); }, /* Select an entire month when clicking on the week header. Use in conjunction with weekOfYearRenderer or themeRollerWeekOfYearRenderer. Usage: onShow: $.datepick.selectMonth. @param picker (jQuery) the completed datepicker division @param inst (object) the current instance settings */ selectMonth: function(picker, inst) { var target = $(this); picker.find('th.datepick-week span,th.ui-state-hover span').each(function() { $('<a href="javascript:void(0)" title="Select the entire month">' + $(this).text() + '</a>'). click(function() { var date = target.datepick('retrieveDate', $(this).parents('table'). find('td:not(.datepick-week):not(.ui-state-hover) ' + '*:not(.datepick-other-month):not(.ui-datepicker-other-month)')[0]); var dates = [date]; var dim = $.datepick.daysInMonth(date); for (var i = 1; i < dim; i++) { dates.push(date = $.datepick.add($.datepick.newDate(date), 1, 'd')); } if (inst.get('rangeSelect')) { dates.splice(1, dates.length - 2); } target.datepick('setDate', dates).datepick('hide'); }). replaceAll(this); }); }, /* Select a month only instead of a single day. Usage: onShow: $.datepick.monthOnly. @param picker (jQuery) the completed datepicker division @param inst (object) the current instance settings */ monthOnly: function(picker, inst) { var target = $(this); var selectMonth = $('<div style="text-align: center;"><button type="button">Select</button></div>'). insertAfter(picker.find('.datepick-month-row:last,.ui-datepicker-row-break:last')). children().click(function() { var monthYear = picker.find('.datepick-month-year:first').val().split('/'); target.datepick('setDate', $.datepick.newDate( parseInt(monthYear[1], 10), parseInt(monthYear[0], 10), 1)). datepick('hide'); }); picker.find('.datepick-month-row table,.ui-datepicker-row-break table').remove(); } }); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick.ext.js
JavaScript
asf20
11,569
/* ThemeRoller UI Lightness override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #ffffff; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #fdf5ce; /* Set (.ui-state-hover) colours from theme here */ color: #c77405; } .ui-widget-header select, .ui-widget-header option { background-color: #f6a828; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #363636; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-uilightness.datepick.css
CSS
asf20
623
/* http://keith-wood.name/datepick.html Icelandic localisation for jQuery Datepicker. Written by Haukur H. Thorsson (haukur@eskill.is). */ (function($) { $.datepick.regional['is'] = { monthNames: ['Jan&uacute;ar','Febr&uacute;ar','Mars','Apr&iacute;l','Ma&iacute','J&uacute;n&iacute;', 'J&uacute;l&iacute;','&Aacute;g&uacute;st','September','Okt&oacute;ber','N&oacute;vember','Desember'], monthNamesShort: ['Jan','Feb','Mar','Apr','Ma&iacute;','J&uacute;n', 'J&uacute;l','&Aacute;g&uacute;','Sep','Okt','N&oacute;v','Des'], dayNames: ['Sunnudagur','M&aacute;nudagur','&THORN;ri&eth;judagur','Mi&eth;vikudagur','Fimmtudagur','F&ouml;studagur','Laugardagur'], dayNamesShort: ['Sun','M&aacute;n','&THORN;ri','Mi&eth;','Fim','F&ouml;s','Lau'], dayNamesMin: ['Su','M&aacute;','&THORN;r','Mi','Fi','F&ouml;','La'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c; Fyrri', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'N&aelig;sti &#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: '&Iacute; dag', currentStatus: '', todayText: '&Iacute; dag', todayStatus: '', clearText: 'Hreinsa', clearStatus: '', closeText: 'Loka', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Vika', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['is']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-is.js
JavaScript
asf20
1,509
/* http://keith-wood.name/datepick.html Hong Kong Chinese localisation for jQuery Datepicker. Written by SCCY (samuelcychan@gmail.com). */ (function($) { $.datepick.regional['zh-HK'] = { monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一','二','三','四','五','六', '七','八','九','十','十一','十二'], dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], dayNamesMin: ['日','一','二','三','四','五','六'], dateFormat: 'dd-mm-yyyy', firstDay: 0, renderer: $.extend({}, $.datepick.defaultRenderer, {month: $.datepick.defaultRenderer.month. replace(/monthHeader/, 'monthHeader:yyyy年 MM')}), prevText: '&#x3c;上月', prevStatus: '顯示上月', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '顯示上一年', nextText: '下月&#x3e;', nextStatus: '顯示下月', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '顯示下一年', currentText: '今天', currentStatus: '顯示本月', todayText: '今天', todayStatus: '顯示本月', clearText: '清除', clearStatus: '清除已選日期', closeText: '關閉', closeStatus: '不改變目前的選擇', yearStatus: '選擇年份', monthStatus: '選擇月份', weekText: '周', weekStatus: '年內周次', dayStatus: '選擇 m月 d日, DD', defaultStatus: '請選擇日期', isRTL: false }; $.datepick.setDefaults($.datepick.regional['zh-HK']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-zh-HK.js
JavaScript
asf20
1,641
/* http://keith-wood.name/datepick.html Latvian localisation for jQuery Datepicker. Written by Arturas Paleicikas <arturas.paleicikas@metasite.net> */ (function($) { $.datepick.regional['lv'] = { monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs', 'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'], monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn', 'Jūl','Aug','Sep','Okt','Nov','Dec'], dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'], dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'], dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'], dateFormat: 'dd-mm-yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: 'Iepr', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Nāka', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Šodien', currentStatus: '', todayText: 'Šodien', todayStatus: '', clearText: 'Notīrīt', clearStatus: '', closeText: 'Aizvērt', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Nav', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['lv']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-lv.js
JavaScript
asf20
1,324
/* http://keith-wood.name/datepick.html Hebrew localisation for jQuery Datepicker. Written by Amir Hardon (ahardon at gmail dot com). */ (function($) { $.datepick.regional['he'] = { monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], monthNamesShort: ['1','2','3','4','5','6', '7','8','9','10','11','12'], dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;הקודם', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'הבא&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'היום', currentStatus: '', todayText: 'היום', todayStatus: '', clearText: 'נקה', clearStatus: '', closeText: 'סגור', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Wk', weekStatus: '', dayStatus: 'DD, M d', defaultStatus: '', isRTL: true }; $.datepick.setDefaults($.datepick.regional['he']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-he.js
JavaScript
asf20
1,350
/* http://keith-wood.name/datepick.html Faroese localisation for jQuery Datepicker. Written by Sverri Mohr Olsen, sverrimo@gmail.com */ (function($) { $.datepick.regional['fo'] = { monthNames: ['Januar','Februar','Mars','Apríl','Mei','Juni', 'Juli','August','September','Oktober','November','Desember'], monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', 'Jul','Aug','Sep','Okt','Nov','Des'], dayNames: ['Sunnudagur','Mánadagur','Týsdagur','Mikudagur','Hósdagur','Fríggjadagur','Leyardagur'], dayNamesShort: ['Sun','Mán','Týs','Mik','Hós','Frí','Ley'], dayNamesMin: ['Su','Má','Tý','Mi','Hó','Fr','Le'], dateFormat: 'dd-mm-yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Sísta', prevStatus: 'Vís sísta mánaðan', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Vís sísta árið', nextText: 'Næsta&#x3e;', nextStatus: 'Vís næsta mánaðan', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Vís næsta árið', currentText: 'Í dag', currentStatus: 'Vís mánaðan fyri í dag', todayText: 'Í dag', todayStatus: 'Vís mánaðan fyri í dag', clearText: 'Strika', clearStatus: 'Strika allir mánaðarnar', closeText: 'Goym', closeStatus: 'Goym hetta vindeyðga', yearStatus: 'Broyt árið', monthStatus: 'Broyt mánaðan', weekText: 'Vk', weekStatus: 'Vika av árinum', dayStatus: 'Vel DD, M d, yyyy', defaultStatus: 'Vel ein dato', isRTL: false }; $.datepick.setDefaults($.datepick.regional['fo']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-fo.js
JavaScript
asf20
1,543
/* http://keith-wood.name/datepick.html Persian (Farsi) localisation for jQuery Datepicker. Javad Mowlanezhad -- jmowla@gmail.com */ (function($) { $.datepick.regional['fa'] = { monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور', 'مهر','آبان','آذر','دي','بهمن','اسفند'], monthNamesShort: ['1','2','3','4','5','6', '7','8','9','10','11','12'], dayNames: ['يکشنبه','دوشنبه','سه‌شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'], dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'], dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'], dateFormat: 'yyyy/mm/dd', firstDay: 6, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;قبلي', prevStatus: 'نمايش ماه قبل', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'بعدي&#x3e;', nextStatus: 'نمايش ماه بعد', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'امروز', currentStatus: 'نمايش ماه جاري', todayText: 'امروز', todayStatus: 'نمايش ماه جاري', clearText: 'حذف تاريخ', clearStatus: 'پاک کردن تاريخ جاري', closeText: 'بستن', closeStatus: 'بستن بدون اعمال تغييرات', yearStatus: 'نمايش سال متفاوت', monthStatus: 'نمايش ماه متفاوت', weekText: 'هف', weekStatus: 'هفتهِ سال', dayStatus: 'انتخاب D, M d', defaultStatus: 'انتخاب تاريخ', isRTL: true }; $.datepick.setDefaults($.datepick.regional['fa']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-fa.js
JavaScript
asf20
1,638
/* ThemeRoller Humanity override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #ffffff; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #f5f0e5; /* Set (.ui-state-hover) colours from theme here */ color: #a46313; } .ui-widget-header select, .ui-widget-header option { background-color: #cb842e; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #060200; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-humanity.datepick.css
CSS
asf20
619
/* http://keith-wood.name/datepick.html Vietnamese localisation for jQuery Datepicker. Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */ (function($) { $.datepick.regional['vi'] = { monthNames: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu', 'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'], monthNamesShort: ['Tháng 1', 'Tháng 2', 'Tháng 3', 'Tháng 4', 'Tháng 5', 'Tháng 6', 'Tháng 7', 'Tháng 8', 'Tháng 9', 'Tháng 10', 'Tháng 11', 'Tháng 12'], dayNames: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'], dayNamesShort: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], dayNamesMin: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Trước', prevStatus: 'Tháng trước', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Năm trước', nextText: 'Tiếp&#x3e;', nextStatus: 'Tháng sau', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Năm sau', currentText: 'Hôm nay', currentStatus: 'Tháng hiện tại', todayText: 'Hôm nay', todayStatus: 'Tháng hiện tại', clearText: 'Xóa', clearStatus: 'Xóa ngày hiện tại', closeText: 'Đóng', closeStatus: 'Đóng và không lưu lại thay đổi', yearStatus: 'Năm khác', monthStatus: 'Tháng khác', weekText: 'Tu', weekStatus: 'Tuần trong năm', dayStatus: 'Đang chọn DD, \'ngày\' d M', defaultStatus: 'Chọn ngày', isRTL: false }; $.datepick.setDefaults($.datepick.regional['vi']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-vi.js
JavaScript
asf20
1,703
/* http://keith-wood.name/datepick.html Azerbaijani localisation for jQuery Datepicker. Written by Jamil Najafov (necefov33@gmail.com). */ (function($) { $.datepick.regional['az'] = { monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun', 'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'], monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun', 'İyul','Avq','Sen','Okt','Noy','Dek'], dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'], dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'], dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Geri', prevStatus: 'Əvvəlki ay', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Əvvəlki il', nextText: 'İrəli&#x3e;', nextStatus: 'Sonrakı ay', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Sonrakı il', currentText: 'Bugün', currentStatus: 'İndiki ay', todayText: 'Bugün', todayStatus: 'İndiki ay', clearText: 'Təmizlə', clearStatus: 'Tarixi sil', closeText: 'Bağla', closeStatus: 'Təqvimi bağla', yearStatus: 'Başqa il', monthStatus: 'Başqa ay', weekText: 'Hf', weekStatus: 'Həftələr', dayStatus: 'D, M d seçin', defaultStatus: 'Bir tarix seçin', isRTL: false }; $.datepick.setDefaults($.datepick.regional['az']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-az.js
JavaScript
asf20
1,444
/* http://keith-wood.name/datepick.html Norwegian localisation for jQuery Datepicker. Written by Naimdjon Takhirov (naimdjon@gmail.com). */ (function($) { $.datepick.regional['no'] = { monthNames: ['Januar','Februar','Mars','April','Mai','Juni', 'Juli','August','September','Oktober','November','Desember'], monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jun', 'Jul','Aug','Sep','Okt','Nov','Des'], dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], dateFormat: 'yyyy-mm-dd', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&laquo;Forrige', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Neste&raquo;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'I dag', currentStatus: '', todayText: 'I dag', todayStatus: '', clearText: 'Tøm', clearStatus: '', closeText: 'Lukk', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Uke', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['no']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-no.js
JavaScript
asf20
1,275
/* http://keith-wood.name/datepick.html Esperanto localisation for jQuery Datepicker. Written by Olivier M. (olivierweb@ifrance.com). */ (function($) { $.datepick.regional['eo'] = { monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio', 'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Aŭg','Sep','Okt','Nov','Dec'], dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'], dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'], dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&lt;Anta', prevStatus: 'Vidi la antaŭan monaton', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Sekv&gt;', nextStatus: 'Vidi la sekvan monaton', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Nuna', currentStatus: 'Vidi la nunan monaton', todayText: 'Nuna', todayStatus: 'Vidi la nunan monaton', clearText: 'Vakigi', clearStatus: '', closeText: 'Fermi', closeStatus: 'Fermi sen modifi', yearStatus: 'Vidi alian jaron', monthStatus: 'Vidi alian monaton', weekText: 'Sb', weekStatus: '', dayStatus: 'Elekti DD, MM d', defaultStatus: 'Elekti la daton', isRTL: false }; $.datepick.setDefaults($.datepick.regional['eo']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-eo.js
JavaScript
asf20
1,436
/* http://keith-wood.name/datepick.html Italian localisation for jQuery Datepicker. Written by Apaella (apaella@gmail.com). */ (function($) { $.datepick.regional['it'] = { monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'], monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu', 'Lug','Ago','Set','Ott','Nov','Dic'], dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'], dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'], dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Prec', prevStatus: 'Mese precedente', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Mostra l\'anno precedente', nextText: 'Succ&#x3e;', nextStatus: 'Mese successivo', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Mostra l\'anno successivo', currentText: 'Oggi', currentStatus: 'Mese corrente', todayText: 'Oggi', todayStatus: 'Mese corrente', clearText: 'Svuota', clearStatus: 'Annulla', closeText: 'Chiudi', closeStatus: 'Chiudere senza modificare', yearStatus: 'Seleziona un altro anno', monthStatus: 'Seleziona un altro mese', weekText: 'Sm', weekStatus: 'Settimana dell\'anno', dayStatus: '\'Seleziona\' D, M d', defaultStatus: 'Scegliere una data', isRTL: false }; $.datepick.setDefaults($.datepick.regional['it']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-it.js
JavaScript
asf20
1,511
/* http://keith-wood.name/datepick.html English UK localisation for jQuery Datepicker. Written by Stuart. */ (function($) { $.datepick.regional['en-GB'] = { monthNames: ['January','February','March','April','May','June', 'July','August','September','October','November','December'], monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: 'Prev', prevStatus: 'Show the previous month', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Show the previous year', nextText: 'Next', nextStatus: 'Show the next month', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Show the next year', currentText: 'Current', currentStatus: 'Show the current month', todayText: 'Today', todayStatus: 'Show today\'s month', clearText: 'Clear', clearStatus: 'Erase the current date', closeText: 'Done', closeStatus: 'Close without change', yearStatus: 'Show a different year', monthStatus: 'Show a different month', weekText: 'Wk', weekStatus: 'Week of the year', dayStatus: 'Select DD, M d', defaultStatus: 'Select a date', isRTL: false }; $.datepick.setDefaults($.datepick.regional['en-GB']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-en-GB.js
JavaScript
asf20
1,506
/* ThemeRoller HotSneaks override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #e1e463; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #ccd232; /* Set (.ui-state-hover) colours from theme here */ color: #212121; } .ui-widget-header select, .ui-widget-header option { background-color: #35414f; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #363636; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-hotsneaks.datepick.css
CSS
asf20
620
/* http://keith-wood.name/datepick.html Hungarian localisation for jQuery Datepicker. Written by Istvan Karaszi (jquery@spam.raszi.hu). */ (function($) { $.datepick.regional['hu'] = { monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'], monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'], dayNames: ['Vasárnap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'], dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'], dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], dateFormat: 'yyyy-mm-dd', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&laquo;&nbsp;vissza', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'előre&nbsp;&raquo;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'ma', currentStatus: '', todayText: 'ma', todayStatus: '', clearText: 'törlés', clearStatus: '', closeText: 'bezárás', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Hé', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['hu']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-hu.js
JavaScript
asf20
1,358
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>jQuery Datepicker</title> <style type="text/css"> @import "jquery.datepick.css"; </style> <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript" src="jquery.datepick.js"></script> <script type="text/javascript"> $(function() { $('#popupDatepicker').datepick(); $('#inlineDatepicker').datepick({onSelect: showDate}); }); function showDate(date) { alert('The date chosen is ' + date); } </script> </head> <body> <h1>jQuery Datepicker</h1> <p>This page demonstrates the very basics of the <a href="http://keith-wood.name/datepick.html">jQuery Datepicker plugin</a>. It contains the minimum requirements for using the plugin and can be used as the basis for your own experimentation.</p> <p>For more detail see the <a href="http://keith-wood.name/datepickRef.html">documentation reference</a> page.</p> <p>A popup datepicker <input type="text" id="popupDatepicker"></p> <p>Or inline</p> <div id="inlineDatepicker"></div> </body> </html>
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/datepickBasic.html
HTML
asf20
1,191
/* Smoothness style sheet for jQuery Datepicker v4.0.3. */ .datepick { background-color: #fff; color: #222; border: 1px solid #aaa; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-family: Arial,Helvetica,Sans-serif; font-size: 90%; } .datepick-rtl { direction: rtl; } .datepick-popup { z-index: 1000; } .datepick-disable { position: absolute; z-index: 100; background-color: white; opacity: 0.5; filter: alpha(opacity=50); } .datepick a { color: #222; text-decoration: none; } .datepick a.datepick-disabled { color: #888; cursor: auto; } .datepick button { margin: 0.25em; padding: 0.125em 0em; background-color: #fcc; border: none; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-weight: bold; } .datepick-nav, .datepick-ctrl { float: left; width: 100%; background-color: #fff; font-size: 90%; font-weight: bold; } .datepick-ctrl { background-color: #fee6e3; } .datepick-cmd { width: 30%; } .datepick-cmd:hover { background-color: #e0e0e0; } .datepick-ctrl .datepick-cmd:hover { background-color: #f08080; } .datepick-cmd-prevJump, .datepick-cmd-nextJump { width: 8%; } a.datepick-cmd { height: 1.5em; } button.datepick-cmd { text-align: center; } .datepick-cmd-prev, .datepick-cmd-prevJump, .datepick-cmd-clear { float: left; padding-left: 2%; } .datepick-cmd-current, .datepick-cmd-today { float: left; width: 35%; text-align: center; } .datepick-cmd-next, .datepick-cmd-nextJump, .datepick-cmd-close { float: right; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-prev, .datepick-rtl .datepick-cmd-prevJump, .datepick-rtl .datepick-cmd-clear { float: right; padding-left: 0%; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-current, .datepick-rtl .datepick-cmd-today { float: right; } .datepick-rtl .datepick-cmd-next, .datepick-rtl .datepick-cmd-nextJump, .datepick-rtl .datepick-cmd-close { float: left; padding-left: 2%; padding-right: 0%; text-align: left; } .datepick-month-nav { float: left; text-align: center; } .datepick-month-nav div { float: left; width: 12.5%; margin: 1%; padding: 1%; } .datepick-month-nav span { color: #888; } .datepick-month-row { clear: left; } .datepick-month { float: left; width: 15em; border: 1px solid #aaa; text-align: center; } .datepick-month-header, .datepick-month-header select, .datepick-month-header input { height: 1.5em; background-color: #e0e0e0; color: #222; font-weight: bold; } .datepick-month-header select, .datepick-month-header input { height: 1.4em; border: none; } .datepick-month-header input { position: absolute; display: none; } .datepick-month table { width: 100%; border-collapse: collapse; } .datepick-month thead { border-bottom: 1px solid #aaa; } .datepick-month th, .datepick-month td { margin: 0em; padding: 0em; font-weight: normal; text-align: center; } .datepick-month thead tr { border: 1px solid #aaa; } .datepick-month td { background-color: #eee; border: 1px solid #aaa; } .datepick-month td.datepick-week * { background-color: #e0e0e0; color: #222; border: none; } .datepick-month a { display: block; width: 100%; padding: 0.125em 0em; background-color: #eee; color: #000; text-decoration: none; } .datepick-month span { display: block; width: 100%; padding: 0.125em 0em; } .datepick-month td span { color: #888; } .datepick-month td .datepick-other-month { background-color: #fff; } .datepick-month td .datepick-weekend { background-color: #ddd; } .datepick-month td .datepick-today { background-color: #fbf9ee; } .datepick-month td .datepick-highlight { background-color: #dadada; } .datepick-month td .datepick-selected { background-color: #fcc; } .datepick-status { clear: both; text-align: center; } .datepick-clear-fix { clear: both; } .datepick-cover { display: none; display/**/: block; position: absolute; z-index: -1; filter: mask(); top: -1px; left: -1px; width: 100px; height: 100px; }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/smoothness.datepick.css
CSS
asf20
4,285
/* ThemeRoller Cupertino override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #222222; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #f0f0f0; /* Set (.ui-state-hover) colours from theme here */ color: #0b5b98; } .ui-widget-header select, .ui-widget-header option { background-color: #e7eef3; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #363636; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-cupertino.datepick.css
CSS
asf20
620
/* http://keith-wood.name/datepick.html Basque localisation for jQuery Datepicker. Karrikas-ek itzulia (karrikas@karrikas.com) */ (function($){ $.datepick.regional['eu'] = { monthNames: ['Urtarrila','Otsaila','Martxoa','Apirila','Maiatza','Ekaina', 'Uztaila','Abuztua','Iraila','Urria','Azaroa','Abendua'], monthNamesShort: ['Urt','Ots','Mar','Api','Mai','Eka', 'Uzt','Abu','Ira','Urr','Aza','Abe'], dayNames: ['Igandea','Astelehena','Asteartea','Asteazkena','Osteguna','Ostirala','Larunbata'], dayNamesShort: ['Iga','Ast','Ast','Ast','Ost','Ost','Lar'], dayNamesMin: ['Ig','As','As','As','Os','Os','La'], dateFormat: 'yyyy/mm/dd', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Aur', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Hur&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Gaur', currentStatus: '', todayText: 'Gaur', todayStatus: '', clearText: 'X', clearStatus: '', closeText: 'Egina', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Wk', weekStatus: '', dayStatus: 'DD d MM', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['eu']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-eu.js
JavaScript
asf20
1,275
/* http://keith-wood.name/datepick.html Date picker for jQuery v4.0.3. Written by Keith Wood (kbwood{at}iinet.com.au) February 2010. Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. Please attribute the author if you use it. */ (function($) { // Hide scope, no $ conflict /* Datepicker manager. */ function Datepicker() { this._defaults = { pickerClass: '', // CSS class to add to this instance of the datepicker showOnFocus: true, // True for popup on focus, false for not showTrigger: null, // Element to be cloned for a trigger, null for none showAnim: 'show', // Name of jQuery animation for popup, '' for no animation showOptions: {}, // Options for enhanced animations showSpeed: 'normal', // Duration of display/closure popupContainer: null, // The element to which a popup calendar is added, null for body alignment: 'bottom', // Alignment of popup - with nominated corner of input: // 'top' or 'bottom' aligns depending on language direction, // 'topLeft', 'topRight', 'bottomLeft', 'bottomRight' fixedWeeks: false, // True to always show 6 weeks, false to only show as many as are needed firstDay: 0, // First day of the week, 0 = Sunday, 1 = Monday, ... calculateWeek: this.iso8601Week, // Calculate week of the year from a date, null for ISO8601 monthsToShow: 1, // How many months to show, cols or [rows, cols] monthsOffset: 0, // How many months to offset the primary month by monthsToStep: 1, // How many months to move when prev/next clicked monthsToJump: 12, // How many months to move when large prev/next clicked useMouseWheel: true, // True to use mousewheel if available, false to never use it changeMonth: true, // True to change month/year via drop-down, false for navigation only yearRange: 'c-10:c+10', // Range of years to show in drop-down: 'any' for direct text entry // or 'start:end', where start/end are '+-nn' for relative to today // or 'c+-nn' for relative to the currently selected date // or 'nnnn' for an absolute year shortYearCutoff: '+10', // Cutoff for two-digit year in the current century showOtherMonths: false, // True to show dates from other months, false to not show them selectOtherMonths: false, // True to allow selection of dates from other months too defaultDate: null, // Date to show if no other selected selectDefaultDate: false, // True to pre-select the default date if no other is chosen minDate: null, // The minimum selectable date maxDate: null, // The maximum selectable date dateFormat: 'mm/dd/yyyy', // Format for dates autoSize: false, // True to size the input field according to the date format rangeSelect: false, // Allows for selecting a date range on one date picker rangeSeparator: ' - ', // Text between two dates in a range multiSelect: 0, // Maximum number of selectable dates, zero for single select multiSeparator: ',', // Text between multiple dates onDate: null, // Callback as a date is added to the datepicker onShow: null, // Callback just before a datepicker is shown onChangeMonthYear: null, // Callback when a new month/year is selected onSelect: null, // Callback when a date is selected onClose: null, // Callback when a datepicker is closed altField: null, // Alternate field to update in synch with the datepicker altFormat: null, // Date format for alternate field, defaults to dateFormat constrainInput: true, // True to constrain typed input to dateFormat allowed characters commandsAsDateFormat: false, // True to apply formatDate to the command texts commands: this.commands // Command actions that may be added to a layout by name }; this.regional = { '': { // US/English monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], dateFormat: 'mm/dd/yyyy', // See options on formatDate firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ... renderer: this.defaultRenderer, // The rendering templates prevText: '&lt;Prev', // Text for the previous month command prevStatus: 'Show the previous month', // Status text for the previous month command prevJumpText: '&lt;&lt;', // Text for the previous year command prevJumpStatus: 'Show the previous year', // Status text for the previous year command nextText: 'Next&gt;', // Text for the next month command nextStatus: 'Show the next month', // Status text for the next month command nextJumpText: '&gt;&gt;', // Text for the next year command nextJumpStatus: 'Show the next year', // Status text for the next year command currentText: 'Current', // Text for the current month command currentStatus: 'Show the current month', // Status text for the current month command todayText: 'Today', // Text for the today's month command todayStatus: 'Show today\'s month', // Status text for the today's month command clearText: 'Clear', // Text for the clear command clearStatus: 'Clear all the dates', // Status text for the clear command closeText: 'Close', // Text for the close command closeStatus: 'Close the datepicker', // Status text for the close command yearStatus: 'Change the year', // Status text for year selection monthStatus: 'Change the month', // Status text for month selection weekText: 'Wk', // Text for week of the year column header weekStatus: 'Week of the year', // Status text for week of the year column header dayStatus: 'Select DD, M d, yyyy', // Status text for selectable days defaultStatus: 'Select a date', // Status text shown by default isRTL: false // True if language is right-to-left }}; $.extend(this._defaults, this.regional['']); this._disabled = []; } $.extend(Datepicker.prototype, { dataName: 'datepick', /* Class name added to elements to indicate already configured with datepicker. */ markerClass: 'hasDatepick', _popupClass: 'datepick-popup', // Marker for popup division _triggerClass: 'datepick-trigger', // Marker for trigger element _disableClass: 'datepick-disable', // Marker for disabled element _coverClass: 'datepick-cover', // Marker for iframe backing element _monthYearClass: 'datepick-month-year', // Marker for month/year inputs _curMonthClass: 'datepick-month-', // Marker for current month/year _anyYearClass: 'datepick-any-year', // Marker for year direct input _curDoWClass: 'datepick-dow-', // Marker for day of week commands: { // Command actions that may be added to a layout by name // name: { // The command name, use '{button:name}' or '{link:name}' in layouts // text: '', // The field in the regional settings for the displayed text // status: '', // The field in the regional settings for the status text // // The keystroke to trigger the action // keystroke: {keyCode: nn, ctrlKey: boolean, altKey: boolean, shiftKey: boolean}, // enabled: fn, // The function that indicates the command is enabled // date: fn, // The function to get the date associated with this action // action: fn} // The function that implements the action prev: {text: 'prevText', status: 'prevStatus', // Previous month keystroke: {keyCode: 33}, // Page up enabled: function(inst) { var minDate = inst.curMinDate(); return (!minDate || $.datepick.add($.datepick.day( $.datepick.add($.datepick.newDate(inst.drawDate), 1 - inst.get('monthsToStep') - inst.get('monthsOffset'), 'm'), 1), -1, 'd'). getTime() >= minDate.getTime()); }, date: function(inst) { return $.datepick.day($.datepick.add($.datepick.newDate(inst.drawDate), -inst.get('monthsToStep') - inst.get('monthsOffset'), 'm'), 1); }, action: function(inst) { $.datepick.changeMonth(this, -inst.get('monthsToStep')); } }, prevJump: {text: 'prevJumpText', status: 'prevJumpStatus', // Previous year keystroke: {keyCode: 33, ctrlKey: true}, // Ctrl + Page up enabled: function(inst) { var minDate = inst.curMinDate(); return (!minDate || $.datepick.add($.datepick.day( $.datepick.add($.datepick.newDate(inst.drawDate), 1 - inst.get('monthsToJump') - inst.get('monthsOffset'), 'm'), 1), -1, 'd'). getTime() >= minDate.getTime()); }, date: function(inst) { return $.datepick.day($.datepick.add($.datepick.newDate(inst.drawDate), -inst.get('monthsToJump') - inst.get('monthsOffset'), 'm'), 1); }, action: function(inst) { $.datepick.changeMonth(this, -inst.get('monthsToJump')); } }, next: {text: 'nextText', status: 'nextStatus', // Next month keystroke: {keyCode: 34}, // Page down enabled: function(inst) { var maxDate = inst.get('maxDate'); return (!maxDate || $.datepick.day($.datepick.add($.datepick.newDate(inst.drawDate), inst.get('monthsToStep') - inst.get('monthsOffset'), 'm'), 1). getTime() <= maxDate.getTime()); }, date: function(inst) { return $.datepick.day($.datepick.add($.datepick.newDate(inst.drawDate), inst.get('monthsToStep') - inst.get('monthsOffset'), 'm'), 1); }, action: function(inst) { $.datepick.changeMonth(this, inst.get('monthsToStep')); } }, nextJump: {text: 'nextJumpText', status: 'nextJumpStatus', // Next year keystroke: {keyCode: 34, ctrlKey: true}, // Ctrl + Page down enabled: function(inst) { var maxDate = inst.get('maxDate'); return (!maxDate || $.datepick.day($.datepick.add($.datepick.newDate(inst.drawDate), inst.get('monthsToJump') - inst.get('monthsOffset'), 'm'), 1). getTime() <= maxDate.getTime()); }, date: function(inst) { return $.datepick.day($.datepick.add($.datepick.newDate(inst.drawDate), inst.get('monthsToJump') - inst.get('monthsOffset'), 'm'), 1); }, action: function(inst) { $.datepick.changeMonth(this, inst.get('monthsToJump')); } }, current: {text: 'currentText', status: 'currentStatus', // Current month keystroke: {keyCode: 36, ctrlKey: true}, // Ctrl + Home enabled: function(inst) { var minDate = inst.curMinDate(); var maxDate = inst.get('maxDate'); var curDate = inst.selectedDates[0] || $.datepick.today(); return (!minDate || curDate.getTime() >= minDate.getTime()) && (!maxDate || curDate.getTime() <= maxDate.getTime()); }, date: function(inst) { return inst.selectedDates[0] || $.datepick.today(); }, action: function(inst) { var curDate = inst.selectedDates[0] || $.datepick.today(); $.datepick.showMonth(this, curDate.getFullYear(), curDate.getMonth() + 1); } }, today: {text: 'todayText', status: 'todayStatus', // Today's month keystroke: {keyCode: 36, ctrlKey: true}, // Ctrl + Home enabled: function(inst) { var minDate = inst.curMinDate(); var maxDate = inst.get('maxDate'); return (!minDate || $.datepick.today().getTime() >= minDate.getTime()) && (!maxDate || $.datepick.today().getTime() <= maxDate.getTime()); }, date: function(inst) { return $.datepick.today(); }, action: function(inst) { $.datepick.showMonth(this); } }, clear: {text: 'clearText', status: 'clearStatus', // Clear the datepicker keystroke: {keyCode: 35, ctrlKey: true}, // Ctrl + End enabled: function(inst) { return true; }, date: function(inst) { return null; }, action: function(inst) { $.datepick.clear(this); } }, close: {text: 'closeText', status: 'closeStatus', // Close the datepicker keystroke: {keyCode: 27}, // Escape enabled: function(inst) { return true; }, date: function(inst) { return null; }, action: function(inst) { $.datepick.hide(this); } }, prevWeek: {text: 'prevWeekText', status: 'prevWeekStatus', // Previous week keystroke: {keyCode: 38, ctrlKey: true}, // Ctrl + Up enabled: function(inst) { var minDate = inst.curMinDate(); return (!minDate || $.datepick.add($.datepick.newDate(inst.drawDate), -7, 'd'). getTime() >= minDate.getTime()); }, date: function(inst) { return $.datepick.add($.datepick.newDate(inst.drawDate), -7, 'd'); }, action: function(inst) { $.datepick.changeDay(this, -7); } }, prevDay: {text: 'prevDayText', status: 'prevDayStatus', // Previous day keystroke: {keyCode: 37, ctrlKey: true}, // Ctrl + Left enabled: function(inst) { var minDate = inst.curMinDate(); return (!minDate || $.datepick.add($.datepick.newDate(inst.drawDate), -1, 'd'). getTime() >= minDate.getTime()); }, date: function(inst) { return $.datepick.add($.datepick.newDate(inst.drawDate), -1, 'd'); }, action: function(inst) { $.datepick.changeDay(this, -1); } }, nextDay: {text: 'nextDayText', status: 'nextDayStatus', // Next day keystroke: {keyCode: 39, ctrlKey: true}, // Ctrl + Right enabled: function(inst) { var maxDate = inst.get('maxDate'); return (!maxDate || $.datepick.add($.datepick.newDate(inst.drawDate), 1, 'd'). getTime() <= maxDate.getTime()); }, date: function(inst) { return $.datepick.add($.datepick.newDate(inst.drawDate), 1, 'd'); }, action: function(inst) { $.datepick.changeDay(this, 1); } }, nextWeek: {text: 'nextWeekText', status: 'nextWeekStatus', // Next week keystroke: {keyCode: 40, ctrlKey: true}, // Ctrl + Down enabled: function(inst) { var maxDate = inst.get('maxDate'); return (!maxDate || $.datepick.add($.datepick.newDate(inst.drawDate), 7, 'd'). getTime() <= maxDate.getTime()); }, date: function(inst) { return $.datepick.add($.datepick.newDate(inst.drawDate), 7, 'd'); }, action: function(inst) { $.datepick.changeDay(this, 7); } } }, /* Default template for generating a datepicker. */ defaultRenderer: { // Anywhere: '{l10n:name}' to insert localised value for name, // '{link:name}' to insert a link trigger for command name, // '{button:name}' to insert a button trigger for command name, // '{popup:start}...{popup:end}' to mark a section for inclusion in a popup datepicker only, // '{inline:start}...{inline:end}' to mark a section for inclusion in an inline datepicker only // Overall structure: '{months}' to insert calendar months picker: '<div class="datepick">' + '<div class="datepick-nav">{link:prev}{link:today}{link:next}</div>{months}' + '{popup:start}<div class="datepick-ctrl">{link:clear}{link:close}</div>{popup:end}' + '<div class="datepick-clear-fix"></div></div>', // One row of months: '{months}' to insert calendar months monthRow: '<div class="datepick-month-row">{months}</div>', // A single month: '{monthHeader:dateFormat}' to insert the month header - // dateFormat is optional and defaults to 'MM yyyy', // '{weekHeader}' to insert a week header, '{weeks}' to insert the month's weeks month: '<div class="datepick-month"><div class="datepick-month-header">{monthHeader}</div>' + '<table><thead>{weekHeader}</thead><tbody>{weeks}</tbody></table></div>', // A week header: '{days}' to insert individual day names weekHeader: '<tr>{days}</tr>', // Individual day header: '{day}' to insert day name dayHeader: '<th>{day}</th>', // One week of the month: '{days}' to insert the week's days, '{weekOfYear}' to insert week of year week: '<tr>{days}</tr>', // An individual day: '{day}' to insert day value day: '<td>{day}</td>', // jQuery selector, relative to picker, for a single month monthSelector: '.datepick-month', // jQuery selector, relative to picker, for individual days daySelector: 'td', // Class for right-to-left (RTL) languages rtlClass: 'datepick-rtl', // Class for multi-month datepickers multiClass: 'datepick-multi', // Class for selectable dates defaultClass: '', // Class for currently selected dates selectedClass: 'datepick-selected', // Class for highlighted dates highlightedClass: 'datepick-highlight', // Class for today todayClass: 'datepick-today', // Class for days from other months otherMonthClass: 'datepick-other-month', // Class for days on weekends weekendClass: 'datepick-weekend', // Class prefix for commands commandClass: 'datepick-cmd', // Extra class(es) for commands that are buttons commandButtonClass: '', // Extra class(es) for commands that are links commandLinkClass: '', // Class for disabled commands disabledClass: 'datepick-disabled' }, /* Override the default settings for all datepicker instances. @param settings (object) the new settings to use as defaults @return (Datepicker) this object */ setDefaults: function(settings) { $.extend(this._defaults, settings || {}); return this; }, _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000), _msPerDay: 24 * 60 * 60 * 1000, ATOM: 'yyyy-mm-dd', // RFC 3339/ISO 8601 COOKIE: 'D, dd M yyyy', FULL: 'DD, MM d, yyyy', ISO_8601: 'yyyy-mm-dd', JULIAN: 'J', RFC_822: 'D, d M yy', RFC_850: 'DD, dd-M-yy', RFC_1036: 'D, d M yy', RFC_1123: 'D, d M yyyy', RFC_2822: 'D, d M yyyy', RSS: 'D, d M yy', // RFC 822 TICKS: '!', TIMESTAMP: '@', W3C: 'yyyy-mm-dd', // ISO 8601 /* Format a date object into a string value. The format can be combinations of the following: d - day of month (no leading zero) dd - day of month (two digit) o - day of year (no leading zeros) oo - day of year (three digit) D - day name short DD - day name long w - week of year (no leading zero) ww - week of year (two digit) m - month of year (no leading zero) mm - month of year (two digit) M - month name short MM - month name long yy - year (two digit) yyyy - year (four digit) @ - Unix timestamp (s since 01/01/1970) ! - Windows ticks (100ns since 01/01/0001) '...' - literal text '' - single quote @param format (string) the desired format of the date (optional, default datepicker format) @param date (Date) the date value to format @param settings (object) attributes include: dayNamesShort (string[]) abbreviated names of the days from Sunday (optional) dayNames (string[]) names of the days from Sunday (optional) monthNamesShort (string[]) abbreviated names of the months (optional) monthNames (string[]) names of the months (optional) calculateWeek (function) function that determines week of the year (optional) @return (string) the date in the above format */ formatDate: function(format, date, settings) { if (typeof format != 'string') { settings = date; date = format; format = ''; } if (!date) { return ''; } format = format || this._defaults.dateFormat; settings = settings || {}; var dayNamesShort = settings.dayNamesShort || this._defaults.dayNamesShort; var dayNames = settings.dayNames || this._defaults.dayNames; var monthNamesShort = settings.monthNamesShort || this._defaults.monthNamesShort; var monthNames = settings.monthNames || this._defaults.monthNames; var calculateWeek = settings.calculateWeek || this._defaults.calculateWeek; // Check whether a format character is doubled var doubled = function(match, step) { var matches = 1; while (iFormat + matches < format.length && format.charAt(iFormat + matches) == match) { matches++; } iFormat += matches - 1; return Math.floor(matches / (step || 1)) > 1; }; // Format a number, with leading zeroes if necessary var formatNumber = function(match, value, len, step) { var num = '' + value; if (doubled(match, step)) { while (num.length < len) { num = '0' + num; } } return num; }; // Format a name, short or long as requested var formatName = function(match, value, shortNames, longNames) { return (doubled(match) ? longNames[value] : shortNames[value]); }; var output = ''; var literal = false; for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) { if (format.charAt(iFormat) == "'" && !doubled("'")) { literal = false; } else { output += format.charAt(iFormat); } } else { switch (format.charAt(iFormat)) { case 'd': output += formatNumber('d', date.getDate(), 2); break; case 'D': output += formatName('D', date.getDay(), dayNamesShort, dayNames); break; case 'o': output += formatNumber('o', this.dayOfYear(date), 3); break; case 'w': output += formatNumber('w', calculateWeek(date), 2); break; case 'm': output += formatNumber('m', date.getMonth() + 1, 2); break; case 'M': output += formatName('M', date.getMonth(), monthNamesShort, monthNames); break; case 'y': output += (doubled('y', 2) ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + date.getFullYear() % 100); break; case '@': output += Math.floor(date.getTime() / 1000); break; case '!': output += date.getTime() * 10000 + this._ticksTo1970; break; case "'": if (doubled("'")) { output += "'"; } else { literal = true; } break; default: output += format.charAt(iFormat); } } } return output; }, /* Parse a string value into a date object. See formatDate for the possible formats, plus: * - ignore rest of string @param format (string) the expected format of the date ('' for default datepicker format) @param value (string) the date in the above format @param settings (object) attributes include: shortYearCutoff (number) the cutoff year for determining the century (optional) dayNamesShort (string[]) abbreviated names of the days from Sunday (optional) dayNames (string[]) names of the days from Sunday (optional) monthNamesShort (string[]) abbreviated names of the months (optional) monthNames (string[]) names of the months (optional) @return (Date) the extracted date value or null if value is blank @throws errors if the format and/or value are missing, if the value doesn't match the format, or if the date is invalid */ parseDate: function(format, value, settings) { if (value == null) { throw 'Invalid arguments'; } value = (typeof value == 'object' ? value.toString() : value + ''); if (value == '') { return null; } format = format || this._defaults.dateFormat; settings = settings || {}; var shortYearCutoff = settings.shortYearCutoff || this._defaults.shortYearCutoff; shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff : this.today().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); var dayNamesShort = settings.dayNamesShort || this._defaults.dayNamesShort; var dayNames = settings.dayNames || this._defaults.dayNames; var monthNamesShort = settings.monthNamesShort || this._defaults.monthNamesShort; var monthNames = settings.monthNames || this._defaults.monthNames; var year = -1; var month = -1; var day = -1; var doy = -1; var shortYear = false; var literal = false; // Check whether a format character is doubled var doubled = function(match, step) { var matches = 1; while (iFormat + matches < format.length && format.charAt(iFormat + matches) == match) { matches++; } iFormat += matches - 1; return Math.floor(matches / (step || 1)) > 1; }; // Extract a number from the string value var getNumber = function(match, step) { doubled(match, step); var size = [2, 3, 4, 11, 20]['oy@!'.indexOf(match) + 1]; var digits = new RegExp('^-?\\d{1,' + size + '}'); var num = value.substring(iValue).match(digits); if (!num) { throw 'Missing number at position {0}'.replace(/\{0\}/, iValue); } iValue += num[0].length; return parseInt(num[0], 10); }; // Extract a name from the string value and convert to an index var getName = function(match, shortNames, longNames, step) { var names = (doubled(match, step) ? longNames : shortNames); for (var i = 0; i < names.length; i++) { if (value.substr(iValue, names[i].length) == names[i]) { iValue += names[i].length; return i + 1; } } throw 'Unknown name at position {0}'.replace(/\{0\}/, iValue); }; // Confirm that a literal character matches the string value var checkLiteral = function() { if (value.charAt(iValue) != format.charAt(iFormat)) { throw 'Unexpected literal at position {0}'.replace(/\{0\}/, iValue); } iValue++; }; var iValue = 0; for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) { if (format.charAt(iFormat) == "'" && !doubled("'")) { literal = false; } else { checkLiteral(); } } else { switch (format.charAt(iFormat)) { case 'd': day = getNumber('d'); break; case 'D': getName('D', dayNamesShort, dayNames); break; case 'o': doy = getNumber('o'); break; case 'w': getNumber('w'); break; case 'm': month = getNumber('m'); break; case 'M': month = getName('M', monthNamesShort, monthNames); break; case 'y': var iSave = iFormat; shortYear = !doubled('y', 2); iFormat = iSave; year = getNumber('y', 2); break; case '@': var date = this._normaliseDate(new Date(getNumber('@') * 1000)); year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); break; case '!': var date = this._normaliseDate( new Date((getNumber('!') - this._ticksTo1970) / 10000)); year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); break; case '*': iValue = value.length; break; case "'": if (doubled("'")) { checkLiteral(); } else { literal = true; } break; default: checkLiteral(); } } } if (iValue < value.length) { throw 'Additional text found at end'; } if (year == -1) { year = this.today().getFullYear(); } else if (year < 100 && shortYear) { year += (shortYearCutoff == -1 ? 1900 : this.today().getFullYear() - this.today().getFullYear() % 100 - (year <= shortYearCutoff ? 0 : 100)); } if (doy > -1) { month = 1; day = doy; for (var dim = this.daysInMonth(year, month); day > dim; dim = this.daysInMonth(year, month)) { month++; day -= dim; } } var date = this.newDate(year, month, day); if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) { throw 'Invalid date'; } return date; }, /* A date may be specified as an exact value or a relative one. @param dateSpec (Date or number or string) the date as an object or string in the given format or an offset - numeric days from today, or string amounts and periods, e.g. '+1m +2w' @param defaultDate (Date) the date to use if no other supplied, may be null @param currentDate (Date) the current date as a possible basis for relative dates, if null today is used (optional) @param dateFormat (string) the expected date format - see formatDate above (optional) @param settings (object) attributes include: shortYearCutoff (number) the cutoff year for determining the century (optional) dayNamesShort (string[7]) abbreviated names of the days from Sunday (optional) dayNames (string[7]) names of the days from Sunday (optional) monthNamesShort (string[12]) abbreviated names of the months (optional) monthNames (string[12]) names of the months (optional) @return (Date) the decoded date */ determineDate: function(dateSpec, defaultDate, currentDate, dateFormat, settings) { if (currentDate && typeof currentDate != 'object') { settings = dateFormat; dateFormat = currentDate; currentDate = null; } if (typeof dateFormat != 'string') { settings = dateFormat; dateFormat = ''; } var offsetString = function(offset) { try { return $.datepick.parseDate(dateFormat, offset, settings); } catch (e) { // Ignore } offset = offset.toLowerCase(); var date = (offset.match(/^c/) && currentDate ? $.datepick.newDate(currentDate) : null) || $.datepick.today(); var pattern = /([+-]?[0-9]+)\s*(d|w|m|y)?/g; var matches = pattern.exec(offset); while (matches) { date = $.datepick.add(date, parseInt(matches[1], 10), matches[2] || 'd'); matches = pattern.exec(offset); } return date; }; defaultDate = (defaultDate ? $.datepick.newDate(defaultDate) : null); dateSpec = (dateSpec == null ? defaultDate : (typeof dateSpec == 'string' ? offsetString(dateSpec) : (typeof dateSpec == 'number' ? (isNaN(dateSpec) || dateSpec == Infinity || dateSpec == -Infinity ? defaultDate : $.datepick.add($.datepick.today(), dateSpec, 'd')) : $.datepick._normaliseDate(dateSpec)))); return dateSpec; }, /* Find the number of days in a given month. @param year (Date) the date to get days for or (number) the full year @param month (number) the month (1 to 12) @return (number) the number of days in this month */ daysInMonth: function(year, month) { var date = (year.getFullYear ? year : this.newDate(year, month, 1)); return 32 - this.newDate(date.getFullYear(), date.getMonth() + 1, 32).getDate(); }, /* Calculate the day of the year for a date. @param year (Date) the date to get the day-of-year for or (number) the full year @param month (number) the month (1-12) @param day (number) the day @return (number) the day of the year */ dayOfYear: function(year, month, day) { var date = (year.getFullYear ? year : this.newDate(year, month, day)); var newYear = this.newDate(date.getFullYear(), 1, 1); return (date.getTime() - newYear.getTime()) / this._msPerDay + 1; }, /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition. @param year (Date) the date to get the week for or (number) the full year @param month (number) the month (1-12) @param day (number) the day @return (number) the number of the week within the year that contains this date */ iso8601Week: function(year, month, day) { var checkDate = (year.getFullYear ? new Date(year.getTime()) : this.newDate(year, month, day)); // Find Thursday of this week starting on Monday checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7)); var time = checkDate.getTime(); checkDate.setMonth(0); // Compare with Jan 1 checkDate.setDate(1); return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1; }, /* Return today's date. @return (Date) today */ today: function() { return this._normaliseDate(new Date()); }, /* Return a new date. @param year (Date) the date to clone or (number) the year @param month (number) the month (1-12) @param day (number) the day @return (Date) the date */ newDate: function(year, month, day) { return (!year ? null : this._normaliseDate( year.getFullYear ? new Date(year.getTime()) : new Date(year, month - 1, day))); }, /* Standardise a date into a common format - zero all time values. Also cater for JavaScript peculiarities when swapping to/from daylight saving at midnight. Hours may reset to previous night when midnight changeover, but then cannot generate midnight datetime, so jump to 1AM. @param date (Date) the date to standardise @return (Date) the normalised date */ _normaliseDate: function(date) { if (!date) { return date; } date.setHours(0); date.setMinutes(0); date.setSeconds(0); date.setMilliseconds(0); date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); return date; }, /* Set the year for a date. @param date (Date) the original date @param year (number) the new year @return the updated date */ year: function(date, year) { date.setFullYear(year); return this._normaliseDate(date); }, /* Set the month for a date. @param date (Date) the original date @param month (number) the new month (1-12) @return the updated date */ month: function(date, month) { date.setMonth(month - 1); return this._normaliseDate(date); }, /* Set the day for a date. @param date (Date) the original date @param day (number) the new day of the month @return the updated date */ day: function(date, day) { date.setDate(day); return this._normaliseDate(date); }, /* Add a number of periods to a date. @param date (Date) the original date @param amount (number) the number of periods @param period (string) the type of period d/w/m/y @return the updated date */ add: function(date, amount, period) { if (period == 'd' || period == 'w') { date.setDate(date.getDate() + amount * (period == 'w' ? 7 : 1)); } else { var year = date.getFullYear() + (period == 'y' ? amount : 0); var month = date.getMonth() + (period == 'm' ? amount : 0); date.setTime(this._normaliseDate(new Date(year, month, Math.min(date.getDate(), this.daysInMonth(year, month + 1)))).getTime()); } return date; }, /* Attach the datepicker functionality to an input field. @param target (element) the control to affect @param settings (object) the custom options for this instance */ _attachPicker: function(target, settings) { target = $(target); if (target.hasClass(this.markerClass)) { return; } target.addClass(this.markerClass); var inst = {target: target, selectedDates: [], drawDate: null, pickingRange: false, inline: ($.inArray(target[0].nodeName.toLowerCase(), ['div', 'span']) > -1), get: function(name) { // Get a setting value, defaulting if necessary var value = this.settings[name] !== undefined ? this.settings[name] : $.datepick._defaults[name]; if ($.inArray(name, ['defaultDate', 'minDate', 'maxDate']) > -1) { // Decode date settings value = $.datepick.determineDate( value, null, this.selectedDates[0], this.get('dateFormat'), inst.getConfig()); } return value; }, curMinDate: function() { return (this.pickingRange ? this.selectedDates[0] : this.get('minDate')); }, getConfig: function() { return {dayNamesShort: this.get('dayNamesShort'), dayNames: this.get('dayNames'), monthNamesShort: this.get('monthNamesShort'), monthNames: this.get('monthNames'), calculateWeek: this.get('calculateWeek'), shortYearCutoff: this.get('shortYearCutoff')}; } }; $.data(target[0], this.dataName, inst); var inlineSettings = ($.fn.metadata ? target.metadata() : {}); inst.settings = $.extend({}, settings || {}, inlineSettings || {}); if (inst.inline) { this._update(target[0]); if ($.fn.mousewheel) { target.mousewheel(this._doMouseWheel); } } else { this._attachments(target, inst); target.bind('keydown.' + this.dataName, this._keyDown). bind('keypress.' + this.dataName, this._keyPress). bind('keyup.' + this.dataName, this._keyUp); if (target.attr('disabled')) { this.disable(target[0]); } } }, /* Retrieve the settings for a datepicker control. @param target (element) the control to affect @param name (string) the name of the setting (optional) @return (object) the current instance settings (name == 'all') or (object) the default settings (no name) or (any) the setting value (name supplied) */ options: function(target, name) { var inst = $.data(target, this.dataName); return (inst ? (name ? (name == 'all' ? inst.settings : inst.settings[name]) : $.datepick._defaults) : {}); }, /* Reconfigure the settings for a datepicker control. @param target (element) the control to affect @param settings (object) the new options for this instance or (string) an individual property name @param value (any) the individual property value (omit if settings is an object) */ option: function(target, settings, value) { target = $(target); if (!target.hasClass(this.markerClass)) { return; } settings = settings || {}; if (typeof settings == 'string') { var name = settings; settings = {}; settings[name] = value; } var inst = $.data(target[0], this.dataName); var dates = inst.selectedDates; extendRemove(inst.settings, settings); this.setDate(target[0], dates, null, false, true); inst.pickingRange = false; inst.drawDate = $.datepick.newDate(this._checkMinMax( (settings.defaultDate ? inst.get('defaultDate') : inst.drawDate) || inst.get('defaultDate') || $.datepick.today(), inst)); if (!inst.inline) { this._attachments(target, inst); } if (inst.inline || inst.div) { this._update(target[0]); } }, /* Attach events and trigger, if necessary. @param target (jQuery) the control to affect @param inst (object) the current instance settings */ _attachments: function(target, inst) { target.unbind('focus.' + this.dataName); if (inst.get('showOnFocus')) { target.bind('focus.' + this.dataName, this.show); } if (inst.trigger) { inst.trigger.remove(); } var trigger = inst.get('showTrigger'); inst.trigger = (!trigger ? $([]) : $(trigger).clone().removeAttr('id').addClass(this._triggerClass) [inst.get('isRTL') ? 'insertBefore' : 'insertAfter'](target). click(function() { if (!$.datepick.isDisabled(target[0])) { $.datepick[$.datepick.curInst == inst ? 'hide' : 'show'](target[0]); } })); this._autoSize(target, inst); var dates = this._extractDates(inst, target.val()); if (dates) { this.setDate(target[0], dates, null, true); } if (inst.get('selectDefaultDate') && inst.get('defaultDate') && inst.selectedDates.length == 0) { this.setDate(target[0], $.datepick.newDate(inst.get('defaultDate') || $.datepick.today())); } }, /* Apply the maximum length for the date format. @param inst (object) the current instance settings */ _autoSize: function(target, inst) { if (inst.get('autoSize') && !inst.inline) { var date = new Date(2009, 10 - 1, 20); // Ensure double digits var dateFormat = inst.get('dateFormat'); if (dateFormat.match(/[DM]/)) { var findMax = function(names) { var max = 0; var maxI = 0; for (var i = 0; i < names.length; i++) { if (names[i].length > max) { max = names[i].length; maxI = i; } } return maxI; }; date.setMonth(findMax(inst.get(dateFormat.match(/MM/) ? // Longest month 'monthNames' : 'monthNamesShort'))); date.setDate(findMax(inst.get(dateFormat.match(/DD/) ? // Longest day 'dayNames' : 'dayNamesShort')) + 20 - date.getDay()); } inst.target.attr('size', $.datepick.formatDate(dateFormat, date, inst.getConfig()).length); } }, /* Remove the datepicker functionality from a control. @param target (element) the control to affect */ destroy: function(target) { target = $(target); if (!target.hasClass(this.markerClass)) { return; } var inst = $.data(target[0], this.dataName); if (inst.trigger) { inst.trigger.remove(); } target.removeClass(this.markerClass).empty().unbind('.' + this.dataName); if (inst.inline && $.fn.mousewheel) { target.unmousewheel(); } if (!inst.inline && inst.get('autoSize')) { target.removeAttr('size'); } $.removeData(target[0], this.dataName); }, /* Apply multiple event functions. Usage, for example: onShow: multipleEvents(fn1, fn2, ...) @param fns (function...) the functions to apply */ multipleEvents: function(fns) { var funcs = arguments; return function(args) { for (var i = 0; i < funcs.length; i++) { funcs[i].apply(this, arguments); } }; }, /* Enable the datepicker and any associated trigger. @param target (element) the control to use */ enable: function(target) { var $target = $(target); if (!$target.hasClass(this.markerClass)) { return; } var inst = $.data(target, this.dataName); if (inst.inline) $target.children('.' + this._disableClass).remove().end(). find('button,select').attr('disabled', '').end(). find('a').attr('href', 'javascript:void(0)'); else { target.disabled = false; inst.trigger.filter('button.' + this._triggerClass). attr('disabled', '').end(). filter('img.' + this._triggerClass). css({opacity: '1.0', cursor: ''}); } this._disabled = $.map(this._disabled, function(value) { return (value == target ? null : value); }); // Delete entry }, /* Disable the datepicker and any associated trigger. @param target (element) the control to use */ disable: function(target) { var $target = $(target); if (!$target.hasClass(this.markerClass)) return; var inst = $.data(target, this.dataName); if (inst.inline) { var inline = $target.children(':last'); var offset = inline.offset(); var relOffset = {left: 0, top: 0}; inline.parents().each(function() { if ($(this).css('position') == 'relative') { relOffset = $(this).offset(); return false; } }); var zIndex = $target.css('zIndex'); zIndex = (zIndex == 'auto' ? 0 : parseInt(zIndex, 10)) + 1; $target.prepend('<div class="' + this._disableClass + '" style="' + 'width: ' + inline.outerWidth() + 'px; height: ' + inline.outerHeight() + 'px; left: ' + (offset.left - relOffset.left) + 'px; top: ' + (offset.top - relOffset.top) + 'px; z-index: ' + zIndex + '"></div>'). find('button,select').attr('disabled', 'disabled').end(). find('a').removeAttr('href'); } else { target.disabled = true; inst.trigger.filter('button.' + this._triggerClass). attr('disabled', 'disabled').end(). filter('img.' + this._triggerClass). css({opacity: '0.5', cursor: 'default'}); } this._disabled = $.map(this._disabled, function(value) { return (value == target ? null : value); }); // Delete entry this._disabled.push(target); }, /* Is the first field in a jQuery collection disabled as a datepicker? @param target (element) the control to examine @return (boolean) true if disabled, false if enabled */ isDisabled: function(target) { return (target && $.inArray(target, this._disabled) > -1); }, /* Show a popup datepicker. @param target (event) a focus event or (element) the control to use */ show: function(target) { target = target.target || target; var inst = $.data(target, $.datepick.dataName); if ($.datepick.curInst == inst) { return; } if ($.datepick.curInst) { $.datepick.hide($.datepick.curInst, true); } if (inst) { // Retrieve existing date(s) inst.lastVal = null; inst.selectedDates = $.datepick._extractDates(inst, $(target).val()); inst.pickingRange = false; inst.drawDate = $.datepick._checkMinMax($.datepick.newDate(inst.selectedDates[0] || inst.get('defaultDate') || $.datepick.today()), inst); inst.prevDate = $.datepick.newDate(inst.drawDate); $.datepick.curInst = inst; // Generate content $.datepick._update(target, true); // Adjust position before showing var offset = $.datepick._checkOffset(inst); inst.div.css({left: offset.left, top: offset.top}); // And display var showAnim = inst.get('showAnim'); var showSpeed = inst.get('showSpeed'); showSpeed = (showSpeed == 'normal' && $.ui && $.ui.version >= '1.8' ? '_default' : showSpeed); var postProcess = function() { var borders = $.datepick._getBorders(inst.div); inst.div.find('.' + $.datepick._coverClass). // IE6- only css({left: -borders[0], top: -borders[1], width: inst.div.outerWidth() + borders[0], height: inst.div.outerHeight() + borders[1]}); }; if ($.effects && $.effects[showAnim]) { inst.div.show(showAnim, inst.get('showOptions'), showSpeed, postProcess); } else { inst.div[showAnim || 'show']((showAnim ? showSpeed : ''), postProcess); } if (!showAnim) { postProcess(); } } }, /* Extract possible dates from a string. @param inst (object) the current instance settings @param text (string) the text to extract from @return (CDate[]) the extracted dates */ _extractDates: function(inst, datesText) { if (datesText == inst.lastVal) { return; } inst.lastVal = datesText; var dateFormat = inst.get('dateFormat'); var multiSelect = inst.get('multiSelect'); var rangeSelect = inst.get('rangeSelect'); datesText = datesText.split(multiSelect ? inst.get('multiSeparator') : (rangeSelect ? inst.get('rangeSeparator') : '\x00')); var dates = []; for (var i = 0; i < datesText.length; i++) { try { var date = $.datepick.parseDate(dateFormat, datesText[i], inst.getConfig()); if (date) { var found = false; for (var j = 0; j < dates.length; j++) { if (dates[j].getTime() == date.getTime()) { found = true; break; } } if (!found) { dates.push(date); } } } catch (e) { // Ignore } } dates.splice(multiSelect || (rangeSelect ? 2 : 1), dates.length); if (rangeSelect && dates.length == 1) { dates[1] = dates[0]; } return dates; }, /* Update the datepicker display. @param target (event) a focus event or (element) the control to use @param hidden (boolean) true to initially hide the datepicker */ _update: function(target, hidden) { target = $(target.target || target); var inst = $.data(target[0], $.datepick.dataName); if (inst) { if (inst.inline) { target.html(this._generateContent(target[0], inst)); } else if ($.datepick.curInst == inst) { if (!inst.div) { inst.div = $('<div></div>').addClass(this._popupClass). css({display: (hidden ? 'none' : 'static'), position: 'absolute', left: target.offset().left, top: target.offset().top + target.outerHeight()}). appendTo($(inst.get('popupContainer') || 'body')); if ($.fn.mousewheel) { inst.div.mousewheel(this._doMouseWheel); } } inst.div.html(this._generateContent(target[0], inst)); target.focus(); } if (inst.inline || $.datepick.curInst == inst) { var onChange = inst.get('onChangeMonthYear'); if (onChange && (!inst.prevDate || inst.prevDate.getFullYear() != inst.drawDate.getFullYear() || inst.prevDate.getMonth() != inst.drawDate.getMonth())) { onChange.apply(target[0], [inst.drawDate.getFullYear(), inst.drawDate.getMonth() + 1]); } } } }, /* Update the input field and any alternate field with the current dates. @param target (element) the control to use @param keyUp (boolean, internal) true if coming from keyUp processing */ _updateInput: function(target, keyUp) { var inst = $.data(target, this.dataName); if (inst) { var value = ''; var altValue = ''; var sep = (inst.get('multiSelect') ? inst.get('multiSeparator') : inst.get('rangeSeparator')); var dateFormat = inst.get('dateFormat'); var altFormat = inst.get('altFormat') || dateFormat; for (var i = 0; i < inst.selectedDates.length; i++) { value += (keyUp ? '' : (i > 0 ? sep : '') + $.datepick.formatDate( dateFormat, inst.selectedDates[i], inst.getConfig())); altValue += (i > 0 ? sep : '') + $.datepick.formatDate( altFormat, inst.selectedDates[i], inst.getConfig()); } if (!inst.inline && !keyUp) { $(target).val(value); } $(inst.get('altField')).val(altValue); var onSelect = inst.get('onSelect'); if (onSelect && !keyUp && !inst.inSelect) { inst.inSelect = true; // Prevent endless loops onSelect.apply(target, [inst.selectedDates]); inst.inSelect = false; } } }, /* Retrieve the size of left and top borders for an element. @param elem (jQuery) the element of interest @return (number[2]) the left and top borders */ _getBorders: function(elem) { var convert = function(value) { var extra = ($.browser.msie ? 1 : 0); return {thin: 1 + extra, medium: 3 + extra, thick: 5 + extra}[value] || value; }; return [parseFloat(convert(elem.css('border-left-width'))), parseFloat(convert(elem.css('border-top-width')))]; }, /* Check positioning to remain on the screen. @param inst (object) the current instance settings @return (object) the updated offset for the datepicker */ _checkOffset: function(inst) { var base = (inst.target.is(':hidden') && inst.trigger ? inst.trigger : inst.target); var offset = base.offset(); var isFixed = false; $(inst.target).parents().each(function() { isFixed |= $(this).css('position') == 'fixed'; return !isFixed; }); if (isFixed && $.browser.opera) { // Correction for Opera when fixed and scrolled offset.left -= document.documentElement.scrollLeft; offset.top -= document.documentElement.scrollTop; } var browserWidth = (!$.browser.mozilla || document.doctype ? document.documentElement.clientWidth : 0) || document.body.clientWidth; var browserHeight = (!$.browser.mozilla || document.doctype ? document.documentElement.clientHeight : 0) || document.body.clientHeight; if (browserWidth == 0) { return offset; } var alignment = inst.get('alignment'); var isRTL = inst.get('isRTL'); var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; var scrollY = document.documentElement.scrollTop || document.body.scrollTop; var above = offset.top - inst.div.outerHeight() - (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0); var below = offset.top + base.outerHeight(); var alignL = offset.left; var alignR = offset.left + base.outerWidth() - inst.div.outerWidth() - (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0); var tooWide = (offset.left + inst.div.outerWidth() - scrollX) > browserWidth; var tooHigh = (offset.top + inst.target.outerHeight() + inst.div.outerHeight() - scrollY) > browserHeight; if (alignment == 'topLeft') { offset = {left: alignL, top: above}; } else if (alignment == 'topRight') { offset = {left: alignR, top: above}; } else if (alignment == 'bottomLeft') { offset = {left: alignL, top: below}; } else if (alignment == 'bottomRight') { offset = {left: alignR, top: below}; } else if (alignment == 'top') { offset = {left: (isRTL || tooWide ? alignR : alignL), top: above}; } else { // bottom offset = {left: (isRTL || tooWide ? alignR : alignL), top: (tooHigh ? above : below)}; } offset.left = Math.max((isFixed ? 0 : scrollX), offset.left - (isFixed ? scrollX : 0)); offset.top = Math.max((isFixed ? 0 : scrollY), offset.top - (isFixed ? scrollY : 0)); return offset; }, /* Close date picker if clicked elsewhere. @param event (MouseEvent) the mouse click to check */ _checkExternalClick: function(event) { if (!$.datepick.curInst) { return; } var target = $(event.target); if (!target.parents().andSelf().hasClass($.datepick._popupClass) && !target.hasClass($.datepick.markerClass) && !target.parents().andSelf().hasClass($.datepick._triggerClass)) { $.datepick.hide($.datepick.curInst); } }, /* Hide a popup datepicker. @param target (element) the control to use or (object) the current instance settings @param immediate (boolean) true to close immediately without animation */ hide: function(target, immediate) { var inst = $.data(target, this.dataName) || target; if (inst && inst == $.datepick.curInst) { var showAnim = (immediate ? '' : inst.get('showAnim')); var showSpeed = inst.get('showSpeed'); showSpeed = (showSpeed == 'normal' && $.ui && $.ui.version >= '1.8' ? '_default' : showSpeed); var postProcess = function() { inst.div.remove(); inst.div = null; $.datepick.curInst = null; var onClose = inst.get('onClose'); if (onClose) { onClose.apply(target, [inst.selectedDates]); } }; inst.div.stop(); if ($.effects && $.effects[showAnim]) { inst.div.hide(showAnim, inst.get('showOptions'), showSpeed, postProcess); } else { var hideAnim = (showAnim == 'slideDown' ? 'slideUp' : (showAnim == 'fadeIn' ? 'fadeOut' : 'hide')); inst.div[hideAnim]((showAnim ? showSpeed : ''), postProcess); } if (!showAnim) { postProcess(); } } }, /* Handle keystrokes in the datepicker. @param event (KeyEvent) the keystroke @return (boolean) true if not handled, false if handled */ _keyDown: function(event) { var target = event.target; var inst = $.data(target, $.datepick.dataName); var handled = false; if (inst.div) { if (event.keyCode == 9) { // Tab - close $.datepick.hide(target); } else if (event.keyCode == 13) { // Enter - select $.datepick.selectDate(target, $('a.' + inst.get('renderer').highlightedClass, inst.div)[0]); handled = true; } else { // Command keystrokes var commands = inst.get('commands'); for (var name in commands) { var command = commands[name]; if (command.keystroke.keyCode == event.keyCode && !!command.keystroke.ctrlKey == !!(event.ctrlKey || event.metaKey) && !!command.keystroke.altKey == event.altKey && !!command.keystroke.shiftKey == event.shiftKey) { $.datepick.performAction(target, name); handled = true; break; } } } } else { // Show on 'current' keystroke var command = inst.get('commands').current; if (command.keystroke.keyCode == event.keyCode && !!command.keystroke.ctrlKey == !!(event.ctrlKey || event.metaKey) && !!command.keystroke.altKey == event.altKey && !!command.keystroke.shiftKey == event.shiftKey) { $.datepick.show(target); handled = true; } } inst.ctrlKey = ((event.keyCode < 48 && event.keyCode != 32) || event.ctrlKey || event.metaKey); if (handled) { event.preventDefault(); event.stopPropagation(); } return !handled; }, /* Filter keystrokes in the datepicker. @param event (KeyEvent) the keystroke @return (boolean) true if allowed, false if not allowed */ _keyPress: function(event) { var target = event.target; var inst = $.data(target, $.datepick.dataName); if (inst && inst.get('constrainInput')) { var ch = String.fromCharCode(event.keyCode || event.charCode); var allowedChars = $.datepick._allowedChars(inst); return (event.metaKey || inst.ctrlKey || ch < ' ' || !allowedChars || allowedChars.indexOf(ch) > -1); } return true; }, /* Determine the set of characters allowed by the date format. @param inst (object) the current instance settings @return (string) the set of allowed characters, or null if anything allowed */ _allowedChars: function(inst) { var dateFormat = inst.get('dateFormat'); var allowedChars = (inst.get('multiSelect') ? inst.get('multiSeparator') : (inst.get('rangeSelect') ? inst.get('rangeSeparator') : '')); var literal = false; var hasNum = false; for (var i = 0; i < dateFormat.length; i++) { var ch = dateFormat.charAt(i); if (literal) { if (ch == "'" && dateFormat.charAt(i + 1) != "'") { literal = false; } else { allowedChars += ch; } } else { switch (ch) { case 'd': case 'm': case 'o': case 'w': allowedChars += (hasNum ? '' : '0123456789'); hasNum = true; break; case 'y': case '@': case '!': allowedChars += (hasNum ? '' : '0123456789') + '-'; hasNum = true; break; case 'J': allowedChars += (hasNum ? '' : '0123456789') + '-.'; hasNum = true; break; case 'D': case 'M': case 'Y': return null; // Accept anything case "'": if (dateFormat.charAt(i + 1) == "'") { allowedChars += "'"; } else { literal = true; } break; default: allowedChars += ch; } } } return allowedChars; }, /* Synchronise datepicker with the field. @param event (KeyEvent) the keystroke @return (boolean) true if allowed, false if not allowed */ _keyUp: function(event) { var target = event.target; var inst = $.data(target, $.datepick.dataName); if (inst && !inst.ctrlKey && inst.lastVal != inst.target.val()) { try { var dates = $.datepick._extractDates(inst, inst.target.val()); if (dates.length > 0) { $.datepick.setDate(target, dates, null, true); } } catch (event) { // Ignore } } return true; }, /* Increment/decrement month/year on mouse wheel activity. @param event (event) the mouse wheel event @param delta (number) the amount of change */ _doMouseWheel: function(event, delta) { var target = ($.datepick.curInst && $.datepick.curInst.target[0]) || $(event.target).closest('.' + $.datepick.markerClass)[0]; if ($.datepick.isDisabled(target)) { return; } var inst = $.data(target, $.datepick.dataName); if (inst.get('useMouseWheel')) { delta = ($.browser.opera ? -delta : delta); delta = (delta < 0 ? -1 : +1); $.datepick.changeMonth(target, -inst.get(event.ctrlKey ? 'monthsToJump' : 'monthsToStep') * delta); } event.preventDefault(); }, /* Clear an input and close a popup datepicker. @param target (element) the control to use */ clear: function(target) { var inst = $.data(target, this.dataName); if (inst) { inst.selectedDates = []; this.hide(target); if (inst.get('selectDefaultDate') && inst.get('defaultDate')) { this.setDate(target, $.datepick.newDate(inst.get('defaultDate') ||$.datepick.today())); } else { this._updateInput(target); } } }, /* Retrieve the selected date(s) for a datepicker. @param target (element) the control to examine @return (CDate[]) the selected date(s) */ getDate: function(target) { var inst = $.data(target, this.dataName); return (inst ? inst.selectedDates : []); }, /* Set the selected date(s) for a datepicker. @param target (element) the control to examine @param dates (CDate or number or string or [] of these) the selected date(s) @param endDate (CDate or number or string) the ending date for a range (optional) @param keyUp (boolean, internal) true if coming from keyUp processing @param setOpt (boolean, internal) true if coming from option processing */ setDate: function(target, dates, endDate, keyUp, setOpt) { var inst = $.data(target, this.dataName); if (inst) { if (!$.isArray(dates)) { dates = [dates]; if (endDate) { dates.push(endDate); } } var dateFormat = inst.get('dateFormat'); var minDate = inst.get('minDate'); var maxDate = inst.get('maxDate'); var curDate = inst.selectedDates[0]; inst.selectedDates = []; for (var i = 0; i < dates.length; i++) { var date = $.datepick.determineDate( dates[i], null, curDate, dateFormat, inst.getConfig()); if (date) { if ((!minDate || date.getTime() >= minDate.getTime()) && (!maxDate || date.getTime() <= maxDate.getTime())) { var found = false; for (var j = 0; j < inst.selectedDates.length; j++) { if (inst.selectedDates[j].getTime() == date.getTime()) { found = true; break; } } if (!found) { inst.selectedDates.push(date); } } } } var rangeSelect = inst.get('rangeSelect'); inst.selectedDates.splice(inst.get('multiSelect') || (rangeSelect ? 2 : 1), inst.selectedDates.length); if (rangeSelect) { switch (inst.selectedDates.length) { case 1: inst.selectedDates[1] = inst.selectedDates[0]; break; case 2: inst.selectedDates[1] = (inst.selectedDates[0].getTime() > inst.selectedDates[1].getTime() ? inst.selectedDates[0] : inst.selectedDates[1]); break; } inst.pickingRange = false; } inst.prevDate = (inst.drawDate ? $.datepick.newDate(inst.drawDate) : null); inst.drawDate = this._checkMinMax($.datepick.newDate(inst.selectedDates[0] || inst.get('defaultDate') || $.datepick.today()), inst); if (!setOpt) { this._update(target); this._updateInput(target, keyUp); } } }, /* Determine whether a date is selectable for this datepicker. @param target (element) the control to check @param date (Date or string or number) the date to check @return (boolean) true if selectable, false if not */ isSelectable: function(target, date) { var inst = $.data(target, this.dataName); if (!inst) { return false; } date = $.datepick.determineDate(date, inst.selectedDates[0] || this.today(), null, inst.get('dateFormat'), inst.getConfig()); return this._isSelectable(target, date, inst.get('onDate'), inst.get('minDate'), inst.get('maxDate')); }, /* Internally determine whether a date is selectable for this datepicker. @param target (element) the control to check @param date (Date) the date to check @param onDate (function or boolean) any onDate callback or callback.selectable @param mindate (Date) the minimum allowed date @param maxdate (Date) the maximum allowed date @return (boolean) true if selectable, false if not */ _isSelectable: function(target, date, onDate, minDate, maxDate) { var dateInfo = (typeof onDate == 'boolean' ? {selectable: onDate} : (!onDate ? {} : onDate.apply(target, [date, true]))); return (dateInfo.selectable != false) && (!minDate || date.getTime() >= minDate.getTime()) && (!maxDate || date.getTime() <= maxDate.getTime()); }, /* Perform a named action for a datepicker. @param target (element) the control to affect @param action (string) the name of the action */ performAction: function(target, action) { var inst = $.data(target, this.dataName); if (inst && !this.isDisabled(target)) { var commands = inst.get('commands'); if (commands[action] && commands[action].enabled.apply(target, [inst])) { commands[action].action.apply(target, [inst]); } } }, /* Set the currently shown month, defaulting to today's. @param target (element) the control to affect @param year (number) the year to show (optional) @param month (number) the month to show (1-12) (optional) @param day (number) the day to show (optional) */ showMonth: function(target, year, month, day) { var inst = $.data(target, this.dataName); if (inst && (day != null || (inst.drawDate.getFullYear() != year || inst.drawDate.getMonth() + 1 != month))) { inst.prevDate = $.datepick.newDate(inst.drawDate); var show = this._checkMinMax((year != null ? $.datepick.newDate(year, month, 1) : $.datepick.today()), inst); inst.drawDate = $.datepick.newDate(show.getFullYear(), show.getMonth() + 1, (day != null ? day : Math.min(inst.drawDate.getDate(), $.datepick.daysInMonth(show.getFullYear(), show.getMonth() + 1)))); this._update(target); } }, /* Adjust the currently shown month. @param target (element) the control to affect @param offset (number) the number of months to change by */ changeMonth: function(target, offset) { var inst = $.data(target, this.dataName); if (inst) { var date = $.datepick.add($.datepick.newDate(inst.drawDate), offset, 'm'); this.showMonth(target, date.getFullYear(), date.getMonth() + 1); } }, /* Adjust the currently shown day. @param target (element) the control to affect @param offset (number) the number of days to change by */ changeDay: function(target, offset) { var inst = $.data(target, this.dataName); if (inst) { var date = $.datepick.add($.datepick.newDate(inst.drawDate), offset, 'd'); this.showMonth(target, date.getFullYear(), date.getMonth() + 1, date.getDate()); } }, /* Restrict a date to the minimum/maximum specified. @param date (CDate) the date to check @param inst (object) the current instance settings */ _checkMinMax: function(date, inst) { var minDate = inst.get('minDate'); var maxDate = inst.get('maxDate'); date = (minDate && date.getTime() < minDate.getTime() ? $.datepick.newDate(minDate) : date); date = (maxDate && date.getTime() > maxDate.getTime() ? $.datepick.newDate(maxDate) : date); return date; }, /* Retrieve the date associated with an entry in the datepicker. @param target (element) the control to examine @param elem (element) the selected datepicker element @return (CDate) the corresponding date, or null */ retrieveDate: function(target, elem) { var inst = $.data(target, this.dataName); return (!inst ? null : this._normaliseDate( new Date(parseInt(elem.className.replace(/^.*dp(-?\d+).*$/, '$1'), 10)))); }, /* Select a date for this datepicker. @param target (element) the control to examine @param elem (element) the selected datepicker element */ selectDate: function(target, elem) { var inst = $.data(target, this.dataName); if (inst && !this.isDisabled(target)) { var date = this.retrieveDate(target, elem); var multiSelect = inst.get('multiSelect'); var rangeSelect = inst.get('rangeSelect'); if (multiSelect) { var found = false; for (var i = 0; i < inst.selectedDates.length; i++) { if (date.getTime() == inst.selectedDates[i].getTime()) { inst.selectedDates.splice(i, 1); found = true; break; } } if (!found && inst.selectedDates.length < multiSelect) { inst.selectedDates.push(date); } } else if (rangeSelect) { if (inst.pickingRange) { inst.selectedDates[1] = date; } else { inst.selectedDates = [date, date]; } inst.pickingRange = !inst.pickingRange; } else { inst.selectedDates = [date]; } inst.prevDate = $.datepick.newDate(date); this._updateInput(target); if (inst.inline || inst.pickingRange || inst.selectedDates.length < (multiSelect || (rangeSelect ? 2 : 1))) { this._update(target); } else { this.hide(target); } } }, /* Generate the datepicker content for this control. @param target (element) the control to affect @param inst (object) the current instance settings @return (jQuery) the datepicker content */ _generateContent: function(target, inst) { var renderer = inst.get('renderer'); var monthsToShow = inst.get('monthsToShow'); monthsToShow = ($.isArray(monthsToShow) ? monthsToShow : [1, monthsToShow]); inst.drawDate = this._checkMinMax( inst.drawDate || inst.get('defaultDate') || $.datepick.today(), inst); var drawDate = $.datepick.add( $.datepick.newDate(inst.drawDate), -inst.get('monthsOffset'), 'm'); // Generate months var monthRows = ''; for (var row = 0; row < monthsToShow[0]; row++) { var months = ''; for (var col = 0; col < monthsToShow[1]; col++) { months += this._generateMonth(target, inst, drawDate.getFullYear(), drawDate.getMonth() + 1, renderer, (row == 0 && col == 0)); $.datepick.add(drawDate, 1, 'm'); } monthRows += this._prepare(renderer.monthRow, inst).replace(/\{months\}/, months); } var picker = this._prepare(renderer.picker, inst).replace(/\{months\}/, monthRows). replace(/\{weekHeader\}/g, this._generateDayHeaders(inst, renderer)) + ($.browser.msie && parseInt($.browser.version, 10) < 7 && !inst.inline ? '<iframe src="javascript:void(0);" class="' + this._coverClass + '"></iframe>' : ''); // Add commands var commands = inst.get('commands'); var asDateFormat = inst.get('commandsAsDateFormat'); var addCommand = function(type, open, close, name, classes) { if (picker.indexOf('{' + type + ':' + name + '}') == -1) { return; } var command = commands[name]; var date = (asDateFormat ? command.date.apply(target, [inst]) : null); picker = picker.replace(new RegExp('\\{' + type + ':' + name + '\\}', 'g'), '<' + open + (command.status ? ' title="' + inst.get(command.status) + '"' : '') + ' class="' + renderer.commandClass + ' ' + renderer.commandClass + '-' + name + ' ' + classes + (command.enabled(inst) ? '' : ' ' + renderer.disabledClass) + '">' + (date ? $.datepick.formatDate(inst.get(command.text), date, inst.getConfig()) : inst.get(command.text)) + '</' + close + '>'); }; for (var name in commands) { addCommand('button', 'button type="button"', 'button', name, renderer.commandButtonClass); addCommand('link', 'a href="javascript:void(0)"', 'a', name, renderer.commandLinkClass); } picker = $(picker); if (monthsToShow[1] > 1) { var count = 0; $(renderer.monthSelector, picker).each(function() { var nth = ++count % monthsToShow[1]; $(this).addClass(nth == 1 ? 'first' : (nth == 0 ? 'last' : '')); }); } // Add datepicker behaviour var self = this; picker.find(renderer.daySelector + ' a').hover( function() { $(this).addClass(renderer.highlightedClass); }, function() { (inst.inline ? $(this).parents('.' + self.markerClass) : inst.div). find(renderer.daySelector + ' a'). removeClass(renderer.highlightedClass); }). click(function() { self.selectDate(target, this); }).end(). find('select.' + this._monthYearClass + ':not(.' + this._anyYearClass + ')'). change(function() { var monthYear = $(this).val().split('/'); self.showMonth(target, parseInt(monthYear[1], 10), parseInt(monthYear[0], 10)); }).end(). find('select.' + this._anyYearClass). click(function() { $(this).css('visibility', 'hidden'). next('input').css({left: this.offsetLeft, top: this.offsetTop, width: this.offsetWidth, height: this.offsetHeight}).show().focus(); }).end(). find('input.' + self._monthYearClass). change(function() { try { var year = parseInt($(this).val(), 10); year = (isNaN(year) ? inst.drawDate.getFullYear() : year); self.showMonth(target, year, inst.drawDate.getMonth() + 1, inst.drawDate.getDate()); } catch (e) { alert(e); } }).keydown(function(event) { if (event.keyCode == 13) { // Enter $(event.target).change(); } else if (event.keyCode == 27) { // Escape $(event.target).hide().prev('select').css('visibility', 'visible'); inst.target.focus(); } }); // Add command behaviour picker.find('.' + renderer.commandClass).click(function() { if (!$(this).hasClass(renderer.disabledClass)) { var action = this.className.replace( new RegExp('^.*' + renderer.commandClass + '-([^ ]+).*$'), '$1'); $.datepick.performAction(target, action); } }); // Add classes if (inst.get('isRTL')) { picker.addClass(renderer.rtlClass); } if (monthsToShow[0] * monthsToShow[1] > 1) { picker.addClass(renderer.multiClass); } var pickerClass = inst.get('pickerClass'); if (pickerClass) { picker.addClass(pickerClass); } // Resize $('body').append(picker); var width = 0; picker.find(renderer.monthSelector).each(function() { width += $(this).outerWidth(); }); picker.width(width / monthsToShow[0]); // Pre-show customisation var onShow = inst.get('onShow'); if (onShow) { onShow.apply(target, [picker, inst]); } return picker; }, /* Generate the content for a single month. @param target (element) the control to affect @param inst (object) the current instance settings @param year (number) the year to generate @param month (number) the month to generate @param renderer (object) the rendering templates @param first (boolean) true if first of multiple months @return (string) the month content */ _generateMonth: function(target, inst, year, month, renderer, first) { var daysInMonth = $.datepick.daysInMonth(year, month); var monthsToShow = inst.get('monthsToShow'); monthsToShow = ($.isArray(monthsToShow) ? monthsToShow : [1, monthsToShow]); var fixedWeeks = inst.get('fixedWeeks') || (monthsToShow[0] * monthsToShow[1] > 1); var firstDay = inst.get('firstDay'); var leadDays = ($.datepick.newDate(year, month, 1).getDay() - firstDay + 7) % 7; var numWeeks = (fixedWeeks ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); var showOtherMonths = inst.get('showOtherMonths'); var selectOtherMonths = inst.get('selectOtherMonths') && showOtherMonths; var dayStatus = inst.get('dayStatus'); var minDate = (inst.pickingRange ? inst.selectedDates[0] : inst.get('minDate')); var maxDate = inst.get('maxDate'); var rangeSelect = inst.get('rangeSelect'); var onDate = inst.get('onDate'); var showWeeks = renderer.week.indexOf('{weekOfYear}') > -1; var calculateWeek = inst.get('calculateWeek'); var today = $.datepick.today(); var drawDate = $.datepick.newDate(year, month, 1); $.datepick.add(drawDate, -leadDays - (fixedWeeks && (drawDate.getDay() == firstDay) ? 7 : 0), 'd'); var ts = drawDate.getTime(); // Generate weeks var weeks = ''; for (var week = 0; week < numWeeks; week++) { var weekOfYear = (!showWeeks ? '' : '<span class="dp' + ts + '">' + (calculateWeek ? calculateWeek(drawDate) : 0) + '</span>'); var days = ''; for (var day = 0; day < 7; day++) { var selected = false; if (rangeSelect && inst.selectedDates.length > 0) { selected = (drawDate.getTime() >= inst.selectedDates[0] && drawDate.getTime() <= inst.selectedDates[1]); } else { for (var i = 0; i < inst.selectedDates.length; i++) { if (inst.selectedDates[i].getTime() == drawDate.getTime()) { selected = true; break; } } } var dateInfo = (!onDate ? {} : onDate.apply(target, [drawDate, drawDate.getMonth() + 1 == month])); var selectable = (selectOtherMonths || drawDate.getMonth() + 1 == month) && this._isSelectable(target, drawDate, dateInfo.selectable, minDate, maxDate); days += this._prepare(renderer.day, inst).replace(/\{day\}/g, (selectable ? '<a href="javascript:void(0)"' : '<span') + ' class="dp' + ts + ' ' + (dateInfo.dateClass || '') + (selected && (selectOtherMonths || drawDate.getMonth() + 1 == month) ? ' ' + renderer.selectedClass : '') + (selectable ? ' ' + renderer.defaultClass : '') + ((drawDate.getDay() || 7) < 6 ? '' : ' ' + renderer.weekendClass) + (drawDate.getMonth() + 1 == month ? '' : ' ' + renderer.otherMonthClass) + (drawDate.getTime() == today.getTime() && (drawDate.getMonth() + 1) == month ? ' ' + renderer.todayClass : '') + (drawDate.getTime() == inst.drawDate.getTime() && (drawDate.getMonth() + 1) == month ? ' ' + renderer.highlightedClass : '') + '"' + (dateInfo.title || (dayStatus && selectable) ? ' title="' + (dateInfo.title || $.datepick.formatDate( dayStatus, drawDate, inst.getConfig())) + '"' : '') + '>' + (showOtherMonths || (drawDate.getMonth() + 1) == month ? dateInfo.content || drawDate.getDate() : '&nbsp;') + (selectable ? '</a>' : '</span>')); $.datepick.add(drawDate, 1, 'd'); ts = drawDate.getTime(); } weeks += this._prepare(renderer.week, inst).replace(/\{days\}/g, days). replace(/\{weekOfYear\}/g, weekOfYear); } var monthHeader = this._prepare(renderer.month, inst).match(/\{monthHeader(:[^\}]+)?\}/); monthHeader = (monthHeader[0].length <= 13 ? 'MM yyyy' : monthHeader[0].substring(13, monthHeader[0].length - 1)); monthHeader = (first ? this._generateMonthSelection( inst, year, month, minDate, maxDate, monthHeader, renderer) : $.datepick.formatDate(monthHeader, $.datepick.newDate(year, month, 1), inst.getConfig())); var weekHeader = this._prepare(renderer.weekHeader, inst). replace(/\{days\}/g, this._generateDayHeaders(inst, renderer)); return this._prepare(renderer.month, inst).replace(/\{monthHeader(:[^\}]+)?\}/g, monthHeader). replace(/\{weekHeader\}/g, weekHeader).replace(/\{weeks\}/g, weeks); }, /* Generate the HTML for the day headers. @param inst (object) the current instance settings @param renderer (object) the rendering templates @return (string) a week's worth of day headers */ _generateDayHeaders: function(inst, renderer) { var firstDay = inst.get('firstDay'); var dayNames = inst.get('dayNames'); var dayNamesMin = inst.get('dayNamesMin'); var header = ''; for (var day = 0; day < 7; day++) { var dow = (day + firstDay) % 7; header += this._prepare(renderer.dayHeader, inst).replace(/\{day\}/g, '<span class="' + this._curDoWClass + dow + '" title="' + dayNames[dow] + '">' + dayNamesMin[dow] + '</span>'); } return header; }, /* Generate selection controls for month. @param inst (object) the current instance settings @param year (number) the year to generate @param month (number) the month to generate @param minDate (CDate) the minimum date allowed @param maxDate (CDate) the maximum date allowed @param monthHeader (string) the month/year format @return (string) the month selection content */ _generateMonthSelection: function(inst, year, month, minDate, maxDate, monthHeader) { if (!inst.get('changeMonth')) { return $.datepick.formatDate( monthHeader, $.datepick.newDate(year, month, 1), inst.getConfig()); } // Months var monthNames = inst.get('monthNames' + (monthHeader.match(/mm/i) ? '' : 'Short')); var html = monthHeader.replace(/m+/i, '\\x2E').replace(/y+/i, '\\x2F'); var selector = '<select class="' + this._monthYearClass + '" title="' + inst.get('monthStatus') + '">'; for (var m = 1; m <= 12; m++) { if ((!minDate || $.datepick.newDate(year, m, $.datepick.daysInMonth(year, m)). getTime() >= minDate.getTime()) && (!maxDate || $.datepick.newDate(year, m, 1).getTime() <= maxDate.getTime())) { selector += '<option value="' + m + '/' + year + '"' + (month == m ? ' selected="selected"' : '') + '>' + monthNames[m - 1] + '</option>'; } } selector += '</select>'; html = html.replace(/\\x2E/, selector); // Years var yearRange = inst.get('yearRange'); if (yearRange == 'any') { selector = '<select class="' + this._monthYearClass + ' ' + this._anyYearClass + '" title="' + inst.get('yearStatus') + '">' + '<option>' + year + '</option></select>' + '<input class="' + this._monthYearClass + ' ' + this._curMonthClass + month + '" value="' + year + '">'; } else { yearRange = yearRange.split(':'); var todayYear = $.datepick.today().getFullYear(); var start = (yearRange[0].match('c[+-].*') ? year + parseInt(yearRange[0].substring(1), 10) : ((yearRange[0].match('[+-].*') ? todayYear : 0) + parseInt(yearRange[0], 10))); var end = (yearRange[1].match('c[+-].*') ? year + parseInt(yearRange[1].substring(1), 10) : ((yearRange[1].match('[+-].*') ? todayYear : 0) + parseInt(yearRange[1], 10))); selector = '<select class="' + this._monthYearClass + '" title="' + inst.get('yearStatus') + '">'; start = $.datepick.add($.datepick.newDate(start + 1, 1, 1), -1, 'd'); end = $.datepick.newDate(end, 1, 1); var addYear = function(y) { if (y != 0) { selector += '<option value="' + month + '/' + y + '"' + (year == y ? ' selected="selected"' : '') + '>' + y + '</option>'; } }; if (start.getTime() < end.getTime()) { start = (minDate && minDate.getTime() > start.getTime() ? minDate : start).getFullYear(); end = (maxDate && maxDate.getTime() < end.getTime() ? maxDate : end).getFullYear(); for (var y = start; y <= end; y++) { addYear(y); } } else { start = (maxDate && maxDate.getTime() < start.getTime() ? maxDate : start).getFullYear(); end = (minDate && minDate.getTime() > end.getTime() ? minDate : end).getFullYear(); for (var y = start; y >= end; y--) { addYear(y); } } selector += '</select>'; } html = html.replace(/\\x2F/, selector); return html; }, /* Prepare a render template for use. Exclude popup/inline sections that are not applicable. Localise text of the form: {l10n:name}. @param text (string) the text to localise @param inst (object) the current instance settings @return (string) the localised text */ _prepare: function(text, inst) { var replaceSection = function(type, retain) { while (true) { var start = text.indexOf('{' + type + ':start}'); if (start == -1) { return; } var end = text.substring(start).indexOf('{' + type + ':end}'); if (end > -1) { text = text.substring(0, start) + (retain ? text.substr(start + type.length + 8, end - type.length - 8) : '') + text.substring(start + end + type.length + 6); } } }; replaceSection('inline', inst.inline); replaceSection('popup', !inst.inline); var pattern = /\{l10n:([^\}]+)\}/; var matches = null; while (matches = pattern.exec(text)) { text = text.replace(matches[0], inst.get(matches[1])); } return text; } }); /* jQuery extend now ignores nulls! @param target (object) the object to extend @param props (object) the new settings @return (object) the updated object */ function extendRemove(target, props) { $.extend(target, props); for (var name in props) if (props[name] == null || props[name] == undefined) target[name] = props[name]; return target; }; /* Attach the datepicker functionality to a jQuery selection. @param command (string) the command to run (optional, default 'attach') @param options (object) the new settings to use for these instances (optional) @return (jQuery) for chaining further calls */ $.fn.datepick = function(options) { var otherArgs = Array.prototype.slice.call(arguments, 1); if ($.inArray(options, ['getDate', 'isDisabled', 'isSelectable', 'options', 'retrieveDate']) > -1) { return $.datepick[options].apply($.datepick, [this[0]].concat(otherArgs)); } return this.each(function() { if (typeof options == 'string') { $.datepick[options].apply($.datepick, [this].concat(otherArgs)); } else { $.datepick._attachPicker(this, options || {}); } }); }; /* Initialise the datepicker functionality. */ $.datepick = new Datepicker(); // singleton instance $(function() { $(document).mousedown($.datepick._checkExternalClick). resize(function() { $.datepick.hide($.datepick.curInst); }); }); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick.js
JavaScript
asf20
84,855
/* http://keith-wood.name/datepick.html Arabic localisation for jQuery Datepicker. Khaled Al Horani -- koko.dw@gmail.com خالد الحوراني -- koko.dw@gmail.com NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ (function($) { $.datepick.regional['ar'] = { monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'آذار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], dayNames: ['السبت', 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة'], dayNamesShort: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'], dayNamesMin: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;السابق', prevStatus: 'عرض الشهر السابق', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'التالي&#x3e;', nextStatus: 'عرض الشهر القادم', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'اليوم', currentStatus: 'عرض الشهر الحالي', todayText: 'اليوم', todayStatus: 'عرض الشهر الحالي', clearText: 'مسح', clearStatus: 'امسح التاريخ الحالي', closeText: 'إغلاق', closeStatus: 'إغلاق بدون حفظ', yearStatus: 'عرض سنة آخرى', monthStatus: 'عرض شهر آخر', weekText: 'أسبوع', weekStatus: 'أسبوع السنة', dayStatus: 'اختر D, M d', defaultStatus: 'اختر يوم', isRTL: true }; $.datepick.setDefaults($.datepick.regional['ar']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ar.js
JavaScript
asf20
2,014
/* Default styling for jQuery Datepicker v4.0.3. */ .datepick { background-color: #fff; color: #000; border: 1px solid #444; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-family: Arial,Helvetica,Sans-serif; font-size: 90%; } .datepick-rtl { direction: rtl; } .datepick-popup { z-index: 1000; } .datepick-disable { position: absolute; z-index: 100; background-color: white; opacity: 0.5; filter: alpha(opacity=50); } .datepick a { color: #fff; text-decoration: none; } .datepick a.datepick-disabled { color: #888; cursor: auto; } .datepick button { margin: 0.25em; padding: 0.125em 0em; background-color: #fcc; border: none; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-weight: bold; } .datepick-nav, .datepick-ctrl { float: left; width: 100%; background-color: #000; color: #fff; font-size: 90%; font-weight: bold; } .datepick-ctrl { background-color: #600; } .datepick-cmd { width: 30%; } .datepick-cmd:hover { background-color: #777; } .datepick-ctrl .datepick-cmd:hover { background-color: #f08080; } .datepick-cmd-prevJump, .datepick-cmd-nextJump { width: 8%; } a.datepick-cmd { height: 1.5em; } button.datepick-cmd { text-align: center; } .datepick-cmd-prev, .datepick-cmd-prevJump, .datepick-cmd-clear { float: left; padding-left: 2%; } .datepick-cmd-current, .datepick-cmd-today { float: left; width: 35%; text-align: center; } .datepick-cmd-next, .datepick-cmd-nextJump, .datepick-cmd-close { float: right; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-prev, .datepick-rtl .datepick-cmd-prevJump, .datepick-rtl .datepick-cmd-clear { float: right; padding-left: 0%; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-current, .datepick-rtl .datepick-cmd-today { float: right; } .datepick-rtl .datepick-cmd-next, .datepick-rtl .datepick-cmd-nextJump, .datepick-rtl .datepick-cmd-close { float: left; padding-left: 2%; padding-right: 0%; text-align: left; } .datepick-month-nav { float: left; background-color: #777; text-align: center; } .datepick-month-nav div { float: left; width: 12.5%; margin: 1%; padding: 1%; } .datepick-month-nav span { color: #888; } .datepick-month-row { clear: left; } .datepick-month { float: left; width: 15em; border: 1px solid #444; text-align: center; } .datepick-month-header, .datepick-month-header select, .datepick-month-header input { height: 1.5em; background-color: #444; color: #fff; font-weight: bold; } .datepick-month-header select, .datepick-month-header input { height: 1.4em; border: none; } .datepick-month-header input { position: absolute; display: none; } .datepick-month table { width: 100%; border-collapse: collapse; } .datepick-month thead { border-bottom: 1px solid #aaa; } .datepick-month th, .datepick-month td { margin: 0em; padding: 0em; font-weight: normal; text-align: center; } .datepick-month th { border: 1px solid #777; } .datepick-month th, .datepick-month th a { background-color: #777; color: #fff; } .datepick-month td { background-color: #eee; border: 1px solid #aaa; } .datepick-month td.datepick-week { border: 1px solid #777; } .datepick-month td.datepick-week * { background-color: #777; color: #fff; border: none; } .datepick-month a { display: block; width: 100%; padding: 0.125em 0em; background-color: #eee; color: #000; text-decoration: none; } .datepick-month span { display: block; width: 100%; padding: 0.125em 0em; } .datepick-month td span { color: #888; } .datepick-month td .datepick-other-month { background-color: #fff; } .datepick-month td .datepick-weekend { background-color: #ddd; } .datepick-month td .datepick-today { background-color: #f0c0c0; } .datepick-month td .datepick-highlight { background-color: #f08080; } .datepick-month td .datepick-selected { background-color: #777; color: #fff; } .datepick-month th.datepick-week { background-color: #777; color: #fff; } .datepick-status { clear: both; background-color: #ddd; text-align: center; } .datepick-clear-fix { clear: both; } .datepick-cover { display: none; display/**/: block; position: absolute; z-index: -1; filter: mask(); top: -1px; left: -1px; width: 100px; height: 100px; }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick.css
CSS
asf20
4,575
/* http://keith-wood.name/datepick.html Croatian localisation for jQuery Datepicker. Written by Vjekoslav Nesek. */ (function($) { $.datepick.regional['hr'] = { monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj', 'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'], monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip', 'Srp','Kol','Ruj','Lis','Stu','Pro'], dayNames: ['Nedjelja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], dateFormat: 'dd.mm.yyyy.', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;', prevStatus: 'Prikaži prethodni mjesec', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: '&#x3e;', nextStatus: 'Prikaži slijedeći mjesec', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Danas', currentStatus: 'Današnji datum', todayText: 'Danas', todayStatus: 'Današnji datum', clearText: 'izbriši', clearStatus: 'Izbriši trenutni datum', closeText: 'Zatvori', closeStatus: 'Zatvori kalendar', yearStatus: 'Prikaži godine', monthStatus: 'Prikaži mjesece', weekText: 'Tje', weekStatus: 'Tjedan', dayStatus: '\'Datum\' D, M d', defaultStatus: 'Odaberi datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['hr']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-hr.js
JavaScript
asf20
1,447
/* http://keith-wood.name/datepick.html Spanish/Argentina localisation for jQuery Datepicker. Written by Esteban Acosta Villafane (esteban.acosta@globant.com) of Globant (http://www.globant.com). */ (function($) { $.datepick.regional['es-AR'] = { monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun', 'Jul','Ago','Sep','Oct','Nov','Dic'], dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Ant', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Sig&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Hoy', currentStatus: '', todayText: 'Hoy', todayStatus: '', clearText: 'Limpiar', clearStatus: '', closeText: 'Cerrar', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Sm', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['es-AR']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-es-AR.js
JavaScript
asf20
1,341
/* http://keith-wood.name/datepick.html Danish localisation for jQuery Datepicker. Written by Jan Christensen ( deletestuff@gmail.com). */ (function($) { $.datepick.regional['da'] = { monthNames: ['Januar','Februar','Marts','April','Maj','Juni', 'Juli','August','September','Oktober','November','December'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Aug','Sep','Okt','Nov','Dec'], dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], dateFormat: 'dd-mm-yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Forrige', prevStatus: 'Vis forrige måned', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Næste&#x3e;', nextStatus: 'Vis næste måned', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Idag', currentStatus: 'Vis aktuel måned', todayText: 'Idag', todayStatus: 'Vis aktuel måned', clearText: 'Nulstil', clearStatus: 'Nulstil den aktuelle dato', closeText: 'Luk', closeStatus: 'Luk uden ændringer', yearStatus: 'Vis et andet år', monthStatus: 'Vis en anden måned', weekText: 'Uge', weekStatus: 'Årets uge', dayStatus: 'Vælg D, M d', defaultStatus: 'Vælg en dato', isRTL: false }; $.datepick.setDefaults($.datepick.regional['da']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-da.js
JavaScript
asf20
1,495
/* ThemeRoller ExciteBike override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #e69700; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #2293f7; /* Set (.ui-state-hover) colours from theme here */ color: #ffffff; } .ui-widget-header select, .ui-widget-header option { background-color: #f9f9f9; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #333333; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-excitebike.datepick.css
CSS
asf20
621
/* http://keith-wood.name/datepick.html German localisation for jQuery Datepicker. Written by Milian Wolff (mail@milianw.de). */ (function($) { $.datepick.regional['de'] = { monthNames: ['Januar','Februar','März','April','Mai','Juni', 'Juli','August','September','Oktober','November','Dezember'], monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', 'Jul','Aug','Sep','Okt','Nov','Dez'], dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;zurück', prevStatus: 'letzten Monat zeigen', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Vor&#x3e;', nextStatus: 'nächsten Monat zeigen', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'heute', currentStatus: '', todayText: 'heute', todayStatus: '', clearText: 'löschen', clearStatus: 'aktuelles Datum löschen', closeText: 'schließen', closeStatus: 'ohne Änderungen schließen', yearStatus: 'anderes Jahr anzeigen', monthStatus: 'anderen Monat anzeigen', weekText: 'Wo', weekStatus: 'Woche des Monats', dayStatus: 'Wähle D, M d', defaultStatus: 'Wähle ein Datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['de']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-de.js
JavaScript
asf20
1,444
/* http://keith-wood.name/datepick.html Estonian localisation for jQuery Datepicker. Written by Mart Sõmermaa (mrts.pydev at gmail com). */ (function($) { $.datepick.regional['et'] = { monthNames: ['Jaanuar','Veebruar','Märts','Aprill','Mai','Juuni', 'Juuli','August','September','Oktoober','November','Detsember'], monthNamesShort: ['Jaan', 'Veebr', 'Märts', 'Apr', 'Mai', 'Juuni', 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'], dayNames: ['Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'], dayNamesShort: ['Pühap', 'Esmasp', 'Teisip', 'Kolmap', 'Neljap', 'Reede', 'Laup'], dayNamesMin: ['P','E','T','K','N','R','L'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: 'Eelnev', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Järgnev', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Täna', currentStatus: '', todayText: 'Täna', todayStatus: '', clearText: '', clearStatus: '', closeText: 'Sulge', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Sm', weekStatus: '', dayStatus: '', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['et']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-et.js
JavaScript
asf20
1,327
/* http://keith-wood.name/datepick.html Lithuanian localisation for jQuery Datepicker. Written by Arturas Paleicikas <arturas@avalon.lt> */ (function($) { $.datepick.regional['lt'] = { monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis', 'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'], monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir', 'Lie','Rugp','Rugs','Spa','Lap','Gru'], dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'], dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'], dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'], dateFormat: 'yyyy-mm-dd', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Atgal', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Pirmyn&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Šiandien', currentStatus: '', todayText: 'Šiandien', todayStatus: '', clearText: 'Išvalyti', clearStatus: '', closeText: 'Uždaryti', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Wk', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['lt']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-lt.js
JavaScript
asf20
1,347
/* ThemeRoller UI Darkness override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #ffffff; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #0078a3; /* Set (.ui-state-hover) colours from theme here */ color: #ffffff; } .ui-widget-header select, .ui-widget-header option { background-color: #333333; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #2e7db2; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-uidarkness.datepick.css
CSS
asf20
622
/* ThemeRoller Smoothness override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #222222; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #dadada; /* Set (.ui-state-hover) colours from theme here */ color: #212121; } .ui-widget-header select, .ui-widget-header option { background-color: #cccccc; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #363636; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-smoothness.datepick.css
CSS
asf20
621
/* http://keith-wood.name/datepick.html Simplified Chinese localisation for jQuery Datepicker. Written by Cloudream (cloudream@gmail.com). */ (function($) { $.datepick.regional['zh-CN'] = { monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一','二','三','四','五','六', '七','八','九','十','十一','十二'], dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], dayNamesMin: ['日','一','二','三','四','五','六'], dateFormat: 'yyyy-mm-dd', firstDay: 1, renderer: $.extend({}, $.datepick.defaultRenderer, {month: $.datepick.defaultRenderer.month. replace(/monthHeader/, 'monthHeader:MM yyyy年')}), prevText: '&#x3c;上月', prevStatus: '显示上月', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '显示上一年', nextText: '下月&#x3e;', nextStatus: '显示下月', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '显示下一年', currentText: '今天', currentStatus: '显示本月', todayText: '今天', todayStatus: '显示本月', clearText: '清除', clearStatus: '清除已选日期', closeText: '关闭', closeStatus: '不改变当前选择', yearStatus: '选择年份', monthStatus: '选择月份', weekText: '周', weekStatus: '年内周次', dayStatus: '选择 m月 d日, DD', defaultStatus: '请选择日期', isRTL: false }; $.datepick.setDefaults($.datepick.regional['zh-CN']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-zh-CN.js
JavaScript
asf20
1,638
/* http://keith-wood.name/datepick.html Datepicker Validation extension for jQuery 4.0.3. Requires Jörn Zaefferer's Validation plugin (http://plugins.jquery.com/project/validate). Written by Keith Wood (kbwood{at}iinet.com.au). Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. Please attribute the author if you use it. */ (function($) { // Hide the namespace /* Add validation methods if validation plugin available. */ if ($.fn.validate) { $.datepick.selectDateOrig = $.datepick.selectDate; $.extend($.datepick.regional[''], { validateDate: 'Please enter a valid date', validateDateMin: 'Please enter a date on or after {0}', validateDateMax: 'Please enter a date on or before {0}', validateDateMinMax: 'Please enter a date between {0} and {1}' }); $.extend($.datepick._defaults, $.datepick.regional['']); $.extend($.datepick, { /* Trigger a validation after updating the input field with the selected date. @param target (element) the control to examine @param elem (element) the selected datepicker element */ selectDate: function(target, elem) { this.selectDateOrig(target, elem); var inst = $.data(target, $.datepick.dataName); if (!inst.inline && $.fn.validate) { var validation = $(target).parents('form').validate(); if (validation) { validation.element('#' + target.id); } } }, /* Correct error placement for validation errors - after any trigger. @param error (jQuery) the error message @param element (jQuery) the field in error */ errorPlacement: function(error, element) { var inst = $.data(element[0], $.datepick.dataName); if (inst) { error[inst.get('isRTL') ? 'insertBefore' : 'insertAfter']( inst.trigger.length > 0 ? inst.trigger : element); } else { error.insertAfter(element); } }, /* Format a validation error message involving dates. @param source (string) the error message @param params (Date[]) the dates @return (string) the formatted message */ errorFormat: function(source, params) { var format = ($.datepick.curInst ? $.datepick.curInst.get('dateFormat') : $.datepick._defaults.dateFormat); $.each(params, function(index, value) { source = source.replace(new RegExp('\\{' + index + '\\}', 'g'), $.datepick.formatDate(format, value) || 'nothing'); }); return source; } }); /* Apply a validation test to each date provided. @param value (string) the current field value @param element (element) the field control @return (boolean) true if OK, false if failed validation */ function validateEach(value, element) { var inst = $.data(element, $.datepick.dataName); var rangeSelect = inst.get('rangeSelect'); var multiSelect = inst.get('multiSelect'); var dates = (multiSelect ? value.split(inst.get('multiSeparator')) : (rangeSelect ? value.split(inst.get('rangeSeparator')) : [value])); var ok = (multiSelect && dates.length <= multiSelect) || (!multiSelect && rangeSelect && dates.length == 2) || (!multiSelect && !rangeSelect && dates.length == 1); if (ok) { try { var dateFormat = inst.get('dateFormat'); var dp = $(element); $.each(dates, function(i, v) { dates[i] = $.datepick.parseDate(dateFormat, v); ok = ok && (!dates[i] || dp.datepick('isSelectable', dates[i])); }); } catch (e) { ok = false; } } if (ok && rangeSelect) { ok = (dates[0].getTime() <= dates[1].getTime()); } return ok; } /* Validate basic date format. */ $.validator.addMethod('dpDate', function(value, element) { return this.optional(element) || validateEach(value, element); }, function(params) { return $.datepick._defaults.validateDate; }); /* Validate format and against a minimum date. */ $.validator.addMethod('dpMinDate', function(value, element, params) { var inst = $.data(element, $.datepick.dataName); params[0] = inst.get('minDate'); return this.optional(element) || validateEach(value, element); }, function(params) { return $.datepick.errorFormat($.datepick._defaults.validateDateMin, params); }); /* Validate format and against a maximum date. */ $.validator.addMethod('dpMaxDate', function(value, element, params) { var inst = $.data(element, $.datepick.dataName); params[0] = inst.get('maxDate'); return this.optional(element) || validateEach(value, element); }, function(params) { return $.datepick.errorFormat($.datepick._defaults.validateDateMax, params); }); /* Validate format and against minimum/maximum dates. */ $.validator.addMethod('dpMinMaxDate', function(value, element, params) { var inst = $.data(element, $.datepick.dataName); params[0] = inst.get('minDate'); params[1] = inst.get('maxDate'); return this.optional(element) || validateEach(value, element); }, function(params) { return $.datepick.errorFormat($.datepick._defaults.validateDateMinMax, params); }); } })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick.validation.js
JavaScript
asf20
5,244
/* http://keith-wood.name/datepick.html Gujarati (ગુજરાતી) localisation for jQuery Datepicker. Naymesh Mistry (naymesh@yahoo.com). */ (function($) { $.datepick.regional['gu'] = { monthNames: ['જાન્યુઆરી','ફેબ્રુઆરી','માર્ચ','એપ્રિલ','મે','જૂન', 'જુલાઈ','ઑગસ્ટ','સપ્ટેમ્બર','ઑક્ટોબર','નવેમ્બર','ડિસેમ્બર'], monthNamesShort: ['જાન્યુ','ફેબ્રુ','માર્ચ','એપ્રિલ','મે','જૂન', 'જુલાઈ','ઑગસ્ટ','સપ્ટે','ઑક્ટો','નવે','ડિસે'], dayNames: ['રવિવાર','સોમવાર','મંગળવાર','બુધવાર','ગુરુવાર','શુક્રવાર','શનિવાર'], dayNamesShort: ['રવિ','સોમ','મંગળ','બુધ','ગુરુ','શુક્ર','શનિ'], dayNamesMin: ['ર','સો','મં','બુ','ગુ','શુ','શ'], dateFormat: 'dd-M-yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;પાછળ', prevStatus: 'પાછલો મહિનો બતાવો', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'પાછળ', nextText: 'આગળ&#x3e;', nextStatus: 'આગલો મહિનો બતાવો', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'આગળ', currentText: 'આજે', currentStatus: 'આજનો દિવસ બતાવો', todayText: 'આજે', todayStatus: 'આજનો દિવસ', clearText: 'ભૂંસો', clearStatus: 'હાલ પસંદ કરેલી તારીખ ભૂંસો', closeText: 'બંધ કરો', closeStatus: 'તારીખ પસંદ કર્યા વગર બંધ કરો', yearStatus: 'જુદુ વર્ષ બતાવો', monthStatus: 'જુદો મહિનો બતાવો', weekText: 'અઠવાડિયું', weekStatus: 'અઠવાડિયું', dayStatus: 'અઠવાડિયાનો પહેલો દિવસ પસંદ કરો', defaultStatus: 'તારીખ પસંદ કરો', isRTL: false }; $.datepick.setDefaults($.datepick.regional['gu']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-gu.js
JavaScript
asf20
2,317
/* http://keith-wood.name/datepick.html Korean localisation for jQuery Datepicker. Written by DaeKwon Kang (ncrash.dk@gmail.com). */ (function($) { $.datepick.regional['ko'] = { monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], dayNames: ['일','월','화','수','목','금','토'], dayNamesShort: ['일','월','화','수','목','금','토'], dayNamesMin: ['일','월','화','수','목','금','토'], dateFormat: 'yyyy-mm-dd', firstDay: 0, renderer: $.extend({}, $.datepick.defaultRenderer, {month: $.datepick.defaultRenderer.month. replace(/monthHeader/, 'monthHeader:MM yyyy년')}), prevText: '이전달', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: '다음달', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: '오늘', currentStatus: '', todayText: '오늘', todayStatus: '', clearText: '지우기', clearStatus: '', closeText: '닫기', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Wk', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['ko']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ko.js
JavaScript
asf20
1,476
/* ThemeRoller Vader override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #ffffff; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #dddddd; /* Set (.ui-state-hover) colours from theme here */ color: #000000; } .ui-widget-header select, .ui-widget-header option { background-color: #888888; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #cccccc; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-vader.datepick.css
CSS
asf20
616
/* http://keith-wood.name/datepick.html Serbian localisation for jQuery Datepicker. Written by Dejan Dimić. */ (function($) { $.datepick.regional['sr'] = { monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун', 'Јул','Август','Септембар','Октобар','Новембар','Децембар'], monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун', 'Јул','Авг','Сеп','Окт','Нов','Дец'], dayNames: ['Недеља','Понедељак','Уторак','Среда','Четвртак','Петак','Субота'], dayNamesShort: ['Нед','Пон','Уто','Сре','Чет','Пет','Суб'], dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;', prevStatus: 'Прикажи претходни месец', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Прикажи претходну годину', nextText: '&#x3e;', nextStatus: 'Прикажи следећи месец', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Прикажи следећу годину', currentText: 'Данас', currentStatus: 'Текући месец', todayText: 'Данас', todayStatus: 'Текући месец', clearText: 'Обриши', clearStatus: 'Обриши тренутни датум', closeText: 'Затвори', closeStatus: 'Затвори календар', yearStatus: 'Прикажи године', monthStatus: 'Прикажи месеце', weekText: 'Сед', weekStatus: 'Седмица', dayStatus: '\'Датум\' DD d MM', defaultStatus: 'Одабери датум', isRTL: false }; $.datepick.setDefaults($.datepick.regional['sr']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-sr.js
JavaScript
asf20
1,841
/* http://keith-wood.name/datepick.html Dutch localisation for jQuery Datepicker. Written by Mathias Bynens <http://mathiasbynens.be/> */ (function($) { $.datepick.regional['nl'] = { monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], dateFormat: 'dd-mm-yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '←', prevStatus: 'Bekijk de vorige maand', prevJumpText: '«', nextJumpStatus: 'Bekijk het vorige jaar', nextText: '→', nextStatus: 'Bekijk de volgende maand', nextJumpText: '»', nextJumpStatus: 'Bekijk het volgende jaar', currentText: 'Vandaag', currentStatus: 'Bekijk de huidige maand', todayText: 'Vandaag', todayStatus: 'Bekijk de huidige maand', clearText: 'Wissen', clearStatus: 'Wis de huidige datum', closeText: 'Sluiten', closeStatus: 'Sluit zonder verandering', yearStatus: 'Bekijk een ander jaar', monthStatus: 'Bekijk een andere maand', weekText: 'Wk', weekStatus: 'Week van het jaar', dayStatus: 'dd-mm-yyyy', defaultStatus: 'Kies een datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['nl']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-nl.js
JavaScript
asf20
1,549
/* ThemeRoller Redmond override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #ffffff; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #d0e5f5; /* Set (.ui-state-hover) colours from theme here */ color: #1d5987; } .ui-widget-header select, .ui-widget-header option { background-color: #5c9ccc; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #363636; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-redmond.datepick.css
CSS
asf20
618
/* http://keith-wood.name/datepick.html Afrikaans localisation for jQuery Datepicker. Written by Renier Pretorius. */ (function($) { $.datepick.regional['af'] = { monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie', 'Julie','Augustus','September','Oktober','November','Desember'], monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'], dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'], dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: 'Vorige', prevStatus: 'Vertoon vorige maand', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Vertoon vorige jaar', nextText: 'Volgende', nextStatus: 'Vertoon volgende maand', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Vertoon volgende jaar', currentText: 'Vandag', currentStatus: 'Vertoon huidige maand', todayText: 'Vandag', todayStatus: 'Vertoon huidige maand', clearText: 'Kanselleer', clearStatus: 'Korigeer die huidige datum', closeText: 'Selekteer', closeStatus: 'Sluit sonder verandering', yearStatus: 'Vertoon n ander jaar', monthStatus: 'Vertoon n ander maand', weekText: 'Wk', weekStatus: 'Week van die jaar', dayStatus: 'Kies DD, M d', defaultStatus: 'Kies n datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['af']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-af.js
JavaScript
asf20
1,537
/* http://keith-wood.name/datepick.html Swiss French localisation for jQuery Datepicker. Written by Martin Voelkle (martin.voelkle@e-tc.ch). */ (function($) { $.datepick.regional['fr-CH'] = { monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', 'Jul','Aoû','Sep','Oct','Nov','Déc'], dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Préc', prevStatus: 'Voir le mois précédent', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Suiv&#x3e;', nextStatus: 'Voir le mois suivant', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Courant', currentStatus: 'Voir le mois courant', todayText: 'Aujourd\'hui', todayStatus: 'Voir aujourd\'hui', clearText: 'Effacer', clearStatus: 'Effacer la date sélectionnée', closeText: 'Fermer', closeStatus: 'Fermer sans modifier', yearStatus: 'Voir une autre année', monthStatus: 'Voir un autre mois', weekText: 'Sm', weekStatus: '', dayStatus: '\'Choisir\' le DD d MM', defaultStatus: 'Choisir la date', isRTL: false }; $.datepick.setDefaults($.datepick.regional['fr-CH']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-fr-CH.js
JavaScript
asf20
1,499
/* http://keith-wood.name/datepick.html Traditional Chinese localisation for jQuery Datepicker. Written by Ressol (ressol@gmail.com). */ (function($) { $.datepick.regional['zh-TW'] = { monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一','二','三','四','五','六', '七','八','九','十','十一','十二'], dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], dayNamesMin: ['日','一','二','三','四','五','六'], dateFormat: 'yyyy/mm/dd', firstDay: 1, renderer: $.extend({}, $.datepick.defaultRenderer, {month: $.datepick.defaultRenderer.month. replace(/monthHeader/, 'monthHeader:MM yyyy年')}), prevText: '&#x3c;上月', prevStatus: '顯示上月', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '顯示上一年', nextText: '下月&#x3e;', nextStatus: '顯示下月', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '顯示下一年', currentText: '今天', currentStatus: '顯示本月', todayText: '今天', todayStatus: '顯示本月', clearText: '清除', clearStatus: '清除已選日期', closeText: '關閉', closeStatus: '不改變目前的選擇', yearStatus: '選擇年份', monthStatus: '選擇月份', weekText: '周', weekStatus: '年內周次', dayStatus: '選擇 m月 d日, DD', defaultStatus: '請選擇日期', isRTL: false }; $.datepick.setDefaults($.datepick.regional['zh-TW']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-zh-TW.js
JavaScript
asf20
1,639
/* http://keith-wood.name/datepick.html Indonesian localisation for jQuery Datepicker. Written by Deden Fathurahman (dedenf@gmail.com). */ (function($) { $.datepick.regional['id'] = { monthNames: ['Januari','Februari','Maret','April','Mei','Juni', 'Juli','Agustus','September','Oktober','Nopember','Desember'], monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', 'Jul','Agus','Sep','Okt','Nop','Des'], dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'], dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'], dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;mundur', prevStatus: 'Tampilkan bulan sebelumnya', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'maju&#x3e;', nextStatus: 'Tampilkan bulan berikutnya', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'hari ini', currentStatus: 'Tampilkan bulan sekarang', todayText: 'hari ini', todayStatus: 'Tampilkan bulan sekarang', clearText: 'kosongkan', clearStatus: 'bersihkan tanggal yang sekarang', closeText: 'Tutup', closeStatus: 'Tutup tanpa mengubah', yearStatus: 'Tampilkan tahun yang berbeda', monthStatus: 'Tampilkan bulan yang berbeda', weekText: 'Mg', weekStatus: 'Minggu dalam tahun', dayStatus: 'pilih le DD, MM d', defaultStatus: 'Pilih Tanggal', isRTL: false }; $.datepick.setDefaults($.datepick.regional['id']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-id.js
JavaScript
asf20
1,520
/* http://keith-wood.name/datepick.html Bosnian localisation for jQuery Datepicker. Written by Kenan Konjo. */ (function($) { $.datepick.regional['bs'] = { monthNames: ['Januar','Februar','Mart','April','Maj','Juni', 'Juli','August','Septembar','Oktobar','Novembar','Decembar'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Aug','Sep','Okt','Nov','Dec'], dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: '&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Danas', currentStatus: '', todayText: 'Danas', todayStatus: '', clearText: 'X', clearStatus: '', closeText: 'Zatvori', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Wk', weekStatus: '', dayStatus: 'DD d MM', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['bs']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-bs.js
JavaScript
asf20
1,236
/* Humanity style sheet for jQuery Datepicker v4.0.3. */ .datepick { background-color: #f4f0ec; color: #1e1b1c; border: 1px solid #cb842e; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-family: Arial,Helvetica,Sans-serif; font-size: 90%; } .datepick-rtl { direction: rtl; } .datepick-popup { z-index: 1000; } .datepick-disable { position: absolute; z-index: 100; background-color: white; opacity: 0.5; filter: alpha(opacity=50); } .datepick a { color: #1e1b1c; text-decoration: none; } .datepick a.datepick-disabled { color: #888; cursor: auto; } .datepick button { margin: 0.25em; padding: 0.125em 0em; background-color: #ede4d4; border: none; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-weight: bold; } .datepick-nav, .datepick-ctrl { float: left; width: 100%; background-color: #ede4d4; font-size: 90%; font-weight: bold; } .datepick-ctrl { background-color: #cb842e; } .datepick-cmd { width: 30%; } .datepick-cmd:hover { background-color: #f4f0ec; } .datepick-cmd-prevJump, .datepick-cmd-nextJump { width: 8%; } a.datepick-cmd { height: 1.5em; } button.datepick-cmd { text-align: center; } .datepick-cmd-prev, .datepick-cmd-prevJump, .datepick-cmd-clear { float: left; padding-left: 2%; } .datepick-cmd-current, .datepick-cmd-today { float: left; width: 35%; text-align: center; } .datepick-cmd-next, .datepick-cmd-nextJump, .datepick-cmd-close { float: right; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-prev, .datepick-rtl .datepick-cmd-prevJump, .datepick-rtl .datepick-cmd-clear { float: right; padding-left: 0%; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-current, .datepick-rtl .datepick-cmd-today { float: right; } .datepick-rtl .datepick-cmd-next, .datepick-rtl .datepick-cmd-nextJump, .datepick-rtl .datepick-cmd-close { float: left; padding-left: 2%; padding-right: 0%; text-align: left; } .datepick-month-nav { float: left; text-align: center; } .datepick-month-nav div { float: left; width: 12.5%; margin: 1%; padding: 1%; } .datepick-month-nav span { color: #888; } .datepick-month-row { clear: left; } .datepick-month { float: left; width: 17em; border: 1px solid #e0cfc2; text-align: center; } .datepick-month-header, .datepick-month-header select, .datepick-month-header input { height: 1.5em; background-color: #cb842e; color: #fff; font-weight: bold; } .datepick-month-header select, .datepick-month-header input { height: 1.4em; border: none; } .datepick-month-header input { position: absolute; display: none; } .datepick-month table { width: 100%; border: 2px solid transparent; border-collapse: collapse; } .datepick-month th, .datepick-month td { margin: 0em; padding: 0.125em; font-weight: normal; text-align: center; } .datepick-month td.datepick-week, .datepick-month td.datepick-week * { background-color: #cb842e; color: #fff; border: 1px solid #cb842e; } .datepick-month a { display: block; width: 100%; padding: 0.125em 0em; background-color: #ede4d4; color: #000; border: 1px solid #cdc3b7; text-decoration: none; } .datepick-month a, .datepick-month span { display: block; margin-top: 0.25em; } .datepick-month a { background-color: #ede4d4; color: #444; border: 1px solid #cdc3b7; text-decoration: none; } .datepick-month td span { color: #888; } .datepick-month td .datepick-other-month { background-color: #f4f0ec; } .datepick-month td .datepick-today { background-color: #f5f5b5; border: 1px solid #d9bb73; } .datepick-month td .datepick-highlight { background-color: #f5f0e5; color: #1e1b1c; border: 1px solid #f5ad66; } .datepick-month td .datepick-selected { background-color: #cb842e; color: #fff; border: 1px solid #cb842e; } .datepick-status { clear: both; text-align: center; } .datepick-clear-fix { clear: both; } .datepick-cover { display: none; display/**/: block; position: absolute; z-index: -1; filter: mask(); top: -1px; left: -1px; width: 100px; height: 100px; }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/humanity.datepick.css
CSS
asf20
4,337
/* http://keith-wood.name/datepick.html Urdu localisation for jQuery Datepicker. Mansoor Munib -- mansoormunib@gmail.com <http://www.mansoor.co.nr/mansoor.html> Thanks to Habib Ahmed, ObaidUllah Anwar. */ (function($) { $.datepick.regional['ur'] = { monthNames: ['جنوری','فروری','مارچ','اپریل','مئی','جون', 'جولائی','اگست','ستمبر','اکتوبر','نومبر','دسمبر'], monthNamesShort: ['1','2','3','4','5','6', '7','8','9','10','11','12'], dayNames: ['اتوار','پير','منگل','بدھ','جمعرات','جمعہ','ہفتہ'], dayNamesShort: ['اتوار','پير','منگل','بدھ','جمعرات','جمعہ','ہفتہ'], dayNamesMin: ['اتوار','پير','منگل','بدھ','جمعرات','جمعہ','ہفتہ'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;گذشتہ', prevStatus: 'ماه گذشتہ', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'برس گذشتہ', nextText: 'آئندہ&#x3e;', nextStatus: 'ماه آئندہ', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'برس آئندہ', currentText: 'رواں', currentStatus: 'ماه رواں', todayText: 'آج', todayStatus: 'آج', clearText: 'حذف تاريخ', clearStatus: 'کریں حذف تاریخ', closeText: 'کریں بند', closeStatus: 'کیلئے کرنے بند', yearStatus: 'برس تبدیلی', monthStatus: 'ماه تبدیلی', weekText: 'ہفتہ', weekStatus: 'ہفتہ', dayStatus: 'انتخاب D, M d', defaultStatus: 'کریں منتخب تاريخ', isRTL: true }; $.datepick.setDefaults($.datepick.regional['ur']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ur.js
JavaScript
asf20
1,717
/* ThemeRoller override style sheet for jQuery date picker v4.0.3. */ #ui-datepicker-div, .ui-datepicker-inline { width: 17em; font-size: 75%; } #ui-datepicker-div { z-index: 100; } .ui-datepicker-inline { float: left; } .ui-datepicker-rtl { direction: rtl; } #ui-datepicker-div a, .ui-datepicker-inline a { text-decoration: none; } .ui-datepicker-prompt { height: 1.5em; padding-top: 0.25em; text-align: center; } button.ui-datepicker-cmd { height: 2em; } .ui-datepicker-cmd-clear { float: left; margin-left: 0.25em; } .ui-datepicker-cmd-close { float: right; margin-right: 0.25em; } .ui-datepicker-cmd-prev { position: static; float: left; width: 30%; height: auto; margin-left: 1%; } .ui-datepicker-cmd-next { position: static; float: right; width: 30%; height: auto; margin-right: 1%; text-align: right; } .ui-datepicker-cmd-current, .ui-datepicker-cmd-today { float: left; width: 37%; text-align: center; } .ui-datepicker-month-nav { float: left; text-align: center; } .ui-datepicker-month-nav div { float: left; width: 12.5%; margin: 1%; padding: 1%; } .ui-datepicker-month-nav span { color: #888; } .ui-datepicker-row-break { width: 100%; } .ui-datepicker-group { float: left; width: 17em; } .ui-datepicker-group .ui-datepicker-header { height: 1.5em; text-align: center; } .ui-datepicker select, .ui-datepicker-inline select { width: auto; height: 1.66em; border: none; font-weight: bold; } .ui-datepicker th { padding: 0.5em 0.3em; } .ui-datepicker td, .ui-datepicker td a, .ui-datepicker td span { border: 1px solid transparent; text-align: center; } .ui-datepicker-status { padding: 0.25em 0em; text-align: center; } .ui-datepicker .ui-helper-clearfix { clear: both; } .ui-datepicker-cover { display: none; display/**/: block; position: absolute; z-index: -1; filter: mask(); top: -1px; left: -1px; width: 187px; height: 187px; }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui.datepick.css
CSS
asf20
2,041
/* http://keith-wood.name/datepick.html Ukrainian localisation for jQuery Datepicker. Written by Maxim Drogobitskiy (maxdao@gmail.com). */ (function($) { $.datepick.regional['uk'] = { monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень', 'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'], monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер', 'Лип','Сер','Вер','Жов','Лис','Гру'], dayNames: ['неділя','понеділок','вівторок','середа','четвер','п\'ятниця','субота'], dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'], dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: '&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Сьогодні', currentStatus: '', todayText: 'Сьогодні', todayStatus: '', clearText: 'Очистити', clearStatus: '', closeText: 'Закрити', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Не', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['uk']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-uk.js
JavaScript
asf20
1,519
/* http://keith-wood.name/datepick.html Catalan localisation for jQuery Datepicker. Writers: (joan.leon@gmail.com). */ (function($) { $.datepick.regional['ca'] = { monthNames: ['Gener','Febrer','Mar&ccedil;','Abril','Maig','Juny', 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun', 'Jul','Ago','Set','Oct','Nov','Des'], dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'], dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'], dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Ant', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Seg&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Avui', currentStatus: '', todayText: 'Avui', todayStatus: '', clearText: 'Netejar', clearStatus: '', closeText: 'Tancar', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Sm', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['ca']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ca.js
JavaScript
asf20
1,256
/* http://keith-wood.name/datepick.html Polish localisation for jQuery Datepicker. Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ (function($) { $.datepick.regional['pl'] = { monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', 'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'], monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze', 'Lip','Sie','Wrz','Pa','Lis','Gru'], dayNames: ['Niedziela','Poniedzialek','Wtorek','Środa','Czwartek','Piątek','Sobota'], dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'], dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'], dateFormat: 'yyyy-mm-dd', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Poprzedni', prevStatus: 'Pokaż poprzedni miesiąc', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Następny&#x3e;', nextStatus: 'Pokaż następny miesiąc', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Dziś', currentStatus: 'Pokaż aktualny miesiąc', todayText: 'Dziś', todayStatus: 'Pokaż aktualny miesiąc', clearText: 'Wyczyść', clearStatus: 'Wyczyść obecną datę', closeText: 'Zamknij', closeStatus: 'Zamknij bez zapisywania', yearStatus: 'Pokaż inny rok', monthStatus: 'Pokaż inny miesiąc', weekText: 'Tydz', weekStatus: 'Tydzień roku', dayStatus: '\'Wybierz\' D, M d', defaultStatus: 'Wybierz datę', isRTL: false }; $.datepick.setDefaults($.datepick.regional['pl']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-pl.js
JavaScript
asf20
1,519
/* Flora style sheet for jQuery Datepicker v4.0.3. */ .datepick { background-color: #e0f4d7; color: #000; border: 1px solid #f90; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-family: Arial,Helvetica,Sans-serif; font-size: 90%; } .datepick-rtl { direction: rtl; } .datepick-popup { z-index: 1000; } .datepick-disable { position: absolute; z-index: 100; background-color: white; opacity: 0.5; filter: alpha(opacity=50); } .datepick a { color: #000; text-decoration: none; } .datepick a.datepick-disabled { color: #888; cursor: auto; } .datepick button { margin: 0.25em; padding: 0.125em 0em; background-color: #fc8; border: none; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-weight: bold; } .datepick-nav, .datepick-ctrl { float: left; width: 100%; background-color: #e0f4d7; color: #fff; font-size: 90%; font-weight: bold; } .datepick-ctrl { background-color: #f90; } .datepick-cmd { width: 30%; } .datepick-cmd:hover { background-color: #b1db87; } .datepick-ctrl .datepick-cmd:hover { background-color: #fa4; } .datepick-cmd-prevJump, .datepick-cmd-nextJump { width: 8%; } a.datepick-cmd { height: 1.5em; } button.datepick-cmd { text-align: center; } .datepick-cmd-prev, .datepick-cmd-prevJump, .datepick-cmd-clear { float: left; padding-left: 2%; } .datepick-cmd-current, .datepick-cmd-today { float: left; width: 35%; text-align: center; } .datepick-cmd-next, .datepick-cmd-nextJump, .datepick-cmd-close { float: right; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-prev, .datepick-rtl .datepick-cmd-prevJump, .datepick-rtl .datepick-cmd-clear { float: right; padding-left: 0%; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-current, .datepick-rtl .datepick-cmd-today { float: right; } .datepick-rtl .datepick-cmd-next, .datepick-rtl .datepick-cmd-nextJump, .datepick-rtl .datepick-cmd-close { float: left; padding-left: 2%; padding-right: 0%; text-align: left; } .datepick-month-nav { float: left; background-color: #b1db87; text-align: center; } .datepick-month-nav div { float: left; width: 12.5%; margin: 1%; padding: 1%; } .datepick-month-nav span { color: #888; } .datepick-month-row { clear: left; } .datepick-month { float: left; width: 15em; border: 1px solid #83c948; text-align: center; } .datepick-month-header, .datepick-month-header select, .datepick-month-header input { height: 1.5em; background-color: #83c948; color: #fff; font-weight: bold; } .datepick-month-header select, .datepick-month-header input { height: 1.4em; border: none; } .datepick-month-header input { position: absolute; display: none; } .datepick-month table { width: 100%; border-collapse: collapse; } .datepick-month thead { border-bottom: 1px solid #aaa; } .datepick-month th, .datepick-month td { margin: 0em; padding: 0em; font-weight: normal; text-align: center; } .datepick-month th { border: 1px solid #b1db87; } .datepick-month th, .datepick-month th a { background-color: #b1db87; color: #000; border: 1px solid #b1db87; } .datepick-month td { background-color: #fff; color: #666; border: 1px solid #b1db87; } .datepick-month td.datepick-week * { background-color: #b1db87; color: #666; border: none; } .datepick-month a { display: block; width: 100%; padding: 0.125em 0em; text-decoration: none; } .datepick-month span { display: block; width: 100%; padding: 0.125em 0em; } .datepick-month td span { color: #888; } .datepick-month td .datepick-other-month { background-color: #e0f4d7; } .datepick-month td .datepick-weekend { background-color: #e0f4d7; } .datepick-month td .datepick-today { background-color: #b1db87; } .datepick-month td .datepick-highlight { background-color: #fc8; } .datepick-month td .datepick-selected { background-color: #f90; color: #fff; } .datepick-status { clear: both; background-color: #b1db87; text-align: center; } .datepick-clear-fix { clear: both; } .datepick-cover { display: none; display/**/: block; position: absolute; z-index: -1; filter: mask(); top: -1px; left: -1px; width: 100px; height: 100px; }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/flora.datepick.css
CSS
asf20
4,468
/* ThemeRoller SouthStreet override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #222222; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #5a9d1a; /* Set (.ui-state-hover) colours from theme here */ color: #ffffff; } .ui-widget-header select, .ui-widget-header option { background-color: #d3e9a0; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #363636; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-southstreet.datepick.css
CSS
asf20
622
/* http://keith-wood.name/datepick.html Japanese localisation for jQuery Datepicker. Written by Kentaro SATO (kentaro@ranvis.com). */ (function($) { $.datepick.regional['ja'] = { monthNames: ['1月','2月','3月','4月','5月','6月', '7月','8月','9月','10月','11月','12月'], monthNamesShort: ['1月','2月','3月','4月','5月','6月', '7月','8月','9月','10月','11月','12月'], dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'], dayNamesShort: ['日','月','火','水','木','金','土'], dayNamesMin: ['日','月','火','水','木','金','土'], dateFormat: 'yyyy/mm/dd', firstDay: 0, renderer: $.extend({}, $.datepick.defaultRenderer, {month: $.datepick.defaultRenderer.month. replace(/monthHeader/, 'monthHeader:yyyy年 MM')}), prevText: '&#x3c;前', prevStatus: '前月を表示します', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '前年を表示します', nextText: '次&#x3e;', nextStatus: '翌月を表示します', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '翌年を表示します', currentText: '今日', currentStatus: '今月を表示します', todayText: '今日', todayStatus: '今月を表示します', clearText: 'クリア', clearStatus: '日付をクリアします', closeText: '閉じる', closeStatus: '変更せずに閉じます', yearStatus: '表示する年を変更します', monthStatus: '表示する月を変更します', weekText: '週', weekStatus: '暦週で第何週目かを表します', dayStatus: 'Md日(D)', defaultStatus: '日付を選択します', isRTL: false }; $.datepick.setDefaults($.datepick.regional['ja']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ja.js
JavaScript
asf20
1,735
/* http://keith-wood.name/datepick.html Galician localisation for jQuery Datepicker. Traducido por Manuel (McNuel@gmx.net). */ (function($) { $.datepick.regional['gl'] = { monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño', 'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'], monthNamesShort: ['Xan','Feb','Mar','Abr','Mai','Xuñ', 'Xul','Ago','Set','Out','Nov','Dec'], dayNames: ['Domingo','Luns','Martes','Mércores','Xoves','Venres','Sábado'], dayNamesShort: ['Dom','Lun','Mar','Mér','Xov','Ven','Sáb'], dayNamesMin: ['Do','Lu','Ma','Me','Xo','Ve','Sá'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Ant', prevStatus: 'Amosar mes anterior', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Amosar ano anterior', nextText: 'Seg&#x3e;', nextStatus: 'Amosar mes seguinte', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Amosar ano seguinte', currentText: 'Hoxe', currentStatus: 'Amosar mes actual', todayText: 'Hoxe', todayStatus: 'Amosar mes actual', clearText: 'Limpar', clearStatus: 'Borrar data actual', closeText: 'Pechar', closeStatus: 'Pechar sen gardar', yearStatus: 'Amosar outro ano', monthStatus: 'Amosar outro mes', weekText: 'Sm', weekStatus: 'Semana do ano', dayStatus: 'D, M d', defaultStatus: 'Selecciona Data', isRTL: false }; $.datepick.setDefaults($.datepick.regional['gl']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-gl.js
JavaScript
asf20
1,436
/* ThemeRoller TronTastic override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #222222; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #000000; /* Set (.ui-state-hover) colours from theme here */ color: #96f226; } .ui-widget-header select, .ui-widget-header option { background-color: #9fda58; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #030303; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-trontastic.datepick.css
CSS
asf20
621
/* Redmond style sheet for jQuery Datepicker v4.0.3. */ .datepick { background-color: #fff; color: #222; border: 1px solid #4297d7; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-family: Arial,Helvetica,Sans-serif; font-size: 90%; } .datepick-rtl { direction: rtl; } .datepick-popup { z-index: 1000; } .datepick-disable { position: absolute; z-index: 100; background-color: white; opacity: 0.5; filter: alpha(opacity=50); } .datepick a { color: #222; text-decoration: none; } .datepick a.datepick-disabled { color: #888; cursor: auto; } .datepick button { margin: 0.25em; padding: 0.125em 0em; background-color: #5c9ccc; color: #fff; border: none; border-radius: 0.25em; -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; font-weight: bold; } .datepick-nav, .datepick-ctrl { float: left; width: 100%; background-color: #fff; font-size: 90%; font-weight: bold; } .datepick-ctrl { background-color: #d0e5f5; } .datepick-cmd { width: 30%; } .datepick-cmd:hover { background-color: #dfeffc; } button.datepick-cmd:hover { background-color: #79b7e7; } .datepick-cmd-prevJump, .datepick-cmd-nextJump { width: 8%; } a.datepick-cmd { height: 1.5em; } button.datepick-cmd { text-align: center; } .datepick-cmd-prev, .datepick-cmd-prevJump, .datepick-cmd-clear { float: left; padding-left: 2%; } .datepick-cmd-current, .datepick-cmd-today { float: left; width: 35%; text-align: center; } .datepick-cmd-next, .datepick-cmd-nextJump, .datepick-cmd-close { float: right; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-prev, .datepick-rtl .datepick-cmd-prevJump, .datepick-rtl .datepick-cmd-clear { float: right; padding-left: 0%; padding-right: 2%; text-align: right; } .datepick-rtl .datepick-cmd-current, .datepick-rtl .datepick-cmd-today { float: right; } .datepick-rtl .datepick-cmd-next, .datepick-rtl .datepick-cmd-nextJump, .datepick-rtl .datepick-cmd-close { float: left; padding-left: 2%; padding-right: 0%; text-align: left; } .datepick-month-nav { float: left; text-align: center; } .datepick-month-nav div { float: left; width: 12.5%; margin: 1%; padding: 1%; } .datepick-month-nav span { color: #888; } .datepick-month-row { clear: left; } .datepick-month { float: left; width: 15em; border: 1px solid #5c9ccc; text-align: center; } .datepick-month-header, .datepick-month-header select, .datepick-month-header input { height: 1.5em; background-color: #5c9ccc; color: #fff; font-weight: bold; } .datepick-month-header select, .datepick-month-header input { height: 1.4em; border: none; } .datepick-month-header input { position: absolute; display: none; } .datepick-month table { width: 100%; border-collapse: collapse; } .datepick-month thead { border-bottom: 1px solid #aaa; } .datepick-month th, .datepick-month td { margin: 0em; padding: 0em; font-weight: normal; text-align: center; } .datepick-month th { border: 1px solid #fff; border-bottom: 1px solid #c5dbec; } .datepick-month td { border: 1px solid #c5dbec; } .datepick-month td.datepick-week * { background-color: #d0e5f5; color: #222; border: none; } .datepick-month a { display: block; width: 100%; padding: 0.125em 0em; background-color: #dfeffc; color: #000; text-decoration: none; } .datepick-month span { display: block; width: 100%; padding: 0.125em 0em; } .datepick-month td span { color: #888; } .datepick-month td .datepick-other-month { background-color: #fff; } .datepick-month td .datepick-today { background-color: #fad42e; } .datepick-month td .datepick-highlight { background-color: #79b7e7; } .datepick-month td .datepick-selected { background-color: #4297d7; color: #fff; } .datepick-status { clear: both; text-align: center; } .datepick-clear-fix { clear: both; } .datepick-cover { display: none; display/**/: block; position: absolute; z-index: -1; filter: mask(); top: -1px; left: -1px; width: 100px; height: 100px; }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/redmond.datepick.css
CSS
asf20
4,253
/* http://keith-wood.name/datepick.html Bulgarian localisation for jQuery Datepicker. Written by Stoyan Kyosev (http://svest.org). */ (function($) { $.datepick.regional['bg'] = { monthNames: ['Януари','Февруари','Март','Април','Май','Юни', 'Юли','Август','Септември','Октомври','Ноември','Декември'], monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни', 'Юли','Авг','Сеп','Окт','Нов','Дек'], dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'], dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'], dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;назад', prevStatus: 'покажи последния месец', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'напред&#x3e;', nextStatus: 'покажи следващия месец', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'днес', currentStatus: '', todayText: 'днес', todayStatus: '', clearText: 'изчисти', clearStatus: 'изчисти актуалната дата', closeText: 'затвори', closeStatus: 'затвори без промени', yearStatus: 'покажи друга година', monthStatus: 'покажи друг месец', weekText: 'Wk', weekStatus: 'седмица от месеца', dayStatus: 'Избери D, M d', defaultStatus: 'Избери дата', isRTL: false }; $.datepick.setDefaults($.datepick.regional['bg']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-bg.js
JavaScript
asf20
1,788
/* http://keith-wood.name/datepick.html Malaysian localisation for jQuery Datepicker. Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */ (function($) { $.datepick.regional['ms'] = { monthNames: ['Januari','Februari','Mac','April','Mei','Jun', 'Julai','Ogos','September','Oktober','November','Disember'], monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun', 'Jul','Ogo','Sep','Okt','Nov','Dis'], dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'], dayNamesShort: ['Aha','Isn','Sel','Rab','Kha','Jum','Sab'], dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Sebelum', prevStatus: 'Tunjukkan bulan lepas', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Tunjukkan tahun lepas', nextText: 'Selepas&#x3e;', nextStatus: 'Tunjukkan bulan depan', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Tunjukkan tahun depan', currentText: 'hari ini', currentStatus: 'Tunjukkan bulan terkini', todayText: 'hari ini', todayStatus: 'Tunjukkan bulan terkini', clearText: 'Padam', clearStatus: 'Padamkan tarikh terkini', closeText: 'Tutup', closeStatus: 'Tutup tanpa perubahan', yearStatus: 'Tunjukkan tahun yang lain', monthStatus: 'Tunjukkan bulan yang lain', weekText: 'Mg', weekStatus: 'Minggu bagi tahun ini', dayStatus: 'DD, d MM', defaultStatus: 'Sila pilih tarikh', isRTL: false }; $.datepick.setDefaults($.datepick.regional['ms']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ms.js
JavaScript
asf20
1,540
/* http://keith-wood.name/datepick.html Dutch/Belgium localisation for jQuery Datepicker. Written by Mathias Bynens <http://mathiasbynens.be/> */ (function($) { $.datepick.regional['nl-BE'] = { monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '←', prevStatus: 'Bekijk de vorige maand', prevJumpText: '«', nextJumpStatus: 'Bekijk het vorige jaar', nextText: '→', nextStatus: 'Bekijk de volgende maand', nextJumpText: '»', nextJumpStatus: 'Bekijk het volgende jaar', currentText: 'Vandaag', currentStatus: 'Bekijk de huidige maand', todayText: 'Vandaag', todayStatus: 'Bekijk de huidige maand', clearText: 'Wissen', clearStatus: 'Wis de huidige datum', closeText: 'Sluiten', closeStatus: 'Sluit zonder verandering', yearStatus: 'Bekijk een ander jaar', monthStatus: 'Bekijk een andere maand', weekText: 'Wk', weekStatus: 'Week van het jaar', dayStatus: 'dd/mm/yyyy', defaultStatus: 'Kies een datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['nl-BE']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-nl-BE.js
JavaScript
asf20
1,563
/* http://keith-wood.name/datepick.html Thai localisation for jQuery Datepicker. Written by pipo (pipo@sixhead.com). */ (function($) { $.datepick.regional['th'] = { monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน', 'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'], monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.', 'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'], dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'], dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&laquo;&nbsp;ย้อน', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'ถัดไป&nbsp;&raquo;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'วันนี้', currentStatus: '', todayText: 'วันนี้', todayStatus: '', clearText: 'ลบ', clearStatus: '', closeText: 'ปิด', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Wk', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['th']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-th.js
JavaScript
asf20
1,675
/* http://keith-wood.name/datepick.html Turkish localisation for jQuery Datepicker. Written by Izzet Emre Erkan (kara@karalamalar.net). */ (function($) { $.datepick.regional['tr'] = { monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz', 'Tem','Ağu','Eyl','Eki','Kas','Ara'], dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'], dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;geri', prevStatus: 'önceki ayı göster', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'ileri&#x3e', nextStatus: 'sonraki ayı göster', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'bugün', currentStatus: '', todayText: 'bugün', todayStatus: '', clearText: 'temizle', clearStatus: 'geçerli tarihi temizler', closeText: 'kapat', closeStatus: 'sadece göstergeyi kapat', yearStatus: 'başka yıl', monthStatus: 'başka ay', weekText: 'Hf', weekStatus: 'Ayın haftaları', dayStatus: 'D, M d seçiniz', defaultStatus: 'Bir tarih seçiniz', isRTL: false }; $.datepick.setDefaults($.datepick.regional['tr']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-tr.js
JavaScript
asf20
1,419
/* http://keith-wood.name/datepick.html Brazilian Portuguese localisation for jQuery Datepicker. Written by Leonildo Costa Silva (leocsilva@gmail.com). */ (function($) { $.datepick.regional['pt-BR'] = { monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', 'Jul','Ago','Set','Out','Nov','Dez'], dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'], dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], dateFormat: 'dd/mm/yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Anterior', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Pr&oacute;ximo&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Hoje', currentStatus: '', todayText: 'Hoje', todayStatus: '', clearText: 'Limpar', clearStatus: '', closeText: 'Fechar', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Sm', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['pt-BR']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-pt-BR.js
JavaScript
asf20
1,347
/* ThemeRoller SwankyPurse override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #eacd86; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #675423; /* Set (.ui-state-hover) colours from theme here */ color: #f8eec9; } .ui-widget-header select, .ui-widget-header option { background-color: #261803; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #060200; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-swankypurse.datepick.css
CSS
asf20
622
/* ThemeRoller Start override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #eaf5f7; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #79c9ec; /* Set (.ui-state-hover) colours from theme here */ color: #026890; } .ui-widget-header select, .ui-widget-header option { background-color: #2191c0; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #915608; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-start.datepick.css
CSS
asf20
616
/* http://keith-wood.name/datepick.html Czech localisation for jQuery Datepicker. Written by Tomas Muller (tomas@tomas-muller.net). */ (function($) { $.datepick.regional['cs'] = { monthNames: ['leden','únor','březen','duben','květen','červen', 'červenec','srpen','září','říjen','listopad','prosinec'], monthNamesShort: ['led','úno','bře','dub','kvě','čer', 'čvc','srp','zář','říj','lis','pro'], dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'], dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], dayNamesMin: ['ne','po','út','st','čt','pá','so'], dateFormat: 'dd.mm.yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Dříve', prevStatus: 'Přejít na předchozí měsí', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Později&#x3e;', nextStatus: 'Přejít na další měsíc', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Nyní', currentStatus: 'Přejde na aktuální měsíc', todayText: 'Nyní', todayStatus: 'Přejde na aktuální měsíc', clearText: 'Vymazat', clearStatus: 'Vymaže zadané datum', closeText: 'Zavřít', closeStatus: 'Zavře kalendář beze změny', yearStatus: 'Přejít na jiný rok', monthStatus: 'Přejít na jiný měsíc', weekText: 'Týd', weekStatus: 'Týden v roce', dayStatus: '\'Vyber\' DD, M d', defaultStatus: 'Vyberte datum', isRTL: false }; $.datepick.setDefaults($.datepick.regional['cs']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-cs.js
JavaScript
asf20
1,559
/* http://keith-wood.name/datepick.html Slovak localisation for jQuery Datepicker. Written by Vojtech Rinik (vojto@hmm.sk). */ (function($) { $.datepick.regional['sk'] = { monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', 'Júl','August','September','Október','November','December'], monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún', 'Júl','Aug','Sep','Okt','Nov','Dec'], dayNames: ['Nedel\'a','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'], dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'], dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'], dateFormat: 'dd.mm.yyyy', firstDay: 0, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Predchádzajúci', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Nasledujúci&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Dnes', currentStatus: '', todayText: 'Dnes', todayStatus: '', clearText: 'Zmazať', clearStatus: '', closeText: 'Zavrieť', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Ty', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['sk']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-sk.js
JavaScript
asf20
1,290
/* http://keith-wood.name/datepick.html Spanish localisation for jQuery Datepicker. Traducido por Vester (xvester@gmail.com). */ (function($) { $.datepick.regional['es'] = { monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun', 'Jul','Ago','Sep','Oct','Nov','Dic'], dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: '&#x3c;Ant', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'Sig&#x3e;', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'Hoy', currentStatus: '', todayText: 'Hoy', todayStatus: '', clearText: 'Limpiar', clearStatus: '', closeText: 'Cerrar', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Sm', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['es']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-es.js
JavaScript
asf20
1,265
/* ThemeRoller DotLuv override style sheet for jQuery date picker v4.0.3. */ @import "ui.datepick.css"; .ui-widget-header a, .ui-widget-header select { color: #f6f6f6; /* Set (.ui-widget-header a) colour from theme here */ } .ui-widget-header a:hover { background-color: #00498f; /* Set (.ui-state-hover) colours from theme here */ color: #ffffff; } .ui-widget-header select, .ui-widget-header option { background-color: #0b3e6f; /* Set (.ui-widget-header) background colour from theme here */ } .ui-state-highlight a { color: #ffffff; /* Set (.ui-state-highlight) colour from theme here */ }
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/ui-dotluv.datepick.css
CSS
asf20
617
/* http://keith-wood.name/datepick.html Tamil localisation for jQuery Datepicker. Written by S A Sureshkumar (saskumar@live.com). */ (function($) { $.datepick.regional['ta'] = { monthNames: ['தை','மாசி','பங்குனி','சித்திரை','வைகாசி','ஆனி', 'ஆடி','ஆவணி','புரட்டாசி','ஐப்பசி','கார்த்திகை','மார்கழி'], monthNamesShort: ['தை','மாசி','பங்','சித்','வைகா','ஆனி', 'ஆடி','ஆவ','புர','ஐப்','கார்','மார்'], dayNames: ['ஞாயிற்றுக்கிழமை','திங்கட்கிழமை','செவ்வாய்க்கிழமை','புதன்கிழமை','வியாழக்கிழமை','வெள்ளிக்கிழமை','சனிக்கிழமை'], dayNamesShort: ['ஞாயிறு','திங்கள்','செவ்வாய்','புதன்','வியாழன்','வெள்ளி','சனி'], dayNamesMin: ['ஞா','தி','செ','பு','வி','வெ','ச'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: 'முன்னையது', prevStatus: '', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '', nextText: 'அடுத்தது', nextStatus: '', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '', currentText: 'இன்று', currentStatus: '', todayText: 'இன்று', todayStatus: '', clearText: 'அழி', clearStatus: '', closeText: 'மூடு', closeStatus: '', yearStatus: '', monthStatus: '', weekText: 'Wk', weekStatus: '', dayStatus: 'D, M d', defaultStatus: '', isRTL: false }; $.datepick.setDefaults($.datepick.regional['ta']); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.datepick/jquery.datepick-ta.js
JavaScript
asf20
1,886
/** * Template JS for Internet Explorer 8 and lower - mainly workaround for missing selectors */ (function($) { // Standard template setup for IE $.fn.addTemplateSetup(function() { // Clean existing classes this.find('.first-child').removeClass('first-child'); this.find('.last-child').removeClass('last-child'); this.find('.last-of-type').removeClass('last-of-type'); this.find('.even').removeClass('even'); this.find('.odd').removeClass('odd'); // Missing selectors this.find(':first-child').addClass('first-child'); this.find(':last-child').addClass('last-child'); // Specific classes this.find('.head').each(function () { $(this).children('div:last').addClass('last-of-type'); }); this.find('tbody tr:even, .task-dialog > li:even, .planning > li.planning-header > ul > li:even').addClass('even'); this.find('tbody tr:odd, .planning > li:odd').addClass('odd'); this.find('.form fieldset:has(legend)').addClass('fieldset-with-legend').filter(':first-child').addClass('fieldset-with-legend-first-child'); // Disabled buttons this.find('button:disabled').addClass('disabled'); // IE 7 if ($.browser.version < 8) { // Clean existing classes this.find('.after-h1').removeClass('after-h1'); this.find('.block-content h1:first-child, .block-content .h1:first-child').next().addClass('after-h1'); this.find('.calendar .add-event').prepend('<span class="before"></span>'); } // Input switches this.find('input[type=radio].switch:checked + .switch-replace, input[type=checkbox].switch:checked + .switch-replace').addClass('switch-replace-checked'); this.find('input[type=radio].switch:disabled + .switch-replace, input[type=checkbox].switch:disabled + .switch-replace').addClass('switch-replace-disabled'); this.find('input[type=radio].mini-switch:checked + .mini-switch-replace, input[type=checkbox].mini-switch:checked + .mini-switch-replace').addClass('mini-switch-replace-checked'); this.find('input[type=radio].mini-switch:disabled + .mini-switch-replace, input[type=checkbox].mini-switch:disabled + .mini-switch-replace').addClass('mini-switch-replace-disabled'); }); // Document initial setup $(document).ready(function() { // Input switches $('input[type=radio].switch, input[type=checkbox].switch').click(function() { if (!this.checked) { $(this).next('.switch-replace').addClass('switch-replace-checked'); } else { $(this).next('.switch-replace').removeClass('switch-replace-checked'); } }); $('input[type=radio].mini-switch, input[type=checkbox].mini-switch').click(function() { if (!this.checked) { $(this).next('.mini-switch-replace').addClass('mini-switch-replace-checked'); } else { $(this).next('.mini-switch-replace').removeClass('mini-switch-replace-checked'); } }); }); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/standard.ie.js
JavaScript
asf20
2,936
/** * Template JS for mobile pages */ (function($) { $(document).ready(function() { // Menu $('#menu > a').click(function(event) { event.preventDefault(); $(this).parent().toggleClass('active'); }); // Menus with sub-menus $('#menu ul li:has(ul)').addClass('with-subs').children('a').click(function(event) { // Stop link event.preventDefault(); // Show sub-menu var li = $(this).parent(); li.addClass('active').siblings().removeClass('active'); // Scroll var menu = $('#menu > ul'); menu.stop(true).animate({scrollLeft:li.children('ul:first').offset().left+menu.scrollLeft()}); }) .siblings('ul').prepend('<li class="back"><a href="#">Back</a></li>') .find('li.back > a').click(function(event) { // Stop link event.preventDefault(); // Scroll var li = $(this).parent().parent().parent(); var menu = $('#menu > ul'); var scrollVal = (li.parent().parent().attr('id') == 'menu') ? li.parent().offset().left : li.parent().offset().left+menu.scrollLeft(); menu.stop(true).animate({scrollLeft:scrollVal}, { complete: function() { // Close sub-menu li.removeClass('active'); } }); }); }); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/mobile.js
JavaScript
asf20
1,264
// Create new HTML5 elements =================================================== // ----------------------------------------------------------------------------- // This script should load before any others. We want the new elements to be // parsed before pretty much anything happens. // Plus, IE does not behave otherwise. The cost of being progressive... // ----------------------------------------------------------------------------- // Credits : http://sickdesigner.com/index.php/2010/html-css/html5-starter-pack-a-sick-freebie/ document.createElement("article"); document.createElement("aside"); document.createElement("audio"); document.createElement("canvas"); document.createElement("command"); document.createElement("datalist"); document.createElement("details"); document.createElement("embed"); document.createElement("figcaption"); document.createElement("figure"); document.createElement("footer"); document.createElement("header"); document.createElement("hgroup"); document.createElement("keygen"); document.createElement("mark"); document.createElement("meter"); document.createElement("nav"); document.createElement("output"); document.createElement("progress"); document.createElement("rp"); document.createElement("rt"); document.createElement("ruby"); document.createElement("section"); document.createElement("source"); document.createElement("summary"); document.createElement("time"); document.createElement("video");
0a1b2c3d4e5
trunk/leilao/include/js/html5.js
JavaScript
asf20
1,478
/** * Template JS for standard pages */ (function($) { /** * List of functions required to enable template effects/hacks * @var array */ var templateSetup = new Array(); /** * Add a new template function * @param function func the function to be called on a jQuery object * @param boolean prioritary set to true to call the function before all others (optional) * @return void */ $.fn.addTemplateSetup = function(func, prioritary) { if (prioritary) { templateSetup.unshift(func); } else { templateSetup.push(func); } }; /** * Call every template function over a jQuery object (for instance : $('body').applyTemplateSetup()) * @return void */ $.fn.applyTemplateSetup = function() { var max = templateSetup.length; for (var i = 0; i < max; ++i) { templateSetup[i].apply(this); } return this; }; // Common (mobile and standard) template setup $.fn.addTemplateSetup(function() { // Collapsible fieldsets this.find('fieldset legend > a, .fieldset .legend > a').click(function(event) { $(this).toggleFieldsetOpen(); event.preventDefault(); }); this.find('fieldset.collapse, .fieldset.collapse').toggleFieldsetOpen().removeClass('collapse'); // Equalize tab content-blocks heights this.find('.tabs.same-height, .side-tabs.same-height, .mini-tabs.same-height, .controls-tabs.same-height').equalizeTabContentHeight(); // Update tabs this.find('.js-tabs').updateTabs(); // Input switches this.find('input[type=radio].switch, input[type=checkbox].switch').hide().after('<span class="switch-replace"></span>').next().click(function() { $(this).prev().click(); }).prev('.with-tip').next().addClass('with-tip').each(function() { $(this).attr('title', $(this).prev().attr('title')); }); this.find('input[type=radio].mini-switch, input[type=checkbox].mini-switch').hide().after('<span class="mini-switch-replace"></span>').next().click(function() { $(this).prev().click(); }).prev('.with-tip').next().addClass('with-tip').each(function() { $(this).attr('title', $(this).prev().attr('title')); }); // Tabs links behaviour this.find('.js-tabs a[href^="#"]').click(function(event) { event.preventDefault(); // If hashtag enabled if ($.fn.updateTabs.enabledHash) { // Retrieve hash parts var element = $(this); var hash = $.trim(window.location.hash || ''); if (hash.length > 1) { // Remove hash from other tabs of the group var hashParts = hash.substring(1).split('&'); var dummyIndex; while ((dummyIndex = $.inArray('', hashParts)) > -1) { hashParts.splice(dummyIndex, 1); } while ((dummyIndex = $.inArray('none', hashParts)) > -1) { hashParts.splice(dummyIndex, 1); } element.parent().parent().find('a[href^="#"]').each(function(i) { var index = $.inArray($(this).attr('href').substring(1), hashParts); if (index > -1) { hashParts.splice(index, 1); } }); } else { var hashParts = []; } // Add current tab to hash (not if default) var defaultTab = getDefaultTabIndex(element.parent().parent()); if (element.parent().index() != defaultTab) { hashParts.push(element.attr('href').substring(1)); } // If only one tab, add a empty id to prevent document from jumping to selected content if (hashParts.length == 1) { hashParts.unshift(''); } // Put hash, will trigger refresh window.location.hash = (hashParts.length > 0) ? '#'+hashParts.join('&') : '#none'; } else { var li = $(this).closest('li'); li.addClass('current').siblings().removeClass('current'); li.parent().updateTabs(); } }); }); // Document initial setup $(document).ready(function() { // Template setup $(document.body).applyTemplateSetup(); // Listener $(window).bind('hashchange', function() { $(document.body).find('.js-tabs').updateTabs(); }); }); /** * Get tab group default tab */ function getDefaultTabIndex(tabGroup) { var defaultTab = tabGroup.data('defaultTab'); if (defaultTab === null || defaultTab === '' || defaultTab === undefined) { var firstTab = tabGroup.children('.current:first'); defaultTab = (firstTab.length > 0) ? firstTab.index() : 0; tabGroup.data('defaultTab', defaultTab); } return defaultTab; }; /** * Update tabs */ $.fn.updateTabs = function() { // If hashtags enabled if ($.fn.updateTabs.enabledHash) { var hash = $.trim(window.location.hash || ''); var hashParts = (hash.length > 1) ? hash.substring(1).split('&') : []; } else { var hash = ''; var hashParts = []; } // Check all tabs var hasHash = (hashParts.length > 0); this.each(function(i) { // Check if already inited var tabGroup = $(this); var defaultTab = getDefaultTabIndex(tabGroup); // Look for current tab var current = false; if ($.fn.updateTabs.enabledHash) { if (hasHash) { var links = tabGroup.find('a[href^="#"]'); links.each(function(i) { var linkHash = $(this).attr('href').substring(1); if (linkHash.length > 0) { var index = $.inArray(linkHash, hashParts); if (index > -1) { current = $(this).parent(); return false; } } }); } } else { current = tabGroup.children('.current:first'); } // If none found : get the default tab if (!current) { current = tabGroup.children(':eq('+defaultTab+')'); } if (current.length > 0) { // Display current tab content block hash = $.trim(current.children('a').attr('href').substring(1)); if (hash.length > 0) { // Highlight current current.addClass('current'); var tabContainer = $('#'+hash), tabHidden = tabContainer.is(':hidden'); // Show if hidden if (tabHidden) { tabContainer.show(); } // Hide others current.siblings().removeClass('current').children('a').each(function(i) { var hash = $.trim($(this).attr('href').substring(1)); if (hash.length > 0) { var tabContainer = $('#'+hash); // Hide if visible if (tabContainer.is(':visible')) { tabContainer.trigger('tabhide').hide(); } // Or init if first round else if (!tabContainer.data('tabInited')) { tabContainer.trigger('tabhide'); tabContainer.data('tabInited', true); } } }); // Callback if (tabHidden) { tabContainer.trigger('tabshow'); } // Or init if first round else if (!tabContainer.data('tabInited')) { tabContainer.trigger('tabshow'); tabContainer.data('tabInited', true); } } } }); return this; }; /** * Indicate whereas JS tabs hashtag is enabled * @var boolean */ $.fn.updateTabs.enabledHash = true; /** * Reset tab content blocks heights */ $.fn.resetTabContentHeight = function() { this.find('a[href^="#"]').each(function(i) { var hash = $.trim($(this).attr('href').substring(1)); if (hash.length > 0) { $('#'+hash).css('height', ''); } }); return this; } /** * Equalize tab content blocks heights */ $.fn.equalizeTabContentHeight = function() { var i; var g; var maxHeight; var tabContainers; var block; var blockHeight; var marginAdjustTop; var marginAdjustBot; var first; var last; var firstMargin; var lastMargin; // Process in reverse order to equalize sub-tabs first for (i = this.length-1; i >= 0; --i) { // Look for max height maxHeight = -1; tabContainers = []; this.eq(i).find('a[href^="#"]').each(function(i) { var hash = $.trim($(this).attr('href').substring(1)); if (hash.length > 0) { block = $('#'+hash); if (block.length > 0) { blockHeight = block.outerHeight()+parseInt(block.css('margin-bottom')); // First element top-margin affects real height marginAdjustTop = 0; first = block.children(':first'); if (first.length > 0) { firstMargin = parseInt(first.css('margin-top')); if (!isNaN(firstMargin) && firstMargin < 0) { marginAdjustTop = firstMargin; } } // Same for last element bottom-margin marginAdjustBot = 0; last = block.children(':last'); if (last.length > 0) { lastMargin = parseInt(last.css('margin-bottom')); if (!isNaN(lastMargin) && lastMargin < 0) { marginAdjustBot = lastMargin; } } if (blockHeight+marginAdjustTop+marginAdjustBot > maxHeight) { maxHeight = blockHeight+marginAdjustTop+marginAdjustBot; } tabContainers.push([block, marginAdjustTop]); } } }); // Setup height for (g = 0; g < tabContainers.length; ++g) { tabContainers[g][0].height(maxHeight-parseInt(tabContainers[g][0].css('padding-top'))-parseInt(tabContainers[g][0].css('padding-bottom'))-parseInt(tabContainers[g][0].css('margin-bottom'))-tabContainers[g][1]); // Only the first tab remains visible if (g > 0) { tabContainers[g][0].hide(); } } } return this; }; /** * Display the selected tab (apply on tab content-blocks, not tabs, ie: $('#my-tab').showTab(); ) */ $.fn.showTab = function() { this.each(function(i) { $('a[href="#'+this.id+'"]').trigger('click'); }); return this; }; /** * Add a listener fired when a tab is shown * @param function callback any function to call when the listener is fired. * @param boolean runOnce if true, the callback will be run one time only. Default: false - optional */ $.fn.onTabShow = function(callback, runOnce) { if (runOnce) { var runOnceFunc = function() { callback.apply(this, arguments); $(this).unbind('tabshow', runOnceFunc); } this.bind('tabshow', runOnceFunc); } else { this.bind('tabshow', callback); } return this; }; /** * Add a listener fired when a tab is hidden * @param function callback any function to call when the listener is fired. * @param boolean runOnce if true, the callback will be run one time only. Default: false - optional */ $.fn.onTabHide = function(callback, runOnce) { if (runOnce) { var runOnceFunc = function() { callback.apply(this, arguments); $(this).unbind('tabhide', runOnceFunc); } this.bind('tabhide', runOnceFunc); } else { this.bind('tabhide', callback); } return this; }; /** * Insert a message into a block * @param string|array message a message, or an array of messages to inserted * @param object options optional object with following values: * - type: one of the available message classes : 'info' (default), 'warning', 'error', 'success', 'loading' * - position: either 'top' (default) or 'bottom' * - animate: true to show the message with an animation (default), else false * - noMargin: true to apply the no-margin class to the message (default), else false */ $.fn.blockMessage = function(message, options) { var settings = $.extend({}, $.fn.blockMessage.defaults, options); this.each(function(i) { // Locate content block var block = $(this); if (!block.hasClass('block-content')) { block = block.find('.block-content:first'); if (block.length == 0) { block = $(this).closest('.block-content'); if (block.length == 0) { return; } } } // Compose message var messageClass = (settings.type == 'info') ? 'message' : 'message '+settings.type; if (settings.noMargin) { messageClass += ' no-margin'; } var finalMessage = (typeof message == 'object') ? '<ul class="'+messageClass+'"><li>'+message.join('</li><li>')+'</li></ul>' : '<p class="'+messageClass+'">'+message+'</p>'; // Insert message if (settings.position == 'top') { var children = block.find('h1, .h1, .block-controls, .block-header, .wizard-steps'); if (children.length > 0) { var lastHeader = children.last(); var next = lastHeader.next('.message'); while (next.length > 0) { lastHeader = next; next = lastHeader.next('.message'); } var messageElement = lastHeader.after(finalMessage).next(); } else { var messageElement = block.prepend(finalMessage).children(':first'); } } else { var children = block.find('.block-footer:last-child'); if (children.length > 0) { var messageElement = children.before(finalMessage).prev(); } else { var messageElement = block.append(finalMessage).children(':last'); } } if (settings.animate) { messageElement.expand(); } }); return this; }; // Default config for the blockMessage function $.fn.blockMessage.defaults = { type: 'info', position: 'top', animate: true, noMargin: true }; /** * Remove all messages from the block * @param object options optional object with following values: * - only: string or array of strings of message classes which will be removed * - except: string or array of strings of message classes which will not be removed (ignored if 'only' is provided) * - animate: true to remove the message with an animation (default), else false */ $.fn.removeBlockMessages = function(options) { var settings = $.extend({}, $.fn.removeBlockMessages.defaults, options); this.each(function(i) { // Locate content block var block = $(this); if (!block.hasClass('block-content')) { block = block.find('.block-content:first'); if (block.length == 0) { block = $(this).closest('.block-content'); if (block.length == 0) { return; } } } var messages = block.find('.message'); if (settings.only) { if (typeof settings.only == 'string') { settings.only = [settings.only]; } messages = messages.filter('.'+settings.only.join(', .')); } else if (settings.except) { if (typeof settings.except == 'string') { settings.except = [settings.except]; } messages = messages.not('.'+settings.except.join(', .')); } if (settings.animate) { messages.foldAndRemove(); } else { messages.remove(); } }); return this; }; // Default config for the blockMessage function $.fn.removeBlockMessages.defaults = { only: false, // string or array of strings of message classes which will be removed except: false, // except: string or array of strings of message classes which will not be removed (ignored if only is provided) animate: true // animate: true to remove the message with an animation (default), else false }; /** * Fold an element * @param string|int duration a string (fast, normal or slow) or a number of millisecond. Default: 'normal'. - optional * @param function callback any function to call at the end of the effect. Default: none. - optional */ $.fn.fold = function(duration, callback) { this.each(function(i) { var element = $(this); var marginTop = parseInt(element.css('margin-top')); var marginBottom = parseInt(element.css('margin-bottom')); var anim = { 'height': 0, 'paddingTop': 0, 'paddingBottom': 0 }; // IE8 and lower do not understand border-xx-width // http://forum.jquery.com/topic/ie-invalid-argument if (!$.browser.msie || $.browser.version > 8) { // Border width is not set to 0 because it does not allow fluid movement anim.borderTopWidth = '1px'; anim.borderBottomWidth = '1px'; } // Detection of elements sticking to their predecessor var prev = element.prev(); if (prev.length === 0 && parseInt(element.css('margin-bottom'))+marginTop !== 0) { anim.marginTop = Math.min(0, marginTop); anim.marginBottom = Math.min(0, marginBottom); } // Effect element.stop(true).css({ 'overflow': 'hidden' }).animate(anim, { 'duration': duration, 'complete': function() { // Reset properties $(this).css({ 'display': 'none', 'overflow': '', 'height': '', 'paddingTop': '', 'paddingBottom': '', 'borderTopWidth': '', 'borderBottomWidth': '', 'marginTop': '', 'marginBottom': '' }); // Callback function if (callback) { callback.apply(this); } } }); }); return this; }; /* * Expand an element * @param string|int duration a string (fast, normal or slow) or a number of millisecond. Default: 'normal'. - optional * @param function callback any function to call at the end of the effect. Default: none. - optional */ $.fn.expand = function(duration, callback) { this.each(function(i) { // Init var element = $(this); element.css('display', 'block'); // Reset and get values element.stop(true).css({ 'overflow': '', 'height': '', 'paddingTop': '', 'paddingBottom': '', 'borderTopWidth': '', 'borderBottomWidth': '', 'marginTop': '', 'marginBottom': '' }); var height = element.height(); var paddingTop = parseInt(element.css('padding-top')); var paddingBottom = parseInt(element.css('padding-bottom')); var marginTop = parseInt(element.css('margin-top')); var marginBottom = parseInt(element.css('margin-bottom')); // Initial and target values var css = { 'overflow': 'hidden', 'height': 0, 'paddingTop': 0, 'paddingBottom': 0 }; var anim = { 'height': height, 'paddingTop': paddingTop, 'paddingBottom': paddingBottom }; // IE8 and lower do not understand border-xx-width // http://forum.jquery.com/topic/ie-invalid-argument if (!$.browser.msie || $.browser.version > 8) { var borderTopWidth = parseInt(element.css('border-top-width')); var borderBottomWidth = parseInt(element.css('border-bottom-width')); // Border width is not set to 0 because it does not allow fluid movement css.borderTopWidth = '1px'; css.borderBottomWidth = '1px'; anim.borderTopWidth = borderTopWidth; anim.borderBottomWidth = borderBottomWidth; } // Detection of elements sticking to their predecessor var prev = element.prev(); if (prev.length === 0 && parseInt(element.css('margin-bottom'))+marginTop !== 0) { css.marginTop = Math.min(0, marginTop); css.marginBottom = Math.min(0, marginBottom); anim.marginTop = marginTop; anim.marginBottom = marginBottom; } // Effect element.stop(true).css(css).animate(anim, { 'duration': duration, 'complete': function() { // Reset properties $(this).css({ 'display': '', 'overflow': '', 'height': '', 'paddingTop': '', 'paddingBottom': '', 'borderTopWidth': '', 'borderBottomWidth': '', 'marginTop': '', 'marginBottom': '' }); // Callback function if (callback) { callback.apply(this); } // Required for IE7 - don't ask me why... if ($.browser.msie && $.browser.version < 8) { $(this).css('zoom', 1); } } }); }); return this; }; /** * Remove an element with folding effect * @param string|int duration a string (fast, normal or slow) or a number of millisecond. Default: 'normal'. - optional * @param function callback any function to call at the end of the effect. Default: none. - optional */ $.fn.foldAndRemove = function(duration, callback) { $(this).fold(duration, function() { // Callback function if (callback) { callback.apply(this); } $(this).remove(); }); return this; } /** * Remove an element with fading then folding effect * @param string|int duration a string (fast, normal or slow) or a number of millisecond. Default: 'normal'. - optional * @param function callback any function to call at the end of the effect. Default: none. - optional */ $.fn.fadeAndRemove = function(duration, callback) { this.animate({'opacity': 0}, { 'duration': duration, 'complete': function() { // No folding required if the element has position: absolute (not in the elements flow) if ($(this).css('position') == 'absolute') { // Callback function if (callback) { callback.apply(this); } $(this).remove(); } else { $(this).slideUp(duration, function() { // Callback function if (callback) { callback.apply(this); } $(this).remove(); }); } } }); return this; }; /** * Open/close fieldsets */ $.fn.toggleFieldsetOpen = function() { this.each(function() { /* * Tip: if you want to add animation or do anything that should not occur at startup closing, * check if the element has the class 'collapse': * if (!$(this).hasClass('collapse')) { // Anything that sould no occur at startup } */ // Change $(this).closest('fieldset, .fieldset').toggleClass('collapsed'); }); return this; }; /** * Add a semi-transparent layer in front of an element */ $.fn.addEffectLayer = function(options) { var settings = $.extend({}, $.fn.addEffectLayer.defaults, options); this.each(function(i) { var element = $(this); // Add layer var refElement = getNodeRefElement(this); var layer = $('<div class="loading-mask"><span>'+settings.message+'</span></div>').insertAfter(refElement); // Position var elementOffset = element.position(); layer.css({ top: elementOffset.top+'px', left: elementOffset.left+'px' }).width(element.outerWidth()).height(element.outerHeight()); // Effect var span = layer.children('span'); var marginTop = parseInt(span.css('margin-top')); span.css({'opacity':0, 'marginTop':(marginTop-40)+'px'}); layer.css({'opacity':0}).animate({'opacity':1}, { 'complete': function() { span.animate({'opacity': 1, 'marginTop': marginTop+'px'}); } }); }); return this; }; /** * Retrieve the reference element after which the layer will be inserted * @param HTMLelement node the node on which the effect is applied * @return HTMLelement the reference node */ function getNodeRefElement(node) { var element = $(node); // Special case if (node.nodeName.toLowerCase() == 'document' || node.nodeName.toLowerCase() == 'body') { var refElement = $(document.body).children(':last').get(0); } else { // Look for the reference element, the one after which the layer will be inserted var refElement = node; var offsetParent = element.offsetParent().get(0); // List of elements in which we can add a div var absPos = ['absolute', 'relative']; while (refElement && refElement !== offsetParent && !$.inArray($(refElement.parentNode).css('position'), absPos)) { refElement = refElement.parentNode; } } return refElement; } // Default params for the loading effect layer $.fn.addEffectLayer.defaults = { message: 'Please wait...' }; /** * jQuery load() method wrapper : add a visual effect on the load() target * Parameters are the same as load() */ $.fn.loadWithEffect = function() { // Add effect layer this.addEffectLayer({ message: $.fn.loadWithEffect.defaults.message }); // Rewrite callback function var target = this; var callback = false; var args = $.makeArray(arguments); var index = args.length; if (args[2] && typeof args[2] == 'function') { callback = args[2]; index = 2; } else if (args[1] && typeof args[1] == 'function') { callback = args[1]; index = 1; } // Custom callback args[index] = function(responseText, textStatus, XMLHttpRequest) { // Get the effect layer var refElement = getNodeRefElement(this); var layer = $(refElement).next('.loading-mask'); var span = layer.children('span'); // If success if (textStatus == 'success' || textStatus == 'notmodified') { // Initial callback if (callback) { callback.apply(this, arguments); } // Remove effect layer layer.stop(true); span.stop(true); var currentMarginTop = parseInt(span.css('margin-top')); var marginTop = parseInt(span.css('margin-top', '').css('margin-top')); span.css({'marginTop':currentMarginTop+'px'}).animate({'opacity':0, 'marginTop':(marginTop-40)+'px'}, { 'complete': function() { layer.fadeAndRemove(); } }); } else { span.addClass('error').html($.fn.loadWithEffect.defaults.errorMessage+'<br><a href="#">'+$.fn.loadWithEffect.defaults.retry+'</a> / <a href="#">'+$.fn.loadWithEffect.defaults.cancel+'</a>'); span.children('a:first').click(function(event) { event.preventDefault(); // Relaunch request $.fn.load.apply(target, args); // Reset span.removeClass('error').html($.fn.loadWithEffect.defaults.message).css('margin-left', ''); }); span.children('a:last').click(function(event) { event.preventDefault(); // Remove effect layer layer.stop(true); span.stop(true); var currentMarginTop = parseInt(span.css('margin-top')); var marginTop = parseInt(span.css('margin-top', '').css('margin-top')); span.css({'marginTop':currentMarginTop+'px'}).animate({'opacity':0, 'marginTop':(marginTop-40)+'px'}, { 'complete': function() { layer.fadeAndRemove(); } }); }); // Centering span.css('margin-left', -Math.round(span.outerWidth()/2)); } }; // Redirect to jQuery load $.fn.load.apply(target, args); return this; }; // Default texts for the loading effect layer $.fn.loadWithEffect.defaults = { message: 'Loading...', errorMessage: 'Error while loading', retry: 'Retry', cancel: 'Cancel' }; /** * Enable any button with workaround for IE lack of :disabled selector */ $.fn.enableBt = function() { $(this).attr('disabled', false); if ($.browser.msie && $.browser.version < 9) { $(this).removeClass('disabled'); } } /** * Disable any button with workaround for IE lack of :disabled selector */ $.fn.disableBt = function() { $(this).attr('disabled', true); if ($.browser.msie && $.browser.version < 9) { $(this).addClass('disabled'); } } })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/common.js
JavaScript
asf20
27,733
/*! * jQuery hashchange event - v1.3 - 7/21/2010 * http://benalman.com/projects/jquery-hashchange-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Script: jQuery hashchange event // // *Version: 1.3, Last updated: 7/21/2010* // // Project Home - http://benalman.com/projects/jquery-hashchange-plugin/ // GitHub - http://github.com/cowboy/jquery-hashchange/ // Source - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js // (Minified) - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (0.8kb gzipped) // // About: License // // Copyright (c) 2010 "Cowboy" Ben Alman, // Dual licensed under the MIT and GPL licenses. // http://benalman.com/about/license/ // // About: Examples // // These working examples, complete with fully commented code, illustrate a few // ways in which this plugin can be used. // // hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/ // document.domain - http://benalman.com/code/projects/jquery-hashchange/examples/document_domain/ // // About: Support and Testing // // Information about what version or versions of jQuery this plugin has been // tested with, what browsers it has been tested in, and where the unit tests // reside (so you can test it yourself). // // jQuery Versions - 1.2.6, 1.3.2, 1.4.1, 1.4.2 // Browsers Tested - Internet Explorer 6-8, Firefox 2-4, Chrome 5-6, Safari 3.2-5, // Opera 9.6-10.60, iPhone 3.1, Android 1.6-2.2, BlackBerry 4.6-5. // Unit Tests - http://benalman.com/code/projects/jquery-hashchange/unit/ // // About: Known issues // // While this jQuery hashchange event implementation is quite stable and // robust, there are a few unfortunate browser bugs surrounding expected // hashchange event-based behaviors, independent of any JavaScript // window.onhashchange abstraction. See the following examples for more // information: // // Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/ // Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/ // WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/ // Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/ // // Also note that should a browser natively support the window.onhashchange // event, but not report that it does, the fallback polling loop will be used. // // About: Release History // // 1.3 - (7/21/2010) Reorganized IE6/7 Iframe code to make it more // "removable" for mobile-only development. Added IE6/7 document.title // support. Attempted to make Iframe as hidden as possible by using // techniques from http://www.paciellogroup.com/blog/?p=604. Added // support for the "shortcut" format $(window).hashchange( fn ) and // $(window).hashchange() like jQuery provides for built-in events. // Renamed jQuery.hashchangeDelay to <jQuery.fn.hashchange.delay> and // lowered its default value to 50. Added <jQuery.fn.hashchange.domain> // and <jQuery.fn.hashchange.src> properties plus document-domain.html // file to address access denied issues when setting document.domain in // IE6/7. // 1.2 - (2/11/2010) Fixed a bug where coming back to a page using this plugin // from a page on another domain would cause an error in Safari 4. Also, // IE6/7 Iframe is now inserted after the body (this actually works), // which prevents the page from scrolling when the event is first bound. // Event can also now be bound before DOM ready, but it won't be usable // before then in IE6/7. // 1.1 - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug // where browser version is incorrectly reported as 8.0, despite // inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag. // 1.0 - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special // window.onhashchange functionality into a separate plugin for users // who want just the basic event & back button support, without all the // extra awesomeness that BBQ provides. This plugin will be included as // part of jQuery BBQ, but also be available separately. (function($,window,undefined){ '$:nomunge'; // Used by YUI compressor. // Reused string. var str_hashchange = 'hashchange', // Method / object references. doc = document, fake_onhashchange, special = $.event.special, // Does the browser support window.onhashchange? Note that IE8 running in // IE7 compatibility mode reports true for 'onhashchange' in window, even // though the event isn't supported, so also test document.documentMode. doc_mode = doc.documentMode, supports_onhashchange = 'on' + str_hashchange in window && ( doc_mode === undefined || doc_mode > 7 ); // Get location.hash (or what you'd expect location.hash to be) sans any // leading #. Thanks for making this necessary, Firefox! function get_fragment( url ) { url = url || location.href; return '#' + url.replace( /^[^#]*#?(.*)$/, '$1' ); }; // Method: jQuery.fn.hashchange // // Bind a handler to the window.onhashchange event or trigger all bound // window.onhashchange event handlers. This behavior is consistent with // jQuery's built-in event handlers. // // Usage: // // > jQuery(window).hashchange( [ handler ] ); // // Arguments: // // handler - (Function) Optional handler to be bound to the hashchange // event. This is a "shortcut" for the more verbose form: // jQuery(window).bind( 'hashchange', handler ). If handler is omitted, // all bound window.onhashchange event handlers will be triggered. This // is a shortcut for the more verbose // jQuery(window).trigger( 'hashchange' ). These forms are described in // the <hashchange event> section. // // Returns: // // (jQuery) The initial jQuery collection of elements. // Allow the "shortcut" format $(elem).hashchange( fn ) for binding and // $(elem).hashchange() for triggering, like jQuery does for built-in events. $.fn[ str_hashchange ] = function( fn ) { return fn ? this.bind( str_hashchange, fn ) : this.trigger( str_hashchange ); }; // Property: jQuery.fn.hashchange.delay // // The numeric interval (in milliseconds) at which the <hashchange event> // polling loop executes. Defaults to 50. // Property: jQuery.fn.hashchange.domain // // If you're setting document.domain in your JavaScript, and you want hash // history to work in IE6/7, not only must this property be set, but you must // also set document.domain BEFORE jQuery is loaded into the page. This // property is only applicable if you are supporting IE6/7 (or IE8 operating // in "IE7 compatibility" mode). // // In addition, the <jQuery.fn.hashchange.src> property must be set to the // path of the included "document-domain.html" file, which can be renamed or // modified if necessary (note that the document.domain specified must be the // same in both your main JavaScript as well as in this file). // // Usage: // // jQuery.fn.hashchange.domain = document.domain; // Property: jQuery.fn.hashchange.src // // If, for some reason, you need to specify an Iframe src file (for example, // when setting document.domain as in <jQuery.fn.hashchange.domain>), you can // do so using this property. Note that when using this property, history // won't be recorded in IE6/7 until the Iframe src file loads. This property // is only applicable if you are supporting IE6/7 (or IE8 operating in "IE7 // compatibility" mode). // // Usage: // // jQuery.fn.hashchange.src = 'path/to/file.html'; $.fn[ str_hashchange ].delay = 50; /* $.fn[ str_hashchange ].domain = null; $.fn[ str_hashchange ].src = null; */ // Event: hashchange event // // Fired when location.hash changes. In browsers that support it, the native // HTML5 window.onhashchange event is used, otherwise a polling loop is // initialized, running every <jQuery.fn.hashchange.delay> milliseconds to // see if the hash has changed. In IE6/7 (and IE8 operating in "IE7 // compatibility" mode), a hidden Iframe is created to allow the back button // and hash-based history to work. // // Usage as described in <jQuery.fn.hashchange>: // // > // Bind an event handler. // > jQuery(window).hashchange( function(e) { // > var hash = location.hash; // > ... // > }); // > // > // Manually trigger the event handler. // > jQuery(window).hashchange(); // // A more verbose usage that allows for event namespacing: // // > // Bind an event handler. // > jQuery(window).bind( 'hashchange', function(e) { // > var hash = location.hash; // > ... // > }); // > // > // Manually trigger the event handler. // > jQuery(window).trigger( 'hashchange' ); // // Additional Notes: // // * The polling loop and Iframe are not created until at least one handler // is actually bound to the 'hashchange' event. // * If you need the bound handler(s) to execute immediately, in cases where // a location.hash exists on page load, via bookmark or page refresh for // example, use jQuery(window).hashchange() or the more verbose // jQuery(window).trigger( 'hashchange' ). // * The event can be bound before DOM ready, but since it won't be usable // before then in IE6/7 (due to the necessary Iframe), recommended usage is // to bind it inside a DOM ready handler. // Override existing $.event.special.hashchange methods (allowing this plugin // to be defined after jQuery BBQ in BBQ's source code). special[ str_hashchange ] = $.extend( special[ str_hashchange ], { // Called only when the first 'hashchange' event is bound to window. setup: function() { // If window.onhashchange is supported natively, there's nothing to do.. if ( supports_onhashchange ) { return false; } // Otherwise, we need to create our own. And we don't want to call this // until the user binds to the event, just in case they never do, since it // will create a polling loop and possibly even a hidden Iframe. $( fake_onhashchange.start ); }, // Called only when the last 'hashchange' event is unbound from window. teardown: function() { // If window.onhashchange is supported natively, there's nothing to do.. if ( supports_onhashchange ) { return false; } // Otherwise, we need to stop ours (if possible). $( fake_onhashchange.stop ); } }); // fake_onhashchange does all the work of triggering the window.onhashchange // event for browsers that don't natively support it, including creating a // polling loop to watch for hash changes and in IE 6/7 creating a hidden // Iframe to enable back and forward. fake_onhashchange = (function(){ var self = {}, timeout_id, // Remember the initial hash so it doesn't get triggered immediately. last_hash = get_fragment(), fn_retval = function(val){ return val; }, history_set = fn_retval, history_get = fn_retval; // Start the polling loop. self.start = function() { timeout_id || poll(); }; // Stop the polling loop. self.stop = function() { timeout_id && clearTimeout( timeout_id ); timeout_id = undefined; }; // This polling loop checks every $.fn.hashchange.delay milliseconds to see // if location.hash has changed, and triggers the 'hashchange' event on // window when necessary. function poll() { var hash = get_fragment(), history_hash = history_get( last_hash ); if ( hash !== last_hash ) { history_set( last_hash = hash, history_hash ); $(window).trigger( str_hashchange ); } else if ( history_hash !== last_hash ) { location.href = location.href.replace( /#.*/, '' ) + history_hash; } timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay ); }; // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv // vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $.browser.msie && !supports_onhashchange && (function(){ // Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8 // when running in "IE7 compatibility" mode. var iframe, iframe_src; // When the event is bound and polling starts in IE 6/7, create a hidden // Iframe for history handling. self.start = function(){ if ( !iframe ) { iframe_src = $.fn[ str_hashchange ].src; iframe_src = iframe_src && iframe_src + get_fragment(); // Create hidden Iframe. Attempt to make Iframe as hidden as possible // by using techniques from http://www.paciellogroup.com/blog/?p=604. iframe = $('<iframe tabindex="-1" title="empty"/>').hide() // When Iframe has completely loaded, initialize the history and // start polling. .one( 'load', function(){ iframe_src || history_set( get_fragment() ); poll(); }) // Load Iframe src if specified, otherwise nothing. .attr( 'src', iframe_src || 'javascript:0' ) // Append Iframe after the end of the body to prevent unnecessary // initial page scrolling (yes, this works). .insertAfter( 'body' )[0].contentWindow; // Whenever `document.title` changes, update the Iframe's title to // prettify the back/next history menu entries. Since IE sometimes // errors with "Unspecified error" the very first time this is set // (yes, very useful) wrap this with a try/catch block. doc.onpropertychange = function(){ try { if ( event.propertyName === 'title' ) { iframe.document.title = doc.title; } } catch(e) {} }; } }; // Override the "stop" method since an IE6/7 Iframe was created. Even // if there are no longer any bound event handlers, the polling loop // is still necessary for back/next to work at all! self.stop = fn_retval; // Get history by looking at the hidden Iframe's location.hash. history_get = function() { return get_fragment( iframe.location.href ); }; // Set a new history item by opening and then closing the Iframe // document, *then* setting its location.hash. If document.domain has // been set, update that as well. history_set = function( hash, history_hash ) { var iframe_doc = iframe.document, domain = $.fn[ str_hashchange ].domain; if ( hash !== history_hash ) { // Update Iframe with any initial `document.title` that might be set. iframe_doc.title = doc.title; // Opening the Iframe's document after it has been closed is what // actually adds a history entry. iframe_doc.open(); // Set document.domain for the Iframe document as well, if necessary. domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' ); iframe_doc.close(); // Update the Iframe's hash, for great justice. iframe.location.hash = hash; } }; })(); // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^ REMOVE IF NOT SUPPORTING IE6/7/8 ^^^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return self; })(); })(jQuery,this);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.hashchange.js
JavaScript
asf20
16,817
/** * Template plugin for searchField */ (function($) { /** * Timeout for ajax requests * @var int */ var ajaxTimeout; /** * Timeout for search block close * @var int */ var closeTimeout; /** * Last request timer * @var int */ var lastRequest; /** * Setup the search field * @param object options an object with any of the options defined below in the function's defaults */ $.fn.advancedSearchField = function(options) { var settings = $.extend({}, $.fn.advancedSearchField.defaults, options); // Setup this.before('<input type="hidden" name="search-last" id="search-last" value="">').focus(function() { // Stop closing if (closeTimeout) { clearTimeout(closeTimeout); } // Add event listener $(this).bind('keyup', updateSearch); updateSearch(); }).blur(function() { // Remove event listener $(this).unbind('keyup', updateSearch); // Timeout for result hiding - needed for search block interactions closeTimeout = setTimeout(closeSearch, 500); }).after('<div id="search-result" class="result-block"><span class="arrow"><span></span></span><div id="server-search">'+settings.messageLoading+'</div><p id="search-info" class="result-info">-</p></div>').next().hide(); /** * Hide search result block * @return void */ function closeSearch() { // Hide elements $('#s').hideTip(); $('#search-result').fadeOut(); }; /** * Update the search field results block * @return void */ function updateSearch() { // Elements var result = $('#search-result'); // Current search var s = $.trim($('#s').val()); // Parsing if (s.length == 0) { // Tip $('#s').showTip({ content: settings.tipFocus }); result.fadeOut(); } else if (s.length < settings.minSearchLength) { // Tip $('#s').showTip({ content: settings.tipTooShort }); result.fadeOut(); } else { var last = $('#search-last'); var lastS = last.val(); var info = $('#search-info'); // Hide tip $('#s').hideTip(); // Show search results block result.fadeIn(); // Detect changes if (lastS != s) { // Store search $('#search-last').val(s); // Stop previous request timeout if (ajaxTimeout) { clearTimeout(ajaxTimeout); } // Empty block result.children().not('.arrow, #server-search, #search-info').remove(); // If search within nav if (settings.enableNavSearch) { result.children('.arrow:first').after('<h2>'+settings.titleTemplateResult+'</h2>'+searchInNav(s)+'<hr>'); // If hiding too long matches list if ($.fn.accessibleList && (settings.moreButtonAfter > 0 || settings.matchesPerPage > 0)) { result.children('ul:first').accessibleList({ 'moreAfter': settings.moreButtonAfter, 'pageSize': settings.matchesPerPage, 'after': function() { // Restore focus $('#s').focus(); } }); } } // Message $('#search-info').addClass('loading').text(settings.messageLoading); // Ajax call var date = new Date(); if (!lastRequest || lastRequest < date.getTime()-noUpdateDelay) { var delay = settings.firstRequestDelay; } else { var delay = settings.nextRequestDelay; } ajaxTimeout = setTimeout(sendRequest, delay); } } }; /** * Search within the main nav * @param string s the search string * @return void */ function searchInNav(s) { // Split keywords var keywords = s.toLowerCase().split(/\s+/); var nbKeywords = keywords.length; // Search links var links = $('nav a'); var matches = []; links.each(function(i) { var text = $(this).text().toLowerCase(); var textMatch = true; for (var i = 0; i < nbKeywords; ++i) { if (text.indexOf(keywords[i]) == -1) { textMatch = false; break; } } if (textMatch) { // All keywords found matches.push(this); } }); // Build results list var nbMatches = matches.length; if (nbMatches > 0) { var output = '<p class="results-count"><strong>'+nbMatches+'</strong> match'+((nbMatches > 1) ? 'es' : '')+'</p>'; output += '<ul class="small-files-list icon-html">'; for (var m = 0; m < nbMatches; ++m) { // Text with highlighted keywords var link = $(matches[m]); var text = link.text(); var path = [text]; for (var i = 0; i < nbKeywords; ++i) { text = text.replace(new RegExp('('+keywords[i]+')', 'gi'), '<strong>$1</strong>'); } // Path var parent = link; while ((parent = parent.parent().parent().prev('a')) && parent.length > 0) { path.push(parent.text()); } output += '<li><a href="'+matches[m].href+'">'+text+'<br><small>'+path.reverse().join(' > ')+'</small></a></li>'; } return output+'</ul>'; } else { return '<p class="results-count">'+settings.messageNoMatches+'</p>'; } }; /** * Send search request to server */ function sendRequest() { // Search url var url = $('#s').parents('form:first').attr('action'); if (!url || url == '') { // Page url without hash url = document.location.href.match(/^([^#]+)/)[1]; } var date = new Date(); var timer = date.getTime(); $('#server-search').load(url, { 's': $('#search-last').val(), 'timer': timer }, function(responseText, textStatus, XMLHttpRequest) { if (textStatus == 'success' || textStatus == 'notmodified') { $('#search-info').removeClass('loading').html(settings.messageSearchDone); } else { $('#server-search').html('<p class="error-message">'+settings.messageErrorFull+'</p>'); $('#search-info').removeClass('loading').html(settings.messageError); } }); }; return this; }; // Function's default configuration $.fn.advancedSearchField.defaults = { /** * Minimum search string length * @var int */ minSearchLength: 2, /** * Max number of visible matches in each list above 'more' button (0 for no masking) * @var int */ moreButtonAfter: 3, /** * Number of visible matches per page (0 for no pagination) * @var int */ matchesPerPage: 5, /** * Delay before first request in ms (avoid multiple request while user types) * @var int */ firstRequestDelay: 250, /** * Minimum delay between search requests in ms (reduces server load) * @var int */ nextRequestDelay: 750, /** * Minimum delay upon which the plugin considers the user has stopped typing long enough * to start the next request with firstRequestDelay delay, thus responding faster * @var int */ noUpdateDelay: 3000, /** * Enable search within navigation * @var boolean */ enableNavSearch: true, /** * Message when user focuses the search field * @var string */ tipFocus: 'Enter your search', /** * Message is search is too short * @var string */ tipTooShort: 'Enter at least 2 chars', /** * Message while loading * @var string */ messageLoading: 'Loading results...', /** * Message when no matches found * @var string */ messageNoMatches: 'No matches', /** * Message when the search request is done * @var string */ messageSearchDone: 'Not found? <a href="#">Try advanced search &raquo;</a>', /** * Full message if an error occurs while loading results * @var string */ messageErrorFull: 'Error while loading results, please try again', /** * Status message if an error occurs while loading results * @var string */ messageError: 'Error while loading', /** * Title of the result section showing template nav items * @var string */ titleTemplateResult: 'Admin pages' }; })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/searchField.js
JavaScript
asf20
8,449
/** * Add tip to any element */ (function($) { /** * Adds tip on selected elements * @param object options an object with any of the following options * - content: Content of the tip (may be HTML) or false for auto detect (default: false) * - onHover: Show tip only on hover (default: true) * - reverseHover: Hide tip on hover in, show on hover out (default: false) * - stickIfCurrent: Enable permanent tip on elements with the class 'current' (default: false) * - currentClass: Name of the 'current' class (default: 'current') * - offset: Offset of the tip from the element (default: 4) * - position: Position of the tip relative to the element (default: 'top') * - animationOffset: Offset for the animation (pixels) (default: 4) * - delay: Delay before tip shows up on hover (milliseconds) (default: 0) */ $.fn.tip = function(options) { var settings = $.extend({}, $.fn.tip.defaults, options); // Mode if (settings.onHover) { // Detect current elements if (settings.stickIfCurrent) { this.filter('.'+settings.currentClass).each(function(i) { $(this).createTip(settings); }); } // Effect if (settings.reverseHover) { $(this).createTip(settings); this.hover(function() { if (!settings.stickIfCurrent || !$(this).hasClass(settings.currentClass)) { $(this).hideTip(); } }, function() { $(this).showTip(settings); }); } else { this.hover(function() { $(this).showTip(settings); }, function() { if (!settings.stickIfCurrent || !$(this).hasClass(settings.currentClass)) { $(this).hideTip(); } }); } } else { this.createTip(settings); } return this; }; $.fn.tip.defaults = { /** * Content of the tip (may be HTML) or false for auto detect * @var string|boolean */ content: false, /** * Show tip only on hover * @var boolean */ onHover: true, /** * Hide tip on hover in, show on hover out * @var boolean */ reverseHover: false, /** * Enable permanent tip on elements with the class 'current' * @var boolean */ stickIfCurrent: false, /** * Name of the 'current' class * @var boolean */ currentClass: 'current', /** * Offset of the tip from the element (pixels) * @var int */ offset: 4, /** * Position of the tip relative to the element * @var string */ position: 'top', /** * Offset for the animation (pixels) * @var int */ animationOffset: 4, /** * Delay before tip shows up on hover (milliseconds) * @var int */ delay: 0 }; /** * Add tip (if not exist) and show it with effect * @param object options same as the tip() method */ $.fn.showTip = function(options) { var settings = $.extend({}, $.fn.tip.defaults, options); this.each(function(i) { var element = $(this); var oldIE = ($.browser.msie && $.browser.version < 9); // If tip does not already exist (if current), create it var tip = element.data('tip'); if (!tip) { element.createTip(settings, oldIE ? false : true); tip = element.data('tip'); } else if (settings.content !== element.data('settings').content) { element.updateTipContent(options.content); } // Animation if (!oldIE) // IE6-8 filters do not allow correct animation (the arrow is truncated) { var position = getTipPosition(element, tip, settings, false); tip.stop(true).delay(settings.delay).animate({ opacity: 1, top: position.top, left: position.left }, 'fast'); } }); return this; }; /** * Hide then remove tip */ $.fn.hideTip = function() { this.each(function(i) { var element = $(this); var tip = element.data('tip'); if (tip) { var settings = element.data('settings'); if ($.browser.msie && $.browser.version < 9) { // IE8 and lower filters do not allow correct animation (the arrow is truncated) tip.children('.arrow').remove(); this.title = tip.html(); element.data('tip', false); tip.remove(); } else { // Hiding is not relative to the parent element, to prevent weird behaviour if parent is moved or removed var position = getFinalPosition(tip, settings); var offset = tip.offset(); switch (position) { case 'right': offset.left += settings.animationOffset+settings.offset; break; case 'bottom': offset.top += settings.animationOffset+settings.offset; break; case 'left': offset.left -= settings.animationOffset+settings.offset; break; default: offset.top -= settings.animationOffset+settings.offset; break; } tip.animate({ opacity: 0, top: offset.top, left: offset.left }, { complete: function() { // Restore node var tip = $(this); var node = tip.data('node'); if (node) { tip.children('.arrow').remove(); node.attr('title', tip.html()); node.data('tip', false); } // Remove tip tip.remove(); } }); } } }); return this; }; /** * Create tip bubble * @param object settings the options object given to tip() * @param boolean hide indicate whether to hide the tip after creating it or not (default : false) */ $.fn.createTip = function(settings, hide) { this.each(function(i) { var element = $(this); var tips = getTipDiv(); // Insertion tips.append('<div></div>'); var tip = tips.children(':last-child'); // Position class if (settings.position == 'right' || element.hasClass('tip-right') || element.parent().hasClass('children-tip-right')) { tip.addClass('tip-right'); } else if (settings.position == 'bottom' || element.hasClass('tip-bottom') || element.parent().hasClass('children-tip-bottom')) { tip.addClass('tip-bottom'); } else if (settings.position == 'left' || element.hasClass('tip-left') || element.parent().hasClass('children-tip-left')) { tip.addClass('tip-left'); } // Cross references tip.data('node', element); element.data('tip', tip); element.data('settings', settings); // Content element.updateTipContent(settings.content, hide); // Effect if (hide) { tip.css({opacity:0}); } }); return this; }; /** * Update tip content * @param mixed content any content (text or HTML) for the tip, of false for automatic detection * @param boolean hide optional, compatibility with createTip() */ $.fn.updateTipContent = function(content, hide) { this.each(function(i) { var element = $(this); var tip = element.data('tip'); var settings = element.data('settings'); // If auto tip content if (!content) { if (this.title && this.title.length > 0) { var finalContent = this.title; this.title = ''; } else { var subTitle = element.find('[title]:first'); if (subTitle.length > 0) { var finalContent = subTitle.attr('title'); subTitle.attr('title', ''); } else { var finalContent = element.text(); } } } else { var finalContent = content; } // If empty if (!finalContent || $.trim(finalContent).length == 0) { finalContent = '<em>No tip</em>'; } // Insert tip.html(finalContent+'<span class="arrow"><span></span></span>'); // Position tip.stop(true, true); var position = getTipPosition(element, tip, settings, hide); tip.offset(position); }); return this; }; /** * Call this function to refresh tips when using the stickIfCurrent option * and the 'current' element has changed */ $.fn.refreshTip = function() { this.each(function(i) { var settings = $(this).data('settings'); if (settings && settings.stickIfCurrent) { var element = $(this); if (element.hasClass(settings.currentClass)) { element.showTip(settings); } else { element.hideTip(settings); } } }); return this; }; /** * Detect final position for the tip * @param jQuery tip the tip element * @param Object settings the tip options * @return string the final position */ function getFinalPosition(tip, settings) { var position = settings.position; if (tip.hasClass('tip-right')) { position = 'right'; } else if (tip.hasClass('tip-bottom')) { position = 'bottom'; } else if (tip.hasClass('tip-left')) { position = 'left'; } return position; } /** * Get tip position, relative to the element * @param jQuery element the element on which the the tip show * @param jQuery tip the tip element * @param Object settings the tip options * @param boolean animStart tells wether the tip should be positioned at the start of the animation or not * @return Object an object with two values : 'top' and 'left' */ function getTipPosition(element, tip, settings, animStart) { var offset = element.offset(); var position = getFinalPosition(tip, settings); switch (position) { case 'right': return { top: Math.round(offset.top+(element.outerHeight()/2)-(tip.outerHeight()/2)), left: Math.round(offset.left+element.outerWidth()+(animStart ? settings.animationOffset+settings.offset : settings.offset)) }; break; case 'bottom': return { top: Math.round(offset.top+element.outerHeight()+(animStart ? settings.animationOffset+settings.offset : settings.offset)), left: Math.round(offset.left+(element.outerWidth()/2)-(tip.outerWidth()/2)) }; break; case 'left': return { top: Math.round(offset.top+(element.outerHeight()/2)-(tip.outerHeight()/2)), left: Math.round(offset.left-tip.outerWidth()-(animStart ? settings.animationOffset+settings.offset : settings.offset)) }; break; default: return { top: Math.round(offset.top-tip.outerHeight()-(animStart ? settings.animationOffset+settings.offset : settings.offset)), left: Math.round(offset.left+(element.outerWidth()/2)-(tip.outerWidth()/2)) }; break; } } // If template common functions loaded if ($.fn.addTemplateSetup) { $.fn.addTemplateSetup(function() { this.find('.with-tip, .with-children-tip > *').tip(); }); } else { // Default behaviour $(document).ready(function() { $('.with-tip, .with-children-tip > *').tip(); }); } /** * Return the tips div, or create it if it does not exist */ function getTipDiv() { var tips = $('#tips'); if (tips.length == 0) { $(document.body).append('<div id="tips"></div>'); tips = $('#tips'); } return tips; } // Handle viewport resizing $(window).resize(function() { getTipDiv().children().each(function(i) { // Init var tip = $(this); var element = tip.data('node'); var settings = element.data('settings'); var isCurrent = settings.stickIfCurrent && element.hasClass(settings.currentClass); // Position var animate = (settings.onHover && !isCurrent); tip.stop(true, true); var position = getTipPosition(element, tip, settings, animate); tip.offset(position); }); }); })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.tip.js
JavaScript
asf20
11,924
/** * Enables the context menu for elements bound to the 'contextMenu' event */ (function($) { /* * Enable context menu */ document.oncontextmenu = function(event) { var e = window.event || event; var target = $(e.target || e.srcElement); var list = []; target.trigger('contextMenu', [list]); // If some menu elements added if (list.length > 0) { // Mouse position var posx = 0; var posy = 0; if (e.pageX || e.pageY) { posx = e.pageX; posy = e.pageY; } else if (e.clientX || e.clientY) { posx = e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft; posy = e.clientY+document.body.scrollTop+document.documentElement.scrollTop; } $('#contextMenu').html(buildMenuLevel(list)).css({ top: posy+'px', left: posx+'px' }).show().openDropDownMenu(); // Listener $(document).bind('click', closeContextMenu); // Prevent browser menu return false; } }; /* * Simple functions for closing menu */ function closeContextMenu() { $('#contextMenu').empty().hide(); removeBinding(); }; function removeBinding() { $(document).unbind('click', closeContextMenu); }; // Insert menu element $(document).ready(function() { $(document.body).append('<div id="contextMenu" class="menu"></div>'); }); /** * Builds a level of the menu (recursive function) * @param array list the menu elements list */ function buildMenuLevel(list) { var html = '<ul>'; var defaults = { text: 'Link', alt: '', link: '', subs: [], icon: '' }; for (var element in list) { // If separation if (typeof(list[element]) != 'object') { html += '<li class="sep"></li>'; } else { var el = $.extend({}, defaults, list[element]); var alt = (el.alt.length > 0) ? ' title="'+el.alt+'"' : ''; var icon = (el.icon.length > 0) ? ' class="icon_'+el.icon+'"' : ''; if (el.link.length > 0) { var opener = 'a href="'+el.link+'"'; var closer = 'a'; } else { var opener = 'span'; var closer = 'span'; } // Opening html += '<li'+icon+'><'+opener+alt+'>'+el.text+'</'+closer+'>'; // If sub menus if (typeof(el.subs) == 'object' && el.subs.length > 0) { html += buildMenuLevel(el.subs); } // Close html += '</li>'; } } return html+'</ul>'; }; })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.contextMenu.js
JavaScript
asf20
2,538
/** * Template JS for standard pages */ (function($) { // Standard template setup $.fn.addTemplateSetup(function() { // Mini menu this.find('.mini-menu').css({opacity:0}).parent().hover(function() { $(this).children('.mini-menu').stop(true).animate({opacity:1}); }, function() { $(this).children('.mini-menu').css('display', 'block').stop(true).animate({opacity:0}, {'complete': function() { $(this).css('display', ''); }}); }); // CSS Menu improvement this.find('.menu, .menu li:has(ul)').hover(function() { $(this).openDropDownMenu(); }, function() { // Remove in case of future window resizing $(this).children('ul').removeClass('reverted'); }); // Scroll top button $('a[href="#top"]').click(function(event) { event.preventDefault(); $('html, body').animate({scrollTop:0}); }); }); // Close buttons $('.close-bt').live('click', function() { $(this).parent().fadeAndRemove(); }); // Document initial setup $(document).ready(function() { // Notifications blocks var notifications = $('<ul id="notifications"></ul>').appendTo(document.body); var notificationsTop = parseInt(notifications.css('top')); // If it is a standard page if (!$(document.body).hasClass('special-page')) { // Main nav - click style $('nav > ul > li').click(function(event) { // If not already active and has sub-menu if (!$(this).hasClass('current') && $(this).find('ul li').length > 0) { $(this).addClass('current').siblings().removeClass('current'); $('nav > ul > li').refreshTip(); event.preventDefault(); } }).tip({ stickIfCurrent: true, offset: -3 }); // Main nav - hover style /*$('nav > ul > li').hover(function() { $(this).addClass('current').siblings().removeClass('current'); $('nav > ul > li').refreshTip(); }, function() {}).tip({ stickIfCurrent: true, offset: -3 });*/ // Advanced search field if ($.fn.advancedSearchField) { $('#s').advancedSearchField(); } // Status bar buttons : drop-downs fade In/Out function convertDropLists() { $(this).find('.result-block .small-files-list').accessibleList({moreAfter:false}); // Run only once $(this).unbind('mouseenter', convertDropLists); } $('#status-infos li:has(.result-block)').hover(function() { $(this).find('.result-block').stop(true).css('display', 'none').fadeIn('normal', function() { $(this).css('opacity', ''); }); }, function() { $(this).find('.result-block').stop(true).css('display', 'block').fadeOut('normal', function() { $(this).css('opacity', ''); }); }).bind('mouseenter', convertDropLists); // Fixed control bar var controlBar = $('#control-bar'); if (controlBar.length > 0) { var cbPlaceHolder = controlBar.after('<div id="cb-place-holder" style="height:'+controlBar.outerHeight()+'px"></div>').next(); // Effect controlBar.hover(function() { if ($(this).hasClass('fixed')) { $(this).stop(true).fadeTo('fast', 1); } }, function() { if ($(this).hasClass('fixed')) { $(this).stop(true).fadeTo('slow', 0.5); } }); // Listener $(window).scroll(function() { // Check top position var controlBarPos = controlBar.hasClass('fixed') ? cbPlaceHolder.offset().top : controlBar.offset().top; if ($(window).scrollTop() > controlBarPos) { if (!controlBar.hasClass('fixed')) { cbPlaceHolder.height(controlBar.outerHeight()).show(); controlBar.addClass('fixed').stop(true).fadeTo('slow', 0.5); // Notifications $('#notifications').animate({'top': controlBar.outerHeight()+notificationsTop}); } } else { if (controlBar.hasClass('fixed')) { cbPlaceHolder.hide(); controlBar.removeClass('fixed').stop(true).fadeTo('fast', 1, function() { // Required for IE $(this).css('filter', ''); }); // Notifications $('#notifications').animate({'top': notificationsTop}); } } }).trigger('scroll'); } } }); /** * Internal function to open drop-down menus, required for context menu */ $.fn.openDropDownMenu = function() { var ul = this.children('ul'); // Position check if (ul.offset().left+ul.outerWidth()-$(window).scrollLeft() > $(window).width()) { ul.addClass('reverted'); } // Effect - IE < 9 uses filter for opacity, cutting out sub-menus if (!$.browser.msie || $.browser.version > 8) { ul.stop(true).css({opacity:0}).animate({opacity:1}); } }; })(jQuery); /** * Display a notification. If the page is not yet ready, delay the notification until it is ready. * @var string message a text or html message to display * @var object options an object with any options for the message - optional * - closeButton: true to add a close button to the message (default: true) * - autoClose: true to close message after (closeDelay) ms (default: true) * - closeDelay: delay before message close (default: 8000) */ var notify = function(message, options) { var block = jQuery('#notifications'); // If ready if (block.length > 0) { var settings = jQuery.extend({}, notify.defaults, options); // Append message var closeButton = settings.closeButton ? '<span class="close-bt"></span>' : ''; var element = jQuery('#notifications').append('<li>'+message+closeButton+'</li>').children(':last-child'); // Effect element.expand(); // If closing if (settings.autoClose) { // Timer var timeoutId = setTimeout(function() { element.fadeAndRemove(); }, settings.closeDelay); // Prevent closing when hover element.hover(function() { clearTimeout(timeoutId); }, function() { timeoutId = setTimeout(function() { element.fadeAndRemove(); }, settings.closeDelay); }); } } else { // Not ready, delay action setTimeout(function() { notify(message, options); }, 40); } }; // Defaults values for the notify method notify.defaults = { closeButton: true, // Add a close button to the message autoClose: true, // Message will close after (closeDelay) ms closeDelay: 8000 // Delay before message closes };
0a1b2c3d4e5
trunk/leilao/include/js/standard.js
JavaScript
asf20
6,607
<?php /** * Simple script to combine and compress JS files, to reduce the number of file request the server has to handle. * For more options/flexibility, see Minify : http://code.google.com/p/minify/ */ // If no file requested if (!isset($_GET['files']) or strlen($_GET['files']) == 0) { header('Status: 404 Not Found'); exit(); } // Cache folder $cachePath = 'cache/'; if (!file_exists($cachePath)) { mkdir($cachePath); } // Tell the browser what kind of data to expect header('Content-type: text/javascript'); // Enable compression /*if (extension_loaded('zlib')) { ini_set('zlib.output_compression', 'On'); }*/ /** * Add file extension if needed * @var string $file the file name */ function addExtension($file) { if (substr($file, -3) !== '.js') { $file .= '.js'; } return $file; } // Calculate an unique ID of requested files & their change time $files = array_map('addExtension', explode(',', $_GET['files'])); $md5 = ''; foreach ($files as $file) { $filemtime = @filemtime($file); $md5 .= date('YmdHis', $filemtime ? $filemtime : NULL).$file; } $md5 = md5($md5); // If cache exists of this files/time ID if (file_exists($cachePath.$md5)) { readfile($cachePath.$md5); } else { // Lib require('jsmin.php'); // Load files error_reporting(0); $content = ''; foreach ($files as $file) { $content .= file_get_contents($file); } $content = JSMin::minify($content); // Delete cache files older than an hour $oldDate = time()-3600; $cachedFiles = scandir($cachePath); foreach ($cachedFiles as $file) { $filemtime = @filemtime($cachePath.$file); if (strlen($file) == 32 and ($filemtime === false or $filemtime < $oldDate)) { unlink($cachePath.$file); } } // Write cache file file_put_contents($cachePath.$md5, $content); // Output echo $content; }
0a1b2c3d4e5
trunk/leilao/include/js/mini.php
PHP
asf20
1,899
function formataData(data){ dia = data.getDate(); mes = data.getMonth()+1; mes = new String(mes); if(mes.length < 2) mes = "0"+mes; ano = data.getFullYear(); return dia+"/"+mes+"/"+ano; } function abrirModalSimples(conteudo, titulo){ $.modal({ content: conteudo, title: titulo, maxWidth: 500, buttons: { 'Fechar': function(win) {win.closeModal();} } }); } function abrirModalConfirmacao(url){ $.modal({ content: 'Deseja Realmente Realizar Essa Operação?', title: 'Confirmação', maxWidth: 500, buttons: { 'Sim': function() {window.location.href = url}, 'Não': function(win) {win.closeModal();} } }); } function abrirModalCarregando(conteudo){ return $.modal({ content: '<img src="include/images/ajax-loader.gif"/> '+conteudo, title: 'Carregango', maxWidth: 500, closeButton : false }); } function getEndereco() { if($.trim($("#cepEnd").val()) != ""){ var winModal = abrirModalCarregando('Carregando Endereço...'); $.getScript("http://cep.republicavirtual.com.br/web_cep.php?formato=javascript&cep="+$("#cepEnd").val(), function(){ if(resultadoCEP["resultado"] > 0){ // troca o valor dos elementos $("#logradouroEnd").val(unescape(resultadoCEP["tipo_logradouro"])+" "+unescape(resultadoCEP["logradouro"])); $("#bairroEnd").val(unescape(resultadoCEP["bairro"])); $("#cidadeEnd").val(unescape(resultadoCEP["cidade"])); $("#estadoEnd").val(unescape(resultadoCEP["uf"])); }else{ abrirModalSimples('Endereço não encontrado!!!',''); winModal.closeModal(); } winModal.closeModal(); }); } } function limitarCampo(campo, limite, campoContador){ $("#"+campo).keyup(function(){ var tamanho = $(this).val().length; if(tamanho > limite) tamanho -= 1; var count = limite - tamanho; if(count <= 0) count = 0; $("#"+campoContador).text(count); if(tamanho >= limite){ $(this).val($(this).val().substring(0, limite)); } }) }
0a1b2c3d4e5
trunk/leilao/include/js/funcoes.js
JavaScript
asf20
2,638
/** * Functions required for the template documentation */ $('a[href^="content/"]').live('click', function(event) { event.preventDefault(); var href = $(this).attr('href'); // Load content $('#content').load(href, '', function(responseText, textStatus, XMLHttpRequest) { $(this).applyTemplateSetup().buildTableOfContent(); }); window.location.hash = '#'+href; // Get nav link var a = $('#menu a[href="'+href+'"]'); if (a.length > 0) { // Mark as current $('#menu a').removeClass('current'); a.addClass('current'); // Update breadcrumb var breadcrumb = $('#breadcrumb').empty(); while (a.length > 0) { if (a.get(0).nodeName.toUpperCase() == 'A') { var target = a; } else { var target = a.parent().find('a:first'); } breadcrumb.prepend('<li><a href="'+target.attr('href')+'">'+a.html()+'</a></li>'); // Check if opened var li = a.parent(); if (li.hasClass('closed')) { li.removeClass('closed'); } a = li.parent().parent().children('a, span'); } } }); // Function for building table of content $.fn.buildTableOfContent = function() { var h2 = this.find('h2'); if (h2.length > 0) { var h1 = this.find('h1:first'); if (h1.length == 0) { h1 = this.prepend('<h1>Help</h1>').children(':first'); } var menu = h1.wrap('<div class="h1 with-menu"></div>') .after('<div class="menu"><img src="images/menu-open-arrow.png" width="16" height="16"><ul></ul></div>') .next().children('ul'); h2.each(function(i) { this.id = 'step'+i; menu.append('<li class="icon_down"><a href="#step'+i+'">'+$(this).html()+'</a></li>'); }); menu.find('a').click(function(event) { event.preventDefault(); $('html, body').animate({scrollTop: $($(this).attr('href')).offset().top }); }); } return this; }; // Initial page $(document).ready(function() { var hash = $.trim(window.location.hash || ''); if (hash.length < 2) { $('#home a').click(); } else { hash = hash.substring(1); var a = $('a[href="'+hash+'"]'); if (a.length > 0) { a.click(); } else { $('#home a').click(); } } // Enable back/next buttons $(window).bind('hashchange', function() { var hash = $.trim(window.location.hash || ''); if (hash.length > 1) { hash = hash.substring(1); var a = $('a[href="'+hash+'"]'); if (a.length > 0 && !a.hasClass('current')) { a.click(); } } }); });
0a1b2c3d4e5
trunk/leilao/include/js/help.js
JavaScript
asf20
2,548
/** * Modal window extension */ (function($) { /** * Opens a new modal window * @param object options an object with any of the following options * @return object the jQuery object of the new window */ $.modal = function(options) { var settings = $.extend({}, $.modal.defaults, options), root = getModalDiv(), // Vars for resizeFunc and moveFunc winX = 0, winY = 0, contentWidth = 0, contentHeight = 0, mouseX = 0, mouseY = 0, resized; // Get contents var content = ''; var contentObj; if (settings.content) { if (typeof(settings.content) == 'string') { content = settings.content; } else { contentObj = settings.content.clone(true).show(); } } else { // No content content = ''; } // Title var titleClass = settings.title ? '' : ' no-title'; var title = settings.title ? '<h1>'+settings.title+'</h1>' : ''; // Content size var sizeParts = new Array(); sizeParts.push('min-width:'+settings.minWidth+'px;'); sizeParts.push('min-height:'+settings.minHeight+'px;'); if (settings.width) { sizeParts.push('width:'+settings.width+'px; '); } if (settings.height) { sizeParts.push('height:'+settings.height+'px; '); } if (settings.maxWidth) { sizeParts.push('max-width:'+settings.maxWidth+'px; '); } if (settings.maxHeight) { sizeParts.push('max-height:'+settings.maxHeight+'px; '); } var contentStyle = (sizeParts.length > 0) ? ' style="'+sizeParts.join(' ')+'"' : ''; // Borders var borderOpen = settings.border ? '"><div class="block-content'+titleClass : titleClass; var borderClose = settings.border ? '></div' : ''; // Scrolling var scrollClass = settings.scrolling ? ' modal-scroll' : ''; // Insert window var win = $('<div class="modal-window block-border'+borderOpen+'">'+title+'<div class="modal-content'+scrollClass+'"'+contentStyle+'>'+content+'</div></div'+borderClose+'>').appendTo(root); var contentDiv = win.find('.modal-content'); if (contentObj) { contentObj.appendTo(contentDiv); } // If resizable if (settings.resizable && settings.border) { // Custom function (to use correct var scope) var resizeFunc = function(event) { // Mouse offset var offsetX = event.pageX-mouseX, offsetY = event.pageY-mouseY, // New size newWidth = Math.max(settings.minWidth, contentWidth+(resized.width*offsetX)), newHeight = Math.max(settings.minHeight, contentHeight+(resized.height*offsetY)), // Position correction correctX = 0, correctY = 0; // If max sizes are defined if (settings.maxWidth && newWidth > settings.maxWidth) { correctX = newWidth-settings.maxWidth; newWidth = settings.maxWidth; } if (settings.maxHeight && newHeight > settings.maxHeight) { correctY = newHeight-settings.maxHeight; newHeight = settings.maxHeight; } contentDiv.css({ width: newWidth+'px', height: newHeight+'px' }); win.css({ left: (winX+(resized.left*(offsetX+correctX)))+'px', top: (winY+(resized.top*(offsetY+correctY)))+'px' }); }; // Create resize handlers $('<div class="modal-resize-tl"></div>').appendTo(win).data('modal-resize', { top: 1, left: 1, height: -1, width: -1 }).add( $('<div class="modal-resize-t"></div>').appendTo(win).data('modal-resize', { top: 1, left: 0, height: -1, width: 0 }) ).add( $('<div class="modal-resize-tr"></div>').appendTo(win).data('modal-resize', { top: 1, left: 0, height: -1, width: 1 }) ).add( $('<div class="modal-resize-r"></div>').appendTo(win).data('modal-resize', { top: 0, left: 0, height: 0, width: 1 }) ).add( $('<div class="modal-resize-br"></div>').appendTo(win).data('modal-resize', { top: 0, left: 0, height: 1, width: 1 }) ).add( $('<div class="modal-resize-b"></div>').appendTo(win).data('modal-resize', { top: 0, left: 0, height: 1, width: 0 }) ).add( $('<div class="modal-resize-bl"></div>').appendTo(win).data('modal-resize', { top: 0, left: 1, height: 1, width: -1 }) ).add( $('<div class="modal-resize-l"></div>').appendTo(win).data('modal-resize', { top: 0, left: 1, height: 0, width: -1 }) ).mousedown(function(event) { // Detect positions contentWidth = contentDiv.width(); contentHeight = contentDiv.height(); var position = win.position(); winX = position.left; winY = position.top; mouseX = event.pageX; mouseY = event.pageY; resized = $(this).data('modal-resize'); // Prevent text selection document.onselectstart = function () { return false; }; $(document).bind('mousemove', resizeFunc); }) root.mouseup(function() { $(document).unbind('mousemove', resizeFunc); // Restore text selection document.onselectstart = null; }); } // Put in front win.mousedown(function() { $(this).putModalOnFront(); }); // If movable if (settings.draggable && title) { // Custom functions (to use correct var scope) var moveFunc = function(event) { // Window and document sizes var width = win.outerWidth(), height = win.outerHeight(); // New position win.css({ left: Math.max(0, Math.min(winX+(event.pageX-mouseX), $(root).width()-width))+'px', top: Math.max(0, Math.min(winY+(event.pageY-mouseY), $(root).height()-height))+'px' }); }; // Listeners win.find('h1:first').mousedown(function(event) { // Detect positions var position = win.position(); winX = position.left; winY = position.top; mouseX = event.pageX; mouseY = event.pageY; // Prevent text selection document.onselectstart = function () { return false; }; $(document).bind('mousemove', moveFunc); }) root.mouseup(function() { $(document).unbind('mousemove', moveFunc); // Restore text selection document.onselectstart = null; }); } // Close button if (settings.closeButton) { $('<ul class="action-tabs right"><li><a href="#" title="Fechar"><img src="include/images/icons/fugue/cross-circle.png" width="16" height="16"></a></li></ul>') .prependTo(win) .find('a').click(function(event) { event.preventDefault(); $(this).closest('.modal-window').closeModal(); }); } // Bottom buttons var buttonsFooter = false; $.each(settings.buttons, function(key, value) { // Button zone if (!buttonsFooter) { buttonsFooter = $('<div class="block-footer align-'+settings.buttonsAlign+'"></div>').insertAfter(contentDiv); } else { // Spacing buttonsFooter.append('&nbsp;'); } $('<button type="button">'+key+'</button>').appendTo(buttonsFooter).click(function(event) { value.call(this, $(this).closest('.modal-window'), event); }); }); // Close function if (settings.onClose) { win.bind('closeModal', settings.onClose); } // Apply template setup win.applyTemplateSetup(); // Effect if (!root.is(':visible')) { win.hide(); root.fadeIn('normal', function() { win.show().centerModal(); }); } else { win.centerModal(); } // Store as current $.modal.current = win; $.modal.all = root.children('.modal-window'); // Callback if (settings.onOpen) { settings.onOpen.call(win.get(0)); } // If content url if (settings.url) { win.loadModalContent(settings.url, settings); } return win; }; /** * Shortcut to the current window * @var jQuery|boolean */ $.modal.current = false; /** * jQuery selection of all opened modal windows * @var jQuery */ $.modal.all = $(); /** * Wraps the selected elements content in a new modal window * @param object options same as $.modal() * @return jQuery the new windows */ $.fn.modal = function(options) { var modals = $(); this.each(function() { modals.add($.modal($.extend({}, $.modal.defaults, {content: $(this).clone(true).show()}))); }); return modals; }; /** * Use this method to retrieve the content div in the modal window */ $.fn.getModalContentBlock = function() { return this.find('.modal-content'); } /** * Use this method to retrieve the modal window from any element within it */ $.fn.getModalWindow = function() { return this.closest('.modal-window'); } /** * Set window content * @param string|jQuery content the content to put: HTML or a jQuery object * @param boolean resize use true to resize window to fit content (height only) */ $.fn.setModalContent = function(content, resize) { this.each(function() { var contentBlock = $(this).getModalContentBlock(); // Set content if (typeof(content) == 'string') { contentBlock.html(content); } else { content.clone(true).show().appendTo(contentBlock); } contentBlock.applyTemplateSetup(); // Resizing if (resize) { contentBlock.setModalContentSize(true, false); } }); return this; } /** * Set window content-block size * @param int|boolean width the width to set, true to keep current or false for fluid width * @param int|boolean height the height to set, true to keep current or false for fluid height */ $.fn.setModalContentSize = function(width, height) { this.each(function() { var contentBlock = $(this).getModalContentBlock(); // Resizing if (width !== true) { contentBlock.css('width', width ? width+'px' : ''); } if (height !== true) { contentBlock.css('height', height ? height+'px' : ''); } }); return this; } /** * Load AJAX content * @param string url the content url * @param object options an object with any of the following options: * - string loadingMessage any message to display while loading (may contain HTML), or leave empty to keep current content * - string|object data a map or string that is sent to the server with the request (same as jQuery.load()) * - function complete a callback function that is executed when the request completes. (same as jQuery.load()) * - boolean resize use true to resize window on loading message and when content is loaded. To define separately, use options below: * - boolean resizeOnMessage use true to resize window on loading message * - boolean resizeOnLoad use true to resize window when content is loaded */ $.fn.loadModalContent = function(url, options) { var settings = $.extend({ loadingMessage: '', data: {}, complete: function(responseText, textStatus, XMLHttpRequest) {}, resize: true, resizeOnMessage: false, resizeOnLoad: false }, options) this.each(function() { var win = $(this), contentBlock = win.getModalContentBlock(); // If loading message if (settings.loadingMessage) { win.setModalContent('<div class="modal-loading">'+settings.loadingMessage+'</div>', (settings.resize || settings.resizeOnMessage)); } contentBlock.load(url, settings.data, function(responseText, textStatus, XMLHttpRequest) { // Template functions contentBlock.applyTemplateSetup(); if (settings.resize || settings.resizeOnLoad) { contentBlock.setModalContentSize(true, false); } // Callback settings.complete.call(this, responseText, textStatus, XMLHttpRequest); }); }); return this; } /** * Set modal title * @param string newTitle the new title (may contain HTML), or an empty string to remove the title */ $.fn.setModalTitle = function(newTitle) { this.each(function() { var win = $(this), title = $(this).find('h1'), contentBlock = win.hasClass('block-content') ? win : win.children('.block-content:first'); if (newTitle.length > 0) { if (title.length == 0) { contentBlock.removeClass('no-title'); title = $('<h1>'+newTitle+'</h1>').prependTo(contentBlock); } title.html(newTitle); } else if (title.length > 0) { title.remove(); contentBlock.addClass('no-title'); } }); return this; } /** * Center the window * @param boolean animate true to animate the window movement */ $.fn.centerModal = function(animate) { var root = getModalDiv(), rootW = root.width()/2, rootH = root.height()/2; this.each(function() { var win = $(this), winW = Math.round(win.outerWidth()/2), winH = Math.round(win.outerHeight()/2); win[animate ? 'animate' : 'css']({ left: (rootW-winW)+'px', top: (rootH-winH)+'px' }); }); return this; }; /** * Put modal on front */ $.fn.putModalOnFront = function() { if ($.modal.all.length > 1) { var root = getModalDiv(); this.each(function() { if ($(this).next('.modal-window').length > 0) { $(this).detach().appendTo(root); } }); } return this; }; /** * Closes the window */ $.fn.closeModal = function() { this.each(function() { var event = $.Event('closeModal'), win = $(this); // Events on close win.trigger(event); if (!event.isDefaultPrevented()) { win.remove(); // Modal root element var root = getModalDiv(); $.modal.all = root.children('.modal-window'); if ($.modal.all.length == 0) { $.modal.current = false; root.fadeOut('normal'); } else { // Refresh current $.modal.current = $.modal.all.last(); } } }); return this; }; /** * New modal window options */ $.modal.defaults = { /** * Content of the window: HTML or jQuery object * @var string|jQuery */ content: false, /** * Url for loading content * @var string|boolean */ url: false, /** * Title of the window, or false for none * @var string|boolean */ title: false, /** * Add glass-like border to the window (required to enable resizing) * @var boolean */ border: true, /** * Enable window moving (only work if title is defined) * @var boolean */ draggable: true, /** * Enable window resizing (only work if border is true) * @var boolean */ resizable: true, /** * If true, enable content vertical scrollbar if content is higher than 'height' (or 'maxHeight' if 'height' is undefined) * @var boolean */ scrolling: true, /** * Wether or not to display the close window button * @var boolean */ closeButton: true, /** * Map of bottom buttons, with text as key and function on click as value * Ex: {'Close' : function(win) { win.closeModal(); } } * @var object */ buttons: {}, /** * Alignement of buttons ('left', 'center' or 'right') * @var string */ buttonsAlign: 'right', /** * Function called when opening window * @var function */ onOpen: false, /** * Function called when closing window. It may return false or call event.preventDefault() to prevent closing * @var function */ onClose: false, /** * Minimum content height * @var int */ minHeight: 40, /** * Minimum content width * @var int */ minWidth: 200, /** * Maximum content width, or false for no limit * @var int|boolean */ maxHeight: false, /** * Maximum content height, or false for no limit * @var int|boolean */ maxWidth: false, /** * Initial content height, or false for fluid size * @var int|boolean */ height: false, /** * Initial content width, or false for fluid size * @var int|boolean */ width: 450, /** * If AJAX load only - loading message, or false for none (can be HTML) * @var string|boolean */ loadingMessage: 'Loading...', /** * If AJAX load only - data a map or string that is sent to the server with the request (same as jQuery.load()) * @var string|object */ data: {}, /** * If AJAX load only - a callback function that is executed when the request completes. (same as jQuery.load()) * @var function */ complete: function(responseText, textStatus, XMLHttpRequest) {}, /** * If AJAX load only - true to resize window on loading message and when content is loaded. To define separately, use options below. * @var boolean */ resize: true, /** * If AJAX load only - use true to resize window on loading message * @var boolean */ resizeOnMessage: false, /** * If AJAX load only - use true to resize window when content is loaded * @var boolean */ resizeOnLoad: false }; /** * Return the modal windows root div */ function getModalDiv() { var modal = $('#modal'); if (modal.length == 0) { $(document.body).append('<div id="modal"></div>'); modal = $('#modal').hide(); } return modal; }; })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/jquery.modal.js
JavaScript
asf20
17,761
/** * Older browsers detection */ (function($) { // Change these values to fit your needs if ( ($.browser.msie && parseFloat($.browser.version) < 7) || // IE 6 and lower ($.browser.mozilla && parseFloat($.browser.version) < 1.9) || // Firefox 2 and lower ($.browser.opera && parseFloat($.browser.version) < 9) || // Opera 8 and lower ($.browser.webkit && parseInt($.browser.version) < 400) // Older Chrome and Safari ) { // If no cookie has been set if (getCookie('forceAccess') !== 'yes') { // If coming back from the old browsers page if (window.location.search.indexOf('forceAccess=yes') > -1) { // Mark for future tests setCookie('forceAccess', 'yes'); } else { document.location.href = 'old-browsers.html?redirect='+escape(document.location.href); } } } /** * Get cookie params * @return object an object with every params in the cookie */ function getCookieParams() { var parts = document.cookie.split(/; */g); var params = {}; for (var i = 0; i < parts.length; ++i) { var part = parts[i]; if (part) { var equal = part.indexOf('='); if (equal > -1) { var param = part.substr(0, equal); var value = unescape(part.substring(equal+1)); params[param] = value; } } } return params; } /** * Get a cookie value * @param string name the cookie name * @return string the value, or null if not defined */ function getCookie(name) { var params = getCookieParams(); return params[name] || null; } /** * Write a cookie value * @param string name the cookie name * @param string value the value * @param int days number of days for cookie life * @return void */ function setCookie(name, value, days) { var params = getCookieParams(); params[name] = value; if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); params.expires = date.toGMTString(); } var cookie = []; for (var thevar in params) { cookie.push(thevar+'='+escape(params[thevar])); } document.cookie = cookie.join('; '); } })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/old-browsers.js
JavaScript
asf20
2,231
/** * Lists generic controls */ (function($) { // List styles setup $.fn.addTemplateSetup(function() { // Closed elements this.find('.close').toggleBranchOpen().removeClass('close'); // :first-of-type is buggy with jQuery under IE this.find('dl.accordion dt:first-child + dd').siblings('dd').hide(); // Tasks dialog if (!$.browser.msie || $.browser.version > 8) // IE is buggy on this animation { this.find('.task-dialog').parent().hover(function() { $(this).find('.task-dialog > li.auto-hide').expand(); }, function() { $(this).find('.task-dialog > li.auto-hide').fold(); }); } // Arbo elements controls this.find('.arbo .toggle, .collapsible-list li:has(ul) > :first-child, .collapsible-list li:has(ul) > :first-child + span').click(function(event) { // Toggle style $(this).toggleBranchOpen(); // Prevent link action if (this.nodeName.toLowerCase() == 'a') { event.preventDefault(); } }); // Accordions effect this.find('dl.accordion dt').click(function() { $(this).next('dd').slideDown().siblings('dd').slideUp().prev('dt'); // Effect need for rounded corners $(this).addClass('opened').siblings('dt').removeClass('opened'); }); }, true); /** * Open/close branch */ $.fn.toggleBranchOpen = function() { this.each(function() { /* * Tip: if you want to add animation or do anything that should not occur at startup closing, * check if the element has the class 'close': * if (!$(this).hasClass('close')) { // Anything that sould no occur at startup } */ // Change $(this).closest('li').toggleClass('closed'); }); return this; }; })(jQuery);
0a1b2c3d4e5
trunk/leilao/include/js/list.js
JavaScript
asf20
1,789
<?php /** * Addendum PHP Reflection Annotations * http://code.google.com/p/addendum/ * * Copyright (C) 2006-2009 Jan "johno Suchal <johno@jsmf.net> * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA **/ class CompositeMatcher { protected $matchers = array(); private $wasConstructed = false; public function add($matcher) { $this->matchers[] = $matcher; } public function matches($string, &$value) { if(!$this->wasConstructed) { $this->build(); $this->wasConstructed = true; } return $this->match($string, $value); } protected function build() {} } class ParallelMatcher extends CompositeMatcher { protected function match($string, &$value) { $maxLength = false; $result = null; foreach($this->matchers as $matcher) { $length = $matcher->matches($string, $subvalue); if($maxLength === false || $length > $maxLength) { $maxLength = $length; $result = $subvalue; } } $value = $this->process($result); return $maxLength; } protected function process($value) { return $value; } } class SerialMatcher extends CompositeMatcher { protected function match($string, &$value) { $results = array(); $total_length = 0; foreach($this->matchers as $matcher) { if(($length = $matcher->matches($string, $result)) === false) return false; $total_length += $length; $results[] = $result; $string = substr($string, $length); } $value = $this->process($results); return $total_length; } protected function process($results) { return implode('', $results); } } class SimpleSerialMatcher extends SerialMatcher { private $return_part_index; public function __construct($return_part_index = 0) { $this->return_part_index = $return_part_index; } public function process($parts) { return $parts[$this->return_part_index]; } } class RegexMatcher { private $regex; public function __construct($regex) { $this->regex = $regex; } public function matches($string, &$value) { if(preg_match("/^{$this->regex}/", $string, $matches)) { $value = $this->process($matches); return strlen($matches[0]); } $value = false; return false; } protected function process($matches) { return $matches[0]; } } class AnnotationsMatcher { public function matches($string, &$annotations) { $annotations = array(); $annotation_matcher = new AnnotationMatcher; while(true) { if(preg_match('/\s(?=@)/', $string, $matches, PREG_OFFSET_CAPTURE)) { $offset = $matches[0][1] + 1; $string = substr($string, $offset); } else { return; // no more annotations } if(($length = $annotation_matcher->matches($string, $data)) !== false) { $string = substr($string, $length); list($name, $params) = $data; $annotations[$name][] = $params; } } } } class AnnotationMatcher extends SerialMatcher { protected function build() { $this->add(new RegexMatcher('@')); $this->add(new RegexMatcher('[A-Z][a-zA-Z0-9_]*')); $this->add(new AnnotationParametersMatcher); } protected function process($results) { return array($results[1], $results[2]); } } class ConstantMatcher extends RegexMatcher { private $constant; public function __construct($regex, $constant) { parent::__construct($regex); $this->constant = $constant; } protected function process($matches) { return $this->constant; } } class AnnotationParametersMatcher extends ParallelMatcher { protected function build() { $this->add(new ConstantMatcher('', array())); $this->add(new ConstantMatcher('\(\)', array())); $params_matcher = new SimpleSerialMatcher(1); $params_matcher->add(new RegexMatcher('\(\s*')); $params_matcher->add(new AnnotationValuesMatcher); $params_matcher->add(new RegexMatcher('\s*\)')); $this->add($params_matcher); } } class AnnotationValuesMatcher extends ParallelMatcher { protected function build() { $this->add(new AnnotationTopValueMatcher); $this->add(new AnnotationHashMatcher); } } class AnnotationTopValueMatcher extends AnnotationValueMatcher { protected function process($value) { return array('value' => $value); } } class AnnotationValueMatcher extends ParallelMatcher { protected function build() { $this->add(new ConstantMatcher('true', true)); $this->add(new ConstantMatcher('false', false)); $this->add(new ConstantMatcher('TRUE', true)); $this->add(new ConstantMatcher('FALSE', false)); $this->add(new ConstantMatcher('NULL', null)); $this->add(new ConstantMatcher('null', null)); $this->add(new AnnotationStringMatcher); $this->add(new AnnotationNumberMatcher); $this->add(new AnnotationArrayMatcher); $this->add(new AnnotationStaticConstantMatcher); $this->add(new NestedAnnotationMatcher); } } class AnnotationKeyMatcher extends ParallelMatcher { protected function build() { $this->add(new RegexMatcher('[a-zA-Z][a-zA-Z0-9_]*')); $this->add(new AnnotationStringMatcher); $this->add(new AnnotationIntegerMatcher); } } class AnnotationPairMatcher extends SerialMatcher { protected function build() { $this->add(new AnnotationKeyMatcher); $this->add(new RegexMatcher('\s*=\s*')); $this->add(new AnnotationValueMatcher); } protected function process($parts) { return array($parts[0] => $parts[2]); } } class AnnotationHashMatcher extends ParallelMatcher { protected function build() { $this->add(new AnnotationPairMatcher); $this->add(new AnnotationMorePairsMatcher); } } class AnnotationMorePairsMatcher extends SerialMatcher { protected function build() { $this->add(new AnnotationPairMatcher); $this->add(new RegexMatcher('\s*,\s*')); $this->add(new AnnotationHashMatcher); } protected function match($string, &$value) { $result = parent::match($string, $value); return $result; } public function process($parts) { return array_merge($parts[0], $parts[2]); } } class AnnotationArrayMatcher extends ParallelMatcher { protected function build() { $this->add(new ConstantMatcher('{}', array())); $values_matcher = new SimpleSerialMatcher(1); $values_matcher->add(new RegexMatcher('\s*{\s*')); $values_matcher->add(new AnnotationArrayValuesMatcher); $values_matcher->add(new RegexMatcher('\s*}\s*')); $this->add($values_matcher); } } class AnnotationArrayValuesMatcher extends ParallelMatcher { protected function build() { $this->add(new AnnotationArrayValueMatcher); $this->add(new AnnotationMoreValuesMatcher); } } class AnnotationMoreValuesMatcher extends SimpleSerialMatcher { protected function build() { $this->add(new AnnotationArrayValueMatcher); $this->add(new RegexMatcher('\s*,\s*')); $this->add(new AnnotationArrayValuesMatcher); } protected function match($string, &$value) { $result = parent::match($string, $value); return $result; } public function process($parts) { return array_merge($parts[0], $parts[2]); } } class AnnotationArrayValueMatcher extends ParallelMatcher { protected function build() { $this->add(new AnnotationValueInArrayMatcher); $this->add(new AnnotationPairMatcher); } } class AnnotationValueInArrayMatcher extends AnnotationValueMatcher { public function process($value) { return array($value); } } class AnnotationStringMatcher extends ParallelMatcher { protected function build() { $this->add(new AnnotationSingleQuotedStringMatcher); $this->add(new AnnotationDoubleQuotedStringMatcher); } } class AnnotationNumberMatcher extends RegexMatcher { public function __construct() { parent::__construct("-?[0-9]*\.?[0-9]*"); } protected function process($matches) { $isFloat = strpos($matches[0], '.') !== false; return $isFloat ? (float) $matches[0] : (int) $matches[0]; } } class AnnotationIntegerMatcher extends RegexMatcher { public function __construct() { parent::__construct("-?[0-9]*"); } protected function process($matches) { return (int) $matches[0]; } } class AnnotationSingleQuotedStringMatcher extends RegexMatcher { public function __construct() { parent::__construct("'([^']*)'"); } protected function process($matches) { return $matches[1]; } } class AnnotationDoubleQuotedStringMatcher extends RegexMatcher { public function __construct() { parent::__construct('"([^"]*)"'); } protected function process($matches) { return $matches[1]; } } class AnnotationStaticConstantMatcher extends RegexMatcher { public function __construct() { parent::__construct('(\w+::\w+)'); } protected function process($matches) { $name = $matches[1]; if(!defined($name)) { trigger_error("Constant '$name' used in annotation was not defined."); return false; } return constant($name); } } class NestedAnnotationMatcher extends AnnotationMatcher { protected function process($result) { $builder = new AnnotationsBuilder; return $builder->instantiateAnnotation($result[1], $result[2]); } } ?>
0a1b2c3d4e5
trunk/leilao/include/php/addendum/annotations/annotation_parser.php
PHP
asf20
10,169