jquery convform实现简洁聊天对话框代码
代码语言:html
所属分类:布局界面
代码描述:jquery convform实现简洁聊天对话框代码
代码标签: jquery convform 简洁 聊天 对话 框 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1"> <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/jquery.convform.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css"> <style> *{font-family:'Roboto',sans-serif}html,body{font-size:16px}section#demo{background:#fbfbfb;position:relative;padding:0;min-height:100vh;transition:height 9999s}.vertical-align{position:absolute;top:50%;transform:translateY(-50%);left:0;width:100%}.card{background:#fff;box-shadow:13px 13px 28px 2px rgba(0,0,0,0.035);padding:7px 15px} </style> </head> <body> <section id="demo"> <div class="vertical-align"> <div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-3 col-xs-offset-0"> <div class="card no-border"> <div id="chat" class="conv-form-wrapper"> <form action="" method="GET" class="hidden"><select data-conv-question="Hello! I'm a bot created from a HTML form. Can I show you some features? (this question comes from a select)" name="first-question"><option value="yes">Yes</option><option value="sure">Sure!</option></select> <input type="text" name="name" data-conv-question="Alright! First, tell me your full name, please.|Okay! Please, tell me your name first."><input type="text" data-conv-question="Howdy, {name}:0! It's a pleasure to meet you. (note that this question doesn't expect any answer)" data-no-answer="true"><input type="text" data-conv-question="This plugin supports multi-select too. Let's see an example." data-no-answer="true"><select name="multi[]" data-conv-question="What kind of music do you like?" multiple><option value="Rock">Rock</option><option value="Pop">Pop</option><option value="Country">Country</option><option value="Classic">Classic</option></select> <select name="programmer" data-callback="storeState" data-conv-question="So, are you a programmer? (this question will fork the conversation based on your answer)"> <option value="yes">Yes</option> <option value="no">No</option> </select> <div data-conv-fork="programmer"> <div data-conv-case="yes"><input type="text" data-conv-question="A fellow programmer! Cool." data-no-answer="true"></div> <div data-conv-case="no"><select name="thought" data-conv-question="Have you ever thought about learning? Programming is fun!".........完整代码请登录后点击上方下载按钮下载查看
网友评论0