PageSourceSearch

https://members.kelbyone.com/wp-content/themes/ko/assets/js/kelbyone/theme-toggle.js

js kelbyone.com collected 2026-09-24 09:58:12 UTC 510 bytes, 17 lines download raw bytes

1jQuery(document).ready(function ($) {
2  $('#themeToggle').change(function () {
3    $('body').toggleClass('dark');
4    var theme = $('#themeToggle').is(':checked') ? "dark" : "light";
5    document.dispatchEvent(new CustomEvent('koc-theme-toggle', { detail: { theme: theme } } ));
6
7    $.ajax({
8      url: "/wp-json/ko/v4/users/" + KOAPI.user_id + "/preferences?token=" + KOAPI.token,
9      type: "POST",
10      global: false,
11      dataType: 'json',
12      data: {
13        "theme": theme
14      }
15    });
16  });
17});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.