You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.9 KiB
JavaScript
44 lines
1.9 KiB
JavaScript
//document.writeln("<link href='//data.chinahighlights.com/css/ui.core.css' rel='stylesheet' type='text/css' media='all' />");
|
|
//document.writeln("<link href='//data.chinahighlights.com/css/ui.datepicker.css' rel='stylesheet' type='text/css' media='all' />");
|
|
//document.writeln("<link href='//data.chinahighlights.com/css/ui.theme.css' rel='stylesheet' type='text/css' media='all' />");
|
|
//document.writeln("<link href='//data.chinahighlights.com/css/calendar.css' rel='stylesheet' type='text/css' media='all' />");
|
|
//document.writeln("<script type='text/javascript' src='//data.chinahighlights.com/js/ui.core.js'>/script>");/*wst need this in Hotel*/
|
|
//document.writeln("<script type='text/javascript' src='//data.chinahighlights.com/js/ui.datepicker.js'>/script>");
|
|
|
|
function includeLinkStyle(url) {
|
|
var link = document.createElement("link");
|
|
link.rel = "stylesheet";
|
|
link.type = "text/css";
|
|
link.href = url;
|
|
document.getElementsByTagName("head")[0].appendChild(link);
|
|
}
|
|
|
|
includeLinkStyle("/css/ui.core.css");
|
|
includeLinkStyle("/css/ui.datepicker.css");
|
|
includeLinkStyle("/css/ui.theme.css");
|
|
includeLinkStyle("/css/calendar.css");
|
|
|
|
new_element=document.createElement("script");
|
|
new_element.setAttribute("type","text/javascript");
|
|
new_element.setAttribute("src","/js/ui.core.js");
|
|
document.body.appendChild(new_element);
|
|
new_element=document.createElement("script");
|
|
new_element.setAttribute("type","text/javascript");
|
|
new_element.setAttribute("src","/js/ui.datepicker.js");
|
|
document.body.appendChild(new_element);
|
|
|
|
function initCalendar(o){
|
|
$("#"+o).datepicker({showAnim:"fadeIn",duration:0,minDate: 0, maxDate:"2y",numberOfMonths: 3,
|
|
showButtonPanel: true});
|
|
}
|
|
|
|
function initCalendar2(o){
|
|
$("#"+o).datepicker({showAnim:"fadeIn",duration:0,minDate: 0, maxDate:"2y",numberOfMonths: 2,
|
|
showButtonPanel: true});
|
|
}
|
|
function initCalendarObj(o){
|
|
$(o).datepicker({showAnim:"fadeIn",duration:0,minDate: 0, maxDate:"2y",numberOfMonths: 3,
|
|
showButtonPanel: true});
|
|
}
|
|
|