From 51cb5525b55f435be5bc73cf5816b43324b7a98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E5=A3=AB=E6=B6=B5?= <630892807@qq.com> Date: Thu, 20 Aug 2020 22:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E6=A0=87=E8=B7=B3=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/common.css | 15 ++++++++++++++- static/css/gofly-front.css | 15 ++++++++++++++- static/html/index.html | 2 +- tools/sorts.go | 25 +++++++++++++++++++++++++ tools/sorts_test.go | 8 +++++++- 5 files changed, 61 insertions(+), 4 deletions(-) diff --git a/static/css/common.css b/static/css/common.css index 1e683ae..ada3d0a 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -89,4 +89,17 @@ margin: -1px 0 0 -1px; padding: 4px 2px; text-align: center; -} \ No newline at end of file +} + +@-webkit-keyframes bounce-up { + 25% {-webkit-transform: translateY(10px);} + 50%, 100% {-webkit-transform: translateY(0);} + 75% {-webkit-transform: translateY(-10px);} +} + +@keyframes bounce-up { + 25% {transform: translateY(10px);} + 50%, 100% {transform: translateY(0);} + 75% {transform: translateY(-10px);} +} +.animate-bounce-up{ -webkit-animation: bounce-up 1.4s linear infinite;animation: bounce-up 1.4s linear infinite;} \ No newline at end of file diff --git a/static/css/gofly-front.css b/static/css/gofly-front.css index 317de98..889103d 100644 --- a/static/css/gofly-front.css +++ b/static/css/gofly-front.css @@ -46,4 +46,17 @@ white-space: nowrap!important; padding: 0!important; transition: .6s ease-in-out!important; -} \ No newline at end of file +} + +@-webkit-keyframes bounce-up { + 25% {-webkit-transform: translateY(6px);} + 50%, 100% {-webkit-transform: translateY(0);} + 75% {-webkit-transform: translateY(-6px);} +} + +@keyframes bounce-up { + 25% {transform: translateY(6px);} + 50%, 100% {transform: translateY(0);} + 75% {transform: translateY(-6px);} +} +.animateUpDown{ -webkit-animation: bounce-up 1.4s linear infinite;animation: bounce-up 1.4s linear infinite;} \ No newline at end of file diff --git a/static/html/index.html b/static/html/index.html index 3da68dd..1472c1c 100644 --- a/static/html/index.html +++ b/static/html/index.html @@ -161,7 +161,7 @@ -
+
Chat Icon three small dots to indicate that an agent is available to chat
Chat with us diff --git a/tools/sorts.go b/tools/sorts.go index 9a9e031..1d49495 100644 --- a/tools/sorts.go +++ b/tools/sorts.go @@ -24,4 +24,29 @@ func QuickSort(arr *[]int,left int,right int){ privot:=partition(arr,left,right) QuickSort(arr,left,privot-1) QuickSort(arr,privot+1,right) +} +//快速排序2 +func QuickSort2(arr *[]int,left int,right int){ + if left>= right{ + return + } + privot:=(*arr)[left] + i:=left + j:=right + for iprivot{ + j-- + } + for i