+
@@ -166,8 +174,17 @@
fs_value.value = text;
if (!text) {
fs_error.innerText = `Keine ergebnisse gefunden für PcbId: ${pcbid}.`;
+ } else {
+ fetch(`@this.Url.Action("SHA256", "Search")?value=${fs_value.value}`)
+ .then(response => response.text())
+ .then(text => document.getElementById('hash_value').value = text)
+ .catch(x => {
+ loader.style.display = 'none';
+ console.log(x);
+ });
+
+ openModal();
}
- openModal();
})
.catch(x => {
loader.style.display = 'none';
@@ -175,8 +192,8 @@
});
}
- function copyToClipboard() {
- navigator.clipboard.writeText(fs_value.value);
+ function copyToClipboard(inputId) {
+ navigator.clipboard.writeText(document.getElementById(inputId).value);
}