| Server IP : 104.21.41.186 / Your IP : 216.73.216.182 Web Server : LiteSpeed System : Linux pbn-16.isgood.host 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gamenohushop ( 1160) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lsws/gamenohu.shop/html/wp-content/themes/flatsome-child/assets/js/ |
Upload File : |
var KHelper = {
_formatString: function (str) {
str = str.toLowerCase();
str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, "a");
str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, "e");
str = str.replace(/ì|í|ị|ỉ|ĩ/g, "i");
str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g, "o");
str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g, "u");
str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g, "y");
str = str.replace(/đ/g, "d");
return str;
},
};
jQuery(document).ready(function ($) {
var KApp = {
init: function () {
this.add_readmore_button();
},
// Will add readmore button to all the wrapper class .k-readmore-box automatically
add_readmore_button: function () {
var hidden_block_view = function(element, your_height = 150) {
var wrap = element;
var current_height = wrap.height();
if (current_height > your_height) {
wrap.css('height', your_height + 'px');
wrap.append(function () {
return '<div class="devvn_readmore_flatsome"><span title="Xem thêm" href="javascript:void(0);">Xem thêm</span></div>';
});
$('body').on('click','.devvn_readmore_flatsome', function () {
wrap.removeAttr('style');
$('body .devvn_readmore_flatsome').remove();
});
}
};
if ($('.k-readmore-box').length > 0) {
hidden_block_view($('.k-readmore-box'), 300);
}
},
}
KApp.init();
});