<!DOCTYPE html>
<html >
<head>
<title>Ngô Thừa Ân</title>
<meta name="robots" content="NOINDEX,NOFOLLOW">
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="copyright" content="Copyright © 2000 - 2024 by thuvienphapluat">
<meta name="author" content="thuvienphapluat.vn">
<meta name="language" content="vietnamese">
<meta http-equiv="REFRESH" content="1800">
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta content="vi-VN" itemprop="inLanguage">
<meta content="news" itemprop="genre" name="medium">
<input type="hidden" value="" id="secret_Token" />
<link href="/cong-dong-dan-luat/Content/bootstrap4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="/cong-dong-dan-luat/Scripts/jquery-3.3.1.min.js" type="text/javascript"></script>
<link rel="canonical" href="https://thuvienphapluat.vn/cong-dong-dan-luat/thanh-vien/zuesleee" />
</head>
<body>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<link href="/cong-dong-dan-luat/Content/bootstrap.min.css" rel="stylesheet" />
<link href="/cong-dong-dan-luat/Content/style/font-awesome.min.css" rel="stylesheet" />
<link href="/cong-dong-dan-luat/Content/fontawesome/css/all.css" rel="stylesheet" />
<link href="/cong-dong-dan-luat/Content/style/footable.core.min.css" rel="stylesheet" />
<link href="/cong-dong-dan-luat/Areas/Admin/Content/ckeditor/contents.css" rel="stylesheet" />
<link href="/cong-dong-dan-luat/Content/style/jquery-ui-datepicker.css" rel="stylesheet" />
<link href="/cong-dong-dan-luat/Content/style/common.css" rel="stylesheet" />
<link href="/cong-dong-dan-luat/Content/images-grid/images-grid.css" rel="stylesheet" />
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/datepicker/jquery-datepicker.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/datepicker/jquery.min-datepicker.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Areas/Admin/Content/ckeditor/ckeditor.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Areas/Admin/Content/ckfinder/ckfinder.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/bootstrap.min.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/sweetalert.min.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/moment/moment.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/footable/footable.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/footable/footable.sort.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/footable/paginate.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Content/images-grid/images-grid.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9306943704062447"
crossorigin="anonymous"></script>
<div class="container wap-banner-header">
<div class="row">
<a href="https://thuvienphapluat.vn/cong-dong-dan-luat//de-xuat-cho-luat-kinh-doanh-bat-dong-san-va-luat-nha-o-2023-co-hieu-luc-som-tu-17-212994.aspx#611174" target="_blank" style="width:100%">
<img alt="DanLuat" width="100%" src="https://cdn.thuvienphapluat.vn/uploads/cong-dong-dan-luat/2024/thang-5/06/banner.png">
</a>
</div>
</div>
<div id="main-content" class="container">
<link href="/cong-dong-dan-luat/Content/owl-carousel/assets/owl.carousel.min.css" rel="stylesheet" />
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Content/owl-carousel/owl.carousel.js"></script>
<style>
.fa, .fas {
color: #888;
}
.back-item {
position: absolute;
top: 0;
left: 0;
display: none
}
.back-item button {
color: #fff;
opacity: 1;
background: transparent;
width: 50px;
height: 40px;
font-size: 30px;
border: none;
outline: none;
padding-right: 10px;
}
.back-item button span {
top: -3px;
position: absolute;
left: 10px;
}
</style>
<!--css banner Text header-->
<style>
div.main {
margin-top: 25px;
overflow: hidden;
background-color: #2F5168;
height: auto;
font-size: 1.5em;
color: #E4F6F8;
}
div.slide-right p {
margin: 0;
-webkit-animation: loop 20s infinite linear;
animation: loop 20s infinite linear;
}
div.slide-left p {
margin: 0;
-webkit-animation: loop 20s infinite linear;
animation: loop 20s infinite linear;
}
@keyframes loop {
100% {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
}
#two {
width: 100%;
padding-left: 20px;
padding-right: 15px;
overflow: hidden;
}
.center {
width: 100%;
top: 45px;
z-index: 2;
position: absolute;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.text-container {
padding: 5px 10px;
min-width: 0;
font-size: 2rem;
color: #708090;
white-space: nowrap;
overflow: visible;
position: relative;
border-radius: 5px;
}
.text-container a {
display: inline-block;
font-size: 15px;
}
.text-container .animate {
position: relative;
/* animation: leftright 3s infinite alternate ease-in-out;*/
-webkit-animation: loop 20s infinite linear;
animation: loop 20s infinite linear;
}
@keyframes leftright {
0%, 20% {
transform: translateX(0%);
left: 0%;
}
80%, 100% {
transform: translateX(-100%);
left: 100%;
}
}
.fader {
position: absolute;
top: 0;
height: 100%;
width: 25px;
}
@media (max-width: 992px) {
.wap-banner-header-center .center {
left: 60% !important;
}
}
@media (max-width: 450px) {
.center {
width: 100%;
padding: 20px;
}
}
</style>
<!--css from login new-->
<style>
.aramaKutusu {
top: 10px;
}
.navigation__logo_mobile #menu-user-header {
padding: 5px;
top: -26px;
}
.wap-form-login {
display: flex;
position: absolute;
right: -25px;
top: 35px;
}
.wap-form-login a.register {
color: #fe0c00;
text-align: center;
height: max-content;
padding: 5px;
margin-top: 6px;
border-radius: 3px;
margin-right: 5px;
border: 1px solid;
}
@media (max-width: 992px) and (min-width: 768px) {
.wap-form-login {
right: -110%;
}
}
@media (max-width: 480px) {
.aramaKutusu {
top: 35px;
height: 32px;
}
.wap-form-login {
display: flex;
position: absolute;
right: -40px;
top: 70px;
}
.navigation__logo_mobile #menu-user-header {
top: 14px;
font-size: 33px;
}
}
</style>
<input type="hidden" value="-1" class="CusID" id="CusID" />
<input type="hidden" value="" class="CusName" id="CusName" />
<nav role="navigation" class="navigation_mobile container" id="navigation_mobile">
<div class="navigation__logo_mobile">
<div class="logo-name col-xs-6 col-md-4 col-lg-3">
<a class="navbar-brand" href="https://thuvienphapluat.vn/cong-dong-dan-luat/">
<img src="https://thuvienphapluat.vn/cong-dong-dan-luat/Content/Images/logo-danluat-he.png" class="logo" />
</a>
</div>
<div class="col-md-6 col-lg-5 wap-banner-header-center">
<div class="center" style="top: 35px;margin-left: 15px;">
<style>
.wap_content_carousel {
}
.wap_content_carousel > .new-post-slide > .owl-nav > .owl-prev {
float: left;
display: none;
}
.wap_content_carousel > .new-post-slide > .owl-nav > .owl-next {
float: right;
display: none;
}
.wap_content_carousel .owl-carousel .owl-item img {
height: 120px;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming) */
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
object-fit: contain;
border: 1px solid #ddd;
}
.wap_content_carousel a:hover {
text-decoration: none;
}
</style>
<div>
<div class="wap_content_carousel" style="min-height: 40px; padding-bottom: 0;">
<div class="new-post-slide owl-carousel " id="owl-example">
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/le-phi-doi-giay-phep-lai-xe-truc-tuyen-tu-nam-2024-tro-di-la-bao-nhieu-213080.aspx#611273" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Lệ phí đổi giấy phép lái xe trực tuyến từ năm 2024 trở đi là bao nhiêu?</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dang-ky-thuong-tru-tai-nha-nguoi-than-co-can-hop-dong-o-nho-mau-hop-dong-o-nho-2024-213076.aspx#611268" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Đăng ký thường trú tại nhà người thân có cần hợp đồng ở nhờ? Mẫu hợp đồng ở nhờ 2024?</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/de-xuat-muon-dang-ky-thuong-tru-tai-nha-thue-thi-hop-dong-thue-nha-phai-duoc-cong-chung-chuc-thuc-213068.aspx#611260" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Đề xuất: Muốn đăng ký thường trú tại nhà thuê thì hợp đồng thuê nhà phải được công chứng, chức thực</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/di-chuc-mieng-se-co-hieu-luc-khi-nao-can-it-nhat-may-nguoi-lam-chung-213064.aspx#611256" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Di chúc miệng sẽ có hiệu lực khi nào? Cần ít nhất mấy người làm chứng?</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/ai-duoc-mien-giam-tam-ung-an-phi-an-phi-dan-su-nam-2024-mau-don-xin-mien-tam-ung-an-phi-moi-nhat-213059.aspx#611251" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Ai được miễn, giảm tạm ứng án phí, án phí dân sự năm 2024? Mẫu đơn xin miễn tạm ứng án phí mới nhất?</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/huong-dan-thu-tuc-de-nghi-cap-lai-chung-chi-dinh-gia-dat-2024-213040.aspx#611230" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Hướng dẫn thủ tục đề nghị cấp lại Chứng chỉ định giá đất 2024</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/tu-172024-thuc-hien-che-do-tien-luong-moi-se-co-9-loai-phu-cap-nao-213034.aspx#611222" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Từ 1/7/2024 thực hiện chế độ tiền lương mới sẽ có 9 loại phụ cấp nào?</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/tong-hop-20-phuong-thuc-xet-tuyen-dai-hoc-2024-va-nhung-diem-thi-sinh-can-luu-y-213032.aspx#611220" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Tổng hợp 20 phương thức xét tuyển đại học 2024 và những điểm thí sinh cần lưu ý</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/tu-17-dinh-gia-dat-theo-phuong-phap-thu-nhap-thuc-hien-nhu-the-nao-213020.aspx#611204" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Từ 1/7, định giá đất theo phương pháp thu nhập thực hiện như thế nào?</a>
</div>
<div style="width:100%">
<a target="_blank" class="desciption" href="https://thuvienphapluat.vn/cong-dong-dan-luat/ap-luc-tang-gia-dien-trong-mua-nang-nong-gia-dien-se-duoc-dieu-chinh-3-thanglan-213015.aspx#611196" style="padding-top: 5px;color:#333 !important;font-weight:bold !important;-webkit-line-clamp: 4;width:100%">Áp lực tăng giá điện trong mùa nắng nóng? Giá điện sẽ được điều chỉnh 3 tháng/lần?</a>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<script>
$(document).ready(function () {
$('.new-post-slide').owlCarousel({
navText: ['<i class="fa fa-arrow-circle-left" aria-hidden="true"></i>', '<i class="fa fa-arrow-circle-right" aria-hidden="true"></i>'],
loop: true,
nav: true,
margin: 10,
autoplay: true,
center: false,
autoplayTimeout: 3000,
autoplayHoverPause: true,
responsiveClass: true,
slideTransition: 'ease',
smartSpeed: 200,
responsive: {
0: {
items: 1,
nav: true,
},
600: {
items: 1,
nav: true,
margin: 60,
},
768: {
items: 1,
center: false
},
1024: {
items: 1,
},
1300: {
items: 1,
nav: true,
}
}
});
});
</script>
</div>
</div>
<div class="col-xs-6 col-md-4 col-lg-4">
<i id="menu-user-header" class="fa fa-user-circle" onclick="openRegisterAndLogin();"></i>
<div class="clearfix"></div>
<div class="wap-form-login">
<a href="javascript:void(0);" class="register" onclick="openRegisterAndLogin();">Đăng ký</a>
<div class="abcRioButtonFB" style="width:auto; margin-right: 5px;">
<a title="Đăng nhập bằng Facebook" href="javascript:void(0);" onclick="return fbLogin();">
<i class="fab fa-facebook-f"></i>
</a>
</div>
<div class="abcRioButtonGoogle abcRioButtonLightBlue" style="width:auto;">
<a title="Đăng nhập bằng Google" href="javascript:void(0);" id="gSignIn" onclick="return google_login();">
<i class="fab fa-google" style=" background: #5183ec;"></i>
</a>
</div>
<div class="wap-btn-login-gg abcRioButtonGoogle abcRioButtonLightBlue" style="display:none">
<a title="Đăng nhập bằng Google" href="javascript:void(0);">
<i class="fab fa-google" style=" background: #5183ec;"></i>
</a>
</div>
</div>
</div>
<div>
<form onsubmit="return SearchNewsHeader()">
<div class="aramaKutusu">
<input type="text" id="txt-SearchNewsHeader" placeholder="Nhập từ khóa nội dung cần tìm..." spellcheck="false" oninput="searchAutocomplete(this)">
<a href="javascript:void(0);" onclick="SearchNewsHeader()"><i class="fa fa-search"></i></a>
</div>
</form>
<style>
.autocomplete {
position: relative;
display: inline-block;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
top: 67px;
right: 82px;
width: 290px;
max-height: 400px;
overflow: scroll;
display: none;
}
.autocomplete-items div {
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items a {
padding: 3px 8px;
display: block;
}
.autocomplete-items div:hover {
background-color: #e9e9e9;
}
/* width */
#autocomplete-list::-webkit-scrollbar {
width: 10px;
background: #f1f1f1;
display:block;
}
/* Track */
#autocomplete-list::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
#autocomplete-list::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
#autocomplete-list::-webkit-scrollbar-thumb:hover {
background: #555;
}
.autocomplete-active {
background-color: DodgerBlue !important;
color: #ffffff;
}
</style>
<div id="autocomplete-list" class="autocomplete-items" u></div>
</div>
</div>
<style>
.navigation__wrapper {
display: flex;
width: max-content;
/* padding: 0 15px 0 0;*/
}
.tab-bar-header {
margin: 5px auto;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
list-style-type: none;
-webkit-padding-start: 0;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
border-right: 0px;
width: max-content;
max-height: 35px;
margin-left: 30px;
}
.tab-bar-header li {
width: auto;
padding-left: 10px;
padding-right: 11px;
font-size: 15px;
background-color: #f6cd9c;
}
.tab-bar-header li:hover {
background-color: #EEECEC;
}
.tab-bar-header li:nth-last-child(2) {
border-right: none !important;
}
#tab-bar-header li.active {
border-bottom: 2px solid #fe0c00;
background-color: #f79522;
color: #fff;
}
.wap-navigation__button {
background-color: #fff;
position: absolute;
z-index: 1;
left: 5px;
width: 50px;
height: 45px;
}
.footer-menu {
padding: 0 20px;
}
a.logo-footer img.logo {
width: 150px;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
</style>
<style>
/* accordion-1 */
#accordion-1 {
position: relative;
box-shadow: 0px 1px 7px #DBDBDB;
}
#accordion-1 .head, .head-home {
background-color: #FFFFFF;
padding: 10px;
cursor: pointer;
transition: 0.2s ease;
}
#accordion-1 .head p, .head-home a {
margin-bottom: 0;
font-weight: bold;
}
#accordion-1 .head-home {
margin-left: 35px;
}
#accordion-1 .head-home a {
color: #fe0c00;
}
#accordion-1 .head-home i.fa-home {
text-align: center;
position: absolute;
left: 10px;
top: 7px;
}
#accordion-1 .arrow {
position: absolute;
right: 10px;
top: 5px;
transition: 0.25s ease;
opacity: 0.3;
transform: rotate(-90deg);
}
#accordion-1 .head:hover .arrow {
opacity: 1;
}
#accordion-1 .head:hover, #accordion-1 .active {
background-color: #EEECEC;
}
#accordion-1 .head-home:hover {
background-color: #EEECEC;
}
#accordion-1 .arrow-animate {
transform: rotate(0deg);
opacity: 1;
}
#accordion-1 .content-collapse {
background-color: #FFFFFF;
display: none;
color: #333333;
}
#accordion-1 .content-collapse a {
margin-bottom: 0;
padding: 10px 20px;
width: 100%;
display: block;
border-bottom: 1px solid #eee;
}
#accordion-1 .content-collapse a:hover {
background-color: #EEECEC;
color: #ef9f26;
}
.fa-angle-right {
font-size: 15px !important;
}
</style>
<style>
#tab-cungthaoluan {
position: initial;
}
#tab-cungthaoluan > ul {
position: absolute;
margin-top: 7px;
width: 200px;
display: none;
}
#tab-cungthaoluan > ul li a {
display: block;
background: #ebebeb;
padding: 10px 15px;
color: #333;
text-decoration: none;
-webkit-transition: 0.2s linear;
-moz-transition: 0.2s linear;
-ms-transition: 0.2s linear;
-o-transition: 0.2s linear;
transition: 0.2s linear;
}
#tab-cungthaoluan:hover > ul {
display: block;
}
#tab-cungthaoluan ul > li {
padding-left: 0;
padding-right: 0;
}
li > ul {
display: none;
}
.main-navigation {
clear: none;
display: inline-block;
float: right;
left: 50px;
overflow: hidden;
position: absolute;
top: 41px;
width: 300px;
z-index: 10;
/* left: 50%;
transform: translate(-50%, 0);*/
display: none;
background-color: #fff;
box-shadow: 0 0 5px rgba(0,0,0,.7);
}
.main-navigation ul {
margin: 0;
padding: 10px 0;
}
.main-navigation li {
list-style: none;
position: static;
}
.main-navigation .span-wrap {
display: block;
position: relative;
}
.main-navigation li a {
display: block;
color: #888;
position: relative;
text-decoration: none;
line-height: 35px;
}
.main-navigation li a:hover {
color: #000000;
}
.dropdown {
background: #888888;
color: #ffffff;
cursor: pointer;
display: block !important;
padding: 7px 17px;
position: absolute;
top: 0;
z-index: 15;
transition: all 0.3s ease;
}
.dropdown i {
color: #f79522;
}
.dropdown:hover {
background: rgba(0, 0, 0, 1);
}
.dropdown.right {
right: 0;
}
.dropdown.left {
left: 0;
top: 10px;
}
.main-navigation .sub-menu {
box-shadow: none;
bottom: 0;
display: none;
left: 300px;
padding-left: 47px;
position: absolute;
top: 0;
width: 300px;
z-index: 10;
}
.main-navigation .menu {
left: 0;
position: relative;
transition: all 0.3s ease;
}
.main-navigation.open .menu {
left: -300px;
}
</style>
<div class="wap-navigation container">
<div class="navigation-scroll" id="navigation-scroll" style=" overflow-x: scroll;">
<div class="navigation__wrapper">
<input type="checkbox" id="hamburger" onclick="hamburgerClick(this);">
<div class="wap-navigation__button">
<label for="hamburger" class="navigation__button">
<span></span>
<span></span>
<span></span>
</label>
</div>
<ul class="tab-bar-header menu-main-menu" id="tab-bar-header">
<li item-header="1" class="tab wave dark active" id="tab-trangchu">Trang chủ</li>
<li item-header="4" class="tab wave dark" id="tab-thuvienphapluat">Thư viện pháp luật</li>
<li item-header="6" class="tab wave dark" id="tab-timluatsu">Luật sư toàn quốc</li>
<li item-header="2" class="tab wave dark" id="tab-timluatsutuvan">Luật sư tư vấn</li>
<li item-header="8" class="tab wave dark" id="tab-cungthaoluan">Giải đáp cùng chuyên gia</li>
<li item-header="9" class="tab wave dark" id="tab-vuongmacphaply">Vướng mắc pháp lý</li>
<li item-header="5" class="tab wave dark" id="tab-thuvienbanan">Thư viện bản án</li>
<li item-header="3" class="tab wave dark" id="tab-timthanhvien">Tài khoản</li>
<div class="indicator"></div>
</ul>
<style>
div.navigation__links .total-post-menu {
float: right;
padding-right: 22px;
font-size: 11px;
}
div.navigation__links .content-collapse a {
display: flex;
}
div.navigation__links .content-collapse a .total-post-menu {
padding-right: 15px;
padding-top: 3px;
}
</style>
<div class="navigation__links" id="navigation__links">
<ul>
<li style="text-align:right;background: #fff;border-bottom: 1px solid #DBDBDB;" onclick="closeNavigation_Menu();">
<div id="accordion-1">
<div class="head-home left" style=" margin-left: 0;margin-top: 10px;background: transparent;">
<a href="javascript:void(0);" style="color:#000;padding-left: 10px;">Danh sách diễn đàn</a>
</div>
<div class="head" style="padding: 8px;">
<i class="fas fa-long-arrow-alt-left" style="padding:0 5px"></i>
</div>
</div>
</li>
<li item-nav="0" item-nav-link="/">
<div id="accordion-1">
<div class="head">
<p><i class="fa fa-home" aria-hidden="true" style="font-size: 17px;"></i> Trang chủ</p>
</div>
</div>
</li>
<li item-nav="1" item-nav-link="/dan-luat/tu-van-cua-luat-su" style="">
<div id="accordion-1">
<div class="head">
<p>Luật sư tư vấn <span class="total-post-menu">(206,316)</span></p>
<i class="fas fa-angle-down arrow"></i>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/dat-dai-nha-cua-52"><i class="fa fa-angle-right" aria-hidden="true"></i> Đất đai, Nhà cửa <span class="total-post-menu">(39,670)</span></a>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/lao-dong-53"><i class="fa fa-angle-right" aria-hidden="true"></i> Lao động <span class="total-post-menu">(65,548)</span></a>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/hop-dong-54"><i class="fa fa-angle-right" aria-hidden="true"></i> Hợp đồng <span class="total-post-menu">(74,557)</span></a>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/ke-toan-thue-56"><i class="fa fa-angle-right" aria-hidden="true"></i> Kế toán, Thuế <span class="total-post-menu">(80,295)</span></a>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/doanh-nghiep-58"><i class="fa fa-angle-right" aria-hidden="true"></i> Doanh nghiệp <span class="total-post-menu">(94,322)</span></a>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/hinh-su-60"><i class="fa fa-angle-right" aria-hidden="true"></i> Hình sự <span class="total-post-menu">(109,288)</span></a>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/hon-nhan-thua-ke-75"><i class="fa fa-angle-right" aria-hidden="true"></i> Hôn nhân, Thừa kế <span class="total-post-menu">(126,301)</span></a>
</div>
<div class="content-collapse">
<a item-child="1" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/tu-van-luat-su/linh-vuc-luat-khac-76"><i class="fa fa-angle-right" aria-hidden="true"></i> Lĩnh vực Luật khác <span class="total-post-menu">(140,562)</span></a>
</div>
</div>
</li>
<li item-nav="2" item-nav-link="/dan-luat/cung-thao-luan" style="">
<div id="accordion-1">
<div class="head">
<p>Giải đáp cùng chuyên gia <span class="total-post-menu">(671,791)</span></p>
<i class="fas fa-angle-down arrow"></i>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/cafe-danluat-107"><i class="fa fa-angle-right" aria-hidden="true"></i> Café DanLuat <span class="total-post-menu">(66,610)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/vuong-mac-phap-ly-111"><i class="fa fa-angle-right" aria-hidden="true"></i> Vướng mắc pháp lý <span class="total-post-menu">(292,323)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/tang-nhau-van-ban-luat-112"><i class="fa fa-angle-right" aria-hidden="true"></i> Tặng nhau Văn bản Luật <span class="total-post-menu">(300,751)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/phong-sinh-vien-luat-113"><i class="fa fa-angle-right" aria-hidden="true"></i> Phòng Sinh viên Luật <span class="total-post-menu">(338,280)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/phong-giam-si-tret-155"><i class="fa fa-angle-right" aria-hidden="true"></i> Phòng giảm "Sì trét" <span class="total-post-menu">(363,778)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/du-thao-luat-moi-160"><i class="fa fa-angle-right" aria-hidden="true"></i> Dự thảo Luật mới <span class="total-post-menu">(368,255)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/goc-doanh-nhan-162"><i class="fa fa-angle-right" aria-hidden="true"></i> Góc doanh nhân <span class="total-post-menu">(370,169)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/tinh-huong-phap-ly-tham-khao-172"><i class="fa fa-angle-right" aria-hidden="true"></i> Tình huống pháp lý tham khảo <span class="total-post-menu">(372,651)</span></a>
</div>
<div class="content-collapse">
<a item-child="2" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/review-ban-an-185"><i class="fa fa-angle-right" aria-hidden="true"></i> Bình luận án <span class="total-post-menu">(372,945)</span></a>
</div>
</div>
</li>
<li item-nav="3" item-nav-link="/dan-luat/cung-thao-luan/vuong-mac-phap-ly-111" style="">
<div id="accordion-1">
<div class="head">
<p>Vướng mắc pháp lý <span class="total-post-menu">(462,928)</span></p>
<i class="fas fa-angle-down arrow"></i>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/doanh-nghiep-dau-tu-110"><i class="fa fa-angle-right" aria-hidden="true"></i> Doanh nghiệp & Đầu tư <span class="total-post-menu">(31,759)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/ke-toan-kiem-toan-139"><i class="fa fa-angle-right" aria-hidden="true"></i> Kế toán - Kiểm toán <span class="total-post-menu">(46,903)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/van-de-phap-ly-khac-140"><i class="fa fa-angle-right" aria-hidden="true"></i> Vấn đề pháp lý khác <span class="total-post-menu">(86,235)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/dat-dai-nha-cua-141"><i class="fa fa-angle-right" aria-hidden="true"></i> Đất đai - Nhà cửa <span class="total-post-menu">(110,394)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/lao-dong-viec-lam-142"><i class="fa fa-angle-right" aria-hidden="true"></i> Lao động - Việc làm <span class="total-post-menu">(150,150)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/hon-nhan-gia-dinh-168"><i class="fa fa-angle-right" aria-hidden="true"></i> Hôn nhân & Gia đình <span class="total-post-menu">(166,329)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/hinh-su-hinh-phat-169"><i class="fa fa-angle-right" aria-hidden="true"></i> Hình sự & Hình phạt <span class="total-post-menu">(183,978)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/thue-phi-le-phi-170"><i class="fa fa-angle-right" aria-hidden="true"></i> Thuế - Phí - Lệ phí <span class="total-post-menu">(198,601)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/htkk-ho-tro-ke-khai-174"><i class="fa fa-angle-right" aria-hidden="true"></i> HTKK - Hỗ Trợ Kê Khai <span class="total-post-menu">(199,254)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/quyet-toan-thue-182"><i class="fa fa-angle-right" aria-hidden="true"></i> Quyết Toán Thuế <span class="total-post-menu">(200,144)</span></a>
</div>
<div class="content-collapse">
<a item-child="3" href="https://thuvienphapluat.vn/cong-dong-dan-luat/dan-luat/cung-thao-luan/nghiep-vu-chuyen-nganh-184"><i class="fa fa-angle-right" aria-hidden="true"></i> Nghiệp vụ chuyên ngành <span class="total-post-menu">(200,451)</span></a>
</div>
</div>
</li>
<li item-nav="4" item-nav-link="https://thuvienphapluat.vn/banan" style="">
<div id="accordion-1">
<div class="head">
<p>Thư Viện Bản Án <span class="total-post-menu"></span></p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="5" item-nav-link="/cong-dong-dan-luat/luat-su-toan-quoc" style="">
<div id="accordion-1">
<div class="head">
<p>Luật sư toàn quốc <span class="total-post-menu"></span></p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="6" item-nav-link="/cong-dong-dan-luat/luat-su-tu-van" style="">
<div id="accordion-1">
<div class="head">
<p>Luật sư tư vấn <span class="total-post-menu"></span></p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="7" item-nav-link="javascript:void(0);openRegisterAndLogin();" style="">
<div id="accordion-1">
<div class="head">
<p>Tài khoản <span class="total-post-menu"></span></p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="8" item-nav-link="/cong-dong-dan-luat/cau-hoi-thuong-gap">
<div id="accordion-1">
<div class="head">
<p>FAQ</p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="9" item-nav-link="/cong-dong-dan-luat/gioi-thieu">
<div id="accordion-1">
<div class="head">
<p>Về chúng tôi</p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="10" item-nav-link="/cong-dong-dan-luat/thoa-uoc-su-dung">
<div id="accordion-1">
<div class="head">
<p>Thỏa ước sử dụng</p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="11" item-nav-link="/cong-dong-dan-luat/huong-dan-su-dung">
<div id="accordion-1">
<div class="head">
<p>Hướng dẫn sử dụng</p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li item-nav="12" item-nav-link="/cong-dong-dan-luat/sitemap">
<div id="accordion-1">
<div class="head">
<p>SiteMap</p>
<i class="fas fa-angle-down arrow"></i>
</div>
</div>
</li>
<li style="bottom: auto;height: inherit;position: relative;background-color: #ffeddd;border-top: 10px solid #f79522;max-height: 360px;">
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<p style="text-align: center;">
<a href="https://thuvienphapluat.vn/cong-dong-dan-luat/" class="logo-footer">
<img src="https://thuvienphapluat.vn/cong-dong-dan-luat/Content/Images/logo-danluat-he.png" class="logo">
</a>
</p>
<p class="address" style="text-align:center; padding:5px;">
Chủ quản: Công ty <strong style="font-family: Times New Roman; font-size: 11px">
<a href="https://thuvienphapluat.vn/"><span style="color: Red">THƯ VIỆN PHÁP LUẬT</span></a>
</strong>. Giấy phép số: 27/GP-TTĐT, do Sở TTTT TP. HCM cấp ngày 09/05/2019.
<br>
Chịu trách nhiệm chính: Ông Bùi Tường Vũ - Số điện thoại liên hệ: 028 3930 3279
<br>
Địa chỉ: P.702A , Centre Point, 106 Nguyễn Văn Trỗi, P.8, Q. Phú Nhuận, TP. HCM;
<br>
Địa điểm Kinh Doanh: Số 19 Nguyễn Gia Thiều, P.Võ Thị Sáu, Q.3, TP. HCM;
</p>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<script>
jQuery(document).ready(function () {
var pathname = window.location.pathname;
const elements = document.querySelectorAll('#tab-bar-header li');
$('#tab-bar-header li.tab.wave').removeClass("active");
elements.forEach(el => {
if (el.id == "tab-trangchu" && pathname == "/" || el.id == "tab-trangchu" && pathname == "")
$(el).addClass('active');
else if (el.id == "tab-timthanhvien" && pathname == "/tim-thanh-vien") {
$(el).addClass('active');
}
else if (el.id == "tab-timluatsu" && pathname == "/luat-su-toan-quoc")
$(el).addClass('active');
//else if (el.id == "tab-timluatsutuvan" && pathname == "/luat-su-tu-van")
else if (el.id == "tab-timluatsutuvan" && pathname == "/dan-luat/tu-van-luat-su")
$(el).addClass('active');
else if (el.id == "tab-cungthaoluan" && pathname == "/dan-luat/cung-thao-luan")
$(el).addClass('active');
else if (el.id == "tab-vuongmacphaply" && pathname == "/dan-luat/cung-thao-luan/vuong-mac-phap-ly-111")
$(el).addClass('active');
});
});
function hamburgerClick(elm) {
$('.navigation__wrapper').css('width', 'auto');
$('.navigation-scroll').css('overflow-x', 'inherit');
}
$("#tab-bar-header li.tab.wave").click(function () {
$('#tab-bar-header li.tab.wave').removeClass("active");
$(this).addClass('active');
var item = $(this).attr('item-header');
if (item == "1")
window.location.href = MAIN_DOMAIN + '/';
else if (item == "2")
window.location.href = MAIN_DOMAIN + '/dan-luat/tu-van-luat-su';
//window.location.href = '/luat-su-tu-van';
else if (item == "3")
window.location.href = MAIN_DOMAIN + '/tim-thanh-vien';
else if (item == "4")
window.location.href = 'https://thuvienphapluat.vn';
else if (item == "5")
window.location.href = 'https://thuvienphapluat.vn/banan';
else if (item == "6")
window.location.href = MAIN_DOMAIN + '/luat-su-toan-quoc';
else if (item == "7")
window.location.href = 'https://khoinghiep.thuvienphapluat.vn/tim-kiem-bieu-mau.html?hd=&q=';
else if (item == "8")
window.location.href = MAIN_DOMAIN + '/dan-luat/cung-thao-luan';
else if (item == "9")
window.location.href = MAIN_DOMAIN + '/dan-luat/cung-thao-luan/vuong-mac-phap-ly-111';
});
$("#navigation__links ul li").click(function () {
var item = $(this).attr('item-nav');
var link = $(this).attr('item-nav-link');
if (!item && !link)
return false;
var check = $(this).find('.content-collapse a');
if (check.length == 0) {
window.location.href = link;
}
});
$('.head').click(function () {
$(this).toggleClass('active');
$(this).parent().find('.arrow').toggleClass('arrow-animate');
$(this).parent().find('.content-collapse').slideToggle(280);
});
document.addEventListener("click", function (evt) {
$('#site-navigation').hide();
});
document.addEventListener("scroll", function (evt) {
$('#site-navigation').hide();
});
</script>
</nav>
<div class="wap-notifionp-register">
<div class="alert alert-success" id="div-notifion" style="padding:2px;margin-bottom: -15px;">
<button type="button" class="close" data-dismiss="alert" style="padding: 0 5px;">x</button>
<span id="span-notifion" style="color: #333; font-weight: 600;font-size: 13px;">
Chào mừng bạn đến với <strong><span style="color: red;">D</span>ân <span style="color: red;">L</span>uật</strong>
. Để viết bài Tư vấn,
<a href="https://thuvienphapluat.vn/cong-dong-dan-luat/tao-bai-viet-hoi-luat-su" style="cursor: pointer;">Hỏi Luật Sư</a>, kết nối với Luật sư và chuyên gia, … Bạn vui lòng <b id="btn-register" style="color:red;cursor: pointer;" onclick="openRegisterAndLogin();">ĐĂNG KÝ TÀI KHOẢN</b>.
</span>
</div>
</div>
<script>
var flagSearchAutocomplete = false;
$(document).ready(function () {
loadCityList();
var isAndroid = /(android)/i.test(navigator.userAgent);
if (isAndroid) {
$('#registerModal .content-login').css('position', 'absolute');
} else {
if (window.innerWidth <= 320) {
$('#registerModal .content-login').css('position', 'absolute');
}
}
$('.main-loader').css('display', 'block');
var WidthSecondLI = $('#navigation__links ul').children('li').eq(1).innerWidth();
$('#navigation__links ul').children('li').eq(0).css("width", WidthSecondLI + "px");
//loadDataTextHeader();
var elements = document.getElementsByClassName("multiNoti");
document.addEventListener('click', function (event) {
for (let i = 0; i < elements.length; i++) {
if (elements[i].contains(event.target)) {
var notificationId = $(elements[i]).attr('id');
if (notificationId)
UpdateIsReadNotification(notificationId)
break;
}
}
})
})
function closeNavigation_Menu() {
$('.navigation__wrapper').css('width', 'max-content');
$('#hamburger').prop("checked", false);
$('.navigation-scroll').css('overflow-x', 'scroll');
}
function searchAutocomplete(elm) {
if (!elm.value) {
$('.autocomplete-items').css('display', 'none');
$('.autocomplete-items').html('');
return false;
}
if (flagSearchAutocomplete)
return false;
else
flagSearchAutocomplete = true;
setTimeout(() => {
var url = domain + `thread-api/search-post-by-title?q=${elm.value}&q_Athour=&q_ForumID=0&q_ToDay=&q_FrormDay=&page=${1}&pageSize=${20}&type_q=${3}&exactly_q=${1}&IsMain_q=${1}`;
//$('.main-loader').fadeIn('fast');
$.ajax({
url: url,
type: "GET",
async: false,
contentType: "application/json; charset=utf-8",
success: function (data) {
$('.autocomplete-items').html('');
flagSearchAutocomplete = false;
if (data.Status && data.Data.SolrObject.response && data.Data.SolrObject.response.docs && data.Data.SolrObject.response.docs.length > 0) {
data.Data.SolrObject.response.docs.forEach(function (element, index) {
$('.autocomplete-items').append(` <div><a href='${MAIN_DOMAIN}${element.Url}'>${element.Subject}</a></div>`);
})
$('.autocomplete-items').css('display', 'block');
} else
$('.autocomplete-items').html('');
//$('.main-loader').fadeOut('slow');
},
error: function (request, status, error) {
$('.autocomplete-items').html('');
$('.autocomplete-items').css('display', 'none');
//$('.main-loader').fadeOut('slow');
}
});
}, 500);
}
function SearchNewsHeader() {
var keyword = $('#txt-SearchNewsHeader').val();
if (keyword)
window.location.href = '/cong-dong-dan-luat/tim-bai-viet.html?q=' + keyword;
else
window.location.href = '/cong-dong-dan-luat/tim-bai-viet.html';
return false;
}
var title = [];//['<a class="animate">Every new beginning comes from some other beginning s end.</a>', '<a class="animate">Even the genius asks questions.</a>', '<a class="animate">Giả sử cho tù nhân ở Việt Nam được học và cấp bằng đại học ở trong tù giống nước ngoài thì có được không?</a>'];
var index = 0;
function change_title() {
var x = title[index];
$('.text-container').html(x);
index++;
if (index >= title.length) { index = 0; }
};
function change_left() {
$('div.slide-right').removeClass('slide-right').addClass('slide-left');
}
function change_right() {
$('div.slide-right').removeClass('slide-left').addClass('slide-right');
change_title();
}
function to_left() {
setInterval(change_left, 10000);
};
function to_right() {
setInterval(change_right, 20000);
};
to_left();
to_right();
let container2 = document.querySelector("#two");
let text2 = document.querySelector("#two a");
if (text2 && container2.clientWidth < text2.clientWidth) {
text2.classList.add("animate");
}
</script>
<div class="px-0 px-lg-0 mt-2 mt-md-4">
<div class="master-column-wrapper" style="min-height:500px">
<style>
body {
margin-top: 20px;
background: #eee;
}
.fs35 {
font-size: 35px !important;
}
.mw50 {
max-width: 50px !important;
}
.mn {
margin: 0 !important;
}
.mw140 {
max-width: 140px !important;
}
.mb20 {
margin-bottom: 20px !important;
}
.mr25 {
margin-right: 25px !important;
}
.mw40 {
max-width: 40px !important;
}
.page-heading {
position: relative;
padding: 15px 0;
background-color: #f2f2f2;
margin-bottom: 15px;
}
.page-tabs {
margin: -25px -20px 30px;
padding: 15px 25px 0;
border-bottom: 1px solid #ddd;
background: #e9e9e9;
}
.page-tabs .nav-tabs {
border-bottom: 0;
}
.page-tabs .nav-tabs > li > a {
color: #AAA;
padding: 10px 20px;
}
.page-tabs .nav-tabs > li:hover > a,
.page-tabs .nav-tabs > li:focus > a {
border-color: #ddd;
}
.page-tabs .nav-tabs > li.active > a,
.page-tabs .nav-tabs > li.active > a:hover,
.page-tabs .nav-tabs > li.active > a:focus {
color: #666;
font-weight: 600;
background-color: #eee;
border-bottom-color: transparent;
}
@media (max-width: 800px) {
.page-tabs {
padding: 25px 20px 0;
}
.page-tabs .nav-tabs li {
float: none;
margin-bottom: 5px;
}
.page-tabs .nav-tabs li:last-child,
.page-tabs .nav-tabs li.active:last-child {
margin-bottom: 10px;
}
.page-tabs .nav-tabs > li > a:hover,
.page-tabs .nav-tabs > li > a:focus {
border: 1px solid #DDD;
}
.page-tabs .nav-tabs > li.active > a,
.page-tabs .nav-tabs > li.active > a:hover,
.page-tabs .nav-tabs > li.active > a:focus {
border-bottom-color: #ddd;
}
}
.panel {
position: relative;
margin-bottom: 27px;
background-color: #ffffff;
border-radius: 3px;
}
.panel.panel-transparent {
background: none;
border: 0;
margin: 0;
padding: 0;
}
.panel.panel-border {
border-style: solid;
border-width: 0;
}
.panel.panel-border.top {
border-top-width: 5px;
}
.panel.panel-border.right {
border-right-width: 5px;
}
.panel.panel-border.bottom {
border-bottom-width: 5px;
}
.panel.panel-border.left {
border-left-width: 5px;
}
.panel.panel-border > .panel-heading {
background-color: #fafafa;
border-color: #e2e2e2;
border-top: 1px solid transparent;
}
.panel.panel-border > .panel-heading > .panel-title {
color: #999999;
}
.panel.panel-border.panel-default {
border-color: #DDD;
}
.panel.panel-border.panel-default > .panel-heading {
border-top: 1px solid transparent;
}
.panel-menu {
background-color: #fafafa;
padding: 12px;
border: 1px solid #e2e2e2;
}
.panel-menu.dark {
background-color: #f8f8f8;
}
.panel-body .panel-menu {
border-left: 0;
border-right: 0;
}
.panel-heading + .panel-menu,
.panel-menu + .panel-body,
.panel-body + .panel-menu,
.panel-body + .panel-body {
border-top: 0;
}
.panel-body {
position: relative;
padding: 15px;
border: 1px solid #e2e2e2;
}
.panel-body + .panel-footer {
border-top: 0;
}
.panel-heading {
position: relative;
height: 52px;
line-height: 49px;
letter-spacing: 0.2px;
color: #999999;
font-size: 15px;
font-weight: 400;
padding: 0 8px;
background: #fafafa;
border: 1px solid #e2e2e2;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
}
.panel-heading + .panel-body {
border-top: 0;
}
.panel-heading > .dropdown .dropdown-toggle {
color: inherit;
}
.panel-heading .widget-menu .btn-group {
margin-top: -3px;
}
.panel-heading .widget-menu .form-control {
margin-top: 6px;
font-size: 11px;
height: 27px;
padding: 2px 10px;
border-radius: 1px;
}
.panel-heading .widget-menu .form-control.input-sm {
margin-top: 9px;
height: 22px;
}
.panel-heading .widget-menu .progress {
margin-top: 11px;
margin-bottom: 0;
}
.panel-heading .widget-menu .progress-bar-lg {
margin-top: 10px;
}
.panel-heading .widget-menu .progress-bar-sm {
margin-top: 15px;
}
.panel-heading .widget-menu .progress-bar-xs {
margin-top: 17px;
}
.panel-icon {
padding-left: 5px;
}
.panel-title {
padding-left: 6px;
margin-top: 0;
margin-bottom: 0;
}
.panel-title > .fa,
.panel-title > .glyphicon,
.panel-title > .glyphicons,
.panel-title > .imoon {
top: 2px;
min-width: 22px;
color: inherit;
font-size: 14px;
}
.panel-title > a {
color: inherit;
}
.panel-footer {
padding: 10px 15px;
background-color: #fafafa;
border: 1px solid #e2e2e2;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
}
.panel > .list-group {
margin-bottom: 0;
}
.panel > .list-group .list-group-item {
border-radius: 0;
}
.panel > .list-group:first-child .list-group-item:first-child {
border-top-right-radius: 2px;
border-top-left-radius: 2px;
}
.panel > .list-group:last-child .list-group-item:last-child {
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
}
.panel-heading + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.panel-body + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.list-group + .panel-footer {
border-top-width: 0;
}
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table {
margin-bottom: 0;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
border-top-right-radius: 2px;
border-top-left-radius: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
border-top-left-radius: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
border-top-right-radius: 2px;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
border-bottom-left-radius: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
border-bottom-right-radius: 2px;
}
.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive {
border-top: 1px solid #eeeeee;
}
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td {
border-top: 0;
}
.panel > .table-bordered,
.panel > .table-responsive > .table-bordered {
border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
border-bottom: 0;
}
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
border-bottom: 0;
}
.panel > .table-responsive {
border: 0;
margin-bottom: 0;
}
.panel-group {
margin-bottom: 19px;
}
.panel-group .panel-title {
padding-left: 0;
}
.panel-group .panel-heading,
.panel-group .panel-heading a {
position: relative;
display: block;
width: 100%;
}
.panel-group.accordion-lg .panel + .panel {
margin-top: 12px;
}
.panel-group.accordion-lg .panel-heading {
font-size: 14px;
height: 54px;
line-height: 52px;
}
.panel-group .accordion-icon {
padding-left: 35px;
}
.panel-group .accordion-icon:after {
position: absolute;
content: "\f068";
font-family: "FontAwesome";
font-size: 12px;
font-style: normal;
font-weight: normal;
-webkit-font-smoothing: antialiased;
color: #555;
left: 10px;
top: 0;
}
.panel-group .accordion-icon.collapsed:after {
content: "\f067";
}
.panel-group .accordion-icon.icon-right {
padding-left: 10px;
padding-right: 30px;
}
.panel-group .accordion-icon.icon-right:after {
left: auto;
right: 5px;
}
.panel-group .panel {
margin-bottom: 0;
border-radius: 3px;
}
.panel-group .panel + .panel {
margin-top: 5px;
}
.panel-group .panel-heading + .panel-collapse > .panel-body {
border-top: 0;
}
.panel-group .panel-footer {
border-top: 0;
}
.panel-group .panel-footer + .panel-collapse .panel-body {
border-bottom: 1px solid #eeeeee;
}
.media {
color: #999999;
font-weight: 600;
margin-top: 15px;
}
.media:first-child {
margin-top: 0;
}
.media-right,
.media > .pull-right {
padding-left: 10px;
}
.media-left,
.media > .pull-left {
padding-right: 10px;
}
.media-left,
.media-right,
.media-body {
display: table-cell;
vertical-align: top;
}
.page-heading .media-left {
width: 150px;
height: 150px;
position: relative;
margin-left: 5px;
overflow: overlay;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}
.page-heading .media-left:hover > .edit-photo3 {
display: block;
}
.page-heading .media-left:hover > a:nth-child(1) > .avatar {
opacity: 0.3;
}
.edit-photo3 {
float: right;
height: 40px;
width: 40px;
background: #ef9f26;
border-radius: 100%;
text-align: center;
opacity: 0.80;
position: absolute;
display: none;
left: 36%;
margin-top: -65%;
}
.edit-photo3 .fa-camera {
margin-top: 10px;
font-size: 20px;
color: #fff;
}
.page-heading .media-left img.avatar {
width: auto;
height: 100%;
position: sticky;
left: 13%;
}
/* .page-heading .media-left img.avatar {
width: 162px;
height: auto;
border-radius: 50%;
padding: 3px;
margin-left: -10px;
margin-top: -10px;
}*/
.media-middle {
vertical-align: middle;
}
.media-bottom {
vertical-align: bottom;
}
.page-heading .media-heading {
color: #555555;
font-size: 20px;
margin: 0;
}
.media-list {
padding-left: 0;
list-style: none;
}
/*===============================================
Tabs
================================================= */
/* Tabs Wrapper */
.tab-block {
position: relative;
}
/* Tabs Content */
.tab-block .tab-content {
/* overflow: auto;*/
position: relative;
z-index: 10;
min-height: 125px;
padding: 16px 12px;
border: 1px solid #e2e2e2;
background-color: #FFF;
max-height: none;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
/*===============================================
Tab Navigation
================================================= */
.tab-block .nav-tabs {
position: relative;
border: 0;
}
/* nav tab item */
.tab-block .nav-tabs > li {
float: left;
margin-bottom: -1px;
}
/* nav tab link */
.tab-block .nav-tabs > li > a {
z-index: 9;
position: relative;
color: #AAA;
font-size: 14px;
font-weight: 400;
margin-right: -1px;
border-color: #e2e2e2;
border-radius: 0;
background: #fafafa;
}
.tab-block .nav-tabs > li:first-child > a {
margin-left: 0;
}
/* nav tab link:hover */
.tab-block .nav-tabs > li > a:hover {
background-color: #f4f4f4;
}
/* nav tab active link:focus:hover */
.tab-block .nav-tabs > li.active > a,
.tab-block .nav-tabs > li.active > a:hover,
.tab-block .nav-tabs > li.active > a:focus {
cursor: default;
position: relative;
z-index: 12;
color: #555555;
background: #FFF;
border-color: #e2e2e2;
border-bottom: 1px solid #FFF;
}
/*===============================================
Tab Navigation - Tabs Left
================================================= */
.tabs-left {
float: left;
}
/* nav tab item */
.tabs-left > li {
float: none;
margin: 0 -1px -1px 0;
}
/* nav tab item link */
.tabs-left > li > a {
padding: 14px 16px;
color: #777;
font-weight: 600;
border: 1px solid transparent;
border-color: #DDD;
background: #fafafa;
}
/* nav tab link:hover */
/* nav tab active link:focus:hover */
.tab-block .tabs-left > li.active > a,
.tab-block .tabs-left > li.active > a:hover,
.tab-block .tabs-left > li.active > a:focus {
color: #555;
border-color: #DDD #FFF #DDD #DDD;
cursor: default;
position: relative;
z-index: 12;
background: #FFF;
}
/*===============================================
Tab Navigation - Tabs Right
================================================= */
.tabs-right {
float: right;
}
/* nav tab item */
.tabs-right > li {
float: none;
margin: 0 0 -1px -1px;
}
/* nav tab item link */
.tabs-right > li > a {
padding: 14px 16px;
color: #777;
font-weight: 600;
border: 1px solid transparent;
border-color: #DDD;
background: #fafafa;
}
/* nav tab link:hover */
/* nav tab active link:focus:hover */
.tab-block .tabs-right > li.active > a,
.tab-block .tabs-right > li.active > a:hover,
.tab-block .tabs-right > li.active > a:focus {
color: #555;
border-color: #DDD #DDD #DDD #FFF;
cursor: default;
position: relative;
z-index: 12;
background: #FFF;
}
/*===============================================
Tab Navigation - Tabs Right
================================================= */
.tabs-below {
position: relative;
}
/* nav tab item */
.tabs-below > li {
float: left;
margin-top: -1px;
}
/* nav tab item link */
.tabs-below > li > a {
position: relative;
z-index: 9;
margin-right: -1px;
padding: 11px 16px;
color: #777;
font-weight: 600;
border: 1px solid #DDD;
background: #fafafa;
}
/* nav tab link:hover */
/* nav tab active link:focus:hover */
.tab-block .tabs-below > li.active > a,
.tab-block .tabs-below > li.active > a:hover,
.tab-block .tabs-below > li.active > a:focus {
cursor: default;
position: relative;
z-index: 12;
color: #555555;
background: #FFF;
border-color: #DDD;
border-top: 1px solid #FFF;
}
</style>
<style>
.col-left {
margin-right: -20px;
}
.count-profile {
padding-top: 5px;
}
.count-profile p {
padding-right: 10px;
}
.count-profile p a:focus {
color: red;
}
.count-profile p a:focus + #tab4 {
color: red;
}
.tab-content a.title-document {
padding: 0;
}
#tab1 {
margin-left: -5px;
margin-right: -5px;
}
#tab1 .item-post-wall {
padding: 5px;
background: #f2f2f2;
border-radius: 5px;
margin-bottom: 10px;
}
#tab1 .item-post-wall:last-child {
margin-bottom: 0;
}
#tab1 .item-post-wall > img.msg-img {
height: 40px;
}
#tab1 .item-post-wall > div {
height: auto;
}
#tab2 {
min-height: 150px;
}
#header-lawyer {
display: none;
}
.wap-author-ls .rows_ttcol1 {
width: 50% !important;
}
.wap-author-ls .rows_ttcol2.fixxx {
width: 50% !important;
}
#lightbox .lb-nav, #lightbox .lb-details {
display: none !important;
}
#lightbox .lb-nav .lb-prev, #lightbox .lb-nav .lb-prev {
display: none !important;
}
#lightbox .lb-details {
}
.rows_dv_cn {
padding-bottom: 0;
}
/* .rows_ttcol1 {
float: left;
width: 65%;
}
.rows_ttcol2.fixxx {
float: left;
width: 35%;
}
*/
.article__authour {
display: none;
}
.wap-comment-author {
width: 200px;
float: left;
border-radius: 5px;
padding: 5px;
border: 1px solid #f3f1f1;
box-shadow: 1px 1px 10px #c1c1c1;
}
.wap-item-member {
min-width: 160px;
width: auto;
}
.wap-comment-author .rows_ttcol1, .wap-comment-author .rows_ttcol2.fixxx, .wap-item-member .rows_ttcol1, .wap-item-member .rows_ttcol2.fixxx {
font-size: 11.5px;
}
.wap-content-comment a {
color: #337ab7;
}
#list_post_for_lawyer .wap-comment-author {
display: none;
}
#list_post_for_lawyer .box_result .result_comment {
width: 100%;
margin-left: 0;
}
.box_result .result_comment .wap-content-comment {
border-radius: 0 0 10px 10px !important;
}
@media (max-width: 768px) {
#tab1 .box_result .result_comment {
width: calc(100% - 60px);
margin-left: 60px;
}
}
@media (max-width: 480px) {
#content .col-left {
display: none;
}
.page-heading .media:first-child {
display: grid;
}
.page-heading .media-left {
position: sticky;
left: 50%;
top: 60px;
transform: translate(-50%, -50%);
width: 120px;
height: 120px;
}
.page-heading .media-left img.avatar {
width: 120px;
height: 120px;
padding: 5px;
margin-top: -5px;
margin-left: -5px;
}
.page-heading .media-body {
display: block;
padding: 10px;
width: 100%;
}
.page-heading .edit-photo3 {
margin-top: -67%;
left: 34%;
}
.page-heading .tab-block .nav-tabs > li > a {
padding: 10px;
}
.page-heading .media-heading {
text-align: center;
}
.page-heading .count-profile a.twPc-StatLabel {
font-size: 12px !important;
}
.wap-page-lawyer-info {
margin-left: 15px;
margin-right: 15px;
}
#header-lawyer {
display: block;
}
.tab-block .nav-tabs > li > a {
padding: 10px;
}
#tab1 .box_result .result_comment h4, #tab4 .box_result .result_comment h4 {
padding: 5px 0 4px 5px;
border-bottom: 1px solid #ef9f26;
}
.easyimage easyimage-full img.show-content-image {
width: 100%;
}
.count-profile-mobile p {
float: left;
padding-right: 35px;
}
}
</style>
<style>
.rows_ttcol1 {
float: left;
width: 65%;
}
.rows_ttcol2.fixxx {
float: left;
width: 35%;
}
</style>
<div class="wap-chidren-menu">
<nav class="navigation navbar navbar-light light-blue lighten-4" style="display:inline-block; padding:0">
<input type="checkbox" id="more" aria-hidden="true" tabindex="-1" class="toggle" />
<div class="navigation__inner">
<div class="navigation__parent"><a class="tab_item_all active" href="https://thuvienphapluat.vn/cong-dong-dan-luat/" data-value="0">Trang Chủ</a></div>
<ul class="navigation__list" id="navigation__list">
</ul>
<div class="navigation__toggle">
<label for="more" aria-hidden="true" class="navigation__link"></label>
</div>
</div>
</nav>
</div>
<script>
$(".toggle").click(function (e) {
var elm = document.getElementById('more');
if (elm.checked) {
var total = 0;
var widthUL = 0;
var elementUl = document.getElementById('navigation__list');
widthUL = elementUl.offsetWidth;
var elmsLi = document.querySelectorAll('.navigation__item');
elmsLi.forEach(function (elm) {
var width = elm.offsetWidth;
total += width;
if (total > widthUL) {
$('.navigation__inner').css('height', '55px');
$('.wap-chidren-menu nav').css('margin-bottom', '10px');
$('.navigation__toggle').css('#e5f6ff', '#e5f6ff');
$('.navigation__list').addClass('selected');
return false;
}
});
} else {
$('.navigation__inner').css('height', '25px');
$('.wap-chidren-menu nav').css('margin-bottom', '0');
$('.navigation__toggle').css('#e5f6ff', 'transparent');
$('.navigation__list').removeClass('selected');
}
});
</script>
<section id="content" class="wap-page-lawyer-info">
<div class="page-heading" id="header-lawyer" style="padding-bottom: 0;">
<div class="media clearfix">
<div class="media-left pr30">
<a href="javascript:void(0)" id="fileAvatar">
<img class="media-object mw150 avatar" alt="Ngô Thừa Ân" src="https://cdndanluat.thuvienphapluat.vn/avatar.aspx?UserID=3001992&size=150x150" onerror="this.src='https://thuvienphapluat.vn/cong-dong-dan-luat/Content/Images/logo lawsoft-01.png'">
</a>
</div>
<div class="media-body va-m">
<p class="media-heading">
ri
{
<i class="fas fa-mars" style="color:#00f"></i>
}
else
{
<i class="fas fa-venus" style="color:#d60093"></i>
}
</p>
<div class="media-links" style="width:100%;display: flex; justify-content: center; ">
</div>
<div class="clearfix"></div>
<div class="count-profile-mobile" id="count-profile" style="text-align:center;">
<p>
<a href="#tab3" data-toggle="tab" class="twPc-StatLabel-mobile" onclick="activeTabContent(this, '#tab3');">Thông tin cá nhân</a>
</p>
<p>
<a href="#tab2" data-toggle="tab" class="twPc-StatLabel-mobile" onclick="activeTabContent(this, '#tab2');">Bạn bè (<strong class="count-friend" style="color: darkblue; padding: 0 3px;">0</strong>)</a>
</p>
<p>
<a href="#tab1" data-toggle="tab" class="twPc-StatLabel-mobile" onclick="activeTabContent(this,'#tab1');">Chủ đề (<strong style="color: darkblue; padding: 0 3px;">0</strong>)</a>
</p>
<p><a href="javascript:void(0)" class="btn-button btn-add-friend-lawyer" onclick="addFriendLawyer(3001992)"><i class="fa fa-user-plus" aria-hidden="true" style="color:#fff"></i> Kết bạn</a></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-left">
<div class="page-heading" style="text-align:center;">
<div class="" style="display:inline-flex;">
<div class="media-left pr30" style="display:block">
<a href="javascript:void(0)" id="fileListAvatar">
<img class="media-object mw150 avatar" alt="Ngô Thừa Ân" src="https://cdndanluat.thuvienphapluat.vn/avatar.aspx?UserID=3001992&size=150x150" onerror="this.src='https://thuvienphapluat.vn/cong-dong-dan-luat/Content/Images/logo lawsoft-01.png'">
</a>
</div>
</div>
<div class="media-body va-m">
<p class="media-heading">
Ngô Thừa Ân
<i class="fas fa-mars" style="color:#00f"></i>
</p>
<p style="color: #d90a00; ">
ZuesLeee
</p>
<div class="media-links">
</div>
<div class="count-profile" id="count-profile">
<p>
<a href="#tab3" data-toggle="tab" class="twPc-StatLabel" onclick="activeTabContent(this, '#tab3');">Thông tin cá nhân</a>
</p>
<p>
<a href="#tab2" data-toggle="tab" class="twPc-StatLabel" onclick="activeTabContent(this, '#tab2');">Bạn bè (<strong class="count-friend" style="color: darkblue; padding: 0 3px;">0</strong>)</a>
</p>
<p>
<a href="#tab1" data-toggle="tab" class="twPc-StatLabel" onclick="activeTabContent(this,'#tab1');">Chủ đề (<strong style="color: darkblue; padding: 0 3px;">0</strong>)</a>
</p>
<p><a href="javascript:void(0)" class="btn-button btn-add-friend-lawyer" onclick="addFriendLawyer(3001992)"><i class="fa fa-user-plus" aria-hidden="true" style="color:#fff"></i> Kết bạn</a></p>
</div>
</div>
</div>
<div class="panel">
<div class="panel-heading">
<span class="panel-icon">
<i class="fa fa-star"></i>
</span>
<span class="panel-title">Hoạt động</span>
</div>
<div class="panel-body-left pn">
<table class="table mbn tc-icon-1 tc-med-2 tc-bold-last">
<thead>
<tr class="hidden">
<th>Info</th>
<th>Info</th>
</tr>
</thead>
<tbody>
<tr>
<td style="opacity: 0.7;"><span>Tham gia:</span></td>
<td>
<span>02/10/2020</span>
</td>
</tr>
<tr>
<td style="opacity: 0.7;"><span>Số Điểm:</span></td>
<td>
<span>0</span>
</td>
</tr>
<tr>
<td style="opacity: 0.7;"><span>Cảm ơn:</span></td>
<td>
<span>0</span>
</td>
</tr>
<tr>
<td style="opacity: 0.7;"><span>Được cảm ơn:</span></td>
<td>
<span>0</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-8">
<div class="tab-block">
<ul class="nav nav-tabs wap-item-tabs" id="wap-item-tabs">
<li>
<a href="#tab1" data-toggle="tab" style="border-top-left-radius: 5px;">Tường nhà</a>
</li>
<li>
<a href="#tab2" data-toggle="tab">Bạn bè</a>
</li>
<li class="active">
<a href="#tab3" data-toggle="tab">Thông tin</a>
</li>
</ul>
<div class="tab-content p30" id="tab-content-data">
<div id="tab1" class="tab-pane">
<section class="section wap-no-post" style="display:none">
<div class="boxs_dvcn">
<div class="col2 c1">
</div>
<div class="col2 c2">
</div>
</div>
</section>
<div class="body_comment contnet-post-for-lawyer-main">
<div class="row">
<ul id="list_post_for_lawyer" class="col-md-12" style=" padding: 0 10px;">
</ul>
</div>
</div>
</div>
<div id="tab2" class="tab-pane">
<div class="UserListFriend">
<style>
#search-friend {
float: left;
width: calc(100% - 65px);
}
.btnSearchFriend {
width: 50px;
float: right;
background: #f79522;
padding: 10px;
margin-left: 5px;
color: #fff;
height: 35px;
border-radius: 5px;
}
/*an nut ket ban ben trang LS*/
.LawyerListFriend .wap-thanchu .friend-child, .LawyerListFriend .wap-friends .friend-child {
display: none;
}
/*.UserListFriend .rejectFriendClick {
display: none;
}*/
.search-friend {
float: left;
width: calc(100% - 65px);
padding: 3px 7px;
box-sizing: border-box;
background: none;
outline: none;
resize: none;
transition: all .3s;
border-radius: 5px;
border: 1px solid #ddd;
height: 35px;
}
</style>
<div class="wap-content-home wap-content-animation">
<p class="title-cothebanquen" style="border-bottom: 2px solid #f79522;font-weight: bold;margin: 10px 0;">Có thể bạn quen</p>
<div class="wap-cothebanquen" id="wap-cothebanquen" style=" margin-top: 20px;margin-right: -8px;margin-left: -8px;"></div>
<p style="border-bottom: 2px solid #f79522;margin: 10px 0;font-weight: bold;">Bạn bè</p>
<div class="wap-search-friend">
<input type="text" placeholder="Nhập Tên đăng nhập, họ tên hoặc địa chỉ email để tìm kiếm..." class="search-friend" id="search-friend" />
<a href="javascript:void(0)" class="btnSearchFriend" onclick="searchFriend()">Tìm</a>
<div class="row wap-search-page" style="width:100%;margin-top: 5px;display:none">
<div class="col-lg-4 col-sm-12 col-xs-12">
<p style="margin-top: 5px;">Kết quả <b class="total-rs-search-freiend"></b> | <span>Trang <b id="page-content" class="page-content">1</b></span></p>
</div>
<div class="col-lg-8 col-sm-12 col-xs-12">
<ul id="pagination-search-freiend" class="pagination right-pagination"></ul>
</div>
</div>
</div>
<!-- begin col-6 -->
<div class="wap-friends" id="wap-friends" style=" margin-top: 30px;margin-right: -8px;margin-left: -8px;"></div>
<div class="clearfix"></div>
</div>
<script>
$(document).ready(function () {
loadFriends(3001992, '', 1, 10);
loadCoTheBanQuen(3001992, 3);
loadThanChu(3001992, 0, 5);
});
function searchFriend() {
$('.wap-friends').html('');
var keyword = $('#search-friend').val();
loadFriends(3001992, keyword, 1, 10);
}
</script>
</div>
</div>
<div id="tab3" class="tab-pane active">
<style>
.twPc-bg {
height: 245px;
}
.rightcover {
margin-top: -220px;
}
.rows_ttcol1 {
width: 150px;
opacity: 0.7;
}
.wap-company p {
margin: 0;
}
@media (max-width: 480px) {
.twPc-avatarLink {
top: 0;
}
.twPc-divUser {
width: 100%;
display: grid;
text-align: center;
margin: 10px 0px 0;
}
.twPc-button {
margin-top: 105px;
position: absolute;
display: flex;
}
.twPc-button p:nth-child(1) {
margin: -30px 5px 10px 35px;
}
.twPc-button p:nth-child(2) {
float: right;
margin: -30px 5px 10px 110px;
}
.twPc-divStats {
margin-top: 0;
}
.edit-photo2 {
left: 52%;
}
.twPc-bg {
height: 175px !important;
}
.rightcover {
margin-top: -170px;
}
}
.disabled-input {
cursor: default;
pointer-events: none;
text-decoration: none;
border: none;
border-bottom: none !important;
}
.wrapper label.check_box {
place-items: center;
width: 25px;
height: 25px;
background-color: #fff;
overflow: hidden;
border: 3px solid #f1a93c;
border-radius: 5px;
}
.wrapper input[type='checkbox'] {
position: absolute;
width: 1px;
clip: rect(0 0 0 0);
overflow: hidden;
white-space: nowrap;
}
.wrapper span {
padding-left: 10px;
margin-top: 5px;
position: absolute;
}
.wrapper input[type='checkbox']:checked + label::before {
content: '✔';
margin-left: 5px;
}
input[name="rd"]:checked ~ .tab-content {
max-height: none;
}
.txt-chinhsua {
padding: 5px 10px;
border: 2px solid #f79522;
background: #f79522;
color: #fff;
cursor: pointer;
transition: all .3s;
outline: none;
border-radius: 3px;
}
p.fixxx.textleft {
display: flex;
}
</style>
<div class="">
<div class="tabs">
<form id="formLawyerInfo" enctype="multipart/form-data" method="post">
<div class="tab-fqa">
<input type="radio" id="rd1" name="rd" checked>
<label class="tab-label" for="rd1">Thông tin cơ bản</label>
<div class="tab-content" style="display: flow-root;">
<div class="wap-in rd1">
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Họ tên:
</span>
<p class="fixxx textleft txt-FullName">Ngô Thừa Ân</p>
</div>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Địa chỉ:
</span>
<p class="fixxx textleft txt-Street"></p>
</div>
<p style="border-bottom: 2px solid #f79522;"><b>Học vấn & Nghề nghiệp</b></p>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Công ty:
</span>
<div class="wap-company" style="width: calc(100% - 150px); display: grid;">
</div>
</div>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Đại học:
</span>
<p class="fixxx textleft txt-University"></p>
</div>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Trung học cơ sở:
</span>
<p class="fixxx textleft txt-School"></p>
</div>
<p style="border-bottom: 2px solid #f79522;"><b>Sở thích</b></p>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Âm nhạc:
</span>
<p class="fixxx textleft txt-Musics"></p>
</div>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Sách:
</span>
<p class="fixxx textleft txt-Books"></p>
</div>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Phim ảnh:
</span>
<p class="fixxx textleft txt-Movies"></p>
</div>
<div class="rows_dv_cn">
<span class="rows_ttcol1 fixw36">
Chương trình TV:
</span>
<p class="fixxx textleft txt-Television"></p>
</div>
<p style="border-bottom: 2px solid #f79522;"><b>Giới thiệu về bản thân</b></p>
<div class="info-profile">
<p>Là đơn vị chuyên sâu trong lĩnh vực <a href="https://noithatduongdai.vn/thiet-ke-noi-that/"><strong>thiết kế nội thất</strong></a> kết hợp <a href="https://noithatduongdai.vn/thi-cong-noi-that/"><strong>thi công nội thất</strong></a>. Chúng tôi cung cấp các giải pháp tổng thể cho mọi loại hình nhà ở với một nét đặc trưng riêng. Các khuyết điểm và khó khăn sẽ được giải quyết với đội ngũ Kiến trúc sư dày dặn kinh nghiệm.</p>
<p>Với mỗi căn nhà, mỗi gia chủ thì đều có những sở thích khác nhau. Hiểu được được điều đó, KTS của Nội Thất Đương Đại đưa ra những phương án phù hợp khi <a href="https://noithatduongdai.vn/thiet-ke-noi-that/chung-cu/"><strong>thiết kế nội thất chung cư</strong></a>, tạo nên nét cá tính riêng biệt cho từng căn hộ, đảm bảo tính nhất quán qua mẫu thiết kế.</p>
<p><a href="https://noithatduongdai.vn/chuyen-muc/go-tu-nhien/oc-cho/"><strong>Nội thất gỗ óc chó</strong></a> đại diện cho sự hiện đại, sang trọng và đẳng cấp. Loại gỗ này được thiên nhiên ban tặng cho vẻ đẹp tự nhiên đầy nghệ thuật. Không chỉ vậy, chất lượng tuyệt hảo, bền vững trước mọi tác động cũng là ưu điểm hoàn hảo cho chất liệu này. Nội Thất Đương Đại là đơn vị chuyên thiết kế thi công nội thất. Chúng tôi chọn lựa gỗ óc chó với chất lượng, mang đến cho người tiêu dùng những sản phẩm nội thất gỗ tự nhiên cao cấp, hoàn hảo xứng tầm theo tiêu chuẩn quốc tế. Mỗi một sản phẩm nội thất cho ra mắt đều thể hiện những nét riêng biệt, thể hiện cá tính của gia chủ, không có sự trùng lặp nhàm chán giữa các không gian với nhau từ phong cách <a href="https://noithatduongdai.vn/chuyen-muc/noi-that-tan-co-dien/"><strong>nội thất tân cổ điển</strong></a> đến hiện đại.</p> </div>
</div>
</div>
</div>
</form>
</div>
</div>
<script>
var statusEdit = false;
var CityID = 0;
var DistrictID = 0;
var Tel = '';
var type = 2; //Type = 1 is Job //Type = 2 is University //Type = 3 is School
$(document).ready(function () {
//loadCityList();
loadUniversity(3001992, type);
loadUniversity(3001992, 3);
loadExperience_V2(3001992);
//loadDistrictList(CityID);
//loadWardList(DistrictID);
$("#list-district").prop('disabled', false);
$("#list-ward").prop('disabled', false);
LoadForumsLawyer(51);
GetCityPhone(Tel);
});
function linkWebsite(url) {
var text = $('.txt-chinhsua').html();
if (text != 'Cập nhật')
window.location.href = url;
}
function saveLawyerInfo() {
updateLawyerInfo();
}
function updateLawyerInfo() {
var categoryIDs = [];
var linhvuctuvan = "";
var cateIDsChecked = document.querySelectorAll('#Customer_Consulting_Field input[type=checkbox]:checked');
cateIDsChecked.forEach(function (item) {
var val = $(item).attr("id")
categoryIDs.push(parseInt(val));
linhvuctuvan += val + ',';
});
var list_prosesion = linhvuctuvan ? linhvuctuvan.slice(0, -1) : '';
$('.CategoryNames').val(list_prosesion);
var dataForm = $("form#formLawyerInfo").serialize();
var cusInfo = {};
cusInfo.Info = $('.txt-Info').val();
var favorite = {};
favorite.Sport = '';
favorite.Musics = $('.txt-Musics').val();
favorite.Movies = $('.txt-Movies').val();
favorite.Books = $('.txt-Books').val();
favorite.Television = $('.txt-Television').val();
favorite.Games = '';
favorite.FavoriteInterests = '';
favorite.FavoriteActivities = '';
favorite.Info = $('.txt-Info').val();
var param = dataForm + '&cusInfoJson=' + JSON.stringify(cusInfo) + '&favoritesJson=' + JSON.stringify(favorite);
$('.main-loader').css('display', 'block');
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/Lawyer/UpdateLawyerBasic_V2',
data: param,
dataType: "json",
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
success: function (result) {
if (!result) {
statusEdit = result;
$('.main-loader').css('display', 'none');
swal("Thông báo!", "Cập nhật thông tin thành công!", "success");
return false;
} else {
$('.main-loader').css('display', 'none'); swal({
title: "Thông báo!",
text: result,
icon: "error",
button: "Ok",
});
return false;
}
},
error: function () {
$('.main-loader').css('display', 'none');
swal({
title: "Thông báo!",
text: "Cập nhật thất bại. Vui lòng thử lại",
icon: "error",
button: "Ok",
});
return false;
}
});
}
function changeInfoLawyer(elm) {
var checkedValue = $('input[name="rd"]:checked').attr('id');
if (elm.text == "Chỉnh sửa") {
elm.text = 'Cập nhật';
$('.wap-in.' + checkedValue).find('input').removeClass('disabled-input');
$('.wap-in.' + checkedValue).find('select').removeClass('disabled-input');
$('.wap-in.' + checkedValue).find('textarea').removeClass('disabled-input');
$('.wap-in.' + checkedValue).find('div.wrapper').removeClass('disabled-input');
} else {
elm.text = 'Chỉnh sửa';
var disabledItems = document.querySelectorAll('.tab-content .wap-in input');
disabledItems.forEach(function (item) {
$(item).addClass('disabled-input');
});
var disabledItems2 = document.querySelectorAll('.tab-content .wap-in select');
disabledItems2.forEach(function (item) {
$(item).addClass('disabled-input');
});
var disabledItems3 = document.querySelectorAll('.tab-content .wap-in textarea');
disabledItems3.forEach(function (item) {
$(item).addClass('disabled-input');
});
var disabledChecked = document.querySelectorAll('.tab-content .wap-in div.wrapper');
disabledChecked.forEach(function (item) {
$(item).addClass('disabled-input');
});
}
}
$('input[name="rd"]').on('change', function (e) {
var disabledItems = document.querySelectorAll('.tab-content .wap-in input');
disabledItems.forEach(function (item) {
$(item).addClass('disabled-input');
});
});
</script>
</div>
</div>
</div>
</div>
</div>
</section>
<script>
var pagePostForLawyer = 0;
var pageF = 1;
var pagePostUser = 0;
$(document).ready(function () {
var html = ``;
html += `<li class="navigation__item forum-name-child-0"><i class="fas fa-chevron-right"></i> <a href="https://thuvienphapluat.vn/cong-dong-dan-luat/thanh-vien/Ngô Thừa Ân">Tài khoản Ngô Thừa Ân </a></li>`;
$('#navigation__list').html(html);
WaitingPostsForLawyer(3001992, pagePostForLawyer, 20);
});
setInterval(function () {
var targetPercentage = 99;
var scrollTo = $(window).scrollTop(),
docHeight = $(document).height(),
windowHeight = $(window).height();
var scrollPercent = (scrollTo / (docHeight - windowHeight)) * 100;
scrollPercent = scrollPercent.toFixed(1);
var elms = document.querySelectorAll('.wap-item-tabs li.active');
if (scrollPercent > targetPercentage) {
if ($(elms).find('a')[0].getAttribute('href') == '#tab1') {
pagePostUser++;
loadSearchPostByUserId('tab1', 3001992, pagePostUser, 20)
}
else if ($(elms).find('a')[0].getAttribute('href') == '#tab2') {
pageF++;
loadFriends(3001992, '', pageF, 20);
}
}
}, 1000);
function activeTabContent(elm, tab) {
var elms = document.querySelectorAll('.wap-item-tabs a');
$('.wap-item-tabs li').removeClass("active");
$.each(elms, function (index, attr) {
if (attr.getAttribute('href') == tab)
$(attr).closest("li").addClass('active');
});
if (tab == '#tab1') {
pagePostUser = 1;
//loadSearchPostByUserId_V2('tab1', 3001992, pagePostLaw, 20);
loadSearchPostByUserId('tab1', 3001992, pagePostUser, 20)
}
else if (tab == '#tab2') {
pageF = 1;
loadFriends(3001992, '', pageF, 20);
}
else if (tab == '#tab4') {
pagePostForLawyer = 1;
WaitingPostsForLawyer(3001992, pagePostForLawyer, 20);
}
}
$('#wap-item-tabs').on('click', 'li', function (e) {
// xử lý không cho scroll lên đầu trang
document.body.style.overflow = "hidden"; // ADD THIS LINE
document.body.style.height = "100%"; // ADD THIS LINE
if ($(this).find('a')[0].getAttribute('href') == '#tab1') {
pagePostUser = 1;
//loadSearchPostByUserId_V2('tab1', 3001992, pagePostLaw, 20);
loadSearchPostByUserId('tab1', 3001992, pagePostUser, 20)
}
else if ($(this).find('a')[0].getAttribute('href') == '#tab2') {
pageF = 1;
loadFriends(3001992, '', pageF, 20);
}
else if ($(this).find('a')[0].getAttribute('href') == '#tab4') {
pagePostForLawyer = 1;
WaitingPostsForLawyer(3001992, pagePostForLawyer, 20);
}
});
</script>
<script>
var UploadCoverImageAvatar = document.getElementById("fileSelect-mobile"),
UploadImageAvatar = document.getElementById("fileSelect-desktop"),
fileElem_mobile = document.getElementById("fileElem-mobile"),
fileListAvatar = document.getElementById("fileListAvatar"),
fileAvatar = document.getElementById("fileAvatar");
if (UploadCoverImageAvatar) {
UploadCoverImageAvatar.addEventListener("click", function (e) {
if (fileElem_mobile) {
fileElem_mobile.click();
}
e.preventDefault();
}, false);
}
//if (UploadImageAvatar) {
// UploadImageAvatar.addEventListener("click", function (e) {
// if (fileElem_mobile) {
// fileElem_mobile.click();
// }
// e.preventDefault();
// }, false);
//}
if (fileElem_mobile)
fileElem_mobile.addEventListener("change", handleFilesAvatar, false);
function handleFilesAvatar() {
if (!this.files.length) {
fileListAvatar.innerHTML = "<p>Không tìm thấy file!</p>";
} else {
var check = checkSizeImage($(this));
if (!check)
return false;
fileListAvatar.innerHTML = "";
const img = document.createElement("img");
img.className = "avatar";
img.src = URL.createObjectURL(this.files[0]);
img.height = 60;
img.onload = function () {
URL.revokeObjectURL(this.src);
}
fileListAvatar.appendChild(img);
updateUserAvatar("fileElem-mobile", 1);
}
}
function checkSizeImage(image) {
let nBytes = 0,
oFiles = image[0].files,
nFiles = oFiles.length;
for (let nFileId = 0; nFileId < nFiles; nFileId++) {
nBytes += oFiles[nFileId].size;
}
//let sOutput = nBytes + " bytes";
//// optional code for multiples approximation
//const aMultiples = ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
//for (nMultiple = 0, nApprox = nBytes / 1024; nApprox > 1; nApprox /= 1024, nMultiple++) {
// sOutput = nApprox.toFixed(3) + " " + aMultiples[nMultiple] + " (" + nBytes + " bytes)";
//}
if (nBytes >= 5000000) {//10000000
swal("Thông báo!", "Hình ảnh không được vượt quá 5Mb", "warning");
return false;
}
return true;
}
function updateUserAvatar(elm, type) {
var formData = new FormData();
var totalFiles = document.getElementById(elm).files.length;
for (var i = 0; i < totalFiles; i++) {
var file = document.getElementById(elm).files[i];
formData.append(elm, file);
}
$('.main-loader').css('display', 'block');
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/User/UpdateImageUser?type=' + type,
data: formData,
dataType: 'json',
processData: false,
contentType: false,
success: function (result) {
if (result === "true" || result === true) {
$('.main-loader').css('display', 'none');
swal("Thông báo!", "Cập nhật thành công!", "success")
.then((value) => {
//window.location.reload(true)
});
return false;
}
else {
$('.main-loader').css('display', 'none');
swal("Thông báo!", result, "error");
return false;
}
},
error: function () {
$('.main-loader').css('display', 'none');
swal("Thông báo!", result, "error");
return false;
}
});
}
</script>
<script>
function LoadDataPostForLawyer() {
var targetPercentage = 99;
var scrollTo = $(window).scrollTop(),
docHeight = $(document).height(),
windowHeight = $(window).height();
var scrollPercent = (scrollTo / (docHeight - windowHeight)) * 100;
scrollPercent = scrollPercent.toFixed(1);
var elms = document.querySelectorAll('.wap-item-tabs li.active');
if (scrollPercent > targetPercentage) {
if ($(elms).find('a')[0].getAttribute('href') == '#tab4') {
//console.log('test + pagePostForLawyer :'+ pagePostForLawyer);
WaitingPostsForLawyer(3001992, pagePostForLawyer, 20);
pagePostForLawyer++;
}
}
}
document.addEventListener('DOMContentLoaded', LoadDataPostForLawyer);
window.addEventListener('scroll', lazyLoadSearchPosttForLawyer);
function lazyLoadSearchPosttForLawyer() {
if (
document.documentElement.scrollTop +
document.documentElement.clientHeight >=
document.documentElement.scrollHeight - 100
) {
$('.main-loader').css('display', 'block');
setTimeout(() => {
LoadDataPostForLawyer();
$('.main-loader').css('display', 'none');
}, 1000);
}
}
</script>
</div>
<style>
@media (max-width: 570px) {
.wap-logo-footer {
text-align: center;
}
@media (max-width: 480px) {
.address {
height: 200px;
}
}
</style>
<!-- Site footer -->
<footer class="row site-footer footer" id="footer" style="display: inline-flex; position: relative; width: 100%; margin: 0;">
<div class="" style=" width: 100%;">
<div class="col-sm-4 col-md-6 col-xs-12 wap-logo-footer">
<a href="https://thuvienphapluat.vn/cong-dong-dan-luat/" class="logo-footer">
<img src="https://thuvienphapluat.vn/cong-dong-dan-luat/Content/Images/logo-danluat-he.png">
</a>
</div>
<div class="col-sm-4 col-xs-6 col-md-3">
<ul class="footer-links">
<li><a href="https://thuvienphapluat.vn/cong-dong-dan-luat/">Trang chủ</a></li>
<li><a href="https://thuvienphapluat.vn/cong-dong-dan-luat/cau-hoi-thuong-gap">Faq</a></li>
<li><a href="https://thuvienphapluat.vn/cong-dong-dan-luat/huong-dan-su-dung">Hướng dẫn sử dụng</a></li>
</ul>
</div>
<div class="col-sm-4 col-xs-6 col-md-3">
<ul class="footer-links">
<li><a href="https://thuvienphapluat.vn/page/viewcontentleft.aspx?key=20" target="_blank">Thỏa ước sử dụng</a></li>
<li><a href="https://thuvienphapluat.vn/cong-dong-dan-luat/gioi-thieu">Về chúng tôi</a></li>
<li><a href="https://thuvienphapluat.vn/cong-dong-dan-luat/lien-he">Liên hệ</a></li>
</ul>
</div>
</div>
<hr>
<div class="" style=" width: 100%;">
<div class="col-md-12 col-sm-12 col-xs-12">
<p class="address" style="font: normal 11px Verdana, Geneva, sans-serif;">
Chủ quản: Công ty <strong style="font-family: Times New Roman; font-size: 11px">
<a href="https://thuvienphapluat.vn/"><span style="color: Red">THƯ VIỆN PHÁP LUẬT</span></a>
</p>
</div>
</div>
</footer>
<script>
$(document).ready(function () {
$('.main-loader').fadeIn('fast');
setTimeout(function () { $('.main-loader').fadeOut('slow'); }, 5000);
});
//document.addEventListener('DOMContentLoaded', function () {
// $('.main-loader').fadeIn('fast');
//}, false);
$(window).on('load', function () {
$('.main-loader').fadeOut('slow');
})
</script>
</div>
<!-- Back to top button -->
<div id="wrapper" style="bottom: 5px;
right: 5%;
position: absolute;
width: 42px;
height: auto;">
<a id="button-to-top"></a>
</div>
</div>
<!-- HTML dùng chung -->
<div class="main-loader"><div class="loading">Loading…</div></div>
<style>
body.modal-open {
height: 100vh;
overflow-y: hidden;
}
.loginModal {
padding: 0 !important;
}
.loginModal .modal-dialog-login {
width: 100%;
height: 100%;
margin: 0 auto;
padding: 0;
}
.loginModal .modal-content-login {
height: auto;
min-height: 100%;
border: 0 none;
border-radius: 0;
box-shadow: none;
}
.loginModal.fade .modal-dialog-login {
transform: translate3d(100vh, 0, 0);
}
.loginModal.in .modal-dialog-login {
transform: translate3d(0, 0, 0);
}
.modal-header-login {
justify-content: left;
padding: 10px;
height: 40px;
}
.modal-header-login .close {
margin: 0;
color: #ef9f26;
font-size: 40px;
opacity: 1;
padding: 0 10px;
margin-top: -15px;
}
.modal-header-login .close i {
color: #ef9f26;
margin-top: 5px;
}
.content-login p {
text-align: center;
margin-bottom: 0.5rem;
max-width: 500px;
margin: auto;
}
.content-login {
position: absolute;
bottom: 0;
top: 0;
overflow-y: auto;
padding-right: 3%;
padding-top: 3%;
margin-bottom: 10px;
}
.input-container {
display: -ms-flexbox; /* IE10 */
display: flex;
width: 100%;
margin-top: 5px;
margin-bottom: 10px;
}
.icon {
padding: 10px;
background: transparent;
color: white;
min-width: 50px;
text-align: center;
position: absolute;
left: 5%;
color: #8e99a4;
padding-top: 15px;
}
.input-field {
width: 100%;
padding: 10px;
outline: none;
border-radius: 5px;
background: transparent;
border-radius: 5px;
border: 1px solid #888;
padding-left: 50px;
}
.input-field:focus {
border: 2px solid #ef9f26;
}
.forget-pass {
color: #ef9f26 !important;
}
.btnLogin {
background-color: #ef9f26;
color: white;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
padding: 5px;
border-radius: 5px;
}
.btnLogin:hover {
opacity: 1;
}
.cke_skin_kama .cke_dialog_tabs {
margin-top: 0px;
}
#loginModal2 .icon {
padding: 10px;
font-size: 15px;
}
#loginModal2 .input-field {
padding: 5px;
padding-left: 50px;
}
#ModalResetPassword .modal-content {
padding-left: 10px;
padding-right: 10px;
}
.cancel-resetpass, .send-resetpass {
width: 50%;
background: transparent;
color: #70bce0;
border: none;
}
.input-title {
width: 100%;
padding: 10px 7px;
box-sizing: border-box;
background: none;
outline: none;
resize: none;
border: 0;
transition: all .3s;
border-bottom: 2px solid #bebed2;
margin-bottom: 20px;
}
.content-login input, .content-login select {
width: 100%;
padding: 3px 7px;
box-sizing: border-box;
background: none;
outline: none;
resize: none;
transition: all .3s;
/* border-bottom: 2px solid #bebed2;*/
border-radius: 5px;
border: 1px solid #ddd;
}
.content-login select.cb-AddrName {
width: 65px;
margin-top: 20px;
}
.modal-footer {
padding: 5px;
}
.modal-footer button.cancel-resetpass {
padding: 10px;
font-weight: 600;
border: 1px solid #ddd;
border-radius: 5px;
}
.variants {
display: flex;
justify-content: center;
align-items: center;
float: left;
padding-bottom: 5px;
border-radius: 5px;
}
.variants > div {
margin-right: 5px;
}
.variants > div:last-of-type {
margin-right: 0;
}
.file {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.file > input[type='file'] {
display: none
}
.file > label, .file > a > label {
font-size: 1rem;
font-weight: 300;
cursor: pointer;
outline: 0;
user-select: none;
border-color: rgb(216, 216, 216) rgb(209, 209, 209) rgb(186, 186, 186);
border-style: solid;
border-radius: 4px;
border-width: 1px;
background-color: hsl(0, 0%, 100%);
color: hsl(0, 0%, 29%);
padding: 5px;
display: flex;
justify-content: center;
align-items: center;
}
.file > label:hover, .file > a > label:hover {
border-color: none;
background-color: #ef9f26;
color: #fff;
}
.file > label:hover > .fa-image, .file > a > label:hover > .fa-link, .file > a > label:hover > .fa-link {
color: #fff;
}
.file > label:active {
background-color: hsl(0, 0%, 96%);
}
.file > label > i {
padding-right: 5px;
}
.file--upload > label {
color: hsl(204, 86%, 53%);
border-color: hsl(204, 86%, 53%);
}
.file--upload > label:hover {
border-color: hsl(204, 86%, 53%);
background-color: hsl(204, 86%, 96%);
}
.file--upload > label:active {
background-color: hsl(204, 86%, 91%);
}
.file--uploading > label {
color: hsl(48, 100%, 67%);
border-color: hsl(48, 100%, 67%);
}
.file--uploading > label > i {
animation: pulse 5s infinite;
}
.file--uploading > label:hover {
border-color: hsl(48, 100%, 67%);
background-color: hsl(48, 100%, 96%);
}
.file--uploading > label:active {
background-color: hsl(48, 100%, 91%);
}
.file--success > label {
color: hsl(141, 71%, 48%);
border-color: hsl(141, 71%, 48%);
}
.file--success > label:hover {
border-color: hsl(141, 71%, 48%);
background-color: hsl(141, 71%, 96%);
}
.file--success > label:active {
background-color: hsl(141, 71%, 91%);
}
.file--danger > label {
color: hsl(348, 100%, 61%);
border-color: hsl(348, 100%, 61%);
}
.file--danger > label:hover {
border-color: hsl(348, 100%, 61%);
background-color: hsl(348, 100%, 96%);
}
.file--danger > label:active {
background-color: hsl(348, 100%, 91%);
}
.file--disabled {
cursor: not-allowed;
}
.file--disabled > label {
border-color: #e6e7ef;
color: #e6e7ef;
pointer-events: none;
}
@keyframes pulse {
0% {
color: hsl(48, 100%, 67%);
}
50% {
color: hsl(48, 100%, 38%);
}
100% {
color: hsl(48, 100%, 67%);
}
}
textarea:focus {
outline: none !important;
border: 2px solid #bebed2;
}
@media (min-width: 560px) and (max-width: 765px) {
#loginModal .modal-content-login {
position: absolute;
width: 100vw;
height: 50vh;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
border: 0;
}
.content-login {
padding: 10% 3% 0 3%;
}
.icon {
left: 8%;
}
}
@media (min-width: 768px) {
.content-login {
padding: 10% 3% 0 3%;
}
.icon {
left: auto;
}
}
@media (min-width: 992px) {
.content-login {
padding: 18% 3% 0 3%;
}
}
@media (max-width: 480px) {
#loginModal2 .abcRioButtonFB a span {
margin-top: 7px;
}
.loginModal .modal-dialog-login {
margin: 0;
}
/*____________________________________CkEditor____________________________________________________________________*/
.cke_dialog.cke_browser_webkit.cke_ltr {
width: 100%;
}
.cke_skin_kama .cke_dialog_body {
/* width: 85%;*/
/* background: red;*/
}
table.cke_skin_kama .cke_dialog_contents {
background-color: #2cc735;
width: 100%;
display: block;
margin-right: 40px;
}
/* .cke_skin_kama .cke_ltr .cke_dialog_ui_hbox_first, .cke_skin_kama .cke_ltr .cke_dialog_ui_hbox_child {
width: 130px;
}*/
.cke_skin_kama .cke_dialog_ui_hbox_first, .cke_skin_kama .cke_dialog_ui_hbox_child, .cke_skin_kama .cke_dialog_ui_hbox_last {
/* background-color: rebeccapurple;*/
/* width: 150px;*/
}
/* .ImagePreviewBox{
display:none;
}*/
.cke_skin_kama .cke_dialog .ImagePreviewBox {
width: auto;
}
/* #cke_dialog_contents_100.cke_dialog_contents {
width: auto !important;
}*/
/*#cke_138_uiElement {
display: none;
}*/
/* #cke_139_uiElement {
width: 85% !important;
background-color: red;
height: auto !important;
}*/
.cke_skin_kama .cke_dialog_tabs {
margin-top: 5px !important;
}
.cke_skin_kama a.cke_dialog_tab, .cke_skin_kama a:link.cke_dialog_tab, .cke_skin_kama a:active.cke_dialog_tab, .cke_skin_kama a:hover.cke_dialog_tab, .cke_skin_kama a:visited.cke_dialog_tab {
background-color: #ef9f26;
line-height: 7px;
}
/* .cke_skin_kama a.cke_dialog_tab_selected, .cke_skin_kama a:link.cke_dialog_tab_selected, .cke_skin_kama a:active.cke_dialog_tab_selected,
.cke_skin_kama a:hover.cke_dialog_tab_selected, .cke_skin_kama a:visited.cke_dialog_tab_selected {
background-color: #c1c146;
}*/
.cke_skin_kama .cke_toolgroup {
margin-right: 2px;
}
.cke_skin_v2 .cke_rcombo .cke_text {
height: auto;
}
.cke_skin_v2 .cke_rcombo .cke_openbutton {
height: 22px;
}
.ui-icon-closethick {
margin-top: -11px !important;
}
}
@media (max-width: 325px) {
.content-login p {
width: 100% !important;
text-align: center !important;
}
.footer-login {
width: 100% !important;
}
.footer-login.phone, .footer-login.skype {
text-align: center !important;
}
}
</style>
<!-- Modal Login -->
<div class="modal fade loginModal loginModalForm" data-backdrop="static" data-keyboard="false" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-login" role="document">
<div class="modal-content modal-content-login">
<div class="modal-body">
<div class="content-login">
<div class="col-md-12 col-xs-12">
<p><img src="https://thuvienphapluat.vn/cong-dong-dan-luat/Content/Images/logo-danluat-he.png" height="80" class="logo" /></p>
<p style="color:#ef9f26;font-size: 18px;margin-top: 10px;">Đăng nhập</p>
<p>
Bạn vui lòng đăng nhập. Bạn cũng có thể đăng nhập bằng tài khoản của
<a target="_blank" href="https://thuvienphapluat.vn/" style="color:#fe0c00"><span>ThuVienPhapLuat.vn</span></a> hoặc
<button type="submit" class="btnLogin" data-toggle="modal" data-target="#registerModal" style="background-color: transparent;color: #ef9f26;outline: none;border: none;width: auto;padding: 0;"><b>Đăng ký</b></button> nếu bạn chưa có tài khoản
</p>
<div style="max-width:500px;margin:auto">
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Tên đăng nhập" id="usernameM" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="password" placeholder="Mật khẩu" id="passwordM" /></p>
<div class="input-container" style="display: block;text-align: right;">
<button type="submit" class="btnLogin" data-toggle="modal" data-target="#ModalResetPassword" style="background-color: transparent;color: #ef9f26;outline: none;border: none;width: auto;padding: 0;">Quên mật khẩu?</button>
</div>
<div class="input-container">
<button type="submit" class="btnLogin" onclick="LoginClickModal();">Đăng nhập</button>
</div>
<div class="input-container">
<div class="abcRioButtonFB">
<a title="Đăng nhập bằng Facebook" href="javascript:void(0);" onclick="return fbLogin();">
<i class="fab fa-facebook-f"></i>
<span>Đăng nhập bằng Facebook</span>
</a>
</div>
</div>
<div class="input-container">
<div class="abcRioButtonGoogle abcRioButtonLightBlue">
<a title="Đăng nhập bằng Google" href="javascript:void(0);" onclick="return google_login();">
<i class="fab fa-google" style=" background: #5183ec;"></i>
<span>Đăng nhập bằng Google</span>
</a>
</div>
</div>
<div class="input-container" style="display: block;">
<p>——— Hoặc ———</p>
</div>
<button id="btnRegister" type="submit" class="btnLogin" data-toggle="modal" data-target="#registerModal" style="background-color: #fe0c00;"><b>Đăng ký</b></button>
</div>
<p><span class="tvpl-name2" style="position: revert;font-size: 15px;padding: 5px;text-align: center;">© 2024 THƯ VIỆN PHÁP LUẬT</span></p>
<p class="footer-login left" style="width:50%"><i class="fas fa-phone-volume"></i> Hotline: 028 3930 3279</p>
<p class="footer-login phone right" style="width:50%; text-align:right"><i class="fa fa-phone-square" aria-hidden="true"></i> <a href="javascript:void(0);">(028) 3930 3279</a></p>
<p class="footer-login" style="display: inline-block;width:100%;padding-top: 5px;"><i class="fas fa-map-marker-alt"></i> <a href="javascript:void(0);">19 Nguyễn Gia Thiều, P.Võ Thị Sáu, Q.3, TP.HCM</a></p>
</div>
</div>
</div>
<div class="modal-footer" style="text-align:center">
<button type="button" class="cancel-resetpass" data-dismiss="modal">Đóng</button>
</div>
</div>
</div>
</div>
<!-- Modal Login V2-->
<div class="modal fade " id="loginModal2" tabindex="-1" role="dialog" aria-labelledby="loginModal2Title" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered modal-dialog-login" role="document">
<div class="modal-content modal-content-login">
<div class="modal-header modal-header-login">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin: auto;margin-right:0;margin-top:-10px;">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="">
<div class="col-md-12 col-xs-12">
<div style="text-align:center">
<p style="margin-top: 10px;font-weight:600;margin:0; font-size:12px;">
Chào mừng bạn đến với <strong><span style="color: red;">D</span>ân <span style="color: red;">L</span>uật</strong>
. Để viết bài Tư vấn,
<a href="https://thuvienphapluat.vn/cong-dong-dan-luat/tao-bai-viet-hoi-luat-su" style="cursor: pointer;">Hỏi Luật Sư</a>, kết nối với Luật sư và chuyên gia, …
</p>
</div>
<style>
#loginModal2 input, #loginModal2 select {
width: 100%;
padding: 3px 7px;
box-sizing: border-box;
background: none;
outline: none;
resize: none;
transition: all .3s;
border-radius: 5px;
border: 1px solid #ddd;
}
#loginModal2 select.cb-AddrName {
width: 65px;
margin-top: 10px;
height:28px;
}
.modal-footer {
padding: 5px;
}
.modal-footer button.cancel-resetpass {
padding: 10px;
font-weight: 600;
border: 1px solid #ddd;
border-radius: 5px;
}
.input-title {
width: 100%;
padding: 10px 7px;
box-sizing: border-box;
background: none;
outline: none;
resize: none;
border: 0;
transition: all .3s;
border-bottom: 2px solid #bebed2;
margin-bottom: 20px;
}
#loginModal2 input, #loginModal2 select {
width: 100%;
padding: 3px 7px;
box-sizing: border-box;
background: none;
outline: none;
resize: none;
transition: all .3s;
border-radius: 5px;
border: 1px solid #ddd;
}
#loginModal2 p.p-form {
margin:0;
}
#loginModal2 p.p-form:before {
margin-top:-10px;
}
</style>
<div class="">
<p style="color:#ef9f26;font-size: 18px;margin-top: 10px;text-align:center">Đăng ký tài khoản</p>
<div style="max-width:500px;margin:auto;">
<div style="display: inline-flex;width: 100%;">
<select class="cb-AddrName" name="Customer_AddrName" id="Customer_AddrName_Register">
<option value="1" selected>Ông</option>
<option value="2">Bà</option>
<option value="3">Anh</option>
<option value="4">Chị</option>
</select>
<p class="p-form" type=" " style="text-align:left;width: inherit;margin-left: 10px;"><input type="text" placeholder="Họ tên" id="Customer_FullName_Register" /></p>
</div>
<p class="p-form" type=" " style="text-align:left"><input class="txt-sinhnhat" name="Birthday" id="Birthday_Register" min="1940-01-01" type="date" value="2024-05-09" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Tên đăng nhập" id="Customer_Name_Register" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Email" id="Customer_Email_Register" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Số điện thoại di động" id="Customer_Mobile_Register" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Địa chỉ liên hệ" id="Customer_Address_Register" /></p>
<select class="cb-city" name="CustomerProfile.City" id="CustomerProfile_City" style=" margin-top: 10px;padding: 6px;">
<option value="" disabled selected>Chọn tỉnh thành</option>
</select>
<p class="p-form" type=" " style="text-align:left"><input type="password" placeholder="Mật khẩu" id="Customer_Password_Register" /></p>
<div style="display: block;text-align:center;margin-top: 5px;">
<input type="checkbox" id="check-dieu-khoan" name="check-dieu-khoan" checked style="width: auto;">
<label for="check-dieu-khoan" style="padding-left: 10px;font-weight: 100;">Tôi đã đọc và đồng ý <span style="color:#ef9f26"><a href="https://thuvienphapluat.vn/cong-dong-dan-luat/thoa-uoc-su-dung" target="_blank">Thỏa ước dịch vụ</a></span></label>
</div>
<div class="input-container" style="display: block;text-align:center">
<div style=" display: flex;">
<div class="wap-captcha" id="wap-captcha" style=" width: calc(100% - 55px);">
<img id="myimage" src="https://thuvienphapluat.vn/cong-dong-dan-luat/registimage.aspx" />
</div>
<button type="submit" class="btnLogin" onclick="reloadCaptcha();" style="width: auto;"><i class="fa fa-refresh" aria-hidden="true" style="color: #fff;"></i></button>
</div>
</div>
<div style="display:flex">
<input class="txtCaptcha input-field" placeholder="Nhập mã Captcha" value="" type="text" style=" width: calc(100% - 100px);margin-right:10px;" />
<button type="submit" class="btnLogin" onclick="RegisterClickModal();" style="background-color:#fe0c00;width:100px;height:fit-content;">Đăng Ký</button>
</div>
</div>
</div>
<script>
function reloadCaptcha() {
$('.main-loader').css('display', 'block');
$('.wap-captcha').load('/User/Captcha');
let r = (Math.random() + 1).toString(36).substring(7);
setTimeout(function () {
$("#myimage").attr("src", MAIN_DOMAIN + "/registimage.aspx?t=" + r);
$('.main-loader').fadeOut('fast');
}, 1000);
}
</script>
<div class="clearfix"></div>
<hr />
<div class="input-container" style="display: block;">
<p style="color: #f1a93c;">Bạn đã đã có tài khoản thì đăng nhập để sử dụng tiện ích</p>
</div>
<div style="max-width:500px;margin:auto">
<div class="input-container">
<i class="fa fa-user icon"></i>
<input class="input-field" type="text" placeholder="Tên đăng nhập" id="usernameM2">
</div>
<div class="input-container">
<i class="fa fa-key icon"></i>
<input class="input-field" type="password" placeholder="Mật khẩu" id="passwordM2">
</div>
<div class="input-container" style="width:50%;float:left">
<button type="submit" id="btn-login" class="btnLogin" onclick="LoginClickModal_V2();">Đăng nhập</button>
</div>
<div class="input-container" style="display: block;text-align: right;width:50%;float:right">
<a onclick="closeLoginModal()" href="javascript:void(0);" class="forget-pass" data-toggle="modal" data-target="#ModalResetPassword">Quên mật khẩu?</a>
</div>
<div class="clearfix"></div>
<div class="input-container" style="width:50%;float:left">
<div class="abcRioButtonFB">
<a title="Đăng nhập bằng Facebook" href="javascript:void(0);" onclick="return fbLogin();">
<i class="fab fa-facebook-f"></i>
<span style="padding-left:0;font-size:10px;">Đăng nhập bằng Facebook</span>
</a>
</div>
</div>
<div class="input-container" style="width:50%;float:right">
<div class="abcRioButtonGoogle abcRioButtonLightBlue">
<a title="Đăng nhập bằng Google" href="javascript:void(0);" onclick="return google_login();" style="opacity:1">
<i class="fab fa-google" style=" background: #5183ec;"></i>
<span style="padding-left:0;font-size:10px;margin-left:30px;">Đăng nhập bằng Google</span>
</a>
</div>
</div>
<script>
$(document).ready(function () {
$('#passwordM2').on('keydown', function (e) {
if (e.keyCode === 13) { $('#btn-login').trigger('click'); }
});
})
</script>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal Register -->
<div class="modal fade loginModal" id="registerModal" role="dialog" aria-labelledby="registerModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-login" role="document">
<div class="modal-content modal-content-login">
<div class="modal-body">
<div class="content-login" style="position:relative;padding-right:0">
<div class="col-md-12 col-xs-12">
<p><img src="https://thuvienphapluat.vn/cong-dong-dan-luat/Content/Images/logo-danluat-he.png" height="80" class="logo" /></p>
<p style="color:#ef9f26;font-size: 18px;margin-top: 10px;">Đăng ký tài khoản</p>
<div style="max-width:500px;margin:auto;">
<div style="display: inline-flex;width: 100%;">
<select class="cb-AddrName" name="Customer_AddrName" id="Customer_AddrName_Register">
<option value="1" selected>Ông</option>
<option value="2">Bà</option>
<option value="3">Anh</option>
<option value="4">Chị</option>
</select>
<p class="p-form" type=" " style="text-align:left;width: inherit;margin-left: 10px;"><input type="text" placeholder="Họ tên" id="Customer_FullName_Register" /></p>
</div>
<p class="p-form" type=" " style="text-align:left"><input class="txt-sinhnhat" name="Birthday" id="Birthday_Register" min="1940-01-01" type="date" value="2024-05-09" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Tên đăng nhập" id="Customer_Name_Register" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Email" id="Customer_Email_Register" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Số điện thoại di động" id="Customer_Mobile_Register" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Địa chỉ liên hệ" id="Customer_Address_Register" /></p>
<select class="cb-city" name="CustomerProfile.City" id="CustomerProfile_City" style=" margin-top: 20px;padding: 6px;">
<option value="" disabled selected>Chọn tỉnh thành</option>
</select>
<p class="p-form" type=" " style="text-align:left"><input type="password" placeholder="Mật khẩu" id="Customer_Password_Register" /></p>
<div style="display: block;text-align:center;margin-top: 5px;">
<input type="checkbox" id="check-dieu-khoan" name="check-dieu-khoan" checked style="width: auto;">
<label for="check-dieu-khoan" style="padding-left: 10px;font-weight: 100;">Tôi đã đọc và đồng ý <span style="color:#ef9f26"><a href="https://thuvienphapluat.vn/cong-dong-dan-luat/thoa-uoc-su-dung" target="_blank">Thỏa ước dịch vụ</a></span></label>
</div>
<button type="submit" class="btnLogin" onclick="RegisterClickModal();">Đăng Ký</button>
<div class="input-container" style="margin-bottom: 0;">
<div class="abcRioButtonFB">
<a title="Đăng nhập bằng Facebook" href="javascript:void(0);" onclick="return fbLogin();">
<i class="fab fa-facebook-f"></i>
<span>Đăng nhập bằng Facebook</span>
</a>
</div>
</div>
<div class="input-container">
<div class="abcRioButtonGoogle abcRioButtonLightBlue">
<a title="Đăng nhập bằng Google" href="javascript:void(0);" onclick="return google_login();">
<i class="fab fa-google" style=" background: #5183ec;"></i>
<span>Đăng nhập bằng Google</span>
</a>
</div>
</div>
</div>
<div style="margin-top: 20px;">
<p><span class="tvpl-name2" style="position: revert;font-size: 15px;padding: 5px;text-align: center;">© 2024 THƯ VIỆN PHÁP LUẬT</span></p>
<p class="footer-login left" style="width:50%"><i class="fas fa-phone-volume"></i> Hotline: 028 3930 3279</p>
<p class="footer-login phone right" style="width:50%; text-align:right"><i class="fa fa-phone-square" aria-hidden="true"></i> <a href="javascript:void(0);">(028) 3930 3279</a></p>
<p class="footer-login" style="display: inline-block;width:100%;padding-top: 5px;"><i class="fas fa-map-marker-alt"></i> <a href="javascript:void(0);">19 Nguyễn Gia Thiều, P.Võ Thị Sáu, Q.3, TP.HCM</a></p>
</div>
</div>
</div>
</div>
<div class="modal-footer" style="text-align:center">
<button type="button" class="cancel-resetpass closeRegisterModal" data-dismiss="modal">Đóng</button>
</div>
</div>
</div>
</div>
<!-- Modal ResetPassword -->
<div class="modal fade" id="ModalResetPassword" tabindex="-1" role="dialog" aria-labelledby="ModalResetPasswordTitle" aria-hidden="true">
<div class="modal-dialog modal-sm modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<div>
<h4 style="text-align: center;font-weight: 600;">Lấy lại mật khẩu</h4>
<p>Vui lòng nhập địa chỉ Email mà bạn đã dùng đăng ký tài khoản để khôi phục mật khẩu</p>
<input class="input-field" type="text" placeholder="Nhập địa chỉ email" id="emailResetPass" style="padding-left:10px" />
</div>
</div>
<div class="modal-footer" style="text-align:center">
<button type="button" class="cancel-resetpass" data-dismiss="modal">Đóng</button>
<button type="button" class="send-resetpass" onclick="ForgetPasswordClick();">Gửi yêu cầu</button>
</div>
</div>
</div>
</div>
<!-- Modal AddFolder -->
<div class="modal fade" id="ModalAddFolder" tabindex="-1" role="dialog" aria-labelledby="ModalAddFolderTitle" aria-hidden="true">
<div class="modal-dialog modal-sm modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<div>
<h4 style="text-align: center;font-weight: 600;">Tạo thư mục</h4>
<input class="input-field" type="text" placeholder="Nhập tên thư mục" id="addFolderName" style="padding-left:10px" />
</div>
</div>
<div class="modal-footer" style="text-align:center">
<button type="button" class="cancel-resetpass" data-dismiss="modal" id="cancel-AddFolder">Đóng</button>
<button type="button" class="send-resetpass" onclick="createFolder();">Tạo</button>
</div>
</div>
</div>
</div>
<!-- Modal Content Document-->
<div class="modal fade" id="contentModalCenter" tabindex="-1" role="dialog" aria-labelledby="contentModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="contentModalCenterTitle">Mục lục văn bản</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-top: -5px;">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body content-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary cancel-resetpass" data-dismiss="modal" style="background:#ef9f26">Đóng</button>
</div>
</div>
</div>
</div>
<!-- Modal Create Message -->
<div class="modal fade loginModal" id="ModalCreateMessage" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="ModalCreateMessageTitle" aria-hidden="true" style=" overflow-y: auto;">
<div class="modal-dialog modal-dialog-centered create-mesage" role="document">
<div class="modal-content modal-content-login">
<div class="modal-body">
<div>
<h4 style="text-align: center;font-weight: 600;">Gửi câu hỏi/chủ đề</h4>
<div class="wap-forums-select">
<style>
.txt_basic {
background-color: white;
border: thin solid #dbdada;
display: inline-block;
font: inherit;
line-height: 1.5em;
padding: 5px;
margin: 0;
width: 100%;
}
.ddl_holder {
width: 100%;
}
.childtext {
cursor: pointer;
}
.btn-dropdown-thread {
height: 29px;
border: 1px solid #656568;
margin: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
background-repeat: no-repeat;
background-image: linear-gradient( 45deg, transparent 50%, #000 50%), linear-gradient( 135deg, #000 50%, transparent 50%), linear-gradient(to right, #dbdada, #dbdada);
background-position: calc(100% - 16px) calc(1em + 0px), calc(100% - 11px) calc(1em + 0px), 100% 0;
background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
position: absolute;
right: 15px;
border: none;
outline: none;
}
.dropdown-thread {
border: 1px solid #dbdada;
padding-left: 15px;
border-top: none;
position: relative;
height: 150px;
overflow-y: scroll;
}
.dropdown-thread li {
list-style-type: none;
cursor: pointer;
line-height: 25px;
}
.dropdown-thread li ul {
padding-left: 20px;
}
.childtext {
font-family: Calibri;
font-size: 15px;
transition: all ease 300ms;
}
.litext {
font-family: Calibri;
font-size: 15px;
}
input.txt_basic:focus {
border: thin solid #dbdada;
outline: none;
}
.fa-sort-desc {
padding: 0 10px;
height: 20px;
margin-top: 0px;
position: absolute;
margin-left: 5px;
background-color: #dbdada;
color: #000;
}
.fa-sort-desc.active {
background-color: #f79522;
color: #fff;
}
.selected {
color: #f79522;
}
</style>
<div class="ddl_holder">
<input type="hidden" value="" class="txt_forum" />
<input type="text" placeholder="Chọn chuyên mục câu hỏi/chủ đề" class="txt_basic disabled-text" />
<input type="button" class="btn-dropdown-thread" onclick="showForums();" value="   ">
<ul class="dropdown-thread"></ul>
</div>
<script>
var GroudId = 50;
$(document).ready(function () {
var q_ForumID = 0;
if (location.pathname.split('.')[1] != 'aspx') {// check đường dẫn k có .aspx là của trang chi tiết Chủ đề sẽ k gọi
if (GroudId == 50)
LoadForumsDropdownList(50, q_ForumID);
else
LoadForumsDropdownList_LS(50, q_ForumID);
}
$(".dropdown-thread").hide();
$(".dropdownchild").hide();
//$(".litext").on("click", function () {
// $('.dropdown-thread li').removeClass('selected');
// $('.dropdown-thread li span').removeClass('selected');
// $(this).closest("li").addClass('selected');
// var text = $(this).text();
// var value = $(this).attr('value');
// $(".txt_basic").val(text);
// $(".txt_forum").val(value);
//});
//$(".childtext").on("click", function () {
// $('.dropdown-thread li').removeClass('selected');
// $('.dropdown-thread li span').removeClass('selected');
// $(this).addClass('selected');
// var text = $(this).text();
// var value = $(this).attr('value');
// $(".txt_basic").val(text);
// $(".txt_forum").val(value);
//});
});
//$(".btn-dropdown-thread").on("click", function () {
// $(".dropdown-thread").slideToggle("fast");
//});
function showForums() {
$(".dropdown-thread").slideToggle("fast");
}
function forumSelected(elm, forum_id) {
$('.dropdown-thread li').removeClass('selected');
$('.dropdown-thread li span').removeClass('selected');
$(elm).addClass('selected');
var text = $(elm).text();
$(".txt_basic").val(text);
$(".txt_forum").val(forum_id);
$(".fa-sort-desc").removeClass('active');
$('ul.dropdownchild').css('display', 'none');
$(".dropdown-thread").slideToggle("fast");
//$('#tab-bar-header li.tab.wave').removeClass("active");
}
function childForumsSlideToggle(elm, id) {
var checkClass = elm.classList.contains('active');
if (!checkClass) {
$(elm).addClass('active');
$('.dropdownchild-' + id).css('border-bottom', '1px solid #dbdada');
}
else {
$(elm).removeClass('active');
$('.dropdownchild-' + id).css('border-bottom', 'none');
}
$('.dropdownchild-' + id).slideToggle("fast");
}
</script>
</div>
<br />
<input placeholder="Nhập tiêu đề..." class="input-title" id="tieu-deu-bai-viet" />
<input placeholder="Nhập ảnh tiêu đề..." class="input-title" id="anh-tieu-de-bai-viet" />
<div class="col-lg-12 col-md-12 col-xs-12 wap-item-image-title" style="display:none;">
<div class="row">
<div class="wap-image-title" style="margin-left: -5px; margin-right: -5px; padding: 5px 10px;"></div>
</div>
</div>
<br />
<div>
<textarea name="noidungbaivietmoi" id="noidungbaivietmoi"></textarea>
<script>
//var isiOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var iPhone = /iPhone/.test(navigator.userAgent) && !window.MSStream;
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
//fix ckeditor js error Uncaught [CKEDITOR.editor] The instance "noidungbaivietmoi" already exists.
if (CKEDITOR.instances.noidungbaivietmoi) {
CKEDITOR.instances.noidungbaivietmoi.destroy();
CKEDITOR.instances.noidungbaivietmoi = null;
$('#noidungbaivietmoi').dialog("destroy").remove();
}
var html_Custom_Button = '<div class="variants" id="noidungbaivietmoi-wap-custombutton">' +
//' <div class=\'file\'>' +
//' <label for=\'upload-file-in-post\' >' +
//' <i class="fas fa-file"></i>Chọn file' +
//' </label>' +
//' <input id=\'upload-file-in-post\' type=\'file\' onchange="uploadFileInPost(\'add\');"/>' +
//' </div>' +
' <div class=\'file\'>' +
//' <a data-toggle="modal" href="javascript:void(0)" onclick="modalUploadLinkFilesClicked();">' +
' <a data-toggle="modal" href="#modalUploadLinkFiles" onclick="modalUploadLinkFilesClicked();">' +
' <label for=\'upload-file-in-post\' >' +
' <i class="fas fa-link"></i> Chọn Link file' +
' </label>' +
' </a>' +
' </div>' +
//' <div class=\'file\'>' +
//' <label for=\'upload-file-title\' >' +
//' <i class="fas fa-image"></i>Chọn hình tiêu đề' +
//' </label>' +
//' <input id=\'upload-file-title\' type=\'file\' onchange="modalUploadFilesTitleClicked();"/>' +
//' </div>' +
' </div>';
CKEDITOR.on('instanceReady', function (evt) {
var editor = evt.editor;
console.log('The editor named ' + editor.name + ' is now ready');
var elementExists = document.getElementById("noidungbaivietmoi-wap-custombutton");
if (!elementExists)
$('#cke_top_noidungbaivietmoi .cke_toolbox').append(html_Custom_Button);
});
CKEDITOR.env.isCompatible = true;
if (iPhone || isAndroid) {
CKEDITOR.replace(
'noidungbaivietmoi',
{
toolbar: [
//{ name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
//{ name: 'editing', groups: ['find', 'selection', 'spellchecker'], items: ['Scayt'] },
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
//{ name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
{ name: 'insert', items: ['Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
//{ name: 'tools', items: ['Maximize'] },
//{ name: 'document', groups: ['mode', 'document', 'doctools'] },
//{ name: 'others', items: ['-'] },
'/',
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] },
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote'] },
{ name: 'styles', items: ['Styles', 'Format'] }
]
//,
//skin: 'v2'
//,
//enterMode: 1,
//shiftEnterMode: 2
},
{ height: 550 }, { width: 500 }
);
} else {
var editor = CKEDITOR.replace(
'noidungbaivietmoi',
{
toolbar: [
//{ name: 'document', items: ['Source', '-', 'Save', 'NewPage', 'DocProps', 'Preview', 'Print', '-', 'Templates'] },
//{ name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
///{ name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
{ name: 'insert', items: ['Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
//{ name: 'tools', items: ['Maximize', 'ShowBlocks', '-', 'About'] },
////{ name: 'others', items: ['-'] },
//'/',
//{ name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-', 'SpellChecker', 'Scayt'] },
{ name: 'forms', items: ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'HiddenField'] },
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
'/',
{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
'/',
{ name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
{ name: 'colors', items: ['TextColor', 'BGColor'] }
]
}
);
}
$.fn.modal.Constructor.prototype.enforceFocus = function () {
var $modalElement = this.$element;
$(document).on('focusin.modal', function (e) {
var $parent = $(e.target.parentNode);
if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length
// add whatever conditions you need here:
&&
!$parent.hasClass('cke_dialog_ui_input_select') && !$parent.hasClass('cke_dialog_ui_input_text')) {
$modalElement.focus()
}
})
};
</script>
</div>
<div>
<style>
.tags-container {
display: flex;
flex-flow: row wrap;
margin-bottom: 15px;
width: 100%;
min-height: 34px;
padding: 2px 5px;
font-size: 14px;
line-height: 1.6;
background-color: transparent;
border: 1px solid #ccc;
border-radius: 5px;
overflow: hidden;
word-wrap: break-word;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
margin-top: 10px;
}
input.tag-input {
flex: 3;
border: 0;
outline: 0;
}
.tag-2 {
position: relative;
margin: 2px 6px 2px 0;
padding: 3px 25px 3px 5px;
font-size: inherit;
font-weight: 400;
text-align: center;
color: #fff;
background-color: #888888;
border-radius: 3px;
transition: background-color 0.3s ease;
cursor: default;
}
.tag-2:first-child {
margin-left: 0;
}
.tag-2--marked {
background-color: #6fadd7;
}
.tag-2--exists {
background-color: #EDB5A1;
-webkit-animation: shake 1s linear;
animation: shake 1s linear;
}
.tag__name {
margin-right: 3px;
}
.tag__remove {
position: absolute;
right: 0;
bottom: 0;
width: 25px;
height: 100%;
padding: 0 5px;
font-size: 16px;
font-weight: 400;
transition: opacity 0.3s ease;
opacity: 0.5;
cursor: pointer;
border: 0;
background-color: transparent;
color: #fff;
line-height: 1;
}
.tag__remove:hover {
opacity: 1;
}
.tag__remove:focus {
outline: 5px auto #fff;
}
@-webkit-keyframes shake {
0%, 100% {
transform: translate3d(0, 0, 0);
}
10%, 30%, 50%, 70%, 90% {
transform: translate3d(-5px, 0, 0);
}
20%, 40%, 60%, 80% {
transform: translate3d(5px, 0, 0);
}
}
@keyframes shake {
0%, 100% {
transform: translate3d(0, 0, 0);
}
10%, 30%, 50%, 70%, 90% {
transform: translate3d(-5px, 0, 0);
}
20%, 40%, 60%, 80% {
transform: translate3d(5px, 0, 0);
}
}
.wap-button {
margin-bottom: 35px;
}
.wap-button button.btn-update {
margin-right: 20px;
float: left;
outline: none;
border: 0;
}
.wap-button button.btn-update:focus {
outline: none;
border: 0;
}
</style>
<div class="wap-content-animation">
<div style=" margin-top: 10px;">
<label for="exist-values" style="width:100%">
Thêm tags/Từ khóa
<input type="text" id="exist-values" class="tagged form-control" data-removeBtn="true" name="tag-2" value="" placeholder="Hãy gõ cụm từ thích hợp">
</label>
</div>
<div class="wap-button">
<button class="btn-update" id="destroy">Sửa tags</button>
<button class="btn-update" id="clear">Xóa tags</button>
</div>
</div>
<script>
// https://github.com/k-ivan/Tags
(function () {
'use strict';
// Helpers
function $$(selectors, context) {
return (typeof selectors === 'string') ? (context || document).querySelectorAll(selectors) : [selectors];
}
function $(selector, context) {
return (typeof selector === 'string') ? (context || document).querySelector(selector) : selector;
}
function create(tag, attr) {
var element = document.createElement(tag);
if (attr) {
for (var name in attr) {
if (element[name] !== undefined) {
element[name] = attr[name];
}
}
}
return element;
}
function whichTransitionEnd() {
var root = document.documentElement;
var transitions = {
'transition': 'transitionend',
'WebkitTransition': 'webkitTransitionEnd',
'MozTransition': 'mozTransitionEnd',
'OTransition': 'oTransitionEnd otransitionend'
};
for (var t in transitions) {
if (root.style[t] !== undefined) {
return transitions[t];
}
}
return false;
}
function oneListener(el, type, fn, capture) {
capture = capture || false;
el.addEventListener(type, function handler(e) {
fn.call(this, e);
el.removeEventListener(e.type, handler, capture)
}, capture);
}
function hasClass(cls, el) {
return new RegExp('(^|\\s+)' + cls + '(\\s+|$)').test(el.className);
}
function addClass(cls, el) {
if (!hasClass(cls, el))
return el.className += (el.className === '') ? cls : ' ' + cls;
}
function removeClass(cls, el) {
el.className = el.className.replace(new RegExp('(^|\\s+)' + cls + '(\\s+|$)'), '');
}
function toggleClass(cls, el) {
(!hasClass(cls, el)) ? addClass(cls, el) : removeClass(cls, el);
}
function Tags(tag) {
var el = $(tag);
if (el.instance) return;
el.instance = this;
var type = el.type;
var transitionEnd = whichTransitionEnd();
var tagsArray = [];
var KEYS = {
ENTER: 13,
COMMA: 188,
BACK: 8
};
var isPressed = false;
var timer;
var wrap;
var field;
function init() {
// create and add wrapper
wrap = create('div', {
'className': 'tags-container',
});
field = create('input', {
'type': 'text',
'className': 'tag-input',
'placeholder': el.placeholder || ''
});
wrap.appendChild(field);
if (el.value.trim() !== '') {
hasTags();
}
el.type = 'hidden';
el.parentNode.insertBefore(wrap, el.nextSibling);
wrap.addEventListener('click', btnRemove, false);
wrap.addEventListener('keydown', keyHandler, false);
wrap.addEventListener('keyup', backHandler, false);
}
function hasTags() {
var arr = el.value.trim().split(',');
arr.forEach(function (item) {
item = item.trim();
if (~tagsArray.indexOf(item)) {
return;
}
var tag = createTag(item);
tagsArray.push(item);
wrap.insertBefore(tag, field);
});
}
function createTag(name) {
var tag = create('div', {
'className': 'tag-2',
'innerHTML': '<span class="tag__name">' + name + '</span>' +
'<button class="tag__remove">×</button>'
});
// var tagName = create('span', {
// 'className': 'tag__name',
// 'textContent': name
// });
// var delBtn = create('button', {
// 'className': 'tag__remove',
// 'innerHTML': '×'
// });
// tag.appendChild(tagName);
// tag.appendChild(delBtn);
return tag;
}
function btnRemove(e) {
e.preventDefault();
if (e.target.className === 'tag__remove') {
var tag = e.target.parentNode;
var name = $('.tag__name', tag);
wrap.removeChild(tag);
tagsArray.splice(tagsArray.indexOf(name.textContent), 1);
el.value = tagsArray.join(',')
}
field.focus();
}
function keyHandler(e) {
if (e.target.tagName === 'INPUT' && e.target.className === 'tag-input') {
var target = e.target;
var code = e.which || e.keyCode;
if (field.previousSibling && code !== KEYS.BACK) {
removeClass('tag-2--marked', field.previousSibling);
}
var name = target.value.trim();
// if(code === KEYS.ENTER || code === KEYS.COMMA) {
if (code === KEYS.ENTER) {
target.blur();
addTag(name);
if (timer) clearTimeout(timer);
timer = setTimeout(function () { target.focus(); }, 10);
}
else if (code === KEYS.BACK) {
if (e.target.value === '' && !isPressed) {
isPressed = true;
removeTag();
}
}
}
}
function backHandler(e) {
isPressed = false;
}
function addTag(name) {
// delete comma if comma exists
name = name.toString().replace(/,/g, '').trim();
if (name === '') return field.value = '';
if (~tagsArray.indexOf(name)) {
var exist = $$('.tag-2', wrap);
Array.prototype.forEach.call(exist, function (tag) {
if (tag.firstChild.textContent === name) {
addClass('tag-2--exists', tag);
if (transitionEnd) {
oneListener(tag, transitionEnd, function () {
removeClass('tag-2--exists', tag);
});
} else {
removeClass('tag-2--exists', tag);
}
}
});
return field.value = '';
}
var tag = createTag(name);
wrap.insertBefore(tag, field);
tagsArray.push(name);
field.value = '';
el.value += (el.value === '') ? name : ',' + name;
}
function removeTag() {
if (tagsArray.length === 0) return;
var tags = $$('.tag-2', wrap);
var tag = tags[tags.length - 1];
if (!hasClass('tag-2--marked', tag)) {
addClass('tag-2--marked', tag);
return;
}
tagsArray.pop();
wrap.removeChild(tag);
el.value = tagsArray.join(',');
}
init();
/* Public API */
this.getTags = function () {
return tagsArray;
}
this.clearTags = function () {
if (!el.instance) return;
tagsArray.length = 0;
el.value = '';
wrap.innerHTML = '';
wrap.appendChild(field);
}
this.addTags = function (name) {
if (!el.instance) return;
if (Array.isArray(name)) {
for (var i = 0, len = name.length; i < len; i++) {
addTag(name[i])
}
} else {
addTag(name);
}
return tagsArray;
}
this.destroy = function () {
if (!el.instance) return;
wrap.removeEventListener('click', btnRemove, false);
wrap.removeEventListener('keydown', keyHandler, false);
wrap.removeEventListener('keyup', keyHandler, false);
wrap.parentNode.removeChild(wrap);
tagsArray = null;
timer = null;
wrap = null;
field = null;
transitionEnd = null;
delete el.instance;
el.type = type;
}
}
window.Tags = Tags;
})();
// Use
var tags = new Tags('.tagged');
//document.getElementById('get').addEventListener('click', function (e) {
// e.preventDefault();
// alert(tags.getTags());
//});
//document.getElementById('add').addEventListener('click', function (e) {
// e.preventDefault();
// tags.addTags('New');
//});
//document.getElementById('addArr').addEventListener('click', function (e) {
// e.preventDefault();
// tags.addTags(['Steam Machines', 'Nintendo Wii U', 'Shield Portable']);
//});
document.getElementById('clear').addEventListener('click', function (e) {
e.preventDefault();
tags.clearTags();
});
document.getElementById('destroy').addEventListener('click', function (e) {
e.preventDefault();
if (this.textContent === 'Sửa tags') {
tags.destroy();
this.textContent = 'Tiếp tục';
} else {
this.textContent = 'Sửa tags';
tags = new Tags('.tagged');
}
});
</script>
</div>
<br />
<div class="wap-attachments-2" style="display:none">
<!--table hiển thị danh sách đính kèm file-->
<table class="table" style="border-bottom: 1px solid #f79522;">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Tên file</th>
<th scope="col">Dung lượng</th>
<th scope="col">Chức năng</th>
</tr>
</thead>
<tbody class="tbody-attachment-2"></tbody>
</table>
</div>
</div>
</div>
<div class="modal-footer" style="text-align:center;padding:0">
<button type="button" class="cancel-resetpass" data-dismiss="modal" onclick="HuyBaiVietClick()" style="background-color: #EEECEC;padding:10px;font-size:13px">Đóng</button>
<button type="button" class="send-resetpass" onclick="DangBaiVietClick();" style="background-color: #f79522;padding:10px;font-size:13px;color:#fff">Gửi câu hỏi/chủ đề</button>
</div>
</div>
</div>
</div>
<!-- Modal Comment Message -->
<div class="modal fade loginModal" id="ModalComment" data-backdrop="static" data-keyboard="false" role="dialog" aria-labelledby="ModalCommentTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-login" role="document">
<div class="modal-content modal-content-login">
<div class="modal-body">
<div>
<h4 style="text-align: center;font-weight: 600;" class="title-type-from">Sửa Phản hồi</h4>
<p class="content" style="display:none"></p>
<div class="noidung-comment-edit"></div>
<div class="quotes-info" id="quotes-info"></div>
<div class="comment-quotes-modal read-more" id="comment-quotes-modal" onclick="this.classList.add('expanded')"></div>
<input type="hidden" id="ReplyTo" />
<input type="hidden" id="post_id" />
<input type="hidden" id="forum_id" />
<input type="hidden" id="thread_id" />
<div>
<textarea name="suabinhluanoidungbaiviet" id="suabinhluanoidungbaiviet"></textarea>
<script>
//var isiOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var iPhone = /iPhone/.test(navigator.userAgent) && !window.MSStream;
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
//fix ckeditor js error Uncaught [CKEDITOR.editor] The instance "suabinhluanoidungbaiviet" already exists.
if (CKEDITOR.instances.suabinhluanoidungbaiviet) {
CKEDITOR.instances.suabinhluanoidungbaiviet.destroy();
CKEDITOR.instances.suabinhluanoidungbaiviet = null;
$('#suabinhluanoidungbaiviet').dialog("destroy").remove();
}
var html_Custom_Button_EDIT_Comment = '<div class="variants" id="suabinhluanoidungbaiviet-wap-custombutton">' +
//' <div class=\'file\'>' +
//' <label for=\'upload-file-comment-post\' >' +
//' <i class="fas fa-file"></i>Chọn file' +
//' </label>' +
//' <input id=\'upload-file-comment-post\' type=\'file\' onchange="uploadFileCommentPost();"/>' +
//' </div>' +
' <div class=\'file\'>' +
' <a data-toggle="modal" href="#modalUploadLinkFiles" onclick="modalUploadLinkFilesClicked();">' +
' <label for=\'upload-file-comment-post\' >' +
' <i class="fas fa-link"></i> Chọn Link file' +
' </label>' +
' </a>' +
' </div>' +
' </div>';
CKEDITOR.on('instanceReady', function (evt) {
var editor = evt.editor;
console.log('The editor named ' + editor.name + ' is now ready');
var elementExists = document.getElementById("suabinhluanoidungbaiviet-wap-custombutton");
if (!elementExists)
$('#cke_top_suabinhluanoidungbaiviet .cke_toolbox').append(html_Custom_Button_EDIT_Comment);
});
CKEDITOR.env.isCompatible = true;
if (iPhone || isAndroid) {
CKEDITOR.replace(
'suabinhluanoidungbaiviet',
{
toolbar: [
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
{ name: 'insert', items: ['Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
'/',
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] },
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote'] },
{ name: 'styles', items: ['Styles', 'Format'] },
{ name: 'colors', items: ['TextColor', 'BGColor'] }
]
},
{ height: 550 }, { width: 500 }
);
} else {
var editor = CKEDITOR.replace(
'suabinhluanoidungbaiviet',
{
toolbar: [
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
{ name: 'insert', items: ['Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
{ name: 'forms', items: ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'HiddenField'] },
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
'/',
{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
'/',
{ name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
{ name: 'colors', items: ['TextColor', 'BGColor'] }
]
}
);
}
$.fn.modal.Constructor.prototype.enforceFocus = function () {
var $modalElement = this.$element;
$(document).on('focusin.modal', function (e) {
var $parent = $(e.target.parentNode);
if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length
// add whatever conditions you need here:
&&
!$parent.hasClass('cke_dialog_ui_input_select') && !$parent.hasClass('cke_dialog_ui_input_text')) {
$modalElement.focus()
}
})
};
</script>
</div>
<br />
<div class="wap-attachments-2" style="display:none">
<!--table hiển thị danh sách đính kèm file-->
<table class="table" style="border-bottom: 1px solid #f79522;">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Tên file</th>
<th scope="col">Dung lượng</th>
<th scope="col">Chức năng</th>
</tr>
</thead>
<tbody class="tbody-attachment-2"></tbody>
</table>
</div>
<div class="wap-attachments" style="display:none">
<!--table hiển thị danh sách đính kèm file-->
<table class="table" style="border-bottom: 1px solid #f79522;">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Tên file</th>
<th scope="col">Dung lượng</th>
<th scope="col">Chức năng</th>
</tr>
</thead>
<tbody class="tbody-attachment-edit"></tbody>
</table>
</div>
</div>
</div>
<div class="modal-footer" style="text-align:center;padding:0">
<button type="button" class="cancel-resetpass" data-dismiss="modal" onclick="closeNav()" style="background-color: #EEECEC;padding:10px;font-size:13px">Đóng</button>
<button type="button" class="send-resetpass" onclick="DangBinhLuanClick();" style="background-color: #f79522;padding:10px;font-size:13px;color: #fff;">Gửi câu hỏi/chủ đề</button>
</div>
</div>
</div>
</div>
<!-- Modal Edit Post -->
<div class="modal fade loginModal" id="ModalEditPost" role="dialog" aria-labelledby="ModalEditPostTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-login" role="document">
<div class="modal-content modal-content-login modal-dialog-edit-post" style="height:100%; overflow:scroll">
<div class="modal-body">
<div>
<h4 style="text-align: center;font-weight: 600;">Sửa Chủ đề</h4>
<input placeholder="Nhập tiêu đề..." class="input-title" id="sua-tieu-deu-bai-viet" />
<input placeholder="Nhập ảnh tiêu đề..." class="input-title" id="anh-tieu-de-bai-viet-edit" />
<input type="hidden" id="post_id" />
<input type="hidden" id="forum_id" />
<input type="hidden" id="thread_id" />
<div>
<textarea name="suanoidungbaiviet" id="suanoidungbaiviet"></textarea>
<script>
//var isiOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var iPhone = /iPhone/.test(navigator.userAgent) && !window.MSStream;
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
//fix ckeditor js error Uncaught [CKEDITOR.editor] The instance "suanoidungbaiviet" already exists.
if (CKEDITOR.instances.suanoidungbaiviet) {
CKEDITOR.instances.suanoidungbaiviet.destroy();
CKEDITOR.instances.suanoidungbaiviet = null;
$('#suanoidungbaiviet').dialog("destroy").remove();
}
var html_Custom_Button_Edit = '<div class="variants" id="suanoidungbaiviet-wap-custombutton">' +
//' <div class=\'file\'>' +
//' <label for=\'upload-file-in-post-edit\' >' +
//' <i class="fas fa-image"></i>Chọn file' +
//' </label>' +
//' <input id=\'upload-file-in-post-edit\' type=\'file\' onchange="uploadFileInPostEdit(\'edit\');"/>' +
//' </div>' +
' <div class=\'file\'>' +
' <a data-toggle="modal" href="javascript:void(0)" onclick="modalUploadLinkFilesEditClicked();">' +
//' <a data-toggle="modal" href="#modalUploadLinkFiles" onclick="modalUploadLinkFilesClicked();">' +
' <label for=\'upload-file-in-post-edit\' >' +
' <i class="fas fa-link"></i> Chọn Link file' +
' </label>' +
' </a>' +
' </div>' +
' </div>';
CKEDITOR.on('instanceReady', function (evt) {
var editor = evt.editor;
console.log('The editor named ' + editor.name + ' is now ready');
var elementExists = document.getElementById("suanoidungbaiviet-wap-custombutton");
if (!elementExists)
$('#cke_top_suanoidungbaiviet .cke_toolbox').append(html_Custom_Button_Edit);
});
CKEDITOR.env.isCompatible = true;
if (iPhone || isAndroid) {
CKEDITOR.replace(
'suanoidungbaiviet',
{
toolbar: [
{ name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'], items: ['Scayt'] },
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
{ name: 'insert', items: ['Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
//{ name: 'tools', items: ['Maximize'] },
{ name: 'document', groups: ['mode', 'document', 'doctools'] },
{ name: 'others', items: ['-'] },
'/',
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] },
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote'] },
{ name: 'styles', items: ['Styles', 'Format'] }
]
//,
//skin: 'v2'
//,
//enterMode: 1,
//shiftEnterMode: 2
},
{ height: 550 }, { width: 500 }
);
} else {
CKEDITOR.replace(
'suanoidungbaiviet',
{
toolbar: [
//{ name: 'document', items: ['Source', '-', 'Save', 'NewPage', 'DocProps', 'Preview', 'Print', '-', 'Templates'] },
//{ name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
{ name: 'insert', items: ['Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] },
//{ name: 'tools', items: ['Maximize', 'ShowBlocks', '-', 'About'] },
//{ name: 'others', items: ['-'] },
//'/',
//{ name: 'editing', items: ['Find', 'Replace', '-', 'SelectAll', '-', 'SpellChecker', 'Scayt'] },
{ name: 'forms', items: ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'HiddenField'] },
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
'/',
{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
'/',
{ name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
{ name: 'colors', items: ['TextColor', 'BGColor'] }
]
}
);
}
$.fn.modal.Constructor.prototype.enforceFocus = function () {
var $modalElement = this.$element;
$(document).on('focusin.modal', function (e) {
var $parent = $(e.target.parentNode);
if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length
// add whatever conditions you need here:
&&
!$parent.hasClass('cke_dialog_ui _input_select') && !$parent.hasClass('cke_dialog_ui_input_text')) {
$modalElement.focus()
}
})
};
</script>
</div>
<div class="wap-tag-edit">
<style>
.tags-container {
display: flex;
flex-flow: row wrap;
margin-bottom: 15px;
width: 100%;
min-height: 34px;
padding: 2px 5px;
font-size: 14px;
line-height: 1.6;
background-color: transparent;
border: 1px solid #ccc;
border-radius: 5px;
overflow: hidden;
word-wrap: break-word;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
margin-top: 10px;
}
input.tag-input-edit {
flex: 3;
border: 0;
outline: 0;
}
.tag-2 {
position: relative;
margin: 2px 6px 2px 0;
padding: 3px 25px 3px 5px;
font-size: inherit;
font-weight: 400;
text-align: center;
color: #fff;
background-color: #888888;
border-radius: 3px;
transition: background-color 0.3s ease;
cursor: default;
}
.tag-2:first-child {
margin-left: 0;
}
.tag-2--marked {
background-color: #6fadd7;
}
.tag-2--exists {
background-color: #EDB5A1;
-webkit-animation: shake 1s linear;
animation: shake 1s linear;
}
.tag__name {
margin-right: 3px;
}
.tag__remove {
position: absolute;
right: 0;
bottom: 0;
width: 25px;
height: 100%;
padding: 0 5px;
font-size: 16px;
font-weight: 400;
transition: opacity 0.3s ease;
opacity: 0.5;
cursor: pointer;
border: 0;
background-color: transparent;
color: #fff;
line-height: 1;
}
.tag__remove:hover {
opacity: 1;
}
.tag__remove:focus {
outline: 5px auto #fff;
}
@-webkit-keyframes shake {
0%, 100% {
transform: translate3d(0, 0, 0);
}
10%, 30%, 50%, 70%, 90% {
transform: translate3d(-5px, 0, 0);
}
20%, 40%, 60%, 80% {
transform: translate3d(5px, 0, 0);
}
}
@keyframes shake {
0%, 100% {
transform: translate3d(0, 0, 0);
}
10%, 30%, 50%, 70%, 90% {
transform: translate3d(-5px, 0, 0);
}
20%, 40%, 60%, 80% {
transform: translate3d(5px, 0, 0);
}
}
.wap-button {
margin-bottom: 35px;
}
.wap-button button.btn-update {
margin-right: 20px;
float: left;
outline: none;
border: 0;
}
.wap-button button.btn-update:focus {
outline: none;
border: 0;
}
</style>
<div class="wap-content-animation">
<div style=" margin-top: 10px;">
<label class="exist-values-edit" for="exist-values-edit" style="width:100%">
Sửa hoặc thêm tags/Từ khóa
<input type="text" id="exist-values-edit" class="tagged-edit form-control" data-removeBtn="true" value="" placeholder="Hãy gõ cụm từ thích hợp">
</label>
</div>
<div class="wap-button">
<button class="btn-update" id="destroy-edit">Sửa tags</button>
<button class="btn-update" id="clear-edit">Xóa tags</button>
</div>
</div>
<script>
// https://github.com/k-ivan/Tags
(function () {
// 'use strict';
// Helpers
function $$(selectors, context) {
return (typeof selectors === 'string') ? (context || document).querySelectorAll(selectors) : [selectors];
}
function $(selector, context) {
return (typeof selector === 'string') ? (context || document).querySelector(selector) : selector;
}
function create(tag, attr) {
var element = document.createElement(tag);
if (attr) {
for (var name in attr) {
if (element[name] !== undefined) {
element[name] = attr[name];
}
}
}
return element;
}
function whichTransitionEnd() {
var root = document.documentElement;
var transitions = {
'transition': 'transitionend',
'WebkitTransition': 'webkitTransitionEnd',
'MozTransition': 'mozTransitionEnd',
'OTransition': 'oTransitionEnd otransitionend'
};
for (var t in transitions) {
if (root.style[t] !== undefined) {
return transitions[t];
}
}
return false;
}
function oneListener(el, type, fn, capture) {
capture = capture || false;
el.addEventListener(type, function handler(e) {
fn.call(this, e);
el.removeEventListener(e.type, handler, capture)
}, capture);
}
function hasClass(cls, el) {
return new RegExp('(^|\\s+)' + cls + '(\\s+|$)').test(el.className);
}
function addClass(cls, el) {
if (!hasClass(cls, el))
return el.className += (el.className === '') ? cls : ' ' + cls;
}
function removeClass(cls, el) {
el.className = el.className.replace(new RegExp('(^|\\s+)' + cls + '(\\s+|$)'), '');
}
function toggleClass(cls, el) {
(!hasClass(cls, el)) ? addClass(cls, el) : removeClass(cls, el);
}
function TagsEdit(tag) {
var el = $(tag);
if (el.instance) return;
el.instance = this;
var type = el.type;
var transitionEnd = whichTransitionEnd();
var tagsArray = [];
var KEYS = {
ENTER: 13,
COMMA: 188,
BACK: 8
};
var isPressed = false;
var timer;
var wrap;
var field;
function initEditTag() {//function GetPostById(id)
// create and add wrapper
wrap = create('div', {
'className': 'tags-container',
});
field = create('input', {
'type': 'text',
'className': 'tag-input-edit',
'placeholder': el.placeholder || ''
});
wrap.appendChild(field);
if (el.value.trim() !== '') {
hasTags();
}
el.type = 'hidden';
el.parentNode.insertBefore(wrap, el.nextSibling);
wrap.addEventListener('click', btnRemove, false);
wrap.addEventListener('keydown', keyHandler, false);
wrap.addEventListener('keyup', backHandler, false);
}
function hasTags() {
var arr = el.value.trim().split(',');
arr.forEach(function (item) {
item = item.trim();
if (~tagsArray.indexOf(item)) {
return;
}
var tag = createTag(item);
tagsArray.push(item);
wrap.insertBefore(tag, field);
});
}
function createTag(name) {
var tag = create('div', {
'className': 'tag-2',
'innerHTML': '<span class="tag__name">' + name + '</span>' +
'<button class="tag__remove">×</button>'
});
// var tagName = create('span', {
// 'className': 'tag__name',
// 'textContent': name
// });
// var delBtn = create('button', {
// 'className': 'tag__remove',
// 'innerHTML': '×'
// });
// tag.appendChild(tagName);
// tag.appendChild(delBtn);
return tag;
}
function btnRemove(e) {
e.preventDefault();
if (e.target.className === 'tag__remove') {
var tag = e.target.parentNode;
var name = $('.tag__name', tag);
wrap.removeChild(tag);
tagsArray.splice(tagsArray.indexOf(name.textContent), 1);
el.value = tagsArray.join(',')
}
field.focus();
}
function keyHandler(e) {
if (e.target.tagName === 'INPUT' && e.target.className === 'tag-input-edit') {
var target = e.target;
var code = e.which || e.keyCode;
if (field.previousSibling && code !== KEYS.BACK) {
removeClass('tag-2--marked', field.previousSibling);
}
var name = target.value.trim();
// if(code === KEYS.ENTER || code === KEYS.COMMA) {
if (code === KEYS.ENTER) {
target.blur();
addTag(name);
if (timer) clearTimeout(timer);
timer = setTimeout(function () { target.focus(); }, 10);
}
else if (code === KEYS.BACK) {
if (e.target.value === '' && !isPressed) {
isPressed = true;
removeTag();
}
}
}
}
function backHandler(e) {
isPressed = false;
}
function addTag(name) {
// delete comma if comma exists
name = name.toString().replace(/,/g, '').trim();
if (name === '') return field.value = '';
if (~tagsArray.indexOf(name)) {
var exist = $$('.tag-2', wrap);
Array.prototype.forEach.call(exist, function (tag) {
if (tag.firstChild.textContent === name) {
addClass('tag-2--exists', tag);
if (transitionEnd) {
oneListener(tag, transitionEnd, function () {
removeClass('tag-2--exists', tag);
});
} else {
removeClass('tag-2--exists', tag);
}
}
});
return field.value = '';
}
var tag = createTag(name);
wrap.insertBefore(tag, field);
tagsArray.push(name);
field.value = '';
el.value += (el.value === '') ? name : ',' + name;
}
function removeTag() {
if (tagsArray.length === 0) return;
var tags = $$('.tag-2', wrap);
var tag = tags[tags.length - 1];
if (!hasClass('tag-2--marked', tag)) {
addClass('tag-2--marked', tag);
return;
}
tagsArray.pop();
wrap.removeChild(tag);
el.value = tagsArray.join(',');
}
initEditTag();
/* Public API */
this.getTags = function () {
return tagsArray;
}
this.clearTagsEdit = function () {
if (!el.instance) return;
tagsArray.length = 0;
el.value = '';
wrap.innerHTML = '';
wrap.appendChild(field);
}
this.addTags = function (name) {
if (!el.instance) return;
if (Array.isArray(name)) {
for (var i = 0, len = name.length; i < len; i++) {
addTag(name[i])
}
} else {
addTag(name);
}
return tagsArray;
}
this.destroyEdit = function () {
if (!el.instance) return;
wrap.removeEventListener('click', btnRemove, false);
wrap.removeEventListener('keydown', keyHandler, false);
wrap.removeEventListener('keyup', keyHandler, false);
wrap.parentNode.removeChild(wrap);
tagsArray = null;
timer = null;
wrap = null;
field = null;
transitionEnd = null;
delete el.instance;
el.type = type;
}
}
window.TagsEdit = TagsEdit;
})();
</script>
</div>
<div class="wap-attachments" style="display:none">
<!--table hiển thị danh sách đính kèm file-->
<table class="table" style="border-bottom: 1px solid #f79522;">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Tên file</th>
<th scope="col">Dung lượng</th>
<th scope="col">Chức năng</th>
</tr>
</thead>
<tbody class="tbody-attachment-edit"></tbody>
</table>
</div>
</div>
</div>
<div class="modal-footer" style="text-align:center;padding: 0;">
<button type="button" class="cancel-resetpass cancel-edit-post" data-dismiss="modal" onclick="HuySuaBaiVietClick()" style=" background-color: #EEECEC; padding: 10px; font-size: 13px;">Đóng</button>
<button type="button" class="send-resetpass" onclick="SuaBaiVietClick();" style=" background-color: #EEECEC; padding: 10px; font-size: 13px;">Sửa Chủ đề</button>
</div>
</div>
</div>
</div>
<!-- Modal Upload Files -->
<div class="modal" id="modalUploadFiles">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Đính kèm file</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="modalUploadFilesClicked();">×</button>
</div>
<div class="container"></div>
<div class="modal-body">
<!--table hiển thị danh sách đính kèm file-->
<table class="table" style="border-bottom: 1px solid #f79522;">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Tên file</th>
<th scope="col">Dung lượng</th>
<th scope="col">Chức năng</th>
</tr>
</thead>
<tbody class="tbody-attachment"></tbody>
</table>
<p>Chọn file đính kèm</p>
<!--table đính kèm file-->
<table class="table">
<tbody>
<tr>
<td colspan="2" style="min-width: 75px;">Chọn file đính kèm :</td>
<td colspan="2"><input type="file" name="file" multiplee="multiple" id="file-upload-attachment" /></td>
<td><a href="javascript:void(0);" onclick="uploadFiles();">Đính kèm</a></td>
</tr>
</tbody>
</table>
<input type="text" placeholder="Nhập mô tả..." class="input-title" id="mo-ta-bai-viet" />
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn" onclick="modalUploadFilesClicked()">Đóng</a>
<a href="#" class="btn btn-primary" onclick="uploadFiles();">Đính kèm</a>
</div>
</div>
</div>
</div>
<!-- Modal Add Link -->
<div class="modal" id="modalAddLink">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Thêm link</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="container"></div>
<div class="modal-body">
<input type="text" placeholder="Nhập link" class="input-title" id="txt-link" />
<input type="text" placeholder="Nhập từ khóa để chèn link" class="input-title" id="txt-keyword-link" />
<div class="rs-keyword-link"></div>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Đóng</a>
<a href="#" class="btn btn-primary UploadLink" onclick="UploadLink();">Đính kèm</a>
</div>
</div>
</div>
</div>
<!-- Modal Upload Link Files -->
<div class="modal" id="modalUploadLinkFiles">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Đính kèm link file</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="modalUploadLinkFilesClicked();">×</button>
</div>
<div class="container"></div>
<div class="modal-body">
<p class="p-form" type=" ">
<input type="text" placeholder="Link file" id="txt-link-file" style="width: 100%; padding: 3px 7px; box-sizing: border-box; background: none; outline: none; resize: none; border: 0; transition: all .3s; border-bottom: 2px solid #bebed2;">
</p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn" onclick="modalUploadLinkFilesClicked()">Đóng</a>
<a href="#" class="btn btn-primary" onclick="uploadLinkFiles();">Đính kèm</a>
</div>
</div>
</div>
</div>
<!-- Modal Show Image -->
<div class="modal bd-example-modal-lg" id="modalShowImage">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div id="navbar">
<button class="btn-update" type="button" onclick="zoomin()" style="float: left;">Phóng to</button>
<button class="btn-update right" type="button" onclick="zoomout()">Thu nhỏ</button>
</div>
<div class="clearfix"></div>
<div class="main dragscroll" style="overflow: scroll;">
</div>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Đóng</a>
</div>
</div>
</div>
</div>
<!-- Modal Show User Thanks -->
<div class="modal bd-example-modal-lg" id="modalUserThanks" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<p style="font-size: 14px;margin: 7px 0px 0;">Tất cả <strong class="count-user-thanhks"></strong></p>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div id="wap-modal-user-thanks">
</div>
</div>
</div>
</div>
</div>
<!-- Modal FeedBack -->
<div class="modal bd-example-modal-lg" id="modalFeedBack">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Góp ý cho <strong><span style="color: red;">D</span>ân <span style="color: red;">L</span>uật</strong>
</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div class="content-login" style="position: initial; padding: 0 10px;">
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Họ và tên" id="fullName_FeedBack" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Email" id="email_FeedBack" /></p>
<p class="p-form" type=" " style="text-align:left"><input type="text" placeholder="Số điện thoại di động" id="mobile_FeedBack" /></p>
<div style="margin-top: 30px;">
<textarea rows="5" cols="50" name="Content" class="Content" id="content_FeedBack" placeholder="Nội dung cần hỗ trợ" style="width:100%;padding: 5px 10px;border: 2px solid #bebed2;"></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Đóng</a>
<button href="#" class="btn-update" onclick="feedBackClick();" style="float: none;">Gửi góp ý</button>
</div>
</div>
</div>
</div>
<!-- Modal Covi19 -->
<div class="modal bd-example-modal-lg" id="modalCovi19" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header" style="border: 1px solid #e78f08; background: #f6a828 url(https://thuvienphapluat.vn/Styles/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; padding: 4px; }">
<h5 class="modal-title" style="font-weight: bold; font-size: 12px;">Thông báo</h5>
<a href="#" class="close" data-dismiss="modal" aria-hidden="true" role="button" style=" border: 1px solid #FBCB09;
background: #FDF5CE url(https://thuvienphapluat.vn/Styles/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x;
font-weight: bold;
color: #C77405;
height: 25px;
width: 25px;
border-radius: 5px;
margin-top: -4px;
margin-right: -2px;
opacity: 1;
">
<span class="ui-icon ui-icon-closethick" style="background-image: url(https://thuvienphapluat.vn/Styles/ui-lightness/images/phpThumb_generated_thumbnailpng.png);
margin-left: -7px;
margin-top: -22px;
">close</span>
</a>
</div>
<div class="modal-body" style="background: rgb(251, 236, 215);">
<input type="hidden" value="" class="cookie_sang"/>
<input type="hidden" value="" class="cookie_chieu"/>
<input type="hidden" value="" class="cookie_covi19"/>
<div id="ruirophaply-covi19-dialog">
<div style="color: rgb(0, 0, 255); font-size:13pt; font-family:Times New Roman">
<p style="text-align: right;">
<i style="line-height: 22pt;">TP. HCM, ngày 29/09/2021</i>
</p>
<p style="font-size: 14pt;font-weight: bold;">
<span style="color:Black">Đừng để </span> <span style="color: rgb(255, 0, 0);">Rủi Ro Pháp Lý </span> <span style="color:Black">theo sau Covid</span>
</p>
<p style="">Thưa Quý Khách,</p>
<p style=""><b style="color: rgb(255, 0, 0);">THƯ VIỆN PHÁP LUẬT </b> <span>làm việc tại trụ sở từ 01/10.</span></p>
<p style=""><span>Là sản phẩm online, thời gian qua 90% nhân sự làm tại nhà, 10% làm “3 tại chỗ” ở trụ sở.</span></p>
<p style=""><span>Dù có thế mạnh làm online, nhưng 10% tại trụ sở 90% tại nhà không phải là mô hình phục vụ tốt nhất.</span></p>
<p style=""><span>Từ 01/10, TP. HCM làm việc bình thường mới, chúng ta sẽ tăng dần tỷ lệ làm tại trụ sở.</span></p>
<p style=""><span>Giúp khách hàng Loại Rủi Ro Pháp Lý và Nắm Cơ Hội Làm Giàu từ chính sách pháp luật mới, là một phần sứ mệnh của </span> <b style="color: rgb(255, 0, 0);">THƯ VIỆN PHÁP LUẬT</b>.</p>
<p style="text-align: center; padding-top: 20px;"><span style="color: rgb(255, 0, 0);font-style: italic;">“… loại rủi ro pháp lý, nắm cơ hội làm giàu…”</span></p>
<p style="margin: -7px 0 0; text-align: center; color: Black">******</p>
</div>
</div>
<script>
//$(document).ready(function () {
// //$("#modalCovi19").modal("show");
// var d = new Date();
// var hu = d.getHours();
// var nd = new Date('2021/10/15');
// if (d < nd) {
// if (hu < 12) {
// var _d = getCookie("covi19-sang");
// if (_d != "" + d.getDate()) {
// //$("#modalCovi19").modal("show");
// $("#modalCovi19").modal({
// backdrop: 'static',
// keyboard: true,
// show: true
// });
// }
// setCookie("covi19-sang", d.getDate(), 1);
// }
// else {
// var _d = getCookie("covi19-chieu");
// if (_d != "" + d.getDate()) {
// $("#modalCovi19").modal({
// backdrop: 'static',
// keyboard: true,
// show: true
// });
// }
// setCookie("covi19-chieu", d.getDate(), 1);
// }
// }
// else {
// var _d = getCookie("covi19");
// if (_d != "" + d.getDate()) {
// $("#modalCovi19").modal({
// backdrop: 'static',
// keyboard: true,
// show: true
// });
// }
// setCookie("covi19", d.getDate(), 1);
// }
//});
function setCookie(key, value) {
$.ajax({
type: "GET",
url: MAIN_DOMAIN + '/Common/SetCookieCovi19?key=' + key + '&value=' + value,
dataType: 'json',
contentType: 'application/json; charset=utf-8',
success: function (data) {
},
error: function (jqXHR, textStatus, errorThrown) {
}
});
}
function getCookie(key) {
switch (key) {
case "covi19-sang":
return $('.cookie_sang').val();
case "covi19-chieu":
return $('.cookie_chieu').val();
case "covi19":
return $('.cookie_covi19').val();
default:
return "";
}
}
</script>
</div>
</div>
</div>
</div>
<!-- Modal Upload Files -->
<div class="modal" id="modalViewTableHtml">
<div class="modal-dialog modal-lg modal-xl">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Thông tin chi tiết</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="container"></div>
<div class="modal-body" id="modalViewTableHtml_body">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://cdn.rawgit.com/asvd/dragscroll/master/dragscroll.js"></script>
<!-- Modal Create Post -->
<div class="modal fade loginModal" id="ModalCreatePost" tabindex="-1" role="dialog" aria-labelledby="ModalCreatePostTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-login" role="document">
</div>
</div>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta name="google-signin-client_id" content="405387995063-hu5l0dklpd3lhcmj8mlpav6gckg2v92v.apps.googleusercontent.com" />
<script type="text/javascript">
//$(document).ready(function () {
// $("#loginModal2").modal();
//})
var checkGGClicked = false;
// Sign-in success callback
function onSuccess(googleUser) {
var profile = googleUser.getBasicProfile();
$('.abcRioButton').css('display', 'none');
$('.abcRioButtonLightBlue').css('display', 'none');
$('.wap-btn-login-gg').css('display', 'block');
if (profile) {
if (profile.Xt)
loginGmail(profile.Xt, "");
else {
$('#Customer_FullName_Register').val(profile.Re);
$('#Customer_Email_Register').val(profile.Xt);
//$('#registerModal').modal();
$('#loginModal2').modal('show');
swal({
title: "Thông báo!",
text: "Vui lòng đăng ký tài khoản để sử dụng dịch vụ",
icon: "warning",
button: "Ok",
});
return false;
}
}
//gapi.client.load('oauth2', 'v2', function () {
// var request = gapi.client.oauth2.userinfo.get({
// 'userId': 'me'
// });
// //$('#gSignIn').html(`<i class="fab fa-google" style=" background: #5183ec;"></i>`);
// request.execute(function (response) {
// // Display the user details
// response.email = "";
// if (response.email)
// loginGmail(response.email, "");
// else {
// $('#Customer_FullName_Register').val(response.family_name + ' ' + response.given_name);
// $('#Customer_Email_Register').val(response.email);
// $('#registerModal').modal();
// return false;
// }
// });
//});
}
// Sign-in failure callback
function onFailure(error) {
console.log(error);
$('#gSignIn').html(`<i class="fab fa-google" style=" background: #5183ec;"></i>`);
}
function google_login() {
if (checkGGClicked)
return false;
var isMacLike = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
var isIOS = /(iPhone|iPod|iPad)/i.test(navigator.platform);
if (isMacLike || isIOS) {
gapi.signin2.render('gSignIn', {
'scope': 'profile email',
'onsuccess': onSuccess,
'onfailure': onFailure
});
checkGGClicked = true;
$('.abcRioButton').trigger('click');
setTimeout(function () { $('.abcRioButton').trigger('click'); }, 1000);
return false;
} else {
gapi.signin2.render('gSignIn', {
'scope': 'profile email',
'onsuccess': onSuccess,
'onfailure': onFailure
});
checkGGClicked = true;
$('.abcRioButton').trigger('click');
setTimeout(function () { $('.abcRioButton').trigger('click'); }, 1000);
}
//$('.abcRioButtonLightBlue').css('display','none');
}
function getUserInfo() {
$.ajax({
url: 'https://www.googleapis.com/oauth2/v1/userinfo?access_token=' + acToken,
data: null,
success: function (resp) {
user = resp;
var email = user.email;
var pass = "";
if (!email) {
swal({
title: "Thông báo!",
text: "Dữ liệu không được để trống!",
icon: "warning",
button: "Ok",
});
return false;
}
loginGmail(email, pass);
},
});
}
function loginGmail(email, pass) {
$('.main-loader').css('display', 'block');
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/User/Login2',
dataType: "json",
data: { username: email, password: pass },
success: function (data) {
$('.main-loader').css('display', 'none');
if (data && data.Customer_ID > 0) {
document.getElementById("CusID").value = data.Customer_ID;
//CheckCustomerPermission(data);
swal("Thông báo", "Bạn đã đăng nhập thành công!", "success");
setTimeout(function () { window.location.reload(); }, 1000);
return false;
} else {
$('#Customer_FullName_Register').val(name);
$('#Customer_Email_Register').val(email);
$('#btnRegister').trigger('click');
return false;
}
},
error: function () {
$('.main-loader').css('display', 'none');
swal({
title: "Thông báo!",
text: "Trong quá trình đăng nhập đã xảy ra lỗi. Vui lòng thử lại",
icon: "error",
button: "Ok",
});
return false;
}
});
}
</script>
<script>
window.fbAsyncInit = function () {
//if ($('.CusID').val() && parseInt($('.CusID').val()) > 0) {
if (parseInt($('.CusID').val()) <= 0)//if ($('.CusID').val() == "-1" || $('.CusID').val() == "0")
{
FB.init({
appId: '5470403939736980',// FB App ID
cookie: true, // enable cookies to allow the server to access the session
xfbml: true, // parse social plugins on this page
version: 'v11.0' // use graph api version 3.2
});
}
};
// Load the JavaScript SDK asynchronously
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
// Facebook login with JavaScript SDK
function fbLogin() {
FB.login(function (response) {
if (response.authResponse) {
// Get and display the user profile data
getFbUserData();
} else {
//document.getElementById('status').innerHTML = 'User cancelled login or did not fully authorize.';
}
}, { scope: 'email' });
}
// Fetch the user profile data from facebook
function getFbUserData() {
FB.api('/me', { locale: 'en_US', fields: 'id,first_name,last_name,email,link,gender,locale,picture' },
function (response) {
if (response.email)
loginGmail(response.email, "");
else {
$('#Customer_FullName_Register').val(response.first_name + ' ' + response.last_name);
$('#Customer_Email_Register').val(response.emai);
//$('#registerModal').modal();
$('#loginModal2').modal('show');
swal({
title: "Thông báo!",
text: "Vui lòng đăng ký tài khoản để sử dụng dịch vụ",
icon: "warning",
button: "Ok",
});
return false;
}
});
}
// Logout from facebook
function fbLogout() {
FB.logout(function () {
document.getElementById('fbLink').setAttribute("onclick", "fbLogin()");
document.getElementById('fbLink').innerHTML = '<img src="images/fb-login-btn.png"/>';
document.getElementById('userData').innerHTML = '';
document.getElementById('status').innerHTML = '<p>You have successfully logout from Facebook.</p>';
});
}
</script>
<!--Đăng Chủ đề-->
<script>
function HuyBaiVietClick() {
$('#chuyen-muc-bai-viet').val('-1');
$('#tieu-deu-bai-viet').val('');
$('#noidungbaivietmoi').val('');
}
$(document).on("click", ".btnLogin", function (e) {
e.stopPropagation();
$('#loginModal').modal('hide');
});
$(document).on("click", ".closeRegisterModal", function (e) {
e.stopPropagation();
$('#registerModal').modal('hide');//loginModal
$('#loginModal').modal();
});
var link = '#';
var keywordLink = '';
var txt_changeLink = $('#txt-link');
var txt_keywordLink = $('#txt-keyword-link');
if (txt_changeLink) {
txt_changeLink.on('keyup', function () {
link = txt_changeLink.val();
$(`.rs-keyword-link`).html(`<a href="${link}" target="_blank" style="color: #337ab7;"> ${keywordLink}</a>`);
});
}
if (txt_keywordLink) {
txt_keywordLink.on('keyup', function () {
keywordLink = txt_keywordLink.val();
$(`.rs-keyword-link`).html(`<a href="${link}" target="_blank" style="color: #337ab7;"> ${keywordLink}</a>`);
});
}
function UploadLink() {
if (!txt_changeLink.val() || !txt_keywordLink.val()) {
swal({
title: "Thông báo!",
text: 'Vui lòng điền đầy đủ thông tin link và từ khóa để chèn link',
icon: "warning",
button: "Ok",
});
return false;
}
$(".emoji-wysiwyg-editor").append($(`.rs-keyword-link`).html());
$("#modalAddLink").modal('hide');
modalAddLinkClicked();
//$(".emoji-wysiwyg-editor").focus(function () {
// alert('ok');
//});
////util.insertAtCursor(emoji, this.$textarea[0]);
//if (window.getSelection) {
// var content = $(`.rs-keyword-link`).html();
// var range, sel = window.getSelection();
// var node = typeof content === 'string' ? document
// .createTextNode(content) : content;
// if (sel.getRangeAt && sel.rangeCount) {
// range = sel.getRangeAt(0);
// range.deleteContents();
// //range.insertNode(document.createTextNode(''));
// range.insertNode(node);
// range.setStart(node, 0);
// window.setTimeout(function () {
// range = document.createRange();
// range.setStartAfter(node);
// range.collapse(true);
// sel.removeAllRanges();
// sel.addRange(range);
// }, 0);
// }
//}
}
function modalAddLinkClicked() {
$('#txt-link').val('');
$('#txt-keyword-link').val('');
$(`.rs-keyword-link`).html(``);
}
$(".emoji-wysiwyg-editor").focus(function () {
alert('ok');
});
</script>
<!--uploadFiles-->
<script>
$('#modalUploadLinkFiles').on('shown.bs.modal', function () {// fix loi modal khong the go text input khi mo modal
$(document).off('focusin.modal');
});
function modalUploadFilesClicked() {
// xử lý không cho scroll lên đầu trang
document.body.style.overflow = "hidden"; // ADD THIS LINE
document.body.style.height = "100%"; // ADD THIS LINE
$('.tbody-attachment').html('');
sessionStorage.setItem("AttachmentID", null);
sessionStorage.removeItem("AttachmentID");
document.getElementById("mo-ta-bai-viet").value = "";
document.getElementById("file-upload-attachment").value = "";
}
function modalUploadLinkFilesClicked() {
document.getElementById("txt-link-file").value = "";
}
function modalUploadLinkFilesEditClicked() {
// xử lý không cho scroll lên đầu trang
document.body.style.overflow = "hidden"; // ADD THIS LINE
document.body.style.height = "100%"; // ADD THIS LINE
document.getElementById("txt-link-file").value = "";
$("#modalUploadLinkFiles").modal();
}
function uploadFilesToEdit() {
var guid;
var attachment = document.getElementById("file-upload-attachment-edit");
var mota = document.getElementById("mo-ta-bai-viet").value;
var totalFiles = attachment.files.length;
if (totalFiles < 1) {
errorMessage("Vui lòng chọn file để upload");
return false;
}
if (!sessionStorage.getItem("AttachmentID")) {
guid = createGuid();
sessionStorage.setItem("AttachmentID", guid);
} else
guid = sessionStorage.getItem("AttachmentID");
var formData = new FormData();
if (totalFiles < 1 || !$('.CusID').val()) {
errorMessage("Xảy ra lỗi trong quá trình upload file");
return false;
}
for (var i = 0; i < totalFiles; i++) {
var file = attachment.files[i];
formData.append(attachment, file);
}
var PostID = $('#ModalEditPost').find('input#post_id').val();
formData.append('CusID', $('.CusID').val());
formData.append('FriendlyFileName', mota);
formData.append('AttachmentID', guid);
formData.append('PostID', PostID);
//$('.main-loader').css('display', 'block');
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/UploadFiles/UploadAttachmentToEdit',
data: formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success: function (data) {
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
document.getElementById("file-upload-attachment-edit").value = "";
$('.tbody-attachment-edit').html('');
var allowedExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
objdata.forEach(function (item, i) {
var imgHtml = '';
var type = item.Extension.replace('.', '');
var rs_type = allowedExtension.includes(type);
if (rs_type)
imgHtml = `<img src="${item.Path.replace('~', '')}/${item.FileName}" alt="${item.FileName}" style="width: 100px;"/>`
else
imgHtml = item.FileName;
var html = '<tr>' +
' <th scope="row">' + (i + 1) + '</th>' +
' <td>' + imgHtml + '</td>' +
' <td>' + bytesToSize(item.ContentSize) + '</td>' +
' <td onclick="deleteAttachmentTempEdit(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\')" style="cursor: pointer;">Xóa</td>' +
' </tr>';
$('.tbody-attachment-edit').append(html);
});
$('.wap-attachments').css('display', 'block');
}
}
document.getElementById("file-upload-attachment-edit").value = "";
},
error: function (result) {
//errorMessage(result);
}
});
}
var elm_Edit;
function deleteAttachmentTempEdit(elmEdit, guid_id, file_name, cusId) {
elm_Edit = elmEdit;
if (!guid_id || !file_name || !cusId) {
errorMessage(result);
return false;
}
$.ajax({
type: "GET",
url: `/UploadFiles/DeleteAttachmentTemp?attachmentId=${guid_id}&file_name=${file_name}&cusId=${cusId}`,
async: false,
contentType: "application/json; charset=utf-8",
success: function (data) {
$(elm_Edit).closest('tr')[0].remove()
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
$('.tbody-attachment').html('');
objdata.forEach(function (item, i) {
var html = '<tr>' +
' <th scope="row">' + (i + 1) + '</th>' +
' <td>' + item.FileName + '</td>' +
' <td>' + bytesToSize(item.ContentSize) + '</td>' +
' <td onclick="deleteAttachmentTemp(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\')" style="cursor: pointer;">Xóa</td>' +
' </tr>';
$('.tbody-attachment').append(html);
});
}
}
document.getElementById("file-upload-attachment-edit").value = "";
},
error: function (result) {
}
});
}
function uploadFiles() {
$('.wap-attachments').css('display', 'none');
var guid;
var attachment = document.getElementById("file-upload-attachment");
var mota = document.getElementById("mo-ta-bai-viet").value;
var totalFiles = attachment.files.length;
if (totalFiles < 1) {
errorMessage("Vui lòng chọn file để upload");
return false;
}
if (!sessionStorage.getItem("AttachmentID")) {
guid = createGuid();
sessionStorage.setItem("AttachmentID", guid);
} else
guid = sessionStorage.getItem("AttachmentID");
var formData = new FormData();
if (totalFiles < 1 || !$('.CusID').val()) {
errorMessage("Xảy ra lỗi trong quá trình upload file");
return false;
}
var PostID = $('#ModalComment').find('input#post_id').val();
for (var i = 0; i < totalFiles; i++) {
var file = attachment.files[i];
formData.append(attachment, file);
}
formData.append('CusID', $('.CusID').val());
formData.append('FriendlyFileName', mota);
formData.append('AttachmentID', guid);
if (PostID)
formData.append('PostID', PostID);
else
formData.append('PostID', 0);
//$('.main-loader').css('display', 'block');
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/UploadFiles/UploadAttachment',
data: formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success: function (data) {
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
document.getElementById("file-upload-attachment").value = "";
$('.tbody-attachment').html('');
var allowedExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
objdata.forEach(function (item, i) {
var imgHtml = '';
var type = item.Extension.replace('.', '').toLowerCase();
var rs_type = allowedExtension.includes(type);
if (rs_type)
imgHtml = `<img src="${item.Path.replace('~', '')}/${item.FileName}" alt="${item.FileName}" style="width: 100px;"/>`
else
imgHtml = item.FileName;
var html = '<tr>' +
' <th scope="row">' + (i + 1) + '</th>' +
' <td>' + imgHtml + '</td>' +
' <td>' + bytesToSize(item.ContentSize) + '</td>' +
' <td onclick="deleteAttachmentTemp(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\')" style="cursor: pointer;">Xóa</td>' +
' </tr>';
$('.tbody-attachment').append(html);
});
GetAttachmentTemp();
}
} else
errorMessage(data);
$('#modalUploadFiles').show();
},
error: function (result) {
//errorMessage(result);
}
});
}
function deleteAttachmentTemp(elm, guid_id, file_name, cusId) {
if (!guid_id || !file_name || !cusId) {
errorMessage(result);
return false;
}
$.ajax({
type: "GET",
url: `/UploadFiles/DeleteAttachmentTemp?attachmentId=${guid_id}&file_name=${file_name}&cusId=${cusId}`,
async: false,
contentType: "application/json; charset=utf-8",
success: function (data) {
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
$('.tbody-attachment').html('');
$('.tbody-attachment-2').html('');
objdata.forEach(function (item, i) {
var imgHtml = '';
var type = item.Extension.replace('.', '').toLowerCase();
var allowedExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
var rs_type = allowedExtension.includes(type);
if (rs_type)
imgHtml = `<img src="${item.Path.replace('~', '')}/${item.FileName}" alt="${item.FileName}" style="width: 100px;"/>`
else
imgHtml = item.FileName;
var html = '<tr>' +
' <th scope="row">' + (i + 1) + '</th>' +
' <td>' + imgHtml + '</td>' +
' <td>' + bytesToSize(item.ContentSize) + '</td>' +
' <td onclick="deleteAttachmentTemp(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\')" style="cursor: pointer;">Xóa</td>' +
' </tr>';
var html2 = '<tr>' +
' <th scope="row">' + (i + 1) + '</th>' +
' <td>' + imgHtml + '</td>' +
' <td>' + bytesToSize(item.ContentSize) + '</td>' +
' <td onclick="deleteAttachmentTemp2(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\')" style="cursor: pointer;">Xóa</td>' +
' </tr>';
$('.tbody-attachment').append(html);
$('.tbody-attachment-2').append(html2);
});
$('.wap-attachments-2').css('display', 'block');
}
GetAttachmentTemp();
}
document.getElementById("file-upload-attachment").value = "";
$('#modalUploadFiles').show();
},
error: function (result) {
}
});
}
function deleteAttachmentTemp2(elm, guid_id, file_name, cusId) {
if (!guid_id || !file_name || !cusId) {
errorMessage(result);
return false;
}
$.ajax({
type: "GET",
url: `/UploadFiles/DeleteAttachmentTemp?attachmentId=${guid_id}&file_name=${file_name}&cusId=${cusId}`,
async: false,
contentType: "application/json; charset=utf-8",
success: function (data) {
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
$('.tbody-attachment').html('');
$('.tbody-attachment-2').html('');
objdata.forEach(function (item, i) {
var imgHtml = '';
var type = item.Extension.replace('.', '').toLowerCase();
var allowedExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
var rs_type = allowedExtension.includes(type);
if (rs_type)
imgHtml = `<img src="${item.Path.replace('~', '')}/${item.FileName}" alt="${item.FileName}" style="width: 100px;"/>`
else
imgHtml = item.FileName;
var html2 = '<tr>' +
' <th scope="row">' + (i + 1) + '</th>' +
' <td>' + imgHtml + '</td>' +
' <td>' + bytesToSize(item.ContentSize) + '</td>' +
' <td onclick="deleteAttachmentTemp2(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\')">Xóa</td>' +
' </tr>';
$('.tbody-attachment-2').append(html2);
});
$('.wap-attachments-2').css('display', 'block');
}
}
},
error: function (result) {
}
});
}
function GetAttachmentTemp() {
$.ajax({
type: "GET",
url: `/UploadFiles/GetAttachmentTemp`,
async: false,
contentType: "application/json; charset=utf-8",
success: function (data) {
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
$('.tbody-attachment-2').html('');
objdata.forEach(function (item, i) {
var imgHtml = '';
var type = item.Extension.replace('.', '').toLowerCase();
var allowedExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
var rs_type = allowedExtension.includes(type);
if (rs_type)
imgHtml = `<img src="${item.Path.replace('~', '')}/${item.FileName}" alt="${item.FileName}" style="width: 100px;"/>`
else
imgHtml = item.FileName;
var html2 = '<tr>' +
' <th scope="row">' + (i + 1) + '</th>' +
' <td>' + imgHtml + '</td>' +
' <td>' + bytesToSize(item.ContentSize) + '</td>' +
' <td onclick="deleteAttachmentTemp2(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\')" style="cursor: pointer;">Xóa</td>' +
' </tr>';
$('.tbody-attachment-2').append(html2);
});
$('.wap-attachments-2').css('display', 'block');
}
}
},
error: function (result) {
}
});
}
function createGuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return '0 Byte';
var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i];
}
function uploadFileInPost(type) {
var body = (type == "add") ? CKEDITOR.instances.noidungbaivietmoi : CKEDITOR.instances.suanoidungbaiviet;
if (body) {
if (!body.getData())
body.insertHtml('<br/>');
}
var attachment = document.getElementById("upload-file-in-post");
var totalFiles = attachment.files.length;
if (totalFiles < 1) {
errorMessage("Không tìm thấy file để upload");
return false;
}
var formData = new FormData();
for (var i = 0; i < totalFiles; i++) {
var file = attachment.files[i];
formData.append(attachment, file);
}
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/Post/UploadFileInPost',
data: formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success: function (data) {
if (data) {
var validUrl = validURL_Regex(data);
if (validUrl) {
var imgTag = `<img src="${data}" width="auto" height="150px"/>`;
var body = (type == "add") ? CKEDITOR.instances.noidungbaivietmoi : CKEDITOR.instances.suanoidungbaiviet;
if (body) {
body.insertHtml(imgTag);
document.getElementById("upload-file-in-post").value = "";
}
} else
errorMessage(data);
} else
errorMessage("Không tìm thấy file để upload");
},
error: function (result) {
//errorMessage(result);
}
});
}
function uploadFileInPostEdit(type) {
var body = CKEDITOR.instances.suanoidungbaiviet;
if (body) {
if (!body.getData())
body.insertHtml('<br/>');
}
var attachment = document.getElementById("upload-file-in-post-edit");
var totalFiles = attachment.files.length;
if (totalFiles < 1) {
errorMessage("Không tìm thấy file để upload");
return false;
}
var formData = new FormData();
for (var i = 0; i < totalFiles; i++) {
var file = attachment.files[i];
formData.append(attachment, file);
}
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/Post/UploadFileInPost',
data: formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success: function (data) {
if (data) {
var validUrl = validURL_Regex(data);
if (validUrl) {
var imgTag = `<img src="${data}" width="auto" height="150px"/>`;
var body = CKEDITOR.instances.suanoidungbaiviet;
if (body) {
body.insertHtml(imgTag);
document.getElementById("upload-file-in-post-edit").value = "";
}
} else
errorMessage(data);
} else
errorMessage("Không tìm thấy file để upload");
},
error: function (result) {
//errorMessage(result);
}
});
}
function uploadFileInPostHoiLS() {
var body = CKEDITOR.instances.taochudemoihoiLS;
if (body) {
if (!body.getData())
body.insertHtml('<br/>');
}
var attachment = document.getElementById("upload-file-in-post");
var totalFiles = attachment.files.length;
if (totalFiles < 1) {
errorMessage("Không tìm thấy file để upload");
return false;
}
var formData = new FormData();
for (var i = 0; i < totalFiles; i++) {
var file = attachment.files[i];
formData.append(attachment, file);
}
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/Post/UploadFileInPost',
data: formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success: function (data) {
if (data) {
var validUrl = validURL_Regex(data);
if (validUrl) {
var imgTag = `<img src="${data}" width="auto" height="150px"/>`;
var body = CKEDITOR.instances.taochudemoihoiLS;
if (body) {
body.insertHtml(imgTag);
document.getElementById("upload-file-in-post").value = "";
}
} else
errorMessage(data);
} else
errorMessage("Không tìm thấy file để upload");
},
error: function (result) {
//errorMessage(result);
}
});
}
function modalUploadFilesTitleClicked() {
var attachment = document.getElementById("upload-file-title");
var totalFiles = attachment.files.length;
if (totalFiles < 1) {
errorMessage("Không tìm thấy file để upload");
return false;
}
var formData = new FormData();
for (var i = 0; i < totalFiles; i++) {
var file = attachment.files[i];
formData.append(attachment, file);
}
formData.append('AttachmentID', createGuid());
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/UploadFiles/UploadImagesObject',
data: formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success: function (data) {
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
$('.wap-image-title').html('');
objdata.forEach(function (item, i) {
var html = '';
html += '<div class="col-lg-3 col-md-4 col-xs-6 item" style="padding-top: 5px; padding-bottom: 5px;">';
html += ' <div style="margin-right: -10px; margin-left: -10px;">';
html += ' <i class="fas fa-times-circle" onclick="deleteImageObject(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\');" hidefocus="true"></i>';
html += ' <img src="' + item.Path.replace('~', '') + '/' + item.FileName + '" style="height: auto;width: 100%;">';
html += '</div>';
html += '</div>';
$(".wap-image-title").append(html);
});
$(".wap-item-image-title").css('display', 'block');
}
}
},
error: function (result) {
//errorMessage(result);
}
});
}
function uploadLinkFiles() {
var link = document.getElementById("txt-link-file").value;
if (!link) {
errorMessage('thiếu đường dẫn hình ảnh');
return false;
}
if (location.pathname.split('.')[1] == 'aspx') {// check đường dẫn không có .aspx là của trang chi tiết Chủ đề sẽ k gọi
//var checkModalComment = $('#ModalComment').is(':visible'); // check modal đang mở hay không
//var bodyEdit = checkModalComment ? CKEDITOR.instances.binhluanoidungbaiviet : CKEDITOR.instances.suanoidungbaiviet;
var checkModalComment = $('#ModalEditPost').is(':visible'); // check modal đang mở hay không
var bodyEdit = checkModalComment ? CKEDITOR.instances.suanoidungbaiviet : CKEDITOR.instances.binhluanoidungbaiviet;
if (bodyEdit && !bodyEdit.getData())
bodyEdit.insertHtml('<br/>');
checkIfImageExists(link, (exists) => {
if (exists) {
var imgTag = `<img src="${link}" width="auto" height="150px"/>`;
if (bodyEdit)
bodyEdit.insertHtml(imgTag);
document.getElementById("txt-link-file").value = "";
}
else
errorMessage("Không tìm thấy link file");
});
}
else if (location.pathname == '/tao-bai-viet-hoi-luat-su') {
var bodyEdit = CKEDITOR.instances.taochudemoihoiLS;
if (bodyEdit && !bodyEdit.getData())
bodyEdit.insertHtml('<br/>');
checkIfImageExists(link, (exists) => {
if (exists) {
var imgTag = `<img src="${link}" width="auto" height="150px"/>`;
if (bodyEdit)
bodyEdit.insertHtml(imgTag);
document.getElementById("txt-link-file").value = "";
}
else
errorMessage("Không tìm thấy link file");
});
}
else {
var body = CKEDITOR.instances.noidungbaivietmoi;
if (body && !body.getData())
body.insertHtml('<br/>');
checkIfImageExists(link, (exists) => {
if (exists) {
var imgTag = `<img src="${link}" width="auto" height="150px"/>`;
if (body)
body.insertHtml(imgTag);
document.getElementById("txt-link-file").value = "";
}
else
errorMessage("Không tìm thấy link file");
});
}
}
function checkIfImageExists(url, callback) {
const img = new Image();
img.src = url;
if (img.complete) {
callback(true);
} else {
img.onload = () => {
callback(true);
};
img.onerror = () => {
callback(false);
};
}
}
function deleteImageObject(elm, guid_id, file_name, cusId) {
if (!guid_id || !file_name || !cusId) {
errorMessage(result);
return false;
}
$.ajax({
type: "GET",
url: `/UploadFiles/DeleteAttachmentTemp?attachmentId=${guid_id}&file_name=${file_name}&cusId=${cusId}`,
async: false,
contentType: "application/json; charset=utf-8",
success: function (data) {
$('.wap-image-title').html('');
document.getElementById("file-upload-attachment-edit").value = "";
if (data) {
var check = validStringToParseJson(data);
if (check) {
var objdata = $.parseJSON(data);
if (objdata) {
objdata.forEach(function (item, i) {
var html = '';
html += '<div class="col-lg-3 col-md-4 col-xs-6 item" style="padding-top: 5px; padding-bottom: 5px;">';
html += ' <div style="margin-right: -10px; margin-left: -10px;">';
html += ' <i class="fas fa-times-circle" onclick="deleteImageObject(this,\'' + item.AttachmentID + '\',\'' + item.FileName + '\',\'' + $('.CusID').val() + '\');" hidefocus="true"></i>';
html += ' <img src="' + item.Path.replace('~', '') + '/' + item.FileName + '" style="height: auto;width: 100%;">';
html += '</div>';
html += '</div>';
$(".wap-image-title").append(html);
});
}
}
}
},
error: function (result) {
}
});
}
function uploadFileCommentPost() {
var body = CKEDITOR.instances.binhluanoidungbaiviet;
if (body) {
if (!body.getData())
body.insertHtml('<br/>');
}
var attachment = document.getElementById("upload-file-comment-post");
var totalFiles = attachment.files.length;
if (totalFiles < 1) {
errorMessage("Không tìm thấy file để upload");
return false;
}
var formData = new FormData();
for (var i = 0; i < totalFiles; i++) {
var file = attachment.files[i];
formData.append(attachment, file);
}
$.ajax({
type: "POST",
url: MAIN_DOMAIN + '/Post/UploadFileInPost',
data: formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success: function (data) {
if (data) {
var validUrl = validURL_Regex(data);
if (validUrl) {
var imgTag = `<img src="${data}" width="auto" height="150px"/>`;
var body = CKEDITOR.instances.binhluanoidungbaiviet;
if (body) {
body.insertHtml(imgTag);
document.getElementById("upload-file-comment-post").value = "";
}
} else
errorMessage(data);
} else
errorMessage("Không tìm thấy file để upload");
},
error: function (result) {
//errorMessage(result);
}
});
}
</script>
<script>
function zoomin() {
var myImg = document.getElementById("map");
var currWidth = myImg.clientWidth;
if (currWidth == 2500) return false;
else {
myImg.style.width = (currWidth + 100) + "px";
}
}
function zoomout() {
var myImg = document.getElementById("map");
var currWidth = myImg.clientWidth;
if (currWidth == 100) return false;
else {
myImg.style.width = (currWidth - 100) + "px";
}
}
</script>
<script>
function get_ccpl() {
var query = `ThreadsId=${$('.thread_Id').val()}`;
$.ajax({
method: "GET",
url: "https://dlapi.thuvienphapluat.vn/post/Get_CCPL_Threads?" + query,
})
.done(function (rs) {
if (rs.length > 0) {
var html = `<p class="title_forum" style=" font-size: 11px; font-weight: bold;text-transform: uppercase; ">Căn cứ pháp lý:</p>
<ul class="tree-view" style="padding: 5px;">
`;
for (let i = 0; i < rs.length; i++) {
html += `
<li class="visited">
<a href="${rs[i].Url}" target="_blank">${rs[i].Title}</a>
</li>
`;
}
html += `</ul>`;
$('#threads-ccpl').html(html);
$('#threads-ccpl').attr('style', 'display:block');
}
else {
$('#threads-ccpl').attr('style', 'display:none');
}
});
}
$(document).ready(function () {
get_ccpl();
});
</script>
<script>
function closeLoginModal() {
$('#loginModal2').modal('hide');
}
</script>
<!--END HTML dùng chung -->
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/js/Pagination.js"></script>
<script src="https://thuvienphapluat.vn/cong-dong-dan-luat/Scripts/js/common.js?v=638508252142372371"></script>
<script>
$(document).ready(function () {
var CusID = -1;
if (CusID < 1)
LoginByCustomerCookieName('');
});
setTimeout(function () {
$.each($('a'), function (k, v) { if ($(v).attr('href')?.includes('dan-luat//')) { $(v).attr('href', $(v).attr('href').replace('dan-luat//', 'dan-luat/')); } })
}, 5000);
var btn = $('#button-to-top');
var elm = document.getElementById('navigation_mobile');
$(window).scroll(function () {
if ($(window).scrollTop() < 150) {
elm.classList.remove('pin');
} else if ($(window).scrollTop() > 150 && window.innerWidth > 570) {
var length = $('#navigation_mobile.pin').length;
if (length < 1)
elm.classList.add('pin');
//else
// elm.classList.remove('pin');
}
if ($(window).scrollTop() > 300) {
btn.addClass('show');
} else {
btn.removeClass('show');
}
});
btn.on('click', function (e) {
e.preventDefault();
$('html, body').animate({ scrollTop: 0 }, '300');
});
</script>
<script type="text/javascript" async="" src="https://ssl.google-analytics.com/ga.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38763074-1']);
//_gaq.push(['_setDomainName', 'danluat.thuvienphapluat.vn']);
_gaq.push(['_trackPageview']);
_gaq.push(['c._setAccount', 'UA-17422479-2']);
_gaq.push(['c._trackPageview']);
_gaq.push(['b._setAccount', 'UA-4355683-16']);
//// set custom variables
//_gaq.push(['b._setCustomVar', 3, 'MemberDL', MemberGA, 3]);
//_gaq.push(['b._trackEvent', 'UserActivityDanLuat', MemberGA, window.location.href]);
if (document.referrer.indexOf("https://thuvienphapluat.vn") != -1) { _gaq.push(["b._setCustomVar", 4, "ReferrerTVPL", document.referrer, 1]); }
_gaq.push(['b._trackPageview']);
_gaq.push(['b._setDomainName', '.thuvienphapluat.vn']);
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
window.___gcfg = { lang: 'vi' };
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PGVTRDMJGD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-PGVTRDMJGD');
gtag('config', 'G-37029L2KPM');
</script>
</body>
</html>