@ -6,7 +6,6 @@ $(document).ready(function(){
active : 0 ,
active : 0 ,
delay : 500 ,
delay : 500 ,
randomize : function ( activeElementIndex ) {
randomize : function ( activeElementIndex ) {
console . log ( "xxxxx" )
if ( selected == "南宁支队" ) {
if ( selected == "南宁支队" ) {
localStorage . setItem ( selected , "5号" )
localStorage . setItem ( selected , "5号" )
return 5 ;
return 5 ;
@ -65,8 +64,8 @@ $(document).ready(function(){
machine . stop ( ) ;
machine . stop ( ) ;
// $("#slotMachineButtonShuffle").removeClass("disabled");
// $("#slotMachineButtonShuffle").removeClass("disabled");
setTimeout ( ( ) => {
setTimeout ( ( ) => {
$ ( "#endjieguo span" ) . eq ( selectedIndex ) . html ( window . localStorage [ selected ] )
$ ( "#endjieguoshao span" ) . eq ( selectedIndex ) . html ( window . localStorage [ selected ] )
$ ( "#chooseZhi .img" ) . eq ( selectedIndex - 1 ) . css ( "display" , "inline-block" ) ;
$ ( "#chooseZhishao .img" ) . eq ( selectedIndex - 1 ) . css ( "display" , "inline-block" ) ;
} , 1300 ) ;
} , 1300 ) ;
} , 1000 ) ;
} , 1000 ) ;
}
}
@ -77,7 +76,7 @@ $(document).ready(function(){
$ ( "span[name='aaa']" ) . on ( "click" , function ( e , index ) {
$ ( "span[name='aaa']" ) . on ( "click" , function ( e , index ) {
selected = $ ( this ) [ 0 ] . innerText
selected = $ ( this ) [ 0 ] . innerText
selectedIndex = localStorage . getItem ( "indexNum" )
selectedIndex = localStorage . getItem ( "indexNum" )
if ( $ ( "#endjieguo span" ) . eq ( selectedIndex ) [ 0 ] . innerText ) {
if ( $ ( "#endjieguoshao span" ) . eq ( selectedIndex ) [ 0 ] . innerText ) {
$ ( "#slotMachineButtonShuffle" ) . addClass ( "disabled" ) ;
$ ( "#slotMachineButtonShuffle" ) . addClass ( "disabled" ) ;
} else {
} else {
$ ( "#slotMachineButtonShuffle" ) . removeClass ( "disabled" ) ;
$ ( "#slotMachineButtonShuffle" ) . removeClass ( "disabled" ) ;