File tree Expand file tree Collapse file tree 6 files changed +90
-54
lines changed
Expand file tree Collapse file tree 6 files changed +90
-54
lines changed Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" UTF-8" ?><project-modules id =" moduleCoreId" project-version =" 1.5.0" >
2- <wb-module deploy-name =" TwitterSearch0" >
3- <wb-resource deploy-path =" /" source-path =" /WebContent" tag =" defaultRootSource" />
4- <wb-resource deploy-path =" /WEB-INF/classes" source-path =" /src" />
5- <property name =" java-output-path" value =" /TwitterSearch0/bin" />
6- <property name =" context-root" value =" TwitterSearch0 " />
7- </wb-module >
8- </project-modules >
1+ <?xml version =" 1.0" encoding =" UTF-8" ?><project-modules id =" moduleCoreId" project-version =" 1.5.0" >
2+ <wb-module deploy-name =" TwitterSearch0" >
3+ <wb-resource deploy-path =" /" source-path =" /WebContent" tag =" defaultRootSource" />
4+ <wb-resource deploy-path =" /WEB-INF/classes" source-path =" /src" />
5+ <property name =" java-output-path" value =" /TwitterSearch0/bin" />
6+ <property name =" context-root" value =" elephantsql " />
7+ </wb-module >
8+ </project-modules >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <web-ext
3+ xmlns=" http://websphere.ibm.com/xml/ns/javaee"
4+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
5+ xsi:schemaLocation=" http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
6+ version=" 1.0" >
7+
8+ <reload-interval value =" 3" />
9+ <context-root uri =" elephantsql" />
10+ <enable-directory-browsing value =" false" />
11+ <enable-file-serving value =" true" />
12+ <enable-reloading value =" true" />
13+ <enable-serving-servlets-by-class-name value =" false" />
14+
15+ </web-ext >
Original file line number Diff line number Diff line change 55
66a {
77 color : # 00B7FF ;
8- }
8+ }
9+
10+
11+
12+ .btn-file {
13+ position : relative;
14+ overflow : hidden;
15+ margin-bottom : 10px ;
16+ }
17+ .btn-file input [type = file ] {
18+ position : absolute;
19+ top : 0 ;
20+ right : 0 ;
21+ min-width : 100% ;
22+ min-height : 100% ;
23+ font-size : 100px ;
24+ text-align : right;
25+ filter : alpha (opacity=0);
26+ opacity : 0 ;
27+ background : red;
28+ cursor : inherit;
29+ display : block;
30+ }
31+ input [readonly ] {
32+ background-color : white !important ;
33+ cursor : text !important ;
34+ }
35+
36+ .input-file {
37+ margin-bottom : 0px ;
38+ }
Original file line number Diff line number Diff line change 66<head >
77 <title >Upload</title >
88 <link href =" /css/bootstrap.css" rel =" stylesheet" >
9+ <link href =" /css/style.css" rel =" stylesheet" >
910 <style >
1011 .hero-unit {
1112 margin-top : 60px ;
1213 }
1314 </style >
1415 <script src =" /js/bootstrap.min.js" ></script >
16+ <script src =" /js/jquery-2.0.3.min.js" ></script >
17+ <script src =" /js/scripts.js" ></script >
1518</head >
1619<meta charset =" utf-8" >
1720<body >
1821 <div class =" container" >
1922 <div class =" hero-unit" >
20- <div class =" pull-right" >
21- <a href =" /delete" class =" btn btn-danger" title =" Clear All" >X</a >
22- </div >
2323 <div class =" text-center" >
24- <h1 ><a href =" /" >ElephantSQL Upload</a ></h1 >
24+ <h1 >ElephantSQL Upload Demo</h1 >
25+ <br >
2526 <p >
2627 <form action =" /upload" method =" POST" enctype =" multipart/form-data" >
27- <input type =" file" name =" file" /><br >
28- <input type =" submit" class =" btn" value =" Upload" />
28+ <div class =" input-group" >
29+ <span class =" input-group-btn" >
30+ <span class =" btn btn-file" >
31+ Browse&hellip ; <input type =" file" name =" file" >
32+ </span >
33+ </span >
34+ <input type =" text" class =" form-control input-file" readonly >
35+ </div >
36+ <input type =" submit" class =" btn btn-success" value =" Upload File" />
37+ <a href =" /delete" class =" btn btn-info" title =" Clear All" >Clear DB</a >
2938 </form >
3039 </p >
3140 <% if (request. getAttribute(" msg" ) != null ) { % >
You can’t perform that action at this time.
0 commit comments