pull/30/head
taoshihan1991 4 years ago
commit b29614b4b3

@ -90,3 +90,16 @@
padding: 4px 2px;
text-align: center;
}
@-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;}

@ -47,3 +47,16 @@
padding: 0!important;
transition: .6s ease-in-out!important;
}
@-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;}

@ -161,7 +161,7 @@
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/layer.min.js"></script>
<link href="/static/css/gofly-front.css" rel="stylesheet" type="text/css"/>
<div id="launchButton" class="launchButton">
<div id="launchButton" class="launchButton animateUpDown">
<svg x="0px" y="0px" viewBox="0 0 27 21.9" aria-labelledby="title desc" role="img" class="xhl-launch-button-svg"><title>Chat Icon </title><desc>three small dots to indicate that an agent is available to chat</desc><path fill="#ffffff" d="M23.2,0L2.6,1.7C1,1.9,0,3.2,0,4.9v8c0,1.6,0.8,3,2.4,3.1l5.3,0.5c0,0,1,1.6,0.3,3.2C7.2,21.3,6,21.9,6,21.9 c4.2,0,6.6-3.1,7.8-4.9l9.4,0.7c1.8,0.2,3.8-1.3,3.8-3.1V3.1C27,1.3,25-0.1,23.2,0z M6.4,10.1c-0.9,0-1.7-0.7-1.7-1.7 c0-0.9,0.7-1.7,1.7-1.7C7.3,6.8,8,7.5,8,8.5C8,9.4,7.3,10.1,6.4,10.1z M13.2,10.1c-0.9,0-1.7-0.7-1.7-1.7c0-0.9,0.7-1.7,1.7-1.7 c0.9,0,1.7,0.7,1.7,1.7C14.8,9.4,14.1,10.1,13.2,10.1z M19.9,10.1c-0.9,0-1.7-0.7-1.7-1.7c0-0.9,0.7-1.7,1.7-1.7 c0.9,0,1.7,0.7,1.7,1.7C21.6,9.4,20.9,10.1,19.9,10.1z"></path></svg>
<div class="launchButtonText">
Chat with us

@ -25,3 +25,28 @@ func QuickSort(arr *[]int,left int,right int){
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 i<j{
for i<j && (*arr)[j]>privot{
j--
}
for i<j && (*arr)[i]<=privot{
i++
}
temp:=(*arr)[i]
(*arr)[i]=(*arr)[j]
(*arr)[j]=temp
}
(*arr)[left]=(*arr)[i]
(*arr)[i]=privot
QuickSort(arr,left,i-1)
QuickSort(arr,i+1,right)
}

@ -5,8 +5,14 @@ import (
)
func TestQuickSort(t *testing.T) {
arr:=[]int{1,8,3,9,4,5,4,7}
arr:=[]int{6,8,3,9,4,5,4,7}
t.Log(arr)
QuickSort(&arr,0,len(arr)-1)
t.Log(arr)
}
func TestQuickSort2(t *testing.T) {
arr:=[]int{6,8,3,9,4,5,4,7}
t.Log(arr)
QuickSort2(&arr,0,len(arr)-1)
t.Log(arr)
}

Loading…
Cancel
Save