Anuko time tracker 填报工具
2015-02-28 12:58
148 查看
自用
填报本月开始和结束日期(如 2号到7号)
填报这区间内的所有工作,每项一行
点击 Enable jQery 标签
点击 AnukoFill 标签即可把任务平均分到每天。提交后页面会自动刷新。
AnukoFill
Clear Today
Clear Today
问题:
任务数目目前不能少于天数
填报本月开始和结束日期(如 2号到7号)
填报这区间内的所有工作,每项一行
点击 Enable jQery 标签
点击 AnukoFill 标签即可把任务平均分到每天。提交后页面会自动刷新。
浏览器 标签或书签的内容
Enable jQueryjavascript:void(function(){if(!document.getElementById('jQscript')){var jQscript=document.createElement('script');jQscript.id='jQscript';jQscript.src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js';document.documentElement.appendChild(jQscript);}}());
AnukoFill
javascript:!function(){var t=window.location.href.substr(0,window.location.href.lastIndexOf("/")),i=$("#activity").val().trim(),r=$("#project").val().trim();if(!i||!r)return void alert("Select product and activity please!");for(var a=$("#start").val().trim(),e=$("#finish").val().trim(),n=$("#note").val().trim().split("\n"),o=parseInt(n.length/(e-a+1)),l="",s=$("a.CalendarLinkRecordsExist").attr("href").substr(6),d=s.trim().substr(6,4),c=s.trim().substr(0,2),v=parseInt(a),m=0;m<n.length;m++)l+=n[m]+" ",(1==o||m>0&&m%o==0||m==n.length-1)&&(console.log("Adding "+(c+"/"+v+"/"+d)+": "+l),$.post(t+"/time.php",{project:r,activity:i,duration:8,note:l,billable:1,date:c+"/"+v+"/"+d,btn_submit:"Submit"}),l="",v++);window.location.reload()}();
Clear Today
javascript:!function(){for(var e=window.location.href.substr(0,window.location.href.lastIndexOf("/")),t=$("a").filter(function(){return"Delete"==$(this).text()}),o=0;o<t.length;o++){var l=$(t[o]).attr("href").substr(19);$.post(e+"/time_delete.php?id="+l,{delete_button:"Delete",id:l}),console.log("Deleted "+l)}location.reload()}();
源代码
AnukoFill(function() { var basePath=window.location.href.substr(0,window.location.href.lastIndexOf('/')); var activity = $('#activity').val().trim(); var project = $('#project').val().trim(); if(!activity || !project){ alert('Select product and activity please!'); return; } var start = $('#start').val().trim(); var end =$('#finish').val().trim(); var allIssueList=$('#note').val().trim().split("\n"); var eachPartLength=parseInt(allIssueList.length/(end-start+1)); var cachedIssue=''; var currentDate=$('a.CalendarLinkRecordsExist').attr('href').substr(6); var year=currentDate.trim().substr(6,4); var month=currentDate.trim().substr(0,2); var iterDay=parseInt(start); for(var i =0;i< allIssueList.length; i++){ cachedIssue+=allIssueList[i]+' '; if(eachPartLength==1 || (i > 0 && i % eachPartLength == 0 ) || i == allIssueList.length - 1) { console.log('Adding ' + (month + "/" + iterDay + "/" + year) +': ' + cachedIssue); $.post( basePath+"/time.php", { project: project, activity:activity, duration:8, note: cachedIssue, billable:1, date: (month + "/" + iterDay + "/" + year), btn_submit:"Submit" } ); cachedIssue=''; iterDay++; } } window.location.reload(); })();
Clear Today
(function() { var basePath=window.location.href.substr(0,window.location.href.lastIndexOf('/')); var btns=$('a').filter(function(index){return $(this).text() == "Delete"}); for(var i=0;i<btns.length;i++){ var deleteId=$(btns[i]).attr('href').substr(19); $.post( basePath+"/time_delete.php?id="+deleteId, { delete_button: 'Delete', id : deleteId} ); console.log('Deleted ' + deleteId) }; location.reload(); })();
问题:
任务数目目前不能少于天数
相关文章推荐
- 【iOS测试系列】instruments工具的使用(二)- 通过Time Profiler
- guava-retrying重试工具库: AttemptTimeLimiter
- 解读ASP.NET TimeTracker Starter Kit(1)——数据库篇
- python中计时工具timeit模块的基本用法 分类: python python基础学习 2013-08-08 10:05 2072人阅读 评论(0) 收藏
- python中计时工具timeit模块的基本用法
- Python 边做边学 8.6 工具类--时间工具(TimeUtil)
- python中计时工具timeit模块的基本用法
- icall快速填报工具
- Xcode里的Instruments工具:Leaks、Allocations、Time Profiler、Automation
- Gleeo Time Tracker简明使用教程
- Matlab工具集介绍(一):ltfat(The Linear Time/Frequency Toolbox)
- python中计时工具timeit模块的基本用法
- python中计时工具timeit模块的基本用法
- 开源时间开发工具Joda-time介绍
- 一个修改文件时间戳的工具TimeStomp
- 性能测量工具类——TimeMeasureUtil & TimeMeasureProxy
- 代码阅读总结之ASP.NET StartKit TimeTracker(自定义集合类排序(Sort())方法随笔)
- 计算运行时间工具timeit
- Smart设计分析工具---- Better results in Less time
- Java日期简化工具Joda-Time