@ -79,6 +79,7 @@ semantic.ready = function() {
$code = $ ( 'div.code' ) . not ( '.existing' ) ,
$existingCode = $ ( '.existing.code' ) ,
expertiseLevel = $ . cookie ( 'expertiseLevel' ) || 0 ,
languageDropdownUsed = false ,
@ -107,6 +108,10 @@ semantic.ready = function() {
$ ( '<i/>' )
. addClass ( 'icon code' )
. insertBefore ( $insertPoint )
. on ( 'click' , function ( ) {
$ . cookie ( 'expertiseLevel' , 2 ) ;
handler . createCode . call ( this ) ;
} )
;
} )
;
@ -1152,8 +1157,10 @@ semantic.ready = function() {
* /
handler . createIcon ( ) ;
if ( expertiseLevel < 2 ) {
$popupExample
/ * . e a c h ( f u n c t i o n ( ) {
. each ( function ( ) {
$ ( this )
. popup ( {
preserve : false ,
@ -1163,16 +1170,15 @@ semantic.ready = function() {
show : 500 ,
hide : 100
} ,
position : 'top righ t' ,
offset : 5 ,
position : 'top lef t' ,
offset : - 5 ,
content : 'View Source' ,
target : $ ( this ) . find ( 'i.code' )
} )
;
} ) * /
. find ( 'i.code' )
. on ( 'click' , handler . createCode )
} )
;
}
$menuMusic
. on ( 'click' , handler . openMusic )