File tree 2 files changed +16
-26
lines changed
2 files changed +16
-26
lines changed Original file line number Diff line number Diff line change 21
21
}
22
22
$ ( document ) . keyup ( function ( e ) {
23
23
if ( e . which == 27 ) {
24
- alert ( "ha!" ) ;
25
24
$ ( "#floater" ) . fadeOut ( 300 , function ( ) {
26
25
$ ( "#floater-overlay" ) . fadeOut ( 200 ) ;
27
26
} ) ;
28
27
}
29
28
} ) ;
30
29
$ ( this ) . click ( function ( ) {
31
- var rel = $ ( this ) . attr ( "rel" ) ;
32
- var href = $ ( this ) . attr ( "href" ) ;
30
+ var rel = $ ( this ) . attr ( "rel" ) ,
31
+ href = $ ( this ) . parent ( ) . find ( "ul:first" ) . html ( ) ;
33
32
if ( rel != "" ) {
34
33
$ ( "#floater" ) . removeClass ( ) . addClass ( rel ) ;
35
34
$ ( "#floater .frame" ) . html ( "" ) ;
36
35
$ ( "#floater-overlay" ) . fadeIn ( 300 , function ( ) {
37
36
$ ( "#floater" ) . fadeIn ( 800 , function ( ) {
38
- $ . ajax ( {
39
- url : href ,
40
- dataType : "html" ,
41
- success : function ( project ) {
42
- $ ( "#floater .frame" ) . html ( project ) ;
43
- $ ( "#floater .frame" ) . fadeIn ( 300 ) ;
37
+ $ ( "#floater .frame" ) . html ( "<ul>" + href + "</ul>" ) ;
38
+
39
+ $ ( "#floater .frame" ) . fadeIn ( 300 , function ( ) {
44
40
45
41
if ( parseInt ( $ ( document ) . width ( ) ) < 770 ) {
46
42
$ ( "#floater .frame ul li" ) . css ( { width :parseInt ( $ ( document ) . width ( ) ) } ) ;
65
61
} ,
66
62
threshold :0
67
63
} ) ;
68
-
69
- }
70
- } ) ;
71
- } ) ;
64
+
65
+ } ) ;
66
+ } ) ;
72
67
} ) ;
73
68
}
74
69
return false ;
Original file line number Diff line number Diff line change 21
21
}
22
22
$ ( document ) . keyup ( function ( e ) {
23
23
if ( e . which == 27 ) {
24
- alert ( "ha!" ) ;
25
24
$ ( "#floater" ) . fadeOut ( 300 , function ( ) {
26
25
$ ( "#floater-overlay" ) . fadeOut ( 200 ) ;
27
26
} ) ;
28
27
}
29
28
} ) ;
30
29
$ ( this ) . click ( function ( ) {
31
- var rel = $ ( this ) . attr ( "rel" ) ;
32
- var href = $ ( this ) . attr ( "href" ) ;
30
+ var rel = $ ( this ) . attr ( "rel" ) ,
31
+ href = $ ( this ) . parent ( ) . find ( "ul:first" ) . html ( ) ;
33
32
if ( rel != "" ) {
34
33
$ ( "#floater" ) . removeClass ( ) . addClass ( rel ) ;
35
34
$ ( "#floater .frame" ) . html ( "" ) ;
36
35
$ ( "#floater-overlay" ) . fadeIn ( 300 , function ( ) {
37
36
$ ( "#floater" ) . fadeIn ( 800 , function ( ) {
38
- $ . ajax ( {
39
- url : href ,
40
- dataType : "html" ,
41
- success : function ( project ) {
42
- $ ( "#floater .frame" ) . html ( project ) ;
43
- $ ( "#floater .frame" ) . fadeIn ( 300 ) ;
37
+ $ ( "#floater .frame" ) . html ( "<ul>" + href + "</ul>" ) ;
38
+
39
+ $ ( "#floater .frame" ) . fadeIn ( 300 , function ( ) {
44
40
45
41
if ( parseInt ( $ ( document ) . width ( ) ) < 770 ) {
46
42
$ ( "#floater .frame ul li" ) . css ( { width :parseInt ( $ ( document ) . width ( ) ) } ) ;
65
61
} ,
66
62
threshold :0
67
63
} ) ;
68
-
69
- }
70
- } ) ;
71
- } ) ;
64
+
65
+ } ) ;
66
+ } ) ;
72
67
} ) ;
73
68
}
74
69
return false ;
You can’t perform that action at this time.
0 commit comments