9 Star 8 Fork 0

独孤影/JobCalendar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
独孤影 提交于 2015-08-18 18:41 . bug fixed
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="sass/jobcalendar.css"/>
</head>
<body>
<div>
<input type="text" class="jobcalendar" id="calendar1"
data-lang="zh-CN" data-has-to-now="false" data-start-year="1990" data-end-year="2015" />
</div>
<input type="text" id="calendar2"
data-lang="en-US" data-has-to-now="true" data-start-year="1990" data-end-year="2015" />
</body>
<script src="ts/jobcalendar.js"></script>
<script>
var input1 = document.getElementById("calendar1");
var input2 = document.getElementById("calendar2");
var calendar = JobCalendar.getInstance();
calendar.updateOption({lang:"zh-CN",hasToNow:true,startYear:1990,endYear:2015, startEnabled:199504, endEnabled:200011});
calendar.addBindingElement(input1,function(){
console.log("here is callback function for calendar1");
input2.setAttribute("data-start-enabled",input1.value);
});
calendar.addBindingElement(input2);
// calendar.removeBindingElement(input2);
</script>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/duguying2008/JobCalendar.git
git@gitee.com:duguying2008/JobCalendar.git
duguying2008
JobCalendar
JobCalendar
master

搜索帮助