You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

684 lines
48 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeepSeek Chat</title>
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/common.css?v={$smarty.const.CSS_JS_VERSION}">
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/main.css?v={$smarty.const.CSS_JS_VERSION}">
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/deepSeek.css?v={$smarty.const.CSS_JS_VERSION}1">
<link rel="stylesheet" href="{$smarty.const.CSS_URL}/css/default.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<script src="{$smarty.const.CSS_URL}/js/jquery-3.6.0.min.js" type="text/javascript"></script>
<script src="{$smarty.const.CSS_URL}/js/marked.min.js"></script>
<!-- 可选样式 -->
<script src="{$smarty.const.CSS_URL}/js/highlight.min.js"></script>
</head>
<body>
<div class="deepSeek-wrap">
{include file="include/header.html"}
<div class="cb86951c">
<!-- 左侧边栏 -->
<div class="sidebar b8812f16" id="sidebar">
<div class="sidebar-header">
<div class="sidebar-title _6969ec9">
<!-- <img src="{$smarty.const.CSS_URL}/images/deepLogo.svg" alt=""> -->
<div class="e066abb8"><svg viewBox="-2 0 175 32" fill="none" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<path id="path"
d="M75.32 25.23L72.83 25.23L72.83 21.37L75.32 21.37C76.86 21.37 78.42 20.99 79.43 19.92C80.44 18.85 80.81 17.2 80.81 15.57C80.81 13.94 80.44 12.3 79.43 11.23C78.42 10.16 76.86 9.78 75.32 9.78C73.77 9.78 72.22 10.16 71.21 11.23C70.19 12.3 69.83 13.94 69.83 15.57L69.83 31.44L65.46 31.44L65.46 5.92L69.83 5.92L69.83 7.54L70.63 7.54C70.71 7.45 70.8 7.36 70.9 7.27C71.99 6.27 73.66 5.92 75.32 5.92C77.89 5.92 80.48 6.56 82.17 8.34C83.85 10.12 84.46 12.86 84.46 15.58C84.46 18.29 83.85 21.03 82.17 22.81C80.48 24.6 77.89 25.23 75.32 25.23Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
<path id="path"
d="M8.79 6.59L11.28 6.59L11.28 10.45L8.79 10.45C7.25 10.45 5.69 10.83 4.68 11.91C3.67 12.98 3.3 14.62 3.3 16.25C3.3 17.88 3.67 19.52 4.68 20.59C5.69 21.66 7.25 22.05 8.79 22.05C10.34 22.05 11.89 21.66 12.9 20.59C13.92 19.52 14.28 17.88 14.28 16.25L14.28 0.39L18.65 0.39L18.65 25.91L14.28 25.91L14.28 24.28L13.48 24.28C13.4 24.38 13.31 24.47 13.21 24.55C12.12 25.55 10.45 25.91 8.79 25.91C6.22 25.91 3.63 25.27 1.94 23.48C0.26 21.7 -0.35 18.97 -0.35 16.25C-0.35 13.53 0.26 10.8 1.94 9.01C3.63 7.23 6.22 6.59 8.79 6.59Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
<path id="path"
d="M40.59 15.91L40.59 17.46L28.95 17.46L28.95 14.36L36.67 14.36C36.49 13.23 36.08 12.18 35.36 11.42C34.3 10.31 32.69 9.91 31.08 9.91C29.48 9.91 27.86 10.31 26.81 11.42C25.76 12.52 25.38 14.22 25.38 15.91C25.38 17.6 25.76 19.3 26.81 20.41C27.86 21.52 29.48 21.91 31.08 21.91C32.69 21.91 34.3 21.52 35.36 20.41C35.5 20.25 35.64 20.08 35.76 19.9L40.08 19.9C39.71 21.24 39.1 22.45 38.2 23.4C36.44 25.25 33.75 25.91 31.08 25.91C28.41 25.91 25.72 25.25 23.97 23.4C22.21 21.55 21.58 18.72 21.58 15.91C21.58 13.1 22.21 10.27 23.97 8.42C25.72 6.58 28.41 5.92 31.08 5.92C33.75 5.92 36.44 6.58 38.2 8.42C39.96 10.27 40.59 13.1 40.59 15.91Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
<path id="path"
d="M62.52 15.91L62.52 17.46L50.88 17.46L50.88 14.36L58.61 14.36C58.43 13.23 58.02 12.18 57.29 11.42C56.24 10.31 54.63 9.91 53.02 9.91C51.42 9.91 49.8 10.31 48.75 11.42C47.7 12.52 47.32 14.22 47.32 15.91C47.32 17.6 47.7 19.3 48.75 20.41C49.8 21.52 51.42 21.91 53.02 21.91C54.63 21.91 56.24 21.52 57.29 20.41C57.44 20.25 57.58 20.08 57.7 19.9L62.02 19.9C61.64 21.24 61.04 22.45 60.14 23.4C58.38 25.25 55.69 25.91 53.02 25.91C50.35 25.91 47.66 25.25 45.9 23.4C44.15 21.55 43.52 18.72 43.52 15.91C43.52 13.1 44.15 10.27 45.9 8.42C47.66 6.58 50.35 5.92 53.02 5.92C55.69 5.92 58.38 6.58 60.14 8.42C61.89 10.27 62.52 13.1 62.52 15.91Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
<path id="path"
d="M96.9 25.91C99.57 25.91 102.26 25.52 104.01 24.43C105.77 23.34 106.4 21.67 106.4 20.01C106.4 18.35 105.77 16.68 104.01 15.59C102.26 14.5 99.57 14.11 96.9 14.11L96.99 14.11C95.85 14.11 94.7 13.96 93.96 13.53C93.21 13.11 92.94 12.46 92.94 11.82C92.94 11.17 93.21 10.53 93.96 10.1C94.7 9.68 95.85 9.53 96.99 9.53C98.13 9.53 99.28 9.68 100.03 10.1C100.78 10.53 101.04 11.17 101.04 11.82L105.49 11.82C105.49 10.16 104.92 8.49 103.34 7.4C101.75 6.31 99.32 5.92 96.9 5.92C94.48 5.92 92.05 6.31 90.46 7.4C88.87 8.49 88.3 10.16 88.3 11.82C88.3 13.48 88.87 15.15 90.46 16.24C92.05 17.33 94.48 17.72 96.9 17.72C98.16 17.72 99.53 17.87 100.36 18.29C101.19 18.71 101.48 19.36 101.48 20.01C101.48 20.65 101.19 21.3 100.36 21.72C99.53 22.14 98.26 22.3 97 22.3C95.74 22.3 94.47 22.14 93.65 21.72C92.82 21.3 92.52 20.65 92.52 20.01L87.4 20.01C87.4 21.67 88.03 23.34 89.78 24.43C91.54 25.52 94.22 25.91 96.9 25.91Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
<path id="path"
d="M128.33 15.91L128.33 17.46L116.69 17.46L116.69 14.36L124.42 14.36C124.24 13.23 123.83 12.18 123.1 11.42C122.05 10.31 120.44 9.91 118.83 9.91C117.23 9.91 115.61 10.31 114.56 11.42C113.51 12.52 113.13 14.22 113.13 15.91C113.13 17.6 113.51 19.3 114.56 20.41C115.61 21.52 117.23 21.91 118.83 21.91C120.44 21.91 122.05 21.52 123.1 20.41C123.25 20.25 123.39 20.08 123.51 19.9L127.83 19.9C127.45 21.24 126.85 22.45 125.95 23.4C124.19 25.25 121.5 25.91 118.83 25.91C116.16 25.91 113.47 25.25 111.71 23.4C109.96 21.55 109.33 18.72 109.33 15.91C109.33 13.1 109.96 10.27 111.71 8.42C113.47 6.58 116.16 5.92 118.83 5.92C121.5 5.92 124.19 6.58 125.95 8.42C127.7 10.27 128.33 13.1 128.33 15.91Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
<path id="path"
d="M150.27 15.91L150.27 17.46L138.63 17.46L138.63 14.36L146.36 14.36C146.17 13.23 145.77 12.18 145.04 11.42C143.99 10.31 142.37 9.91 140.77 9.91C139.17 9.91 137.55 10.31 136.5 11.42C135.44 12.52 135.07 14.22 135.07 15.91C135.07 17.6 135.44 19.3 136.5 20.41C137.55 21.52 139.17 21.91 140.77 21.91C142.37 21.91 143.99 21.52 145.04 20.41C145.19 20.25 145.32 20.08 145.45 19.9L149.77 19.9C149.39 21.24 148.79 22.45 147.88 23.4C146.13 25.25 143.44 25.91 140.77 25.91C138.1 25.91 135.4 25.25 133.65 23.4C131.9 21.55 131.27 18.72 131.27 15.91C131.27 13.1 131.9 10.27 133.65 8.42C135.4 6.58 138.1 5.92 140.77 5.92C143.44 5.92 146.13 6.58 147.88 8.42C149.64 10.27 150.27 13.1 150.27 15.91Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
<rect id="rect" x="153.211426" y="-0.499512" width="4.371000" height="26.415646"
fill="currentColor" fill-opacity="1.000000"></rect>
<path id="polygon"
d="M165.04 15.31L172.21 25.91L166.79 25.91L159.62 15.31L166.79 6.81L172.21 6.81L165.04 15.31Z"
fill="currentColor" fill-opacity="1.000000" fill-rule="nonzero"></path>
</svg></div>
<img src="{$smarty.const.CSS_URL}/images/retract.svg" id="toggleSidebar" alt="">
</div>
<div class=" _5a8ac7a ebaea5d2 newChatBtn">
<img class="_1c42ad7" src="{$smarty.const.CSS_URL}/images/addNewBtn.svg" alt="">
<span>开启新对话</span>
</div>
</div>
<div class="expand-silder">
<div class="ds-icon-box" title="打开边栏">
<div class="ds-icon" style="font-size: 44px; width: 44px; height: 44px; cursor: pointer;"><svg
viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="path"
d="M27.501 8.46875C27.249 8.3457 27.1406 8.58008 26.9932 8.69922C26.9434 8.73828 26.9004 8.78906 26.8584 8.83398C26.4902 9.22852 26.0605 9.48633 25.5 9.45508C24.6787 9.41016 23.9785 9.66797 23.3594 10.2969C23.2275 9.52148 22.79 9.05859 22.125 8.76172C21.7764 8.60742 21.4238 8.45312 21.1807 8.11719C21.0098 7.87891 20.9639 7.61328 20.8779 7.35156C20.8242 7.19336 20.7695 7.03125 20.5879 7.00391C20.3906 6.97266 20.3135 7.13867 20.2363 7.27734C19.9258 7.84375 19.8066 8.46875 19.8174 9.10156C19.8447 10.5234 20.4453 11.6562 21.6367 12.4629C21.7725 12.5547 21.8076 12.6484 21.7646 12.7832C21.6836 13.0605 21.5869 13.3301 21.501 13.6074C21.4473 13.7852 21.3662 13.8242 21.1768 13.7461C20.5225 13.4727 19.957 13.0684 19.458 12.5781C18.6104 11.7578 17.8438 10.8516 16.8877 10.1426C16.6631 9.97656 16.4395 9.82227 16.207 9.67578C15.2314 8.72656 16.335 7.94727 16.5898 7.85547C16.8574 7.75977 16.6826 7.42773 15.8193 7.43164C14.957 7.43555 14.167 7.72461 13.1611 8.10938C13.0137 8.16797 12.8594 8.21094 12.7002 8.24414C11.7871 8.07227 10.8389 8.0332 9.84766 8.14453C7.98242 8.35352 6.49219 9.23633 5.39648 10.7441C4.08105 12.5547 3.77148 14.6133 4.15039 16.7617C4.54883 19.0234 5.70215 20.8984 7.47559 22.3633C9.31348 23.8809 11.4307 24.625 13.8457 24.4824C15.3125 24.3984 16.9463 24.2012 18.7881 22.6406C19.2529 22.8711 19.7402 22.9629 20.5498 23.0332C21.1729 23.0918 21.7725 23.002 22.2373 22.9062C22.9648 22.752 22.9141 22.0781 22.6514 21.9531C20.5186 20.959 20.9863 21.3633 20.5605 21.0371C21.6445 19.752 23.2783 18.418 23.917 14.0977C23.9668 13.7539 23.9238 13.5391 23.917 13.2598C23.9131 13.0918 23.9512 13.0254 24.1445 13.0059C24.6787 12.9453 25.1973 12.7988 25.6738 12.5352C27.0557 11.7793 27.6123 10.5391 27.7441 9.05078C27.7637 8.82422 27.7402 8.58789 27.501 8.46875ZM15.46 21.8613C13.3926 20.2344 12.3906 19.6992 11.9766 19.7227C11.5898 19.7441 11.6592 20.1875 11.7441 20.4766C11.833 20.7617 11.9492 20.959 12.1123 21.209C12.2246 21.375 12.3018 21.623 12 21.8066C11.334 22.2207 10.1768 21.668 10.1221 21.6406C8.77539 20.8477 7.64941 19.7988 6.85547 18.3652C6.08984 16.9844 5.64453 15.5039 5.57129 13.9238C5.55176 13.541 5.66406 13.4062 6.04297 13.3379C6.54199 13.2461 7.05762 13.2266 7.55664 13.2988C9.66602 13.6074 11.4619 14.5527 12.9668 16.0469C13.8262 16.9004 14.4766 17.918 15.1465 18.9121C15.8584 19.9688 16.625 20.9746 17.6006 21.7988C17.9443 22.0879 18.2197 22.3086 18.4824 22.4707C17.6895 22.5586 16.3652 22.5781 15.46 21.8613ZM16.4502 15.4805C16.4502 15.3105 16.5859 15.1758 16.7568 15.1758C16.7949 15.1758 16.8301 15.1836 16.8613 15.1953C16.9033 15.2109 16.9424 15.2344 16.9727 15.2695C17.0273 15.3223 17.0586 15.4004 17.0586 15.4805C17.0586 15.6504 16.9229 15.7852 16.7529 15.7852C16.582 15.7852 16.4502 15.6504 16.4502 15.4805ZM19.5273 17.0625C19.3301 17.1426 19.1328 17.2129 18.9434 17.2207C18.6494 17.2344 18.3281 17.1152 18.1533 16.9688C17.8828 16.7422 17.6895 16.6152 17.6074 16.2168C17.5732 16.0469 17.5928 15.7852 17.623 15.6348C17.6934 15.3105 17.6152 15.1035 17.3877 14.9141C17.2012 14.7598 16.9658 14.7188 16.7061 14.7188C16.6094 14.7188 16.5205 14.6758 16.4541 14.6406C16.3457 14.5859 16.2568 14.4512 16.3418 14.2852C16.3691 14.2324 16.501 14.1016 16.5322 14.0781C16.8838 13.877 17.29 13.9434 17.666 14.0938C18.0146 14.2363 18.2773 14.498 18.6562 14.8672C19.0439 15.3145 19.1133 15.4395 19.334 15.7734C19.5078 16.0371 19.667 16.3066 19.7754 16.6152C19.8408 16.8066 19.7559 16.9648 19.5273 17.0625Z"
fill-rule="nonzero" fill="#4D6BFE"></path>
</svg></div>
</div>
<div id="openMenu" title="打开边栏">
<img src="{$smarty.const.CSS_URL}/images/expand.svg" alt="">
</div>
<div class="newChatBtn" title="开启新对话">
<img src="{$smarty.const.CSS_URL}/images/addNewBtn.svg" alt="">
</div>
</div>
<div class="conversation-list _03210fb">
<div id="conversationList">
<!-- <div class="time-section _48cdfc1">今天</div>
<div class="conversation-item _83421f9">
<span class="c08e6e93">草莓糖的作者最喜欢色设计</span>
<img class="_2090548" src="{$smarty.const.CSS_URL}/images/deepMoreTitle.svg" alt="">
</div>
<div class="conversation-item _83421f9">
<span class="c08e6e93">草莓糖的作者asdsa最喜欢色设计</span>
<img class="_2090548" src="{$smarty.const.CSS_URL}/images/deepMoreTitle.svg" alt="">
</div> -->
</div>
</div>
<!-- <div class="sidebar-footer">
<div class="download-app">下载 App</div>
<div class="user-info">
<div class="user-avatar"></div>
<span>个人信息</span>
</div>
</div> -->
</div>
<div class="siderBarExpand">
</div>
<!-- 主内容区 -->
<div class="main-content ">
<div class="main-body">
<div class="content-header" id="currentChatTitle">新对话</div>
<div class="content-body">
<!-- 生成的正文内容 -->
<!-- <div class="loader" id="loader"></div> -->
<div class="content-top chat-container ds-markdown ds-markdown--block" id="chatContainer">
<div class="welcome-message">
<p>欢迎使用DeepSeek Chat!开始一个新的对话吧。</p>
</div>
<!-- <div class="content-section">
<div class="content-item"><strong>含抗氧化剂</strong>(如棉皮素、花青素),减少炎症,降低心血管疾病风险。</div>
<div class="content-item">可溶性纤维帮助降低降压固醇(LDL),减少动脉硬化风险。</div>
</div>
<div class="content-section">
<div class="content-title">4. 帮助控制血糖</div>
<div class="content-item">低升糖指数(Gle36),适合糖尿病患者适量食用。</div>
<div class="content-item">多酚类物质可提高胰岛素敏感性,辅助血糖管理。</div>
</div> -->
</div>
</div>
<div class="_88681e8 newChatBtn">
<div class="_217e214"><svg width="18" height="18" viewBox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M5.856 17.121a.979.979 0 0 1-.327-.06.839.839 0 0 1-.283-.177.739.739 0 0 1-.187-.255.724.724 0 0 1-.07-.303l-.02-1.609a4.663 4.663 0 0 1-1.446-.455 4.252 4.252 0 0 1-.637-.401c-.199-.146-.385-.31-.553-.492a4.442 4.442 0 0 1-.45-.577 4.303 4.303 0 0 1-.327-.637 3.823 3.823 0 0 1-.206-.686 3.729 3.729 0 0 1-.064-.704V6.478c0-.261.025-.516.077-.771a4.43 4.43 0 0 1 .244-.747 4.062 4.062 0 0 1 .932-1.28c.2-.183.418-.347.65-.493.23-.145.482-.267.739-.364a4.21 4.21 0 0 1 .81-.225c.27-.054.553-.078.835-.078H8.55c.103 0 .2.018.29.054a.7.7 0 0 1 .411.376.667.667 0 0 1-.161.766.736.736 0 0 1-.25.151.764.764 0 0 1-.29.055H5.573c-.186 0-.366.012-.54.049-.18.03-.353.079-.52.145-.167.061-.328.14-.482.237-.148.091-.29.2-.418.316a2.897 2.897 0 0 0-.347.388c-.097.14-.187.286-.257.444a2.473 2.473 0 0 0-.206.977v4.287c0 .17.013.333.051.503a2.549 2.549 0 0 0 .772 1.33 2.721 2.721 0 0 0 .913.559c.167.066.347.115.527.152.18.03.36.048.546.048a.904.904 0 0 1 .61.23.848.848 0 0 1 .194.262.84.84 0 0 1 .07.303l.007.99 1.915-1.293a2.877 2.877 0 0 1 1.64-.492h2.372c.186 0 .366-.018.54-.048.18-.03.353-.08.52-.146.168-.067.329-.146.483-.237.148-.091.29-.2.418-.316.128-.121.244-.249.347-.388a2.8 2.8 0 0 0 .257-.444 2.47 2.47 0 0 0 .206-.977V8.585a.646.646 0 0 1 .225-.492.679.679 0 0 1 .244-.152.814.814 0 0 1 .585 0c.09.03.174.085.244.152a.657.657 0 0 1 .225.492V10.8c0 .261-.032.516-.083.771a4.192 4.192 0 0 1-.245.74c-.109.244-.244.468-.398.687a3.735 3.735 0 0 1-.534.6c-.2.183-.418.347-.65.493a4.134 4.134 0 0 1-.738.364 4.7 4.7 0 0 1-.81.225c-.27.054-.553.079-.836.079h-1.877c-.604 0-1.144.164-1.633.491l-2.54 1.713a.913.913 0 0 1-.514.157z"
fill="currentColor"></path>
<path
d="M15.866 4.125h-4.174c-.41 0-.741.313-.741.7 0 .387.332.7.741.7h4.174c.41 0 .742-.313.742-.7 0-.387-.332-.7-.742-.7z"
fill="currentColor"></path>
<path
d="M14.537 2.932c0-.396-.34-.717-.759-.717s-.758.32-.758.717v3.786c0 .396.34.717.758.717.42 0 .76-.321.76-.717V2.932z"
fill="currentColor"></path>
</svg><span>开启新对话</span></div>
</div>
<!-- <div class="content-note">
注意事项<br>
DeepSeek 发送消息
</div> -->
<div class="_77cefa5">
<div class="dd442025 _42b6996">
<div class="_24fad49"><textarea id="messageInput" class="_27c9245"
placeholder="给 DeepSeek 发送消息 " rows="2"></textarea>
<div class="b13855df">
</div>
</div>
<div class="ec4f5d61">
<div role="button" title="先思考后回答,解决推理问题"
class="ds-button ds-button--primary ds-button--filled ds-button--rect ds-button--m _3172d9f"
tabindex="0"
style="--ds-button-color: #fff; --button-text-color: #4c4c4c; --button-border-color: rgba(0, 0, 0, 0.12); --ds-button-hover-color: #E0E4ED;">
<div class="ds-button__icon"><span
style="transition: none; transform: rotate(0deg);">
<div class="ds-icon"
style="font-size: 19px; width: 19px; height: 19px; color: rgb(76, 76, 76);">
<img src="{$smarty.const.CSS_URL}/images/btnIcon1.svg" alt="">
</div>
</span></div><span class="ad0c98fd">深度思考 (R1)</span>
</div>
<div role="button" title="按需搜索网页"
class="ds-button ds-button--primary ds-button--filled ds-button--rect ds-button--m _3172d9f"
style="--ds-button-color: #fff; --button-text-color: #4c4c4c; --button-border-color: rgba(0, 0, 0, 0.12); --ds-button-hover-color: #E0E4ED;"
tabindex="0">
<div class="ds-button__icon"><span
style="transition: none; transform: rotate(0deg);">
<div class="ds-icon"
style="font-size: 17px; width: 17px; height: 17px; color: rgb(76, 76, 76);">
<img src="{$smarty.const.CSS_URL}/images/btnIcon2.svg" alt="">
</div>
</span></div><span class="ad0c98fd">联网搜索</span>
</div>
<div class="bf38813a">
<div class="f02f0e25 hide">
<div class="ds-icon" title=""
style="font-size: 23px; width: 23px; height: 23px;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 20" fill="none">
<path
d="M7 20c-1.856-.002-3.635-.7-4.947-1.94C.74 16.819.003 15.137 0 13.383V4.828a4.536 4.536 0 0 1 .365-1.843 4.75 4.75 0 0 1 1.087-1.567A5.065 5.065 0 0 1 3.096.368a5.293 5.293 0 0 1 3.888 0c.616.244 1.174.6 1.643 1.05.469.45.839.982 1.088 1.567.25.586.373 1.212.364 1.843v8.555a2.837 2.837 0 0 1-.92 2.027A3.174 3.174 0 0 1 7 16.245c-.807 0-1.582-.3-2.158-.835a2.837 2.837 0 0 1-.92-2.027v-6.22a1.119 1.119 0 1 1 2.237 0v6.22a.777.777 0 0 0 .256.547.868.868 0 0 0 .585.224c.219 0 .429-.08.586-.224a.777.777 0 0 0 .256-.546V4.828A2.522 2.522 0 0 0 7.643 3.8a2.64 2.64 0 0 0-.604-.876 2.816 2.816 0 0 0-.915-.587 2.943 2.943 0 0 0-2.168 0 2.816 2.816 0 0 0-.916.587 2.64 2.64 0 0 0-.604.876 2.522 2.522 0 0 0-.198 1.028v8.555c0 1.194.501 2.339 1.394 3.183A4.906 4.906 0 0 0 7 17.885a4.906 4.906 0 0 0 3.367-1.319 4.382 4.382 0 0 0 1.395-3.183v-6.22a1.119 1.119 0 0 1 2.237 0v6.22c-.002 1.754-.74 3.436-2.052 4.677C10.635 19.3 8.856 19.998 7 20z"
fill="currentColor"></path>
</svg>
</div>
</div>
<input type="file" class="uploadFile" multiple=""
accept=".pdf,.png,.jpg,.jpeg,.svg,.svgz,.bmp,.gif,.webp,.ico,.xbm,.dib,.pjp,.tif,.pjpeg,.avif,.apng,.tiff,.jfif,.txt,.md,.csv,.tsv,.html,.json,.log,.dot,.go,.h,.c,.cpp,.cxx,.cc,.cs,.java,.js,.css,.jsp,.php,.py,.py3,.asp,.yaml,.yml,.ini,.conf,.ts,.tsx,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.abap,.asc,.ash,.ampl,.mod,.g4,.apib,.apl,.dyalog,.asax,.ascx,.ashx,.asmx,.aspx,.axd,.dats,.hats,.sats,.as,.adb,.ada,.ads,.agda,.als,.apacheconf,.vhost,.cls,.applescript,.scpt,.arc,.ino,.asciidoc,.adoc,.aj,.asm,.a51,.inc,.nasm,.aug,.ahk,.ahkl,.au3,.awk,.auk,.gawk,.mawk,.nawk,.bat,.cmd,.befunge,.bison,.bb,.decls,.bmx,.bsv,.boo,.b,.bf,.brs,.bro,.cats,.idc,.w,.cake,.cshtml,.csx,.c++,.cp,.h++,.hh,.hpp,.hxx,.inl,.ipp,.tcc,.tpp,.c-objdump,.chs,.clp,.cmake,.in,.cob,.cbl,.ccp,.cobol,.cpy,.capnp,.mss,.ceylon,.chpl,.ch,.ck,.cirru,.clw,.icl,.dcl,.click,.clj,.boot,.cl2,.cljc,.cljs,.hl,.cljscm,.cljx,.hic,.coffee,._coffee,.cjsx,.cson,.iced,.cfm,.cfml,.cfc,.lisp,.asd,.cl,.l,.lsp,.ny,.podsl,.sexp,.cps,.coq,.v,.cppobjdump,.c++-objdump,.c++objdump,.cpp-objdump,.cxx-objdump,.creole,.cr,.feature,.cu,.cuh,.cy,.pyx,.pxd,.pxi,.d,.di,.d-objdump,.com,.dm,.zone,.arpa,.darcspatch,.dpatch,.dart,.diff,.patch,.dockerfile,.djs,.dylan,.dyl,.intr,.lid,.E,.ecl,.eclxml,.sch,.brd,.epj,.e,.ex,.exs,.elm,.el,.emacs,.desktop,.em,.emberscript,.erl,.es,.escript,.hrl,.xrl,.yrl,.fs,.fsi,.fsx,.fx,.flux,.f90,.f,.f03,.f08,.f77,.f95,.for,.fpp,.factor,.fy,.fancypack,.fan,.fth,.4th,.forth,.fr,.frt,.ftl,.g,.gco,.gcode,.gms,.gap,.gd,.gi,.tst,.s,.ms,.glsl,.fp,.frag,.frg,.fsh,.fshader,.geo,.geom,.glslv,.gshader,.shader,.vert,.vrx,.vsh,.vshader,.gml,.kid,.ebuild,.eclass,.po,.pot,.glf,.gp,.gnu,.gnuplot,.plot,.plt,.golo,.gs,.gst,.gsx,.vark,.grace,.gradle,.gf,.graphql,.gv,.man,.1in,.1m,.1x,.3in,.3m,.3qt,.3x,.me,.n,.rno,.roff,.groovy,.grt,.gtpl,.gvy,.gsp,.hcl,.tf,.hlsl,.fxh,.hlsli,.htm,.st,.xht,.xhtml,.mustache,.jinja,.eex,.erb,.deface,.phtml,.http,.haml,.handlebars,.hbs,.hb,.hs,.hsc,.hx,.hxsl,.hy,.pro,.dlm,.ipf,.cfg,.prefs,.properties,.irclog,.weechatlog,.idr,.lidr,.ni,.i7x,.iss,.io,.ik,.thy,.ijs,.flex,.jflex,.geojson,.lock,.topojson,.json5,.jsonld,.jq,.jsx,.jade,.j,._js,.bones,.es6,.jake,.jsb,.jscad,.jsfl,.jsm,.jss,.njs,.pac,.sjs,.ssjs,.sublime-build,.sublime-commands,.sublime-completions,.sublime-keymap,.sublime-macro,.sublime-menu,.sublime-mousemap,.sublime-project,.sublime-settings,.sublime-theme,.sublime-workspace,.sublime_metrics,.sublime_session,.xsjs,.xsjslib,.jl,.ipynb,.krl,.kicad_pcb,.kit,.kt,.ktm,.kts,.lfe,.ll,.lol,.lsl,.lslp,.lvproj,.lasso,.las,.lasso8,.lasso9,.ldml,.latte,.lean,.hlean,.less,.lex,.ly,.ily,.m,.ld,.lds,.liquid,.lagda,.litcoffee,.lhs,.ls,._ls,.xm,.x,.xi,.lgt,.logtalk,.lookml,.lua,.fcgi,.nse,.pd_lua,.rbxs,.wlua,.mumps,.m4,.mcr,.mtml,.muf,.mak,.mk,.mkfile,.mako,.mao,.markdown,.mkd,.mkdn,.mkdown,.ron,.mask,.mathematica,.cdf,.ma,.map,.mt,.nb,.nbp,.wl,.wlt,.matlab,.maxpat,.maxhelp,.maxproj,.mxt,.pat,.mediawiki,.wiki,.moo,.metal,.minid,.druby,.duby,.mir,.mirah,.mo,.mms,.mmk,.monkey,.moon,.myt,.ncl,.nl,.nsi,.nsh,.axs,.axi,.nlogo,.nginxconf,.nim,.nimrod,.ninja,.nit,.nix,.nu,.numpy,.numpyw,.numsc,.ml,.eliom,.eliomi,.ml4,.mli,.mll,.mly,.objdump,.mm,.sj,.omgrofl,.opa,.opal,.opencl,.p,.scad,.org,.ox,.oxh,.oxo,.oxygene,.oz,.pwn,.aw,.ctp,.php3,.php4,.php5,.php6,.php7,.php8,.phps,.phpt,.pls,.pck,.pkb,.pks,.plb,.plsql,.sql,.pov,.pan,.psc,.parrot,.pasm,.pir,.pas,.dfm,.dpr,.lpr,.pp,.pl,.al,.cgi,.perl,.ph,.plx,.pm,.pod,.psgi,.t,.6pl,.6pm,.nqp,.p6,.p6l,.p6m,.pl6,.pm6,.pkl,.pig,.pike,.pmod,.pogo,.pony,.ps,.eps,.ps1,.psd1,.psm1,.pde,.prolog,.yap,.spin,.proto,.pub,.pd,.pb,.pbi,.purs,.bzl,.gyp,.lmi,.pyde,.pyi,.pyp,.pyt,.pyw,.rpy,.tac,.wsgi,.xpy,.pytb,.qml,.qbs,.pri,.r,.rd,.rsx,.raml,.rdoc,.rbbas,.rbfrm,.rbmnu,.rbres,.rbtbar,.rbuistate,.rhtml,.rmd,.rkt,.rktd,.rktl,.scrbl,.rl,.raw,.reb,.r2,.r3,.rebol,.red,.reds,.cw,.rs,.rsh,.robot,.rg,.rb,.builder,.gemspec,.god,.irbrc,.jbuilder,.mspec,.pluginspec,.podspec,.rabl,.rake,.rbuild,.rbw,.rbx,.ru,.ruby,.thor,.watchr,.sas,.scss,.smt2,.smt,.sparql,.rq,.sqf,.hqf,.cql,.ddl,.prc,.tab,.udf,.viw,.db2,.ston,.sage,.sagews,.sls,.sass,.scala,.sbt,.sc,.scaml,.scm,.sld,.sps,.ss,.sci,.sce,.self,.sh,.bash,.bats,.command,.ksh,.tmux,.tool,.zsh,.sh-session,.shen,.sl,.slim,.smali,.tpl,.sp,.sma,.nut,.stan,.ML,.fun,.sig,.sml,.do,.ado,.doh,.ihlp,.mata,.matah,.sthlp,.styl,.scd,.swift,.sv,.svh,.vh,.toml,.txl,.tcl,.adp,.tm,.tcsh,.csh,.tex,.aux,.bbx,.bib,.cbx,.dtx,.ins,.lbx,.ltx,.mkii,.mkiv,.mkvi,.sty,.toc,.tea,.no,.textile,.thrift,.tu,.ttl,.twig,.upc,.anim,.asset,.mat,.meta,.prefab,.unity,.uno,.uc,.ur,.urs,.vcl,.vhdl,.vhd,.vhf,.vhi,.vho,.vhs,.vht,.vhw,.vala,.vapi,.veo,.vim,.vb,.bas,.frm,.frx,.vba,.vbhtml,.vbs,.volt,.vue,.owl,.webidl,.x10,.xc,.xml,.ant,.axml,.ccxml,.clixml,.cproject,.csl,.csproj,.ct,.dita,.ditamap,.ditaval,.config,.dotsettings,.filters,.fsproj,.fxml,.glade,.grxml,.iml,.ivy,.jelly,.jsproj,.kml,.launch,.mdpolicy,.mxml,.nproj,.nuspec,.odd,.osm,.plist,.props,.ps1xml,.psc1,.pt,.rdf,.rss,.scxml,.srdf,.storyboard,.stTheme,.sublime-snippet,.targets,.tmCommand,.tml,.tmLanguage,.tmPreferences,.tmSnippet,.tmTheme,.ui,.urdf,.ux,.vbproj,.vcxproj,.vssettings,.vxml,.wsdl,.wsf,.wxi,.wxl,.wxs,.x3d,.xacro,.xaml,.xib,.xlf,.xliff,.xmi,.dist,.xproj,.xsd,.xul,.zcml,.xsp-config,.metadata,.xpl,.xproc,.xquery,.xq,.xql,.xqm,.xqy,.xs,.xslt,.xsl,.xojo_code,.xojo_menu,.xojo_report,.xojo_script,.xojo_toolbar,.xojo_window,.xtend,.reek,.rviz,.sublime-syntax,.syntax,.yaml-tmlanguage,.yang,.y,.yacc,.yy,.zep,.zimpl,.zmpl,.zpl,.ec,.eh,.edn,.fish,.mu,.nc,.ooc,.rst,.rest,.wisp,.prg,.prw,.gitignore,.gitkeep,.gitmodules,.example,.avifs,.blp,.bufr,.bw,.cur,.dcx,.dds,.emf,.fit,.fits,.flc,.fli,.ftc,.ftu,.gbr,.grib,.h5,.hdf,.hif,.icb,.icns,.iim,.im,.j2c,.j2k,.jp2,.jpc,.jpe,.jpf,.jpx,.mpeg,.mpg,.msp,.pbm,.pcd,.pcx,.pfm,.pgm,.pnm,.ppm,.psd,.pxr,.qoi,.ras,.rgb,.rgba,.sgi,.tga,.vda,.vst,.wmf,.xpm"
style="display: none;">
<div role="button" class="_7436101 bcc55ca1" id="sendBtn">
<div class="_6f28693">
<div class="ds-icon" style="font-size: 16px; width: 16px; height: 16px;">
<img class="sendBIconnot"
src="{$smarty.const.CSS_URL}/images/sendnot.svg" alt="">
<img class="sendBIconActive"
src="{$smarty.const.CSS_URL}/images/sendActive.svg" alt="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="_0fcaa63">内容由 AI 生成,请仔细甄别</p>
</div>
</div>
</div>
</div>
{literal}
<script>
// 新对话按钮点击事件
// document.querySelector('.new-chat-btn').addEventListener('click', function () {
// // 这里可以添加创建新对话的逻辑
// alert('创建新对话');
// });
$(document).ready(function () {
var loadFlag = false;
// 对话数据存储
let conversations = {
// 示例数据
"conversation1": {
id: "conversation1",
title: "草莓糖的作者最喜欢色设计",
messages: [{
role: "user",
content: "草莓糖的作者是谁?"
},
{
role: "assistant",
content: "草莓糖是由皮克斯动画工作室创作的..."
}
],
timestamp: new Date().getTime(),
group: "today"
},
"conversation2": {
id: "conversation2",
title: "西瓜考试满分笑话解析",
messages: [{
role: "user",
content: "西瓜考试满分是什么笑话?"
},
{
role: "assistant",
content: "这是一个关于西瓜参加考试..."
}
],
timestamp: new Date().getTime() - 3600000 * 2,
group: "today"
},
"conversation3": {
id: "conversation3",
title: "Vue子路由配置方法详解",
messages: [{
role: "user",
content: "如何在Vue中配置子路由?"
},
{
role: "assistant",
content: "在Vue Router中,你可以使用children属性..."
}
],
timestamp: new Date().getTime() - 86400000 * 11,
group: "7days"
}
};
let currentConversationId = null;
// 侧边栏状态
let sidebarCollapsed = false;
marked.setOptions({
highlight: function (code, lang) {
if (hljs.getLanguage(lang)) {
return hljs.highlight(lang, code).value;
}
return hljs.highlightAuto(code).value;
}
});
// 切换侧边栏
function toggleSidebar() {
sidebarCollapsed = !sidebarCollapsed;
$('#sidebar').toggleClass('collapsed', sidebarCollapsed);
// 更新切换按钮图标
const icon = sidebarCollapsed ? 'menu' : 'close';
// $('#toggleSidebar i').attr('class', 'icon icon-' + icon);
// 如果是移动端,处理主内容区域的偏移
if (window.innerWidth <= 768) {
if (sidebarCollapsed) {
$('#sidebar').removeClass('collapsed');
$('#sidebar').css('transform', 'translateX(-100%)');
} else {
$('#sidebar').css('transform', 'translateX(0)');
}
}
// 保存状态到本地存储
localStorage.setItem('sidebarCollapsed', sidebarCollapsed);
}
$('#openMenu, .ds-icon-box').on('click', function () {
// sidebarCollapsed = !sidebarCollapsed;
// $('#sidebar').toggleClass('collapsed', sidebarCollapsed);
toggleSidebar()
})
// 初始化侧边栏状态
function initSidebarState() {
const savedState = localStorage.getItem('sidebarCollapsed');
if (savedState !== null) {
sidebarCollapsed = savedState === 'true';
$('#sidebar').toggleClass('collapsed', sidebarCollapsed);
const icon = sidebarCollapsed ? 'expand' : 'retract';
// $('#toggleSidebar').attr('src', `{$smarty.const.CSS_URL}/images/${icon}.svg`);
if (window.innerWidth <= 768 && !sidebarCollapsed) {
$('#sidebar').css('transform', 'translateX(-100%)');
}
}
}
// 绑定事件
$('#toggleSidebar').click(toggleSidebar);
$('#mobileMenuToggle').click(function () {
if (window.innerWidth <= 768) {
$('#sidebar').css('transform', 'translateX(0)');
} else {
toggleSidebar();
}
});
$('.conversation-list').on('click', '.conversation-item', function () {
$('.conversation-list .conversation-item').removeClass('b64fb9ae')
$(this).addClass('b64fb9ae')
})
$('.ds-button--primary').click(function () {
if ($(this).hasClass('ds-button--primary-active')) {
$(this).removeClass('ds-button--primary-active')
} else {
$(this).addClass('ds-button--primary-active')
}
})
// 初始化对话列表
function renderConversationList() {
const $list = $('#conversationList');
$list.empty();
// 分组对话
const today = [];
const last7Days = [];
const last30Days = [];
const now = new Date().getTime();
Object.values(conversations).forEach(conv => {
const diff = now - conv.timestamp;
// console.log(diff, 'diff---');
if (diff < 86400000) {
today.push(conv);
} else if (diff < 86400000 * 7) {
last7Days.push(conv);
} else {
last30Days.push(conv);
}
});
// 渲染今天
if (today.length > 0) {
$list.append('<div class="time-section _48cdfc1">今天</div>');
today.forEach(conv => {
$list.append(
`<div class="conversation-item _83421f9 ${currentConversationId === conv.id ? 'b64fb9ae' : ''}" data-id="${conv.id}">
<span class="c08e6e93">${conv.title}</span>
<img class="_2090548" src="../../images/deepMoreTitle.svg" alt="">
</div>`
);
});
}
// 渲染7天内
if (last7Days.length > 0) {
$list.append('<div class="time-section _48cdfc1">7天内</div>');
last7Days.forEach(conv => {
$list.append(
`<div class="conversation-item _83421f9 ${currentConversationId === conv.id ? 'b64fb9ae' : ''}" data-id="${conv.id}">
<span class="c08e6e93">${conv.title}</span>
<img class="_2090548" src="../../images/deepMoreTitle.svg" alt="">
</div>`
);
});
}
// 渲染30天内
if (last30Days.length > 0) {
$list.append('<div class="time-section _48cdfc1">30天内</div>');
last30Days.forEach(conv => {
$list.append(
`<div class="conversation-item _83421f9 ${currentConversationId === conv.id ? 'b64fb9ae' : ''}" data-id="${conv.id}">
<span class="c08e6e93">${conv.title}</span>
<img class="_2090548" src="../../images/deepMoreTitle.svg" alt="">
</div>`
);
});
}
}
// 渲染聊天内容
function renderChat(conversationId) {
const $container = $('#chatContainer');
$container.empty();
if (!conversationId) {
$container.append('<div class="welcome-message"><p>欢迎使用DeepSeek Chat!开始一个新的对话吧。</p></div>');
$('#currentChatTitle').text('新对话');
return;
}
const conversation = conversations[conversationId];
if (!conversation) return;
$('#currentChatTitle').text(conversation.title);
conversation.messages.forEach(msg => {
const $msg = $(
`<div class="message ${msg.role === 'user' ? 'user-message' : 'assistant-message'}"></div>`
);
$msg.text(msg.content);
$container.append($msg);
});
// 滚动到底部
$container.scrollTop($container[0].scrollHeight);
}
// 创建新对话
function createNewConversation() {
$('.conversation-list .conversation-item').removeClass('b64fb9ae')
currentConversationId = null;
renderChat(null);
$('#messageInput').focus();
}
// 保存对话到本地存储
function saveConversations() {
localStorage.setItem('deepseekConversations', JSON.stringify(conversations));
}
// 从本地存储加载对话
function loadConversations() {
const saved = localStorage.getItem('deepseekConversations');
if (saved) {
conversations = JSON.parse(saved);
}
}
// 初始化
loadConversations();
renderConversationList();
initSidebarState()
// 事件监听
$('.newChatBtn').click(createNewConversation);
$(document).on('click', '.conversation-item', function () {
const conversationId = $(this).data('id');
currentConversationId = conversationId;
renderChat(conversationId);
renderConversationList();
});
$('#messageInput').on('input', function () {
const message = $('#messageInput').val().trim();
if (message.length > 0) {
$('._7436101').removeClass('bcc55ca1')
} else {
$('._7436101').addClass('bcc55ca1')
}
// console.log('Textarea value changed:', $(this).val());
// 在这里执行你的代码
});
var outputEl = document.getElementById('chatContainer');
$('#sendBtn').click(function () {
loadFlag = true; //开启思考
// debugger
const message = $('#messageInput').val().trim();
if (!message) return;
if (!currentConversationId) {
// 创建新对话
$('#chatContainer').html('')
const newId = 'conversation' + Date.now();
const newTitle = message.length > 20 ? message.substring(0, 20) + '...' : message;
conversations[newId] = {
id: newId,
title: newTitle,
messages: [{
role: "user",
content: message
}],
timestamp: new Date().getTime(),
group: "today"
};
currentConversationId = newId;
saveConversations();
renderConversationList();
// renderChat(newId);
} else {
// 添加到现有对话
conversations[currentConversationId].messages.push({
role: "user",
content: message
});
conversations[currentConversationId].timestamp = new Date().getTime();
saveConversations();
// renderChat(currentConversationId);
}
// console.log(currentConversationId,'currentConversationId=====currentConversationId');
fetchStream()
// startStream()
// 清空输入框
// $('#messageInput').val('');
// 模拟AI回复
// setTimeout(() => {
// const reply = "这是模拟的AI回复。在实际应用中,这里会调用AI API获取真实回复。";
// conversations[currentConversationId].messages.push({
// role: "assistant",
// content: reply
// });
// saveConversations();
// renderChat(currentConversationId);
// }, 1000);
});
// -----------流式----
// async function startStream() {
// outputEl.innerHTML = '';
// const prompt = document.getElementById('messageInput').value;
// // 使用EventSource连接
// const eventSource = new EventSource(`http://192.168.31.74:26000/api/stream?prompt=${encodeURIComponent(prompt)}`);
// eventSource.onmessage = (event) => {
// outputEl.textContent += event.data;
// window.scrollTo(0, document.body.scrollHeight);
// };
// eventSource.onerror = () => {
// eventSource.close();
// console.log('Stream结束');
// };
// }
// 或使用Fetch API(更灵活)
async function fetchStream() {
const message = $('#messageInput').val().trim();
renderMessage(message, "user");
var aiMessageDiv = renderMessage("", "assistant", true);
// console.log(aiMessageDiv, 'aiMessageDiv---');
document.getElementById("messageInput").value = ""; // 清空输入框
// const response = await fetch('/api/stream', {
const response = await fetch('//116.63.15.30:27000/search', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
texts: message,
"title": "小妙招csv2",
"top": "20"
})
});
if (!response.ok) {
renderMessage("请求失败,请重试", "assistant");
return;
}
if (!response.body) {
throw new Error('可读流不可用');
}
const reader = response.body.getReader();
const decoder = new TextDecoder();
let aiResponse = "";
while (true) {
const {
done,
value
} = await reader.read();
if (done) break;
const chunk = decoder.decode(value);
console.log(chunk, 'chunk----');
aiResponse += chunk;
if (aiResponse.includes('</think>')) {
aiResponse = ''
loadFlag = false;
}
if (!loadFlag) {
// aiMessageDiv.textContent = aiResponse; // 流式更新
aiMessageDiv.innerHTML = marked.parse(aiResponse);; // 流式更新
}
document.getElementById('chatContainer').scrollTop = aiMessageDiv.scrollHeight
// console.log($('.content-body'), '9898');
// aiMessageDiv.scrollIntoView({
// behavior: "smooth"
// });
}
conversations[currentConversationId].messages.push({
role: "assistant",
content: aiResponse
});
saveConversations();
}
// 渲染单条消息(用户或 AI)
function renderMessage(content, role, isStreaming = false) {
const chatContainer = document.getElementById("chatContainer");
const messageDiv = document.createElement("div");
const loaderDiv = document.createElement("div");
loaderDiv.className = 'loader'
messageDiv.className =
`message ${role === 'user' ? 'user-message' : 'assistant-message'}`; // 添加样式类(user / ai)
// if (role === "user") {
// messageDiv.textContent = `用户: ${content}`;
// } else {
// }
console.log(content, role, '====role');
if (!content && role == 'assistant') {
messageDiv.appendChild(loaderDiv)
} else {
messageDiv.textContent = `${content}`;
// messageDiv.removeChild(loaderDiv)
}
// if(!loadFlag){
// messageDiv.removeChild(loaderDiv)
// }
chatContainer.appendChild(messageDiv);
// 如果是流式响应,返回 div 以便后续更新
if (isStreaming) {
return messageDiv;
}
}
// -----------流式----
// 按Enter发送消息
$('#messageInput').keypress(function (e) {
if (e.which === 13 && !e.shiftKey) {
e.preventDefault();
$('#sendBtn').click();
}
});
});
</script>
{/literal}
</body>
</html>