We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc28cea commit 286dbf1Copy full SHA for 286dbf1
max-age.md
@@ -183,6 +183,15 @@ can paste an existing `max-age` value and get its human-friendly equivalent.
183
return parts.length > 0 ? parts.join(' and ') : '0 seconds';
184
}
185
186
+ // Allow folk to hot-link a specific value
187
+ const urlParams = new URLSearchParams(window.location.search);
188
+ const valueParam = urlParams.get('value');
189
+ if (valueParam && !isNaN(valueParam) && Number(valueParam) > 0) {
190
+ const input = document.getElementById('jsInput');
191
+ input.value = valueParam;
192
+ calculateMaxAge();
193
+ }
194
+
195
// Attach the input event listener with debounce
196
document.getElementById('jsInput').addEventListener('input', debounce(calculateMaxAge, 300));
197
</script>
0 commit comments