Skip to content

Commit 928dfb7

Browse files
committed
q
1 parent 9fd4f9b commit 928dfb7

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

pages/git/index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,8 @@ <h2>change commit timestamp</h2>
912912
const offsetRange = parent.querySelector(`[name="offset"]`);
913913
const offsetOutput = parent.querySelector(`[name="offset-output"]`);
914914
const offsetButton = parent.querySelector(`[name="offset-button"]`);
915+
916+
const nowButton = parent.querySelector(`[name="now"]`);
915917

916918
var year = (function (target) {
917919
var current = new Date().getFullYear();
@@ -1112,6 +1114,14 @@ <h2>change commit timestamp</h2>
11121114
return d;
11131115
}
11141116

1117+
nowButton.addEventListener("click", function () {
1118+
var d = new Date();
1119+
1120+
setInputsWithDate(d);
1121+
1122+
update(d);
1123+
});
1124+
11151125
offsetButton.addEventListener("click", function () {
11161126
var d = getDateWithOffset();
11171127

@@ -1162,7 +1172,7 @@ <h2>change commit timestamp</h2>
11621172
<table width="100%" id="timestaxxxxmp-table">
11631173
<tbody>
11641174
<tr>
1165-
<td width="50%">
1175+
<td width="40%">
11661176
<textarea class="timestamp">
11671177

11681178
export FILTER_BRANCH_SQUELCH_WARNING=1
@@ -1190,6 +1200,7 @@ <h2>change commit timestamp</h2>
11901200
<select name="minute"></select>
11911201
:
11921202
<select name="seconds"></select>
1203+
<button name="now">now</button>
11931204
</div>
11941205
<div>
11951206
<input type="text" id="hash" value="d06798b8722b52c9643bbd72f3f07bd7598777d4" />

0 commit comments

Comments
 (0)