luulinh90s commited on
Commit
9d43e30
Β·
1 Parent(s): 4faaa69
Files changed (1) hide show
  1. templates/index.html +12 -82
templates/index.html CHANGED
@@ -15,22 +15,22 @@
15
  }
16
  .container {
17
  text-align: center;
18
- background-color: #ffffff; /* Solid background color */
19
  padding: 60px;
20
  border-radius: 10px;
21
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
22
  width: 60%;
23
  }
24
  h1 {
25
- color: #000000; /* Black text color */
26
- font-size: 48px; /* Larger text */
27
  margin-bottom: 30px;
28
  }
29
  label {
30
  display: block;
31
  margin: 20px 0 10px;
32
- color: #000000; /* Black text color */
33
- font-size: 24px; /* Larger text */
34
  }
35
  input[type="text"], input[type="number"] {
36
  width: 80%;
@@ -38,48 +38,7 @@
38
  margin-bottom: 20px;
39
  border: 1px solid #ddd;
40
  border-radius: 5px;
41
- font-size: 18px; /* Larger text */
42
- }
43
- .method-buttons {
44
- display: flex;
45
- justify-content: space-between;
46
- margin-bottom: 20px;
47
- gap: 20px; /* Adds space between the buttons */
48
- }
49
-
50
- .method-button {
51
- width: 45%; /* Makes the buttons smaller */
52
- padding: 15px; /* Adjusts padding to make the buttons smaller */
53
- font-size: 20px; /* Reduces the font size */
54
- border-radius: 10px;
55
- cursor: pointer;
56
- transition: background-color 0.3s ease, border 0.3s ease;
57
- border: 2px solid transparent; /* Add border for highlighting */
58
- font-weight: bold;
59
- text-align: center; /* Ensures text is centered */
60
- }
61
-
62
- .method-button.chain-of-table {
63
- background-color: #e0f0ff;
64
- color: #1e90ff; /* Blue text color */
65
- }
66
-
67
- .method-button.plan-of-sqls {
68
- background-color: #ffcc80; /* Orange background color */
69
- color: #e65100; /* Darker orange text color */
70
- }
71
-
72
- .method-button.chain-of-table:hover {
73
- background-color: #d0e8ff;
74
- }
75
-
76
- .method-button.plan-of-sqls:hover {
77
- background-color: #ffb74d; /* Slightly darker orange on hover */
78
- }
79
-
80
- .method-button.selected {
81
- border-color: #000000; /* Highlight the selected method */
82
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
83
  }
84
  button {
85
  background-color: #4CAF50;
@@ -88,7 +47,7 @@
88
  border: none;
89
  border-radius: 5px;
90
  cursor: pointer;
91
- font-size: 24px; /* Larger text */
92
  transition: background-color 0.3s ease;
93
  margin-top: 20px;
94
  }
@@ -96,59 +55,30 @@
96
  background-color: #45a049;
97
  }
98
  </style>
 
99
  <script>
100
- function selectMethod(method) {
101
- document.getElementById('method').value = method;
102
-
103
- // Remove selected class from all method buttons
104
- var buttons = document.getElementsByClassName('method-button');
105
- for (var i = 0; i < buttons.length; i++) {
106
- buttons[i].classList.remove('selected');
107
- }
108
-
109
- // Add selected class to the clicked button
110
- if (method === 'Chain-of-Table') {
111
- document.querySelector('.chain-of-table').classList.add('selected');
112
- } else if (method === 'Plan-of-SQLs') {
113
- document.querySelector('.plan-of-sqls').classList.add('selected');
114
- }
115
- }
116
-
117
  function validateForm() {
118
  var username = document.getElementById('username').value;
119
  var seed = document.getElementById('seed').value;
120
- var method = document.getElementById('method').value;
121
- if (!username || !seed || !method) {
122
- alert("Please fill in all fields and select a method.");
123
  return false;
124
  }
125
  return true;
126
  }
127
  </script>
128
- <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
129
  </head>
130
  <body>
131
  <div class="container">
132
  <h1>Trustworthy LLMs for Table QA</h1>
133
- <form id="method-form" action="/" method="post" onsubmit="return validateForm();">
134
  <label for="username">Hi there πŸ‘‹πŸ‘‹πŸ‘‹ ! What is your name?</label>
135
  <input type="text" id="username" name="username" required>
136
  <label for="seed">What is your lucky number? πŸ€πŸ€πŸ€ </label>
137
  <input type="number" id="seed" name="seed" required>
138
 
139
- <input type="hidden" id="method" name="method" required>
140
-
141
- <div class="method-buttons">
142
- <div class="method-button chain-of-table" onclick="selectMethod('Chain-of-Table')">
143
- Chain-of-Table
144
- </div>
145
- <div class="method-button plan-of-sqls" onclick="selectMethod('Plan-of-SQLs')">
146
- Plan-of-SQLs
147
- </div>
148
- </div>
149
-
150
  <button type="submit">Start Experiment</button>
151
  </form>
152
  </div>
153
  </body>
154
- </html>
 
15
  }
16
  .container {
17
  text-align: center;
18
+ background-color: #ffffff;
19
  padding: 60px;
20
  border-radius: 10px;
21
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
22
  width: 60%;
23
  }
24
  h1 {
25
+ color: #000000;
26
+ font-size: 48px;
27
  margin-bottom: 30px;
28
  }
29
  label {
30
  display: block;
31
  margin: 20px 0 10px;
32
+ color: #000000;
33
+ font-size: 24px;
34
  }
35
  input[type="text"], input[type="number"] {
36
  width: 80%;
 
38
  margin-bottom: 20px;
39
  border: 1px solid #ddd;
40
  border-radius: 5px;
41
+ font-size: 18px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
43
  button {
44
  background-color: #4CAF50;
 
47
  border: none;
48
  border-radius: 5px;
49
  cursor: pointer;
50
+ font-size: 24px;
51
  transition: background-color 0.3s ease;
52
  margin-top: 20px;
53
  }
 
55
  background-color: #45a049;
56
  }
57
  </style>
58
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
59
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  function validateForm() {
61
  var username = document.getElementById('username').value;
62
  var seed = document.getElementById('seed').value;
63
+ if (!username || !seed) {
64
+ alert("Please fill in all fields.");
 
65
  return false;
66
  }
67
  return true;
68
  }
69
  </script>
 
70
  </head>
71
  <body>
72
  <div class="container">
73
  <h1>Trustworthy LLMs for Table QA</h1>
74
+ <form id="start-form" action="/" method="post" onsubmit="return validateForm();">
75
  <label for="username">Hi there πŸ‘‹πŸ‘‹πŸ‘‹ ! What is your name?</label>
76
  <input type="text" id="username" name="username" required>
77
  <label for="seed">What is your lucky number? πŸ€πŸ€πŸ€ </label>
78
  <input type="number" id="seed" name="seed" required>
79
 
 
 
 
 
 
 
 
 
 
 
 
80
  <button type="submit">Start Experiment</button>
81
  </form>
82
  </div>
83
  </body>
84
+ </html>