diff --git a/ai_chat.html b/ai_chat.html index ad3b326..dae7b8e 100644 --- a/ai_chat.html +++ b/ai_chat.html @@ -8,7 +8,6 @@ - AI数字人
+
+ 什么是“人工智能”? + 什么是“AI大模型”? +
发送
@@ -189,6 +192,13 @@ }, error: function (err) { console.log(err); + layer.msg('因网络原因,您的问题暂时无法解答,请稍后再试!', { + offset: [$(window).height()/2-100, $(window).width() /2 + 100], + anim: 5 + }); + $('.loading').parent().remove(); + isBotTyping = false; + isBotReplying = false; } }); } @@ -196,13 +206,13 @@ console.log('isBotTyping',isBotTyping) // 输入中 layer.msg('请等待当前对话完成,稍后再试。', { - offset: 50, + offset: [$(window).height()/2-100, $(window).width() /2 + 100], anim: 6 }); } else if (isBotReplying) { // loading中 layer.msg('请等待当前对话完成,稍后再试。', { - offset: 50, + offset: [$(window).height()/2-100, $(window).width() /2 + 100], anim: 6 }); } @@ -216,6 +226,13 @@ } }); + // 热搜词提问 + $('.hot-word span').click(function() { + const hotMessage = $(this).html() + $textArea.val(hotMessage) + $sendButton.click(); + }) + function appendMessage(content, isUserMessage, isLoading, isWelcomeMessage) { const className = isUserMessage ? 'user-message' : 'bot-message'; // const avatarSrc = isUserMessage ? 'images/other/pic1.jpg' : 'images/other/pic2.jpg'; diff --git a/css/index.css b/css/index.css index 0c7b38b..6c17d4a 100644 --- a/css/index.css +++ b/css/index.css @@ -600,10 +600,9 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ .chat-content { width: 100%; - height: calc(100% - 2.8rem); + height: calc(100% - 2.925rem); overflow: hidden; overflow-y: scroll; - /* border: 1px solid red; */ } .chat-message { @@ -611,15 +610,16 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ justify-content: flex-end; font-size: .35rem; color: #fff; + margin-bottom: .2rem; } .chat-message p { position: relative; - line-height: .825rem; - padding: 0 .2rem; - margin-right: .125rem; + line-height: .625rem; + padding: .125rem .2rem; background: rgba(0,0,0,0.2); border-radius: .35rem .1rem .35rem .35rem; + max-width: 90%; } .chat-message p span{ @@ -685,8 +685,7 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ } .bot-message p { - line-height: .825rem; - margin-left: .125rem; + line-height: .6rem; background-color: rgb(255,255,255,0.2); border-radius: .1rem .35rem .35rem .35rem; } @@ -741,7 +740,7 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ .chat-send { width: 100%; - height: 2.5rem; + height: 2.625rem; margin-top: .3rem; background: linear-gradient( 90deg, #2C509B 0%, rgba(44,80,155,0.6) 100%); border-radius: .2rem; @@ -752,17 +751,48 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ width: calc(100% - .5rem); height: 1rem; font-size: .3rem; - line-height: .375rem; + line-height: .45rem; border: none; padding: .25rem; background-color: transparent; color: #fff; - /* border: 1px solid red; */ } .send-button-container { - text-align: right; + display: flex; + justify-content: space-between; + align-items: center; padding: 0 .25rem 0 0; + margin-top: .2rem; +} + +.hot-word span{ + position: relative; + display: inline-block; + font-size: .25rem; + color: #fff; + line-height: .625rem; + margin: 0 .125rem; + padding: .075rem .2rem .075rem .6rem; + background: rgba(0,0,0,0.2); + border-radius: .35rem .1rem .35rem .35rem; +} + +.hot-word span::before{ + content: ""; + position: absolute; + left: .15rem; + top: 50%; + width: .375rem; + height: .375rem; + background: url("../images/wenhao.png") no-repeat left top; + background-size: 100% 100%; + transform: translateY(-50%); +} + +.hot-word span:hover{ + background-color: rgba(0,0,0,0.6); + cursor: pointer; } .send-button { @@ -853,11 +883,23 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ .layui-layer-video .layui-layer-content{ padding: .3rem !important; } +.layui-layer-video .layui-layer-content .empty-data{ + width: 50%; +} +.layui-layer-video .layui-layer-content .empty-data img{ + width: 2.125rem; + margin: 0 auto; +} .layui-layer-video.layui-layer-iframe iframe{ height: 8.75rem !important; } +#videoBox{ + width: 100%; + height: 100%; +} + /* pdf页面 */ .perview-wrapper{ background: linear-gradient( 180deg, #183375 0%, #122050 100%); @@ -867,7 +909,7 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ width: 100%; height: .05rem; background: linear-gradient( 90deg, rgba(91, 157, 255, 0.8) 0%, rgba(91, 157, 255, 0.1) 60%); - /* box-shadow: 0px 0px 5px 0px #1766FF, 0px 0px 12px 0px #1766FF, 0px 0px 20px 0px #1766FF; */ + box-shadow: 0px 0px 5px 0px #1766FF, 0px 0px 12px 0px #1766FF, 0px 0px 20px 0px #1766FF; } .perview-wrapper .ai-header-wrapper{ height: 1rem; @@ -919,7 +961,7 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ position: absolute; left: 50%; top: 50%; - width: 170px; + width: 2.125rem; text-align: center; font-size: .35rem; color: #fff; @@ -1122,3 +1164,12 @@ textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */ border: none; margin: 0 auto; } + +.page-cont-title{ + font-family: 'PingFang'; + font-size: .3rem; + font-weight: 500; + color: #fff; + line-height: .7rem; + text-shadow: 0px 0px 20px #0B88FC, 0px 0px 35px #0B0B88, 0px 0px 51px #0B88FC; +} \ No newline at end of file diff --git a/images/wenhao.png b/images/wenhao.png new file mode 100644 index 0000000..00c1001 Binary files /dev/null and b/images/wenhao.png differ diff --git a/media/video/ROS桌面多功能机械臂myCobot_280_Pi颜色识别分类.mp4 b/media/video/elephant/ROS桌面多功能机械臂myCobot_280_Pi颜色识别分类.mp4 similarity index 100% rename from media/video/ROS桌面多功能机械臂myCobot_280_Pi颜色识别分类.mp4 rename to media/video/elephant/ROS桌面多功能机械臂myCobot_280_Pi颜色识别分类.mp4 diff --git a/media/video/elephant/入门级开源机械臂ultraArm套装.mp4 b/media/video/elephant/入门级开源机械臂ultraArm套装.mp4 new file mode 100644 index 0000000..2f8fcf1 Binary files /dev/null and b/media/video/elephant/入门级开源机械臂ultraArm套装.mp4 differ diff --git a/media/video/elephant/重磅!大象机器人发布第二代人工智能套装,深度学习协作机器人、先进机器视觉与应用场景,人工智能实验室与职业教育必备.mp4 b/media/video/elephant/重磅!大象机器人发布第二代人工智能套装,深度学习协作机器人、先进机器视觉与应用场景,人工智能实验室与职业教育必备.mp4 new file mode 100644 index 0000000..1c4ddc8 Binary files /dev/null and b/media/video/elephant/重磅!大象机器人发布第二代人工智能套装,深度学习协作机器人、先进机器视觉与应用场景,人工智能实验室与职业教育必备.mp4 differ diff --git a/media/video/lejurobot/1.CRAIC决赛现场惊现蛄蛹者.mp4 b/media/video/lejurobot/1.CRAIC决赛现场惊现蛄蛹者.mp4 new file mode 100644 index 0000000..ba89fc7 Binary files /dev/null and b/media/video/lejurobot/1.CRAIC决赛现场惊现蛄蛹者.mp4 differ diff --git a/media/video/lejurobot/2.乐聚人形机器人任务挑战赛.mp4 b/media/video/lejurobot/2.乐聚人形机器人任务挑战赛.mp4 new file mode 100644 index 0000000..0b6a43c Binary files /dev/null and b/media/video/lejurobot/2.乐聚人形机器人任务挑战赛.mp4 differ diff --git a/media/video/lejurobot/乐聚机器人.mp4 b/media/video/lejurobot/乐聚机器人.mp4 new file mode 100644 index 0000000..9c4bcd7 Binary files /dev/null and b/media/video/lejurobot/乐聚机器人.mp4 differ diff --git a/media/video/lejurobot/乐聚机器人—最炫民族风.mp4 b/media/video/lejurobot/乐聚机器人—最炫民族风.mp4 new file mode 100644 index 0000000..44dafaf Binary files /dev/null and b/media/video/lejurobot/乐聚机器人—最炫民族风.mp4 differ diff --git a/media/video/lejurobot/乐聚机器人—江南style.mp4 b/media/video/lejurobot/乐聚机器人—江南style.mp4 new file mode 100644 index 0000000..117d2a6 Binary files /dev/null and b/media/video/lejurobot/乐聚机器人—江南style.mp4 differ diff --git a/page-codeVideo.html b/page-codeVideo.html index 6d5f84f..4aa0566 100644 --- a/page-codeVideo.html +++ b/page-codeVideo.html @@ -23,6 +23,7 @@

首页

返回

+

标题标题标题标题标题标题

登录

@@ -38,8 +39,8 @@
-
diff --git a/page-pdfVideo.html b/page-pdfVideo.html index 29a34a1..f39aceb 100644 --- a/page-pdfVideo.html +++ b/page-pdfVideo.html @@ -23,6 +23,7 @@

首页

返回

+

标题标题标题标题标题标题

登录

@@ -39,8 +40,8 @@
-