mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 20:06:25 +00:00
12 lines
234 B
JavaScript
12 lines
234 B
JavaScript
|
var BBCode = {
|
||
|
spoiler: function(link) {
|
||
|
if($(link.nextSibling).has_class('hidden')) {
|
||
|
$(link.nextSibling).show();
|
||
|
$(link).html('Hide');
|
||
|
} else {
|
||
|
$(link.nextSibling).hide();
|
||
|
$(link).html('Show');
|
||
|
}
|
||
|
}
|
||
|
};
|