File size: 5,662 Bytes
342c773
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Annotater File</title>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.5/font/bootstrap-icons.min.css" rel="stylesheet">
    <link

      rel="stylesheet"

      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"

    />
    <style>

        body {

            background-color: #121212;

            font-family: 'Poppins', sans-serif;

            color: #e0e0e0;

            margin: 0;

            padding: 0;

        }

        h1 {

            color: #ffffff;

            text-align: center;

            margin: 0 0 30px 0;

        }

        .container {

            max-width: 1400px;

            margin: 0 auto;

            padding: 20px;

        }

        .iframe-container {

            background-color: #1e1e1e;

            padding: 20px;

            border-radius: 15px;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);

            position: relative;

        }

        .iframe-container iframe {

            width: 100%;

            height: 675px;

            border: none;

            border-radius: 10px;

        }

        @media (max-width: 992px) {

            .iframe-container iframe {

                height: 500px;

            }

        }

        @media (max-width: 768px) {

            .iframe-container iframe {

                height: 400px;

            }

        }

        .btn-custom {

            color: white;

            border: none;

            padding: 10px 20px;

            border-radius: 5px;

            font-size: 16px;

            cursor: pointer;

            transition: background-color 0.3s ease;

            display: flex;

            align-items: center;

            gap: 8px;

        }

        .btn-next {

            background-color: #4CAF50;

            border: 1px solid #4caf50

        }

        .btn-next:hover {

            background-color: transparent;

            border: 1px solid #4caf50;

        }

        

        .restart-button {

      margin-top: 20px;

      margin-left: 20px;

      display: flex;

    }

        

        .btn-restart:hover {

            background-color: #c9302c;

        }

        .guide {

            background-color: #1e1e1e;

            padding: 20px;

            border-radius: 10px;

            margin-top: 20px;

        }

        

        .guide-button {

        position: fixed;

        top: 20px; 

        right: 20px; 

        z-index: 1000; 

      }



      .guide-button a {

        font-size: 16px;

        color: #17a2b8;

        padding: 5px 10px;

        border-radius: 5px;

        text-decoration: none;

      }



      .guide-button a:hover {

        background-color: #138496b9; 

      }



      .fas.fa-info-circle {

        margin-right: 5px;

      }

    </style>
  </head>
  <body>
    <!-- Guide Button -->
    <div class="guide-button">
      <a href="{{ url_for('guide') }}" class="btn">
        <i class="fas fa-info-circle"></i> Guide
      </a>
    </div>
    <!-- Restart Form -->
    <form action="{{ url_for('remove_files') }}" method="post">
        <input type="hidden" name="folder_type" value="uploads">
        <div class="restart-button">
            <button type="submit" class="btn btn-danger btn-restart">
                <i class="bi bi-arrow-clockwise"></i> Restart
            </button>
        </div>
    </form>

    <div class="container">
        <!-- Main content -->
        <h1>Another File</h1>
        <!-- Progress Bar -->
        <div class="progress">
            <div class="progress-bar" role="progressbar" style="width: 60%;" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100">Step 3 of 5</div>
        </div>
        <div class="iframe-container">
            <iframe src="https://tecoholic.github.io/ner-annotator/" title="NER Annotator"></iframe>
        </div>

        

        {% with messages = get_flashed_messages() %}
        {% if messages %}
        <div class="alert alert-success mt-4" id="flash-message">{{ messages[0] }}</div>
        {% endif %}
        {% endwith %}
           <div class="text-center mt-4">
            <form action="{{ url_for('json_file') }}" method="GET">
                <button type="submit" class="btn btn-custom btn-next">
                    <i class="bi bi-arrow-right"></i> Next
                </button>
            </form>
        </div>
        <div class="guide">
            <h5>Instructions:</h5>
            <ol>
              <li>Load Downloded text file and click on 'Begin!'</li>
              <li>Add new lebel and select text as per lebel and save it</li>
              <li>for Dwonload Annoted json file click on top 'Annotations' > 'Export'</li>
              <li>Click 'Next' for Formatting</li>
            </ol>
          </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
    <script>

        setTimeout(function() {

            let flashMessage = document.getElementById('flash-message');

            if (flashMessage) {

                flashMessage.style.transition = 'opacity 1s ease';

                flashMessage.style.opacity = 0;

                setTimeout(() => flashMessage.remove(), 1000);

            }

        }, 10000000);

    </script>
</body>
</html>