Showing
2 changed files
with
95 additions
and
13 deletions
| ... | @@ -21,6 +21,53 @@ html, body { | ... | @@ -21,6 +21,53 @@ html, body { |
| 21 | height: 100%; | 21 | height: 100%; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | +input.button { | ||
| 25 | + width: 150px; | ||
| 26 | + height: 80px; | ||
| 27 | + border-radius: 20px; | ||
| 28 | + font-weight: 600; | ||
| 29 | + border-color: transparent; | ||
| 30 | + font-size: 25px; | ||
| 31 | + background: lightgreen; | ||
| 32 | + color: #fff; | ||
| 33 | + cursor: pointer; | ||
| 34 | +} | ||
| 35 | +input.upload { | ||
| 36 | + width: 170px; | ||
| 37 | + height: 20px; | ||
| 38 | + border-radius: 3px; | ||
| 39 | + font-weight: 100; | ||
| 40 | + border-color: transparent; | ||
| 41 | + font-size: 10px; | ||
| 42 | + background: lightgreen; | ||
| 43 | + color: black; | ||
| 44 | + cursor: pointer; | ||
| 45 | +} | ||
| 46 | + | ||
| 47 | +.filebox label { | ||
| 48 | + display: inline-block; | ||
| 49 | + padding: .5em .75em; | ||
| 50 | + color: #999; | ||
| 51 | + font-size: inherit; | ||
| 52 | + line-height: normal; | ||
| 53 | + vertical-align: middle; | ||
| 54 | + background-color: #fdfdfd; | ||
| 55 | + cursor: pointer; | ||
| 56 | + border: 2px solid; | ||
| 57 | + border-radius: .25em; | ||
| 58 | + } | ||
| 59 | +.filebox input[type="file"] | ||
| 60 | + { /* 파일 필드 숨기기 */ | ||
| 61 | + position: absolute; | ||
| 62 | + width: 1px; | ||
| 63 | + height: 1px; | ||
| 64 | + padding: 0; | ||
| 65 | + margin: -1px; | ||
| 66 | + overflow: hidden; | ||
| 67 | + clip:rect(0,0,0,0); | ||
| 68 | + border: 0; | ||
| 69 | +} | ||
| 70 | + | ||
| 24 | 71 | ||
| 25 | 72 | ||
| 26 | 73 | ... | ... |
| ... | @@ -2,6 +2,13 @@ | ... | @@ -2,6 +2,13 @@ |
| 2 | <html lang="en"> | 2 | <html lang="en"> |
| 3 | <head> | 3 | <head> |
| 4 | 4 | ||
| 5 | +<style type = "text/css"> | ||
| 6 | +#wrapper{ | ||
| 7 | + width:221px; | ||
| 8 | + margin : 0 auto; | ||
| 9 | +} | ||
| 10 | +</style> | ||
| 11 | + | ||
| 5 | <meta charset="UTF-8"> | 12 | <meta charset="UTF-8"> |
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=Edge"> | 13 | <meta http-equiv="X-UA-Compatible" content="IE=Edge"> |
| 7 | <meta name="description" content="1"> | 14 | <meta name="description" content="1"> |
| ... | @@ -11,6 +18,7 @@ | ... | @@ -11,6 +18,7 @@ |
| 11 | 18 | ||
| 12 | <title>Age Detection</title> | 19 | <title>Age Detection</title> |
| 13 | 20 | ||
| 21 | +<link rel = "stylesheet" href="http://localhost:8080/assets/css/upload.css"> | ||
| 14 | <link rel="stylesheet" href="http://localhost:8080/assets/css/bootstrap.min.css"> | 22 | <link rel="stylesheet" href="http://localhost:8080/assets/css/bootstrap.min.css"> |
| 15 | <link rel="stylesheet" href="http://localhost:8080/assets/css/animate.css"> | 23 | <link rel="stylesheet" href="http://localhost:8080/assets/css/animate.css"> |
| 16 | <link rel="stylesheet" href="http://localhost:8080/assets/css/magnific-popup.css"> | 24 | <link rel="stylesheet" href="http://localhost:8080/assets/css/magnific-popup.css"> |
| ... | @@ -29,6 +37,7 @@ | ... | @@ -29,6 +37,7 @@ |
| 29 | <body> | 37 | <body> |
| 30 | 38 | ||
| 31 | 39 | ||
| 40 | + | ||
| 32 | <!-- PRE LOADER --> | 41 | <!-- PRE LOADER --> |
| 33 | <div class="preloader"> | 42 | <div class="preloader"> |
| 34 | <div class="spinner"> | 43 | <div class="spinner"> |
| ... | @@ -67,13 +76,29 @@ | ... | @@ -67,13 +76,29 @@ |
| 67 | </div> | 76 | </div> |
| 68 | 77 | ||
| 69 | 78 | ||
| 70 | - | 79 | +<div> |
| 71 | <ul class="actions"> | 80 | <ul class="actions"> |
| 72 | <form action="/uploads" method="post" enctype="multipart/form-data"> | 81 | <form action="/uploads" method="post" enctype="multipart/form-data"> |
| 73 | - <input type="file" name="userfile" class="upload" value="업로드"></input> | ||
| 74 | <input type="submit" value="완료" class= "button"> | 82 | <input type="submit" value="완료" class= "button"> |
| 75 | - <!--<li><a href="#" class="button">More</a></li>--> | 83 | + </form> |
| 84 | +<br> | ||
| 76 | </ul> | 85 | </ul> |
| 86 | +</div> | ||
| 87 | + <div id="wrapper"> | ||
| 88 | + <div class = "filebox"> | ||
| 89 | + <br> | ||
| 90 | + <br> | ||
| 91 | + <br> | ||
| 92 | + <ul class="actions"> | ||
| 93 | + <form action="/uploads" method="post" enctype="multipart/form-data"> | ||
| 94 | + <label for="userfile">업로드</label> | ||
| 95 | + <input type="file" id="userfile" class="upload" value="업로드"></input> | ||
| 96 | + </form> | ||
| 97 | + </ul> | ||
| 98 | + </div> | ||
| 99 | + </div> | ||
| 100 | + | ||
| 101 | + | ||
| 77 | </section> | 102 | </section> |
| 78 | 103 | ||
| 79 | 104 | ||
| ... | @@ -85,19 +110,23 @@ | ... | @@ -85,19 +110,23 @@ |
| 85 | <div class="row"> | 110 | <div class="row"> |
| 86 | 111 | ||
| 87 | <div class="wow fadeInUp col-md-12 col-sm-12" data-wow-delay="0.8s"> | 112 | <div class="wow fadeInUp col-md-12 col-sm-12" data-wow-delay="0.8s"> |
| 88 | - <p class="white-color"> Opensource software programming 2017 Kang Jun Hu </p> | 113 | + <p class="white-color"> Opensource software programming 2018 RETURN</p> |
| 89 | <div class="wow fadeInUp" data-wow-delay="1s"> | 114 | <div class="wow fadeInUp" data-wow-delay="1s"> |
| 90 | <ul class="social-icon"> | 115 | <ul class="social-icon"> |
| 91 | - <li><a href="#" onclick="javascript:window.open('https://www.facebook.com/sharer/sharer.php?u=' +encodeURIComponent(document.URL)+'&t='+encodeURIComponent(document.title), 'facebooksharedialog', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" target="_blank" alt="Share on Facebook" class="fa fa-facebook"></a></li> | 116 | + <a href="#" onclick="javascript:window.open('https://www.facebook.com/sharer/sharer.php?u=' |
| 92 | - <li><a href="#" onclick="javascript:window.open('https://twitter.com/intent/tweet?text=[%EA%B3%B5%EC%9C%A0]%20' | 117 | + +encodeURIComponent(document.URL)+'&t='+encodeURIComponent(document.title), 'facebooksharedialog', |
| 118 | + 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" target="_blank" | ||
| 119 | + alt="Share on Facebook"><img src="http://ojsfile.ohmynews.com/PHT_IMG_FILE/2018/0930/IE002399659_PHT.jpg" width="45px" height="45px"></a> | ||
| 120 | + <!--스페이스바 두 개 ^^7--> | ||
| 121 | + <a href="#" onclick="javascript:window.open('https://twitter.com/intent/tweet?text=[%EA%B3%B5%EC%9C%A0]%20' | ||
| 93 | +encodeURIComponent(document.URL)+'%20-%20'+encodeURIComponent(document.title), 'twittersharedialog', | 122 | +encodeURIComponent(document.URL)+'%20-%20'+encodeURIComponent(document.title), 'twittersharedialog', |
| 94 | - 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" target="_blank" alt="Share on Twitter" class="fa fa-twitter"></a></li> | 123 | + 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;" target="_blank" alt="Share on Twitter"> |
| 95 | - <li><a href="#" class="fa fa-instagram"></a></li> | 124 | + <img src="https://upload.wikimedia.org/wikipedia/ko/thumb/9/9e/%ED%8A%B8%EC%9C%84%ED%84%B0_%EB%A1%9C%EA%B3%A0_%282012%29.svg/1200px-%ED%8A%B8%EC%9C%84%ED%84%B0_%EB%A1%9C%EA%B3%A0_%282012%29.svg.png" width="45px" height="45px"></a> |
| 96 | - <li><a href="#" class="fa fa-behance"></a></li> | 125 | + <!--스페이스바 두 개 ^^7--> |
| 97 | - <li><a href="#" class="fa fa-github"></a></li> | 126 | + <a href="#" onclick="javascript:window.open('https://plus.google.com/share?url=' |
| 98 | - <br> | 127 | + +encodeURIComponent(document.URL), 'googleplussharedialog','menubar=no,toolbar=no,resizable=yes, scrollbars=yes,height=300,width=600');return false;" |
| 99 | - <!-- 공유 버튼을(를) 표시하고 싶은 위치에 이 태그를 배치하세요. --> | 128 | + target="_blank" alt="Share on Google+"><img src="https://upload.wikimedia.org/wikipedia/commons/f/fb/Logo_google%2B_2015.png" width="45px" height="45px"></a> |
| 100 | - <div align="center" class="g-plus" data-action="share" data-height="35" data-href="http://localhost:8080/home"></div> | 129 | + |
| 101 | </ul> | 130 | </ul> |
| 102 | </div> | 131 | </div> |
| 103 | </div> | 132 | </div> |
| ... | @@ -114,6 +143,12 @@ | ... | @@ -114,6 +143,12 @@ |
| 114 | <script src="http://localhost:8080/assets/js/wow.min.js"></script> | 143 | <script src="http://localhost:8080/assets/js/wow.min.js"></script> |
| 115 | <script src="http://localhost:8080/assets/js/custom.js"></script> | 144 | <script src="http://localhost:8080/assets/js/custom.js"></script> |
| 116 | 145 | ||
| 146 | +<script> | ||
| 147 | +document.getElementById('userfile').onchange = function(){ | ||
| 148 | + alert(this.value+' Upload Ok!'); | ||
| 149 | +} | ||
| 150 | +</script> | ||
| 151 | + | ||
| 117 | </body> | 152 | </body> |
| 118 | 153 | ||
| 119 | </script> | 154 | </script> | ... | ... |
-
Please register or login to post a comment