# flywp/0.2.0/assets/js/admin.js

FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel, version 0.2.0. 31 lines.

- Page: https://pluginprobe.com/plugins/flywp/0.2.0/code/assets/js/admin.js
- Raw: https://pluginprobe.com/plugins/flywp/0.2.0/raw/assets/js/admin.js
- Modified: 2023-06-13T17:24:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/flywp/0.2.0/code/assets/js/admin.js#L10-L20`.

```javascript
(function ($) {

  var $fcgiButton = $('#fastcgi-settings-button'),
    $fcgiClose = $('#fastcgi-settings-close'),
    $fcgiSettings = $('#fastcgi-settings');

  // show/hide page cache settings
  $fcgiButton.on('click', function (e) {
    $(this).toggleClass('active');

    if ($(this).hasClass('active')) {
      $fcgiSettings.slideDown('fast');
    } else {
      $fcgiSettings.slideUp('fast');
    }
  });

  // close page cache settings
  $fcgiClose.on('click', function (e) {
    $fcgiButton.removeClass('active');
    $fcgiSettings.slideUp('fast');
  });

  // Remove page cache notice after 2 seconds
  if ($('#fly-page-cache-notice').length) {
    setTimeout(function () {
      $('#fly-page-cache-notice').fadeOut('slow');
    }, 2000);
  }
})(jQuery);

```
