I'm trying to have .child\_box class to open and close slow but seems Local Storage is not respecting it. Either it wont open or it wont close. Without Local Storage, it works fine. Stumped.

The js:

```
  $("document").ready(function () {
    $(".manualclose").click(function () {
      $(".child_box").toggle();
    });

    ls = localStorage.getItem('on')
    if(ls) {
      $(".child_box").show("slow")
    }

    $(".open_child").click(function () {
      localStorage.setItem('on',true)
      toggled = $(".child_box").toggle();
      if(toggled.is(":hidden")) {
        localStorage.clear();
      }
  });

    $(".manualclose").click(function() {
      localStorage.clear();
      $(".child_box").hide("slow") 
    });
  }); 

```

The button:

```
<div class="open_child" title="', $txt['sub_boards2'], '">
  <i class="fas fa-plus-circle"></i>
</div>

```