Difference between revisions of "User:Jplayer"
From RuneGlory
Line 26: | Line 26: | ||
− | $( "span.subpages" ).html( $( "span.subpages" ).children() ); | + | if ( $( "span.subpages" ).length ) { |
− | + | $( "span.subpages" ).html( $( "span.subpages" ).children() ); | |
− | var title = $( "h1#firstHeading" ).html().split('/'); | + | var title = $( "h1#firstHeading" ).html().split('/'); |
− | + | $( "<span>" + title[ title.length - 1 ] + "</span>" ).appendTo( "span.subpages" ); | |
− | + | } else { | |
− | $( "<span>" + title[ title.length - 1 ] + "</span>" ).appendTo( "span.subpages" ); | + | $( "div#contentSub" ).prepend( "<span class='subpages'></span>" ); |
+ | var title = $( "h1#firstHeading" ).html().split('/'); | ||
+ | $( "<span>" + title[ title.length - 1 ] + "</span>" ).appendTo( "span.subpages" ); | ||
+ | } | ||
} | } |
Revision as of 20:59, 19 March 2016
Hello, this is just a preview.
- Jplayer