1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/js/main.js

23 lines
520 B
JavaScript
Raw Permalink Normal View History

2009-10-23 16:41:57 -04:00
function toggleSource( id )
{
var $src = $('#' + id).toggle();
$('#l_' + id).html($src.css('display') == 'none' ? 'show' : 'hide');
}
function openCode( url )
{
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
}
window.highlight = function(url) {
var hash = url.match(/#([^#]+)$/)
if(hash) {
$('a[name=' + hash[1] + ']').parent().effect('highlight', {}, 'slow')
}
}
$(function() {
highlight('#' + location.hash);
});