# darkify/1.2.0/admin/js/darkify-admin.js

Darkify – Dark Mode &amp; Night Mode for Website &amp; Admin (Dark Theme Included), version 1.2.0. 32 lines.

- Page: https://pluginprobe.com/plugins/darkify/1.2.0/code/admin/js/darkify-admin.js
- Raw: https://pluginprobe.com/plugins/darkify/1.2.0/raw/admin/js/darkify-admin.js
- Modified: 2024-07-04T07:45:52+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/darkify/1.2.0/code/admin/js/darkify-admin.js#L10-L20`.

```javascript
(function ($) {
    "use strict";
    $(document).on("click", "#switcher_shortcode_copy", function (e) {
      e.preventDefault();
      /* Get the text field */
      $(this).siblings("#switcher_shortcode").select();
      /* Select the text field */
      document.execCommand("copy");
      $(".switcher_shortcode_after_copy").animate(
        {
        opacity: 1,
        bottom: 25,
        },
        300
      );
      setTimeout(function () {
        jQuery(".switcher_shortcode_after_copy").animate(
        {
          opacity: 0,
        },
        200
        );
        jQuery(".switcher_shortcode_after_copy").animate(
        {
          bottom: 0,
        },
        0
        );
      }, 2000);
      });
  
  })(jQuery);
```
