PageSourceSearch

https://kikswap.com/assets/buy-crypto.js

js kikswap.com collected 2026-10-08 23:33:56 UTC 3,119 bytes, 69 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2    if (window.innerWidth < 1079) {
3        $(".header").addClass('header-index');
4    }
5
6    const selectedItem = $(".selected-item").first();
7    const dropdown = $(".dropdown").first();
8    const text = $(".selected-item").find('.text').first();
9
10    document.addEventListener('click', (event) => {
11        if (selectedItem.hasClass("selected-item--active") && !event.target.closest('.selected_item') && !event.target.closest('.dropdown') &&
12            !event.target.closest('.select-wrapper') && !event.target.closest('.theme') && !event.target.closest('.item')) {
13            selectedItem.removeClass("selected-item--active");
14            dropdown.css('display', 'none');
15        }
16    });
17
18    $(".dropdown__mobile > svg").on('click', () => {
19        selectedItem.removeClass("selected-item--active");
20        dropdown.css('display', 'none');
21    });
22
23    selectedItem.on('click', (event) => {
24        if (selectedItem.hasClass("selected-item--active")) {
25            selectedItem.removeClass("selected-item--active");
26            dropdown.css('display', 'none');
27        } else {
28            selectedItem.addClass("selected-item--active");
29            dropdown.css('display', 'block');
30        }
31    });
32
33    $(".whats-up > svg").on('click', () => {
34        $(".whats-up").css('display', 'none');
35    });
36
37    /*$(".dropdown").find(".item").on('click', function() {
38        $(".dropdown").find(".item").each(function() {
39            $(this).find('svg').remove();
40            $(this).removeClass('item__active');
41        });
42
43        $(this).prepend(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_2297_1032)"><g clip-path="url(#clip1_2297_1032)"><path d="M9.00039 16.2001L4.80039 12.0001L3.40039 13.4001L9.00039 19.0001L21.0004 7.0001L19.6004 5.6001L9.00039 16.2001Z" fill="#02C076"></path></g></g><defs><clipPath id="clip0_2297_1032"><rect width="24" height="24" fill="white"></rect></clipPath><clipPath id="clip1_2297_1032"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>`);
44        $(this).addClass('item__active');
45
46        const type = $(this).find('div').text().trim();
47
48        text.html(`${type}`);
49
50        if (type === 'ChangeNow') {
51            $("#changelly").css('display', 'none');
52            $("#transak").css('display', 'none');
53            $("#changenow").css('display', 'flex');
54        } else if (type === 'Changelly') {
55            $("#transak").css('display', 'none');
56            $("#changenow").css('display', 'none');
57            $("#changelly").css('display', 'flex');
58        } else {
59            $("#changenow").css('display', 'none');
60            $("#changelly").css('display', 'none');
61            $("#transak").css('display', 'flex');
62        }
63
64        selectedItem.find("img").first().attr('src', $(this).find('img').first().attr('src'))
65
66        selectedItem.removeClass("selected-item--active");
67        dropdown.css('display', 'none');
68    });*/
69});

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.