diff --git a/.gitignore b/.gitignore index 2088429..6c163f4 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,8 @@ package-lock.json .hugo_build.lock #appsettings file -appsettings.json -appsettings.Development.json +src/AIHub/appsettings.json +src/AIHub/appsettings.Development.json # User-specific files *.rsuser diff --git a/src/AIHub/Views/BrandAnalyzer/BrandAnalyzer.cshtml b/src/AIHub/Views/BrandAnalyzer/BrandAnalyzer.cshtml index 6d79cd0..e90e3bb 100644 --- a/src/AIHub/Views/BrandAnalyzer/BrandAnalyzer.cshtml +++ b/src/AIHub/Views/BrandAnalyzer/BrandAnalyzer.cshtml @@ -39,28 +39,4 @@ - \ No newline at end of file diff --git a/src/AIHub/Views/CallCenter/CallCenter.cshtml b/src/AIHub/Views/CallCenter/CallCenter.cshtml index ae504c6..9203913 100644 --- a/src/AIHub/Views/CallCenter/CallCenter.cshtml +++ b/src/AIHub/Views/CallCenter/CallCenter.cshtml @@ -57,15 +57,6 @@ style="width: 100%; resize: none; overflow: auto; height: 100px;">Ola, acabo de ter un accidente de tráfico e quería denuncialo. Ok, espero que esteas ben, que pasou? Ía pola I-18 e choquei contra outro coche. Estás ben? Si, estou un pouco impresionado. Iso é comprensible. Podes darme o teu nome completo? Claro, son Sarah Standl. Sabes o que provocou o accidente? Creo que podería ter un bache. Ben, onde ocorreu o accidente? Na estrada I-18. Alguén máis resultou ferido? Non creo. Pero non estou seguro. Ben, teremos que investigar. Podes darme información sobre os outros condutores? Por suposto, o seu nome é John Radley. E o teu número de seguro. OK. Dame un minuto. Vale, é 546452. Vale, que tipo de danos ten o coche? Os faros están rotos e apagáronse os airbags. Podes conducilo? Non sei. Vou ter que remolcalo. Ben, teremos que inspeccionalo. Seguirei e presentarei a reclamación e solucionarémolo todo. Grazas. - - - - -
@@ -83,30 +74,5 @@
- -
diff --git a/src/AIHub/Views/ContentSafety/ImageModerator.cshtml b/src/AIHub/Views/ContentSafety/ImageModerator.cshtml index c6bd202..ba6229c 100644 --- a/src/AIHub/Views/ContentSafety/ImageModerator.cshtml +++ b/src/AIHub/Views/ContentSafety/ImageModerator.cshtml @@ -72,29 +72,5 @@ - \ No newline at end of file diff --git a/src/AIHub/Views/ContentSafety/TextModerator.cshtml b/src/AIHub/Views/ContentSafety/TextModerator.cshtml index 834e44a..81ff4b9 100644 --- a/src/AIHub/Views/ContentSafety/TextModerator.cshtml +++ b/src/AIHub/Views/ContentSafety/TextModerator.cshtml @@ -58,15 +58,6 @@ style="width: 100%; resize: none; overflow: auto; height: 100px;">Si no me concedéis ese préstamo voy a ir a la oficina y le voy a pegar fuego con vosotros dentro. - - - - -
@@ -77,30 +68,5 @@
- -
\ No newline at end of file diff --git a/src/AIHub/Views/ImageAnalyzer/ImageAnalyzer.cshtml b/src/AIHub/Views/ImageAnalyzer/ImageAnalyzer.cshtml index fa4e0d6..ce7c305 100644 --- a/src/AIHub/Views/ImageAnalyzer/ImageAnalyzer.cshtml +++ b/src/AIHub/Views/ImageAnalyzer/ImageAnalyzer.cshtml @@ -67,28 +67,4 @@ - diff --git a/src/AIHub/wwwroot/js/site.js b/src/AIHub/wwwroot/js/site.js index 7b6f982..8998294 100644 --- a/src/AIHub/wwwroot/js/site.js +++ b/src/AIHub/wwwroot/js/site.js @@ -8,4 +8,31 @@ var dropdownMenu = document.querySelector('.dropdown-menu'); contentSafetyDropdown.addEventListener('click', function () { dropdownMenu.classList.toggle('show'); -}); \ No newline at end of file +}); + +function submitForm() { + // Disable the button + var btn = document.querySelector('button[type="submit"]'); + btn.disabled = true; + + // Show the loading panel + var loadingPanel = document.getElementById('loadingPanel'); + loadingPanel.style.display = 'block'; + + // Submit the form + var form = document.querySelector('form'); + form.submit(); +} +window.onload = function () { + // Enable the button + var btn = document.querySelector('button[type="submit"]'); + btn.disabled = false; + + // Hide the loading panel + var loadingPanel = document.getElementById('loadingPanel'); + loadingPanel.style.display = 'none'; +} + +function copyText(text) { + document.getElementById("text").value = text; +} \ No newline at end of file