UI - Add https:// to URL on quickwatch form if not present
Build and push containers / metadata (push) Has been cancelled
Build and push containers / build-push-containers (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled

This commit is contained in:
dgtlmoon
2025-12-29 14:52:03 +01:00
parent 6f66c39628
commit fefaf40514
@@ -1,4 +1,21 @@
$(function () {
function normalizeUrl(el) {
const val = el.value.trim();
if (val && !/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(val)) {
el.value = 'https://' + val;
}
}
$('#url').on('blur keydown', function (e) {
if (e.type === 'blur' || e.key === 'Enter') {
normalizeUrl(this);
}
});
$('form').on('submit', function () {
normalizeUrl($('#url')[0]);
});
// Remove unviewed status when normally clicked
$('.diff-link').click(function () {
$(this).closest('.unviewed').removeClass('unviewed');