File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -429,9 +429,9 @@ div.tooltip {
429
429
color : White;
430
430
position : absolute;
431
431
left : 35% ;
432
- top : -25 % ;
432
+ top : 10 % ;
433
433
z-index : 1000000 ;
434
- width : 65 % ;
434
+ width : 60 % ;
435
435
border-radius : 5px ;
436
436
border-style : solid;
437
437
border-color : # 3d5b25 ;
Original file line number Diff line number Diff line change 39
39
success : function ( data ) {
40
40
var lines = data . split ( "\n" ) ;
41
41
$ . each ( lines , function ( n , elem ) {
42
- if ( elem != "" ) {
42
+ if ( n == ( lines . length - 1 ) ) {
43
+ $ ( '#version-list li a.latestversion' ) . append ( '<div class="tooltip"><p>Latest version</p></div>' ) ;
44
+ }
45
+ else if ( elem != "" ) {
43
46
var res = elem . split ( ":" ) ;
44
47
if ( n == ( lines . length - 2 ) ) {
45
48
$ ( "#version-list" ) . prepend ( "<li><a class='latestversion' style='font-size:100%;' href=" + "../latest/index.html" + "><span>Latest</span></a></li>" ) ;
55
58
}
56
59
} ) ;
57
60
58
- $ ( "#bottom-list" ) . hover ( function ( ) {
59
- $ ( '#version-list li a.latestversion' ) . append ( '<div class="tooltip"><p>Latest version</p></div>' ) ;
60
- } , function ( ) {
61
- $ ( '#version-list li a.latestversion div' ) . remove ( ) ;
62
- } ) ;
63
-
64
61
$ ( '#popupmenu li.has-sub' ) . on ( 'click' , function ( ) {
65
62
if ( $ ( 'li.has-sub' ) . hasClass ( 'open' ) ) {
66
63
$ ( 'li.has-sub' ) . removeClass ( 'open' ) ;
You can’t perform that action at this time.
0 commit comments