putting back some javascript
This commit is contained in:
@ -138,7 +138,8 @@ function getCustomPasswordFromAPI($passType, $payload){
|
|||||||
|
|
||||||
// Get HTTP status code to confirm the request succeeded
|
// Get HTTP status code to confirm the request succeeded
|
||||||
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||||
curl_close($ch);
|
// Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in /var/www/html/index.php on line 141
|
||||||
|
// curl_close($ch);
|
||||||
|
|
||||||
if ($httpCode !== 200) {
|
if ($httpCode !== 200) {
|
||||||
// Non-200 responses are treated as errors
|
// Non-200 responses are treated as errors
|
||||||
@ -459,6 +460,14 @@ if (elX && elY) {
|
|||||||
elY.onchange = limit;
|
elY.onchange = limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// helper to sync range to number input (already done in form via oninput)
|
||||||
|
// but keep for safety
|
||||||
|
function updateTextInput1(val) { document.getElementById('wMin').value = val; }
|
||||||
|
function updateTextInput2(val) { document.getElementById('wMax').value = val; }
|
||||||
|
function updateTextInput3(val) { document.getElementById('wCount').value = val; }
|
||||||
|
function updateTextInput4(val) { document.getElementById('sChar').value = val; }
|
||||||
|
function updateTextInput5(val) { document.getElementById('numLen').value = val; }
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user