я 0

后端

webapp.html 2.3KB

    <!DOCTYPE> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <script type="text/javascript" src="../internal.js"></script> <style type="text/css"> .wrapper{width: 540px; margin: 10px auto;} #appShow {border: 1px solid #ddd;} .errorMsg{font-size: 13px;margin: 10px;color: #dd0000} </style> </head> <body> <div class="wrapper"> <div id="appShow"></div> </div> <script type="text/javascript"> //此处配置您在百度上申请到的appkey。 var apikey = editor.options.webAppKey; if ( apikey && apikey.length == 24 ) { var searchConfig = { container:'appShow', //容器ID tips:"", //该值用于自动清空 search:1, //是否显示搜索框 ps:12, //每页显示的条数 suggest:1, //是否开启搜索自动完成 limit:0, //搜索结果显示条数,0表示无限制 searchNow:0, //是否在初始化完成时立即搜索 apikey:apikey, //每人得 pager:1, cid:7134562, outputHTML:1 },baiduApp; function clickCallback() { baiduApp.addEventListener( 'getAppHTML', function ( e, data ) { var url = 'http://app.baidu.com/app/enter?appid='+data.data['app_id'] +'&tn=app_canvas&app_spce_id=1&apikey='+apikey+'&api_key=' + apikey; editor.execCommand( "webapp", {url:url,width:data.uniWidth,height:data.uniHeight+60,logo:data.data['app_logo'],title:data.data['app_name']}); dialog.close(); } ); } var script = document.createElement( "script" ); script.type = "text/javascript"; script.src = "http://app.baidu.com/appweb/api/search?auto=yes&container=container&apikey=" + apikey + "&instanceName=baiduApp&callback=clickCallback&config=searchConfig"; document.body.appendChild( script ); } else { $G( "appShow" ).innerHTML = "<p class='errorMsg'>"+lang.tip1+"<a title='"+lang.anthorApi+"' href='http://app.baidu.com/static/cms/getapikey.html' target='_blank'>"+lang.applyFor+"</a></p><p class='errorMsg'>"+lang.tip2+"</p>" ; } </script> </body> </html>
portal-front - Gogs: Go Git Service

portal html css js resource

cmp-setPwd.html 3.3KB

    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>修改密码</title> <link type="text/css" rel="stylesheet" href="css/bootstrap.min.css"> <link type="text/css" rel="stylesheet" href="css/common.css"> <link type="text/css" rel="stylesheet" href="css/cmpindex.css"> <script type="text/javascript" src="js/public/jquery-1.11.1.js"></script> <style type="text/css"> ul.cmpAllUl li .frmtype{height: 40px;} ul.cmpAllUl>li .col-w-2 { line-height: 40px;} .forgetLink{top:10px;right:-80px} </style> </head> <body> <!--头部--> <header> <script type="text/javascript" src="js/public/cmpHeader.js"></script> </header> <!--中间--> <div id="container"> <div class="containerCon con-center"> <div class="workmenu"> <a class="workmenutit accouttit">账户设置</a> <a href="javascript:;" class="worksubmenu cmpBg">密码修改</a> <a href="cmp-setBind.html" class="worksubmenu">账号绑定</a> <a href="cmp-setAuth.html" class="worksubmenu">企业认证</a> </div> <div class="workcon"> <div class="workconitem"> <div class="workcontit">密码修改</div> <div class="worksubcon"> <div class="workblock"> <form name="cmpAllFrm"> <ul class="cmpAllUl" id="cmpAllUl"> <li> <div class="col-w-2">当前密码</div> <div class="col-w-10"> <input type="password" class="frmtype frmtypeW" placeholder="请输入当前使用的登录密码" id="oldPwd"/> <a href="cmp-pwdReset01.html" class="fontLink forgetLink cmpColor">忘记密码?</a> <div class="frmmsg msgPwd1"><span></span></div> </div> </li> <li> <div class="col-w-2">新密码</div> <div class="col-w-10"> <input type="password" class="frmtype frmtypeW" placeholder="请设置您的新密码" id="newPwd"/> <div class="frmmsg msgPwd2"><span></span></div> </div> </li> <li> <div class="col-w-2">确认密码</div> <div class="col-w-10"> <input type="password" class="frmtype frmtypeW" placeholder="请再次输入密码确认" id="newPwdOk"/> <div class="frmmsg msgPwd3"><span></span></div> </div> </li> <li class="alignCenter"> <button type="button" class="frmtype btnModel headRadius save-block" disabled id="newpwdSubmit">保存</button> </li> </ul> </form> </div> </div> </div> </div> </div> </div> <!--底部--> <footer> <script type="text/javascript" src="js/public/cmpFooter.js"></script> </footer> <script type="text/javascript"src="js/public/jquery.cookie.js"></script> <script type="text/javascript" src="js/public/jquery.similar.msgbox.js"></script> <script type="text/javascript" src="js/public/common.js"></script> <script type="text/javascript" src="js/cmp-setPwd.js"></script> </body> </html>