From a6ee4a5bf8e6f2b1f4629f8cf7a86fae4d45842d Mon Sep 17 00:00:00 2001
From: dre0059 <eliska.dreveniakova@vsb.cz>
Date: Fri, 7 Mar 2025 16:38:29 +0100
Subject: [PATCH] Oprava - upload.html pomocou local history

---
 src/main/resources/templates/upload.html | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/main/resources/templates/upload.html b/src/main/resources/templates/upload.html
index 3391d1b..72e02b2 100644
--- a/src/main/resources/templates/upload.html
+++ b/src/main/resources/templates/upload.html
@@ -19,12 +19,6 @@
         <h1>Upload your PDF</h1>
 
         <!-- formular na nahravanie PDF -->
-<<<<<<< HEAD
-
-        <form action="/api/grobid/upload" method="post" id = "uploadForm" enctype = "multipart/form-data">
-            <label for="fileInput">Choose PDF file:</label>
-            <input type = "file" id = "fileInput" name = "file" accept="application/pdf">
-=======
         <form action="/api/grobid/upload" method="post" id = "uploadForm" enctype = "multipart/form-data">
             <label for="fileInput">Choose PDF file:</label>
             <input type = "file" id = "fileInput" name = "file" accept="application/pdf">
@@ -36,7 +30,6 @@
                 <option value="1.6 Biological sciences">1.6 Biological sciences</option>
             </select>
 
->>>>>>> 9e1c76c (Categories of PDF initialized)
             <button type = "submit">Upload & Process the PDF</button>
         </form>
 
@@ -51,11 +44,8 @@
             <pre id = "json-output"></pre>
         </div>
 
-<<<<<<< HEAD
-=======
         <!--<a href="/api/document/22">click here</a> -->
 
->>>>>>> 9e1c76c (Categories of PDF initialized)
         <!-- .js na zobrazenie PDF -->
         <script>
             document.getElementById('fileInput').addEventListener('change', function(event){
@@ -73,10 +63,7 @@
             $('#uploadForm').submit(function(event) {
                 event.preventDefault();
                 const fileInput = $('#fileInput')[0].files[0];
-<<<<<<< HEAD
-=======
                 const category = $('#category').val(); // ZĂ­skanie vybranej kategĂłrie
->>>>>>> 9e1c76c (Categories of PDF initialized)
 
                 if(!fileInput){
                     alert("Please select a PDF file first.");
@@ -85,10 +72,7 @@
 
                 const formData = new FormData();
                 formData.append("file", fileInput);
-<<<<<<< HEAD
-=======
                 formData.append("category", category); // Posielame aj kategĂłriu
->>>>>>> 9e1c76c (Categories of PDF initialized)
 
                 $.ajax({
                     url: "/api/grobid/upload",
-- 
GitLab