Last active
May 31, 2019 02:02
-
-
Save neonankiti/7804b50fd0c4811eaf6d89a47795a6d6 to your computer and use it in GitHub Desktop.
record working day for sales force system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var inputTime = (targetYear, targetMonth, targetDay, startTime, endTime) => { | |
console.log(targetYear, targetMonth, targetDay); | |
document.getElementById(`ttvTimeSt${moment([targetYear, targetMonth, targetDay]).format('YYYY-MM-DD')}`).click(); | |
if(startTime != ""){ | |
document.getElementById('startTime').value = startTime; | |
} | |
if(endTime != ""){ | |
document.getElementById('endTime').value = endTime; | |
} | |
document.getElementById("dlgInpTimeOk").click(); | |
} | |
// ============= Input here ===============// | |
var year = 2019; | |
var month = 5; | |
var targetDay = 29; | |
var startTime = "11:00" // HH:mm | |
var endTime = "" // HH:mm | |
// =========================================// | |
inputTime(year, month - 1, targetDay, startTime, endTime); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ほんとにそれで、いいのかなぁ?