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