Changeset 67 in code for trunk/example/templates


Ignore:
Timestamp:
Feb 11, 2024, 2:08:18 AM (16 months ago)
Author:
yakumo.izuru
Message:

リファクタリングと再設計

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/example/templates/index.html

    r65 r67  
    1 <!DOCTYPE HTML>
     1<!DOCTYPE HTML PUBLIC "//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    22<html>
    33  <head>
    4     <meta charset="utf-8">
    5     <meta name="author" content="z3bra, Izuru Yakumo">
    6     <meta name="robots" content="noindex,nofollow" >
     4    <link rel="icon" href="/favicon.ico">
     5    <link rel="stylesheet" href="/marisa.css">
     6    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
     7    <meta name="author" content="Izuru Yakumo">
    78    <meta name="viewport" content="width=device-width">
    8     <link rel="stylesheet" type="text/css" href="/marisa_98.css" >
    9     <link rel="icon" href="/marisa.png">
    109    <title>Marisa</title>
    1110  </head>
    1211  <body>
    13     <header>
    14       <img id="logo" src="/marisa.png" >
    15       <h1>marisa</h1>
    16     </header>
    17     <form enctype="multipart/form-data" method="post">
    18       <div id="dropzone"></div>
    19       <div id="fallbackform" class="dropzone">
    20         <input id="filebox" name="file" type="file" multiple>
    21         <input id="output" name="output" type="hidden" value='html' >
    22         <input type="submit" value="Upload">
    23       </div>
    24       <section id="formsettings">
    25         <label for="expiry"> Destroy after </label>
    26         <select id="expiry" name="expiry">
    27           <option value="900"> 15 minutes </option>
    28           <option value="3600"> 1 hour </option>
    29           <option value="28800"> 8 hours </option>
    30           <option value="86400" selected> 1 day </option>
    31           <option value="604800"> 1 week </option>
    32         </select>
    33       </section>
    34     </form>
    35     <p>File size limited to {{.Maxsize}}.</p>
    36     <div id="uploads">{{if .Links}}
    37       <ul>
    38         {{range .Links}}<li><a href="{{.}}">{{.}}</a></li>{{end}}
    39       </ul>
    40       {{end}}</div>
     12    <table border="1" align="center">
     13      <thead>
     14        <img class="logo" src="/marisa.png">
     15        <br>
     16        <h1>Marisa</h1>
     17      </thead>
     18      <tbody>
     19        <form enctype="multipart/form-data" method="POST">
     20          <input class="file" name="file" type="file"><br>
     21          <input name="output" type="hidden" value="html"><br>
     22          <input type="submit"><br>
     23          <label for="expiry">Destroy after</label>
     24          <select name="expiry">
     25            <option value="900">15 minutes</option>
     26            <option value="3600">1 hour</option>
     27            <option value="28800">8 hours</option>
     28            <option value="86400">1 day</option>
     29            <option value="604800">1 week</option>
     30          </select>
     31        </form>
     32        <p>
     33          File size limited to {{.Maxsize}}.
     34        </p>
     35      </tbody>
     36      <tfoot>
     37        {{if .Links}}
     38        <tr>
     39          {{range .Links}}<td><a href="{{.}}">{{.}}</a></td>{{end}}
     40        </tr>
     41        {{end}}
     42        <br><hr>
     43        <p>&copy; 2024 Izuru Yakumo</p>
     44      </tfoot>
     45    </table>
    4146  </body>
    4247</html>
Note: See TracChangeset for help on using the changeset viewer.