Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bbcode.js 482B

1234567891011121314151617
  1. var BBCode = {
  2. spoiler: function(link) {
  3. if ($(link.nextSibling).has_class('hidden')) {
  4. $(link.nextSibling).gshow();
  5. $(link).html('Hide');
  6. if ($(link).attr("value")) {
  7. $(link).attr("value", "Hide" + $(link).attr("value").substring(4))
  8. }
  9. } else {
  10. $(link.nextSibling).ghide();
  11. $(link).html('Show');
  12. if ($(link).attr("value")) {
  13. $(link).attr("value", "Show" + $(link).attr("value").substring(4))
  14. }
  15. }
  16. }
  17. };