@@ -1623,18 +1623,39 @@ TABS.mission_control.initialize = function (callback) {
1623
1623
} )
1624
1624
} ) ;
1625
1625
1626
- $ ( '#loadMissionButton' ) . on ( 'click' , function ( ) {
1626
+ $ ( '#loadMissionButton' ) . on ( 'click' , function ( ) { // load FROM FC
1627
1627
if ( markers . length && ! confirm ( chrome . i18n . getMessage ( 'confirm_delete_all_points' ) ) ) return ;
1628
+ $ ( '#loadMissionButton' ) . delay ( 2000 ) . css ( 'border' , '1px solid #37a8db' ) . css ( 'color' , '#37a8db' ) . css ( 'background-color' , '#909000' ) ; //.css('a:hover', 'purple'); // test
1629
+ // yellow=progress blue blue yellow
1630
+
1628
1631
removeAllWaypoints ( ) ;
1629
1632
$ ( this ) . addClass ( 'disabled' ) ;
1633
+
1634
+ //$('#loadMissionButton').delay(2000).css('border', '1px solid #37a8db').css('color', '#37a8db').css('background-color', '#008000');//.css('a:hover', 'purple'); // test
1635
+ // green=success blue blue green
1636
+ $ ( '#loadMissionButton' ) . delay ( 3000 ) . animate ( { backgroundColor : '#ffffff' , 'color' : '#37a8db' } , 'slow' , 'swing' , function ( ) {
1637
+ // Animation complete.
1638
+ $ ( '#loadMissionButton' ) . removeAttr ( 'style' ) ; // removeAttr removes all attribure styling, returning it 'stock'
1639
+ } ) ;
1640
+ // return to stock white/blue after some time white blue
1641
+
1630
1642
GUI . log ( 'Start get point' ) ;
1631
1643
getWaypointsFromFC ( ) ;
1632
1644
GUI . log ( 'End get point' ) ;
1633
1645
$ ( '#loadMissionButton' ) . removeClass ( 'disabled' ) ;
1634
1646
} ) ;
1635
1647
1636
- $ ( '#saveMissionButton' ) . on ( 'click' , function ( ) {
1648
+ $ ( '#saveMissionButton' ) . on ( 'click' , function ( ) { // save TO.. FC
1637
1649
$ ( this ) . addClass ( 'disabled' ) ;
1650
+
1651
+ $ ( '#saveMissionButton' ) . delay ( 2000 ) . css ( 'border' , '1px solid #37a8db' ) . css ( 'color' , '#37a8db' ) . css ( 'background-color' , '#909000' ) ; //.css('a:hover', 'purple'); // test
1652
+ // yellow=progress blue blue yellow
1653
+ $ ( '#saveMissionButton' ) . delay ( 3000 ) . animate ( { backgroundColor : '#ffffff' , 'color' : '#37a8db' } , 'slow' , 'swing' , function ( ) {
1654
+ // Animation complete.
1655
+ $ ( '#saveMissionButton' ) . removeAttr ( 'style' ) ; // removeAttr removes all attribure styling, returning it 'stock'
1656
+ } ) ;
1657
+ // return to stock white/blue after some time white blue
1658
+
1638
1659
GUI . log ( 'Start send point' ) ;
1639
1660
sendWaypointsToFC ( ) ;
1640
1661
GUI . log ( 'End send point' ) ;
0 commit comments