|
@ -308,7 +308,7 @@ semantic.ready = function() { |
|
|
; |
|
|
; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if( $example.find('.ace_editor').size() === 0) { |
|
|
|
|
|
|
|
|
if( $annotation.find('.ace_editor').size() === 0) { |
|
|
$code = $('<div/>') |
|
|
$code = $('<div/>') |
|
|
.data('type', 'html') |
|
|
.data('type', 'html') |
|
|
.addClass('code') |
|
|
.addClass('code') |
|
@ -460,14 +460,14 @@ semantic.ready = function() { |
|
|
// add label
|
|
|
// add label
|
|
|
if(title) { |
|
|
if(title) { |
|
|
$('<div>') |
|
|
$('<div>') |
|
|
.addClass('ui attached top label') |
|
|
|
|
|
|
|
|
.addClass('ui ignored attached top label') |
|
|
.html('<span class="title">' + title + '</span>' + '<em>' + (displayType[contentType] || contentType) + '</em>') |
|
|
.html('<span class="title">' + title + '</span>' + '<em>' + (displayType[contentType] || contentType) + '</em>') |
|
|
.prependTo( $(this).parent() ) |
|
|
.prependTo( $(this).parent() ) |
|
|
; |
|
|
; |
|
|
} |
|
|
} |
|
|
if(label) { |
|
|
if(label) { |
|
|
$('<div>') |
|
|
$('<div>') |
|
|
.addClass('ui pointing below label') |
|
|
|
|
|
|
|
|
.addClass('ui ignored pointing below label') |
|
|
.html(displayType[contentType] || contentType) |
|
|
.html(displayType[contentType] || contentType) |
|
|
.insertBefore ( $(this).parent() ) |
|
|
.insertBefore ( $(this).parent() ) |
|
|
; |
|
|
; |
|
@ -475,7 +475,7 @@ semantic.ready = function() { |
|
|
// add run code button
|
|
|
// add run code button
|
|
|
if(demo) { |
|
|
if(demo) { |
|
|
$('<a>') |
|
|
$('<a>') |
|
|
.addClass('ui pointing below black label') |
|
|
|
|
|
|
|
|
.addClass('ui ignored pointing below black label') |
|
|
.html('Run Code') |
|
|
.html('Run Code') |
|
|
.on('click', function() { |
|
|
.on('click', function() { |
|
|
eval(code); |
|
|
eval(code); |
|
|