You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
< html lang = "zh-CN" >
< head >
< meta charset = "UTF-8" >
< title > WebUploader演示< / title >
< link rel = "stylesheet" type = "text/css" href = "../js/webuploader.css" / >
< link rel = "stylesheet" type = "text/css" href = "./style.css" / >
< style >
h1 { margin-top : 20 px ; text-align : center ; }
h1 a { font-size : 2 rem ; color : #c00 ; text-decoration : none }
textarea {
border : 3 px dashed #e6e6e6 ;
font-size : 14 px ;
margin : 20 px ;
background-color : #FFF ;
width : calc ( 100 % - 66 px ) ;
min-height : 150 px ;
padding : 10 px ;
}
< / style >
< / head >
< body >
< div id = "wrapper" >
< div id = "container" >
< form class = "queueList" action = "../server/a.php" method = "post" name = "abc" id = "abc" >
< input type = "hidden" value = "" name = "myimages" id = "myimages" >
< textarea name = "mycontent" id = "mycontent" placeholder = "请输入描述文字" > < / textarea >
< / form >
<!-- 头部,相册选择和格式选择 -->
< div id = "uploader" >
< div class = "queueList" >
< div id = "dndArea" class = "placeholder" >
< div id = "filePicker" > < / div >
< p > 或将照片拖到这里, 单次最多可选3张< / p >
< / div >
< / div >
< div class = "statusBar" style = "display:none;" >
< div class = "progress" >
< span class = "text" > 0%< / span >
< span class = "percentage" > < / span >
< / div > < div class = "info" > < / div >
< div class = "btns" >
< div id = "filePicker2" > < / div >
< div class = "uploadBtn" > 开始上传< / div >
< / div >
< / div >
< / div >
< / div >
< h1 > < a href = "javascript:;" id = "btn-submit" > 提交表单< / a > < / h1 >
< / div >
< script type = "text/javascript" src = "./jquery.js" > < / script >
< script type = "text/javascript" src = "../js/webuploader.min.js" > < / script >
< script type = "text/javascript" src = "./upload.js" > < / script >
< script >
$ ( function ( ) {
$ ( "#btn-submit" ) . click ( function ( ) {
var _txt = $ ( '#mycontent' ) . val ( ) ;
var _imgval = $ ( '#myimages' ) . val ( ) ;
if ( _txt != '' && _imgval != '' ) {
$ ( 'form#abc' ) . submit ( ) ;
} else {
alert ( '图片或文字不能为空' ) ;
}
} ) ;
} ) ;
< / script >
< / body >
< / html >