I have written some html codes that displays the output (please note colors generated are from my coding software and th
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
I have written some html codes that displays the output (please note colors generated are from my coding software and th
These are the HTML codes I used: 2 3 4 56789 10 11 12 NN 13 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 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta ht-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title <style> nav ( } nav a { overflow: hidden; } background-color: #333; .order { } float: left; color: #f2f2f2; </title> text-align: center; padding: 14px 16px; text-decoration: none; font-size: 20px; .order h3 { margin-left: 25px; margin-right: 25px; background-color: #7E8993; table ( color: white; padding: 5px; text-align: center; td, th ( margin-left: auto; margin-right: auto; th { text-align: left; padding: 10px 70px; color: #4b4c4e;
50 51 SSSSSSSS 6 6 6 6 52 53 54 5678c 55 56 57 58 59 60 61 62 63 64 65 66 67 68 COO 69 70 71 72 73 74 75 76 77 78 79 80 81 898 82 83 3456789 85 86 88 89 90 91 92 2345 93 94 95 96 97 98 679 .animated-progress ( width: 150px; height: 10px; border-radius: 30px; margin: 10px 0px; border: 1px solid rgb(0, 115, 255); overflow: hidden; position: relative; .animated-progress span { height: 100%; display: block; width: 0; color: rgb(255, 251, 251); position: absolute; text-align: end; padding-right: 5px; .progress-blue span { } background-color: rgb(0, 115, 255); .shipped { background-color: #9ACD32; color: white; border-radius: 5px; padding: 5px; border: none; .processing { background-color: #FF4500; color: white; border-radius: 5px; padding: 5px; border: none; .pending { background-color: rgb(0, 191, 255); color: white; border-radius: 5px; padding: 5px; border: none; </style>
99 100 101 102 8 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 -0-0-0- 40 -0-0 -0 -0-0 </head> <body> II 400 -0 <nav> <a href="#">Data</a> </nav> <div class="order"> <h3>Orders</h3> </div> <div class="tab"> <table> <tr> <th>Id</th> <th>Date</th> <th>Customer</th> <th>Country</th> <th>Progress</th> <th>Status</th> </tr> <tr> <td>123</td> <td>Sep 12, 20x/td> <td <td> <td> </tr> <tr> x/td> <div class="animated-progress progress-blue"> </div> </tr> <tr> <span data-progress="100"></span> </td> <td><button class="shipped">Shipped</button></td> td> <td>144</td> <td>Sep 20, 20</td> /td> <td> <td <td> </td> <div class="animated-progress progress-blue"> <span data-progress="100"></span> </div> </td> <td><button class="shipped">Shipped</button></td> <td>14</td> <td>Oct 3, 2017</td> </td> <td>com <td> <td> </td>
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 182 183 184 185 186 따 L 40 -00 U 니다 -0-0 | -0-0-0- 187 188 189 190 191 </body> 192 193 L</html> </tr> <tr> </td> <td><button class="processing">Processing</button></td> </tr> <tr> <td>162</td> <td>Oct 8, 20</td> <td <td> <td> </table> <div class="animated-progress progress-blue"> </div> </tr> }); </script> <span data-progress="60"></span> </div> <script src=" <script> <div class="animated-progress progress-blue"> </div> </td> <td><button class="pending">Pending</button></td> ></td> </td> <span data-progress="30"></span> <td>177</td> <td>Oct 10 20k/td> <td> </td> <td <td> </div> <div class="animated-progress progress-blue"> </td> </td> <td><button class="pending">Pending</button></td> }, 1000 <span data-progress="30"></span> integrity="sha256-/xUj+30JU5yExlq6GSYGSHk7tPXikyns7ogEvDej/m4=" crossorigin="anonymous"></script> //code.iquery /jquery-3.6.0.min.js" $(".animated-progress span") .each(function () { $(this) .animate({ width: $(this) .attr("data-progress") + ""
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 <html> -0-0- <head> <style> .window ( </head> } <body> .head ( } } border: 1px solid black; .form { } background-color: rgb(46, 42, 60); color: white; padding: 10px button ( } </style> padding-left: 70px; padding-top: 10px; height: 44px; width: 105px; 227 228 229 230 231 232 233 8 <div class="window"> 234 235 236 237 238 239 240 241 242 background-color: blueviolet; color: white; border: none; button:hover{ background-color: black; <!--The whole window div--> <!--heading div for revise--> <div class="head">Revise</div> <!--form div--> <div class="form"> <form action=""> <b>Customer</b><br> <input type="text" placeholder="Enter name"><br><br> <b>Country</b><br>
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 0 ▬▬▬▬▬ </div> </body> L</html> </div> <select name="list" id="country"> <option value="" disabled selected>Choose a country</option> <!--Choose a country cannot be selected--> <option value="Eng" </option> <option value="Fre"x </option> </option> <option value="Ger" </select><br><br> <b>Status</b><br> <input type="radio" id="pending" name="status" value=""> <label for="pedning">Pending</label> <input type="radio" id="processing" name="status" value=""> <label for="processing">processing</label> <input type="radio" id="shipped" name="status" value=""> <label for="shipped">Shipped</label><br><br> <b>Order Date</b><br> <input type="date" id="orderDate" name="Date"><br><br> <div class="btn_grp"> </form> <button type="submit">Submit</button> <button type="reset">Clear form</button> <!--type reset to clear the form--> </div> I need help in improving the section that has Customer, Country, Status data. These are the requirements: • Add an event listener to make sure that all the data are entered when click the Submit button. • Show the message if there is no data • Screen shots below to show some examples of the end results
Data Id Revise Date Sep 12, 201 Sep 20, 201 Oct 3, 20 Oct 8, 20 Oct 10, 200 Customer Enter name Country Choose a country This page says Please enter a name Customer Hol Status OPending Processing Shipped Submit Clear Form Country Progress Ок Status Shipped Shipped Processing Pending Pending
Data Id 10 1. Revise Date Sep 12, 200 Sep 20, 200 Oct 3, 20 Oct 8, 20 This page says Please choose a country Oct 10, 20 Customer Enter name Country Choose a country Submit Customer Status OPending Processing Shipped Clear Form AQ Country Progress IN Status Shipped Shipped Processing Pending Pending
Data Id 10 Revise Date Sep 12, 20 Sep 20, 20 Oct 3, 2 Oct 8, Oct 10, Customer Enter name This page says Please choose a status Country Choose a country Customer Status OPending Processing Shipped Submit Clear Form OK Country Progress Status Shipped Shipped Processing Pending Pending