jquery 实现有个可以文字聊天的智能助理效果代码

代码语言:html

所属分类:其他

代码描述:jquery 实现有个可以文字聊天的智能助理效果代码

代码标签: jquery 聊天 文字 助理

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<html lang="en">

<head>

    <meta charset="UTF-8">


    <link href="https://fonts.googleapis.com/css?family=Lato:400,300,700" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.2.11.js"></script>

    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-ui-1.11.0.min.js"></script>


    <style>
        * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
        }
        #ad{
          font-size:15px;
          position:relative;
          bottom:-500px;
          font-color:#f9f9f9;
        }
        html,
        body {
          height: 100%;
          width: 100%;
          background: #e5e5e5;
          font: 20pt lato;
          font-weight: 200;
          position: absolute;
          top: 4px;
          float: left;
          overflow: hidden;
        }
        
        .wrapper {
          position: absolute;
          top: 50%;
          left: 50%;
          -webkit-transform: translateY(-50%) translateX(-50%);
          transform: translateY(-50%) translateX(-50%);
          display: block;
          height: 80px;
          width: 80px;
        }
        
        .loading-wrapper {
          position: relative;
          height: 100%;
          width: 100%;
        }
        
        .loading-wrapper .loader {
          height: 80px;
          width: 80px;
          border: 3px solid #fff;
          border-radius: 50%;
          -webkit-animation: pulse 1200ms ease-in-out;
          animation: pulse 1200ms ease-in-out;
          -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
        }
        
        .loading-wrapper .loader .inner {
          display: block;
          height: 40px;
          width: 40px;
          position: absolute;
          top: 50%;
          left: 50%;
          -webkit-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
          background: #30bdff;
          -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
          border-radius: 50%;
          -webkit-animation: innerPulse 1200ms ease-in-out;
          animation: innerPulse 1200ms ease-in-out;
          -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
          -webkit-animation-delay: 600ms;
          animation-delay: 600ms;
          box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
        }
        
        @-webkit-keyframes pulse {
          0% {
            border: 3px solid #fff;
          }
          50% {
            border: 40px solid #fff;
          }
          100% {
            border: 3px solid #fff;
          }
        }
        
        @keyframes pulse {
          0% {
            border: 3px solid #fff;
          }
          50% {
            border: 40px solid #fff;
          }
          100% {
            border: 3px solid #fff;
          }
        }
        
        @-webkit-keyframes innerPulse {
          0% {
            height: 40px;
            width: 40px;
          }
          50% {
            height: 53.33333px;
            width: 53.33333px;
          }
          100% {
            height: 40px;
            width: 40px;
          }
        }
        
        @keyframes innerPulse {
          0% {
            height: 40px;
            width: 40px;
          }
          50% {
            height: 53.33333px;
            width: 53.33333px;
          }
          100% {
            height: 40px;
            width: 40px;
          }
        }
        
        .searchbar {
          position: absolute;
          top: 150px;
          width: 100%;
          border: none;
          height: 30px;
        }
        
        #respondbutton {
          border: 1px;
          padding: 3px;
          position: relative;
          left: 0px;
          color: #666666;
          font-weight: 200;
          background-color: white;
        }
        
        #say {
          border: 1px;
          padding: 3px;
          position: relative;
          left: 0px;
          color: #666666;
          width: 150px;
          font-weight: 200;
        }
        
        #response {
          color: #666666;
        }
        
        .avaliablesay {
          width: 50px;
          color: blue;
        }
        
        ) ui-id-1 {
          width: 10px;
          font-size: 6px;
        }
        
        
        /* Layout helpers
        ----------------------------------*/
        
        .ui-helper-hidden {
          display: none;
        }
        
        .ui-helper-hidden-accessible {
          border: 0;
          clip: rect(0 0 0 0);
          height: 1px;
          margin: -1px;
          overflow: hidden;
          padding: 0;
          position: absolute;
          width: 1px;
        }
        
        .ui-helper-reset {
          margin: 0;
          padding: 0;
          border: 0;
          outline: 0;
          line-height: 1.3;
          text-decoration: none;
          font-size: 40px;
          list-style: none;
        }
        
        .ui-helper-clearfix:before,
        .ui-helper-clearfix:after {
          content: "";
          display: table;
          border-collapse: collapse;
        }
        
        .ui-helper-clearfix:after {
          clear: both;
        }
        
        .ui-helper-clearfix {
          min-height: 0;
          /* support: IE7 */
        }
        
        .ui-helper-zfix {
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          position: absolute;
          opacity: 0;
          filter: Alpha(Opacity=0);
          /* support: IE8 */
        }
        
        .ui-front {
          z-index: 100;
        }
        
        
        /* Interaction Cues
        ----------------------------------*/
        
        .ui-state-disabled {
          cursor: default !important;
        }
        
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0