PageSourceSearch

https://charme-zone.com/wp-content/themes/flatsome-child/assets/js/custom.js?ver=1791567035

js charme-zone.com collected 2026-10-09 17:31:41 UTC 2,843 bytes, 69 lines download raw bytes

1var KHelper = {
2    _formatString: function (str) {
3        str = str.toLowerCase();
4        str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, "a");
5        str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, "e");
6        str = str.replace(/ì|í|ị|ỉ|ĩ/g, "i");
7        str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g, "o");
8        str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g, "u");
9        str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g, "y");
10        str = str.replace(/đ/g, "d");
11     
12        return str;
13    },
14};
15
16jQuery(document).ready(function ($) {
17    var KApp = {
18        init: function () {
19            this.add_readmore_button();
20        },
21
22        // Will add readmore button to all the wrapper class .k-readmore-box automatically
23        add_readmore_button: function () {
24            var hidden_block_view = function(element, your_height = 150) {
25                var wrap = element;
26                var current_height = wrap.height();
27                if (current_height > your_height) {
28                    wrap.css('height', your_height + 'px');
29                    wrap.append(function () {
30                        return '<div class="devvn_readmore_flatsome"><span title="Xem thêm" href="javascript:void(0);">Xem thêm</span></div>';
31                    });
32                    $('body').on('click','.devvn_readmore_flatsome', function () {
33                        wrap.removeAttr('style');
34                        $('body .devvn_readmore_flatsome').remove();
35                    });
36                }
37            };
38
39            if ($('.k-readmore-box').length > 0) {
40                hidden_block_view($('.k-readmore-box'), 300);                     
41            }
42        },
43
44    }
45
46    KApp.init();
47
48    $(".gif-banner").append('<a class="x" target="_blank" href="' + $(".gif-banner a").attr('href') + '">x</a>');
49    $('.gif-banner .x').click(function() {
50        $('.gif-banner').hide();
51    });
52    $('.j-gif').click(function() {
53        $('.gif-banner').show();
54    });
55    if ($('.rank-math-breadcrumb .last').text() == 'KQBD') {
56        $( '<a href="/">KQBD</a><span class="separator"> / </span>' ).insertBefore( '.rank-math-breadcrumb .last' );
57        $('.rank-math-breadcrumb .last').text($('title').text().replace(' -', ''));
58    }
59    $(".h-section .readmore").append('<button class="readmoreButton">Đọc tiếp</button>');
60    $(".h-section .readmore .readmoreButton").click(function() {
61        $('.h-section .readmore *').show();
62        $('.h-section .readmore .readmoreButton').hide();
63    });
64    $(".h-cpd").append('<div class="x">x</div>');
65    $('.h-cpd .x').click(function() {
66        $(this).parent().hide();
67    });
68    $(".header-block .j-live span").prepend('<span class="live"></span>');
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.