Hệ thống pháp luật

ỦY BAN NHÂN DÂN
TỈNH TUYÊN QUANG
-------

CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
Độc lập - Tự do - Hạnh phúc
---------------

Số: 227/KH-UBND

Tuyên Quang, ngày 28 tháng 9 năm 2023

 

KẾ HOẠCH

SỬA ĐỔI, BỔ SUNG KẾ HOẠCH SỐ 127/KH-UBND NGÀY 05/7/2022 CỦA UỶ BAN NHÂN DÂN TỈNH THỰC HIỆN CHƯƠNG TRÌNH MỤC TIÊU QUỐC GIA PHÁT TRIỂN KINH TẾ - XÃ HỘI VÙNG ĐỒNG BÀO DÂN TỘC THIỂU SỐ VÀ MIỀN NÚI TỈNH TUYÊN QUANG GIAI ĐOẠN 2021-2025 VÀ NĂM 2022

Ủy ban nhân dân tỉnh ban hành Kế hoạch sửa đổi, bổ sung Kế hoạch số 127/KH- UBND ngày 05/7/2022 của Uỷ ban nhân dân tỉnh Kế hoạch thực hiện Chương trình mục tiêu quốc gia phát triển kinh tế - xã hội vùng đồng bào dân tộc thiểu số và miền núi tỉnh Tuyên Quang giai đoạn 2021-2025 và năm 2022 cụ thể như sau:

1. Sửa đổi, bổ sung điểm 2.1, mục 2, phần II như sau:

2.1. Giai đoạn 2021-2025

- Phấn đấu mức thu nhập bình quân đầu người khu vực nông thôn đạt trên 44 triệu đồng/người/năm.

- 100% thôn có điện lưới quốc gia; trên 80% nhà văn hóa thôn, bản đạt chuẩn; duy trì và phát triển các điểm phục vụ bưu chính, viễn thông tại các trung tâm xã, 100% các xã có điểm cung cấp dịch vụ viễn thông công cộng được kết nối internet băng thông rộng. Đảm bảo 100% người dân được thường xuyên xem truyền hình và nghe đài phát thanh; trên 98% người dân nông thôn được sử dụng nước sinh hoạt hợp vệ sinh.

- Hoàn thành cơ bản công tác định canh, định cư; sắp xếp ổn định 90% số hộ di cư không theo quy hoạch. Quy hoạch, sắp xếp, di dời bố trí 60% số hộ dân tộc thiểu số đang cư trú phân tán, rải rác trong rừng đặc dụng, các khu vực xa xôi, hẻo lánh, nơi có nguy cơ xảy ra lũ quét, lũ ống, sạt lở. Giải quyết cơ bản tình trạng thiếu đất ở, đất sản xuất cho các đối tượng được thụ hưởng.

- Tỷ lệ trẻ em mẫu giáo 5 tuổi đến trường đạt trên 98%, học sinh trong độ tuổi học tiểu học đạt trên 96%, học trung học cơ sở đạt trên 95%, học trung học phổ thông, giáo dục thường xuyên đạt trên 60%; người từ 15 tuổi trở lên đọc thông, viết thạo tiếng phổ thông đạt trên 90%.

- Phấn đấu 100% đồng bào dân tộc thiểu số tham gia bảo hiểm y tế. Trên 80% phụ nữ có thai được khám định kỳ, sinh con ở cơ sở y tế hoặc có sự trợ giúp của cán bộ y tế; giảm tỷ lệ trẻ em dưới 5 tuổi suy dinh dưỡng thể thấp còi khoảng 20%. Tỷ lệ trẻ em dưới 01 tuổi được tiêm chủng đầy đủ đạt 95%.

- 80% số thôn có đông đồng bào dân tộc thiểu số sinh sống thành lập câu lạc bộ bảo tồn tiếng nói, trang phục dân tộc và câu lạc bộ văn hóa, văn nghệ dân gian. Bảo tồn 05 lễ hội truyền thống của đồng bào dân tộc thiểu số. Hỗ trợ ít nhất 05 chương trình nghiên cứu, phục dựng, bảo tồn phát triển văn hóa phi vật thể các dân tộc thiểu số. Hỗ trợ đầu tư xây dựng 02 điểm đến du lịch tiêu biểu vùng đồng bào dân tộc thiểu số và miền núi; hỗ trợ đầu tư bảo tồn 02 làng, bản truyền thống;...

- Giảm 40 xã khó khăn và đặc biệt khó khăn; giảm 60 thôn đặc biệt khó khăn của giai đoạn 2021-20252. Sửa đổi, bổ sung điểm 5.1, mục 5, phần III như sau:

“- Giai đoạn 2021 -2025: Đầu tư, nâng cấp, cải tạo cơ sở vật chất; mua sắm trang thiết bị; cơ sở vật chất chuyển đổi số phục vụ công tác giảng dạy và học tập trong các trường phổ thông dân tộc nội trú, phổ thông dân tộc bán trú thuộc phạm vi thực hiện Chương trình trên địa bàn tỉnh”.

3. Sửa đổi, bổ sung một số điểm tại mục 6, phần III như sau:

“6.2. Nội dung 2: Khảo sát, kiểm kê, sưu tầm, lưu giữ, trưng bày di sản văn hoá truyền thống của đồng bào dân tộc thiểu số (thực hiện năm 2023).

“6.11. Nội dung 11: Xây dựng 06 nội dung (06 tập phim tài liệu) xuất bản sách, đĩa phim tư liệu về văn hoá truyền thống đồng bào dân tộc thiểu số (giai đoạn 2023-2025)”

“6.14. Nội dung 14: Hỗ trợ 05 chương trình quảng bá rộng rãi giá trị văn hoá truyền thống tiêu biểu các dân tộc thiểu số; chương trình quảng bá xúc tiến du lịch các vùng đồng bào dân tộc thiểu số và miền núi, kết hợp nghiên cứu, khảo sát tiềm năng du lịch, lựa chọn xây dựng các sản phẩm du lịch đặc trưng cho các vùng đồng bào dân tộc thiểu số và miền núi (giai đoạn 2021-2025). Năm 2022: Hỗ trợ 1 chương trình”.

6.15. Bảo tồn Làng văn hóa truyền thống dân tộc Cao Lan, thôn Động Sơn, xã Chân Sơn, huyện Yên Sơn, tỉnh Tuyên Quang. Thực hiện năm 2023-2024; Bảo tồn Làng văn hóa truyền thống dân tộc Tày, thôn Bản Bung, xã Thanh Tương, huyện Na Hang, tỉnh Tuyên Quang. Thực hiện năm 2024-2025”

"6.17. Nội dung 17: Hỗ trợ chống xuống cấp 03 di tích; tu bổ, tôn tạo 03 di tích quốc gia đặc biệt và di tích quốc gia có giá trị tiêu biểu vùng đồng bào dân tộc thiểu số (giai đoạn 2021-2025). Năm 2022-2024: Hỗ trợ tu bổ, tôn tạo 02 di tích quốc gia đặc biệt và di tích quốc gia, gồm: Khu di tích quốc gia đặc biệt: Địa điểm tổ chức Đại hội đại biểu toàn quốc lần thứ II của Đảng (Kim Bình), huyện Chiêm Hoá và di tích quốc gia Làng Ngòi - Đá Bàn, xã Mỹ Bằng, huyện Yên Sơn”. Năm 2024-2025: Hỗ trợ tu bổ, tôn tạo di tích quốc gia Chiến thắng Khe Lau, thị trấn Yên Sơn, huyện Yên Sơn”.

“6.19. Xây dựng mô hình Bảo tàng sinh thái tại làng văn hóa nhằm bảo tàng hóa di sản văn hóa phi vật thể trong cộng đồng các dân tộc thiểu số hướng tới phát triển cộng đồng và phát triển du lịch, thực hiện tại huyện Lâm Bình”

4. Sửa đổi, bổ sung mục 16, phần IV như sau:

“16. Liên minh Hợp tác xã tỉnh

Tham gia triển khai thực hiện nội dung thuộc Tiểu dự án 2 - Dự án 10 của Chương trình, tổng hợp báo cáo kết quả các nhiệm vụ được giao thực hiện theo đúng quy định.”

5. Sửa đổi, bổ sung mục 17, phần IV như sau:

 “17. Trường Đại học Tân Trào, Ban quản lý dự án đầu tư xây dựng các công trình dân dụng và công nghiệp tỉnh :

Tham gia thực hiện Tiểu dự án 2 thuộc Dự án 4 của Chương trình mục tiêu quốc gia phát triển kinh tế - xã hội vùng đồng bào dân tộc thiểu số và miền núi trên địa bàn tỉnh Tuyên Quang giai đoạn 2021-2025.

Phối hợp với các cơ quan, đơn vị liên quan trong việc triển khai thực hiện đảm bảo phù hợp với quy mô, định hướng phát triển đáp ứng được mục tiêu, hiệu quả đầu tư.”

Trên đây là Kế hoạch sửa đổi, bổ sung Kế hoạch số 127/KH-UBND ngày 05/7/2022 của Uỷ ban nhân dân tỉnh thực hiện Chương trình mục tiêu quốc gia phát triển kinh tế - xã hội vùng đồng bào dân tộc thiểu số và miền núi tỉnh Tuyên Quang giai đoạn 2021-2025 và năm 2022:

(1) Thủ trưởng các sở, ban, ngành; Chủ tịch Ủy ban nhân dân các huyện, thành phố liên quan có trách nhiệm xây dựng Kế hoạch sửa đổi, bổ sung để triển khai thực hiện.

(2) Giao cho Ban Dân tộc chủ trì, phối hợp với sở, ban, ngành và Ủy ban nhân dân các huyện, thành phố có trách nhiệm hướng dẫn, kiểm tra, đôn đốc và theo dõi, tổng hợp báo cáo, đánh giá việc tổ chức thực hiện Kế hoạch này.

Trong quá trình triển khai nếu có khó khăn, vướng mắc vượt thẩm quyền giải quyết, báo cáo Ủy ban nhân dân tỉnh (đồng gửi Ban Dân tộc tổng hợp) để xem xét và chỉ đạo giải quyết kịp thời./.

 


Nơi nhận:
- Ủy ban Dân tộc;
- Thường Trực Tỉnh ủy;
- Thường trực HĐND tỉnh; Báo cáo
- Chủ tịch UBND tỉnh;
- Các PCT UBND tỉnh;
- Đoàn ĐBQH tỉnh;
- Ủy ban MTTQ tỉnh;
- Thành viên BCĐ các CTMTQGPT;
- Chánh, Phó Chánh VP UBND tỉnh;
- UBND các huyện, thành phố;
- Trường Đại học Tân Trào;
- BQL DA ĐTXD các CT dân dụng và CN tỉnh;
- Lưu: VT, KT (Toản).

TM. ỦY BAN NHÂN DÂN
KT. CHỦ TỊCH

PHÓ CHỦ TỊCH




Nguyễn Thế Giang

 



/g, '').replace(/\s*(<\/?[^>]+>)\s*/g, '$1').trim(); } function checkAndWrap(element) { // Đệ quy kiểm tra các phần tử .main-elem con bên trong trước element.children('cttd, dctd, dctk').each(function() { checkAndWrap($(this)); }); // Lấy HTML hiện tại của phần tử .main-elem và làm sạch nó var currentHTML = cleanHTML(element.html()); // Log trạng thái HTML bên trong trước khi kiểm tra //console.log('Before inner HTML:', currentHTML); // Kiểm tra xem HTML có bao quanh bởi thẻ span không if (!(currentHTML.startsWith(''))) { // Nếu không, bao quanh toàn bộ nội dung bằng thẻ span element.html('' + currentHTML + ''); currentHTML = cleanHTML(element.html()); //console.log('After inner HTML:', currentHTML); } else { //console.log('Giữ nguyên inner HTML:..........................'); } } $('cttd.chuthichtudong a.chuthichtudong').each(function() { $(this).removeClass('chuthichtudong'); }); // Bắt đầu kiểm tra từ các phần tử .main-elem ngoài cùng $('cttd.chuthichtudong, a.chuthichtudong, dctd, dctk').each(function() { $(this).attr('id', 'rnd_' + random_string_id(20)); checkAndWrap($(this)); }); }); $(document).ready(function() { $('cttd.chuthichtudong span, a.chuthichtudong span, dctk span, dctd span').click(function(e) { e.preventDefault(); e.stopPropagation(); }); $('cttd.chuthichtudong > span, a.chuthichtudong > span, dctk > span, dctd > span').click(function(e) { e.preventDefault(); e.stopPropagation(); if ($(document).width()<=768) { return; } var $this = $(this); //alert($this.position().top); var clickedElement = $(this); var level = 0; var selectors = ['cttd.chuthichtudong > span', 'dctk > span', 'dctd > span']; // Kiểm tra xem có ít nhất một cấp con thỏa mãn điều kiện không var hasChild = selectors.some(function(selector) { return clickedElement.closest(selector).find('span').length > 0; }); if (!hasChild) { //alert('chỉ có 1 cấp'); var totalSubLevels = 1; } else { function findMatchingParent(element) { var parent = element.parent(); if (parent.length === 0) return null; for (var i = 0; i < selectors.length; i++) { if (parent.is(selectors[i])) { return parent; } } return findMatchingParent(parent); } var parentElement = findMatchingParent(clickedElement); while (parentElement !== null) { level++; parentElement = findMatchingParent(parentElement); } var closestElement = clickedElement.closest(selectors.join(', ')); var nodeName = closestElement.prop('nodeName').toLowerCase(); var className = closestElement.attr('class'); var textContent = closestElement.text().trim(); var address = selectors.find(function(selector) { return closestElement.is(selector); }); // Đếm tổng số cấp dưới bao gồm cả cấp được click var totalSubLevels = closestElement.find('span').length + 1; // +1 để bao gồm cả cấp được click var parent_id = closestElement.parent().attr('id'); //alert('Clicked element level: ' + level + '\nAddress: ' + address + '\nText: ' + textContent + '\nparent_id: ' + parent_id); var variableName = 'parent_id_' + level; // Gán giá trị của parent_id cho biến động này window[variableName] = parent_id; } if (totalSubLevels>1) { // Tạo đối tượng để lưu trữ các biến động var dynamicVars = {}; // Tạo tên biến động dựa trên giá trị của level var variableName = 'parent_id_' + level; // Gán giá trị của parent_id cho biến động này dynamicVars[variableName] = parent_id; // Giờ gắn ngược lại biến buble_id = parent_id_{level} var buble_id = dynamicVars[variableName]; } else { buble_id = 'dc_' + $(this).parent().attr('id'); } //alert('bat dau xu ly ' + buble_id); // Nếu không có .pointer ngay sau .main-elem thì chèn thêm if ($this.next('.pointy').length === 0) { $this.after('

'); } var $pointer = $this.next('.pointer'); var $canvas = $this.next('canvas'); var $pointy = $canvas.next('div.pointy'); if ($pointy.is(':visible')) { //alert('now hide everything'); } //$pointer.css({'border':'solid 5px red'}); //$pointer.hide(); //$pointer.prev('canvas.pointy').hide(); if ($pointer.is(':visible')) { } else { if ($('#ajax_tra_cuu').is(':visible')) { $('#ajax_tra_cuu').hide(); } $("#right_info_col").css('height', '1px'); //$('#rightdocinfo').hide(); $('#rightdocinfo').hide('slow'); $('#r-toc').hide('slow'); if ($('button#toggleSidebar').length) { if (parseInt($('#customSidebar').css('right'),10) == 0) { $('#customSidebar').animate({ right: '-280px' }, 500); $('#toggleSidebar').html(''); } else { } } //alert('pointy length: ' + $pointy.length); //alert('pointy visible: ' + $pointy.is(':visible')); //$canvas.show(); if ($pointy.is(':visible')) { var $pointer = $canvas.next('.pointer'); //alert('pointer text: ' + $pointer.text()); //alert('pointer visible: ' + $pointer.is(':visible')); if ($pointer.is(':visible')) { //alert($pointer.prev('canvas.pointy').length); $pointer.hide(); $canvas.hide(); } else { } } else { if ($canvas.length==1) { var $canvas = $this.next('canvas'); var $pointer = $canvas.next('.pointer'); //$pointy.show(); if ($pointer.length>0) { $pointer.show(); $canvas.show(); } //$canvas.show(); $('.pointer').removeClass('pointy-active'); $('.pointer').css({'z-index':1}); $('canvas.pointy').removeClass('pointy-active'); $('canvas.pointy').css({'z-index':1}); $pointer.css({'z-index':9999}); $canvas.css({'z-index':9999}); if (level==0) { if (totalSubLevels==1) { scrollTop_offset = $pointer.offset().top - $(window).height() / 4; } else { scrollTop_offset = $pointer.offset().top - $('#nav-tab-vb').height()-10; } $('html,body').animate({ scrollTop: scrollTop_offset }, 'slow'); } } else { $pointer.show(); //$canvas.show(); if ($pointy.length==0) { var elementOffset = $(this).position().top; var windowHeight = $(window).height()-20 - $('#nav-tab-vb').height(); var pointerHeight = Math.max(250, Math.min(windowHeight * 0.8, 450)); var newTop = elementOffset - (pointerHeight / 2); // Đảm bảo pointer không ra khỏi màn hình var maxTop = $(document).height() - pointerHeight; newTop = Math.max(0, Math.min(newTop, maxTop)); if (totalSubLevels=1) { if (level>0) { newTop = newTop+pointerHeight+30; } } // Positioning the pointer var position = $this.position(); $pointer.css({ left: $('#doc-left-col').width() + 50 + "px", width: $('#doc-right-col').width()-30, height: pointerHeight, 'z-index': 9999, top: newTop + "px" }); // Initialize pointy $this.pointy({ pointer: $pointer, defaultClass: 'zindex', activeClass: 'pointy-active', arrowWidth: 20 }); var initialTop = $pointer.position().top; $pointer.draggable({ containment: 'document', drag: function() { if (screen.width<1280) { var cap_nhat_pointy_top = setInterval(function(){ if ($this.position().top-$this.parent().height()+10!=$pointer.prev('canvas.pointy').position().top) { $pointer.prev('canvas.pointy').css({'top': $this.position().top-$this.parent().height()+10+'px'}); clearInterval(cap_nhat_pointy_top); } else { clearInterval(cap_nhat_pointy_top); } },50); } $this.trigger('pointy-update'); } }); // Thêm sự kiện click cho .close_pointy $pointer.on('click', '.close_pointy', function(e) { $pointer.hide(); $pointer.prev('canvas.pointy').hide(); }); // Handle touch events for mobile devices var isDragging = false, startX, startY, offsetX, offsetY; var startDragging = function(e) { if (checkIfScrollingContent(e)) return; if ($(e.target).is('.close_pointy')) { // Nếu đúng thì không chạy các hàm drag return; } isDragging = true; var touch = e.originalEvent.touches[0]; var pos = $pointer.position(); startX = touch.pageX; startY = touch.pageY; offsetX = startX - pos.left; offsetY = startY - pos.top-$pointer.height()-$pointer.height()/1.365; var cap_nhat_pointy_top = setInterval(function(){ if ($this.position().top-$this.parent().height()+10!=$pointer.prev('canvas.pointy').position().top) { $pointer.prev('canvas.pointy').css({'top': $this.position().top-$this.parent().height()+10+'px'}); clearInterval(cap_nhat_pointy_top); } else { clearInterval(cap_nhat_pointy_top); } },50); e.preventDefault(); }; var duringDragging = function(e) { if (checkIfScrollingContent(e)) return; if (isDragging) { var touch = e.originalEvent.touches[0]; var moveX = touch.pageX; var moveY = touch.pageY; if (screen.width<1280) { var newLeft = moveX - offsetX; var newTop = moveY - offsetY-$pointer.height()-$pointer.height()/1.365; // Giới hạn không cho kéo vượt quá chiều ngang của màn hình if (newLeft < 0) { newLeft = 0; } else if (newLeft + $pointer.outerWidth() > $(window).width()) { newLeft = $(window).width() - $pointer.outerWidth(); } // Giới hạn không cho kéo lên trên vượt quá position.top ban đầu if (newTop < initialTop) { newTop = initialTop; } $pointer.css({ left: newLeft, top: newTop }); } else { var newLeft = moveX - offsetX; var newTop = moveY - offsetY-$pointer.height()-$pointer.height()/1.365; // Giới hạn không cho kéo vượt quá chiều ngang của màn hình if (newLeft < 0) { newLeft = 0; } else if (newLeft + $pointer.outerWidth() > $(window).width()) { newLeft = $(window).width() - $pointer.outerWidth(); } $pointer.css({ left: newLeft, top: newTop }); } $pointer.prev('canvas.pointy').hide(); e.preventDefault(); } }; var stopDragging = function(e) { $pointer.prev('canvas.pointy').show(); if (checkIfScrollingContent(e)) return; if (screen.width<1280) { var cap_nhat_pointy_top = setInterval(function(){ if ($this.position().top-$this.parent().height()+10!=$pointer.prev('canvas.pointy').position().top) { $pointer.prev('canvas.pointy').css({'top': $this.position().top-$this.parent().height()+10+'px'}); clearInterval(cap_nhat_pointy_top); } else { clearInterval(cap_nhat_pointy_top); } },50); } $this.trigger('pointy-update'); }; function checkIfScrollingContent(e) { // Kiểm tra đối tượng mà người dùng đang chạm có phải là nội dung bên trong $pointer // Ví dụ, nếu nó là một phần tử
hoặc

bên trong $pointer if ($(e.target).closest('.list_tds').length > 0) { // Người dùng đang chạm vào nội dung bên trong .scroll_2 // Cho phép hành vi cuộn và ngăn chặn di chuyển $pointer e.stopPropagation(); return true; } // Người dùng không chạm vào nội dung bên trong $pointer // Cho phép di chuyển $pointer return false; } $pointer.on('touchstart', startDragging); $pointer.on('touchmove', duringDragging); $pointer.on('touchend', stopDragging); // Hàm để cập nhật vị trí của pointer var updatePointerPosition = function() { var offset = $this.position(); //alert($this.position().top); var windowHeight = $(window).height() - $('#nav-tab-vb').height()-20; var pointerHeight = Math.max(250, Math.min(windowHeight * 0.8, 450)); var elementOffset = $this.position().top; var newTop = elementOffset - (pointerHeight / 2); // Đảm bảo pointer không ra khỏi màn hình var maxTop = $(document).height() - pointerHeight; newTop = Math.max(0, Math.min(newTop, maxTop)); $pointer.css({ left: $('#doc-left-col').width() + 50 + "px", width: $('#doc-right-col').width() - 30, height: pointerHeight, top: newTop + "px" }); //alert($pointer.position().top); }; /* */ // Cập nhật vị trí pointer khi thay đổi kích thước hoặc xoay màn hình $(window).on('resize orientationchange', function() { updatePointerPosition(); //$canvas.css('top', $this.position().top+'px'); var cap_nhat_pointy_top = setInterval(function(){ if ($this.position().top-$this.parent().height()+10!=$pointer.prev('canvas.pointy').position().top) { $pointer.prev('canvas.pointy').css({'top': $this.position().top-$this.parent().height()+10+'px'}); $this.trigger('pointy-update'); clearInterval(cap_nhat_pointy_top); } else { clearInterval(cap_nhat_pointy_top); } },50); }); } } } if ($pointer.is(':visible')) { if (level==0) { if (totalSubLevels==1) { scrollTop_offset = $pointer.offset().top - $(window).height() / 4; } else { scrollTop_offset = $pointer.offset().top - $('#nav-tab-vb').height()-10; } $('html,body').animate({ scrollTop: scrollTop_offset }, 'slow'); } } } $pointer.css('opacity', '1'); $('.pointy').click(function(e) { e.preventDefault(); e.stopPropagation(); }); var parent = $(this).parent(); var dataCT = parent.attr('data-ct'); var dataDC = parent.attr('data-dc'); var dataTN = parent.attr('data-tn'); //if (dataCT) loai_buble = 'chuthich'; //if (dataDC) loai_buble = 'danchieu';; //if (dataTN) loai_buble = 'thuatngu'; var loai_buble = parent.prop('nodeName').toLowerCase(); var text_html = $(this).text(); if (loai_buble=='cttd' || loai_buble=='a') { pointer_html = '

'; } else if(loai_buble=='dctd') { if (this.hasAttribute('o-title')) { tieu_de_dan_chieu = $(this).attr('o-title'); } else { tieu_de_dan_chieu = text_html; } pointer_html = ''; } else if(loai_buble=='dctk') { pointer_html = ''; } if ($pointer.find('#noi_dung_buble_'+buble_id).length) { } else { $pointer.html(pointer_html); } if (loai_buble=='cttd' || loai_buble=='a') { var load_cttd = setInterval(function(){ if ($pointer.find('#noi_dung_buble_'+buble_id + ' .dc_loading').length) { $.ajax({ type: 'POST', url: '/ajax/vanban/chu-thich/', data: { 'ndct': dataCT, 'id_ct': buble_id, 'dc_text': text_html }, success: function(response) { $("#noi_dung_buble_" + buble_id).html(response); if ($(document).width()>=1280){$this.trigger('pointy-update');} clearInterval(load_cttd); } }); } },500); } else if(loai_buble=='dctd') { var load_cttd = setInterval(function(){ if ($pointer.find('#noi_dung_buble_'+buble_id + ' .dc_loading').length){ if (dataDC.length == 32) { $.ajax({ type: 'POST', url: '/ajax/public/dan-chieu/' + dataDC, data: { 'text_dan_chieu': text_html }, success: function(response) { $("#noi_dung_buble_" + buble_id).html(response); if ($(document).width()>=1280){$this.trigger('pointy-update');} clearInterval(load_cttd); } }); } else { $("#noi_dung_buble_" + buble_id).load('/ajax/public/dan-chieu/' + dataDC + '/'); if ($(document).width()>=1280){$this.trigger('pointy-update');} clearInterval(load_cttd); } } else { clearInterval(load_cttd); } },500); } else if(loai_buble=='dctk') { if ($('#noi_dung_buble_'+buble_id + ' .dc_loading').length){ $.ajax({ type: 'POST', url: '/ajax/vanban/chu-thich/', data: { 'ndct': dataCT, 'id_ct': buble_id, 'loai_hd': 'noi_dung_tham_khao', 'dc_text': text_html }, success: function(response) { $("#noi_dung_buble_" + buble_id).html(response); if ($(document).width()>=1280){$this.trigger('pointy-update');} } }); } } /* var tim_buble_id = setInterval(function(){ if ($('#noi_dung_buble_'+buble_id).length) { alert('bay gio moi tim thay '+buble_id); clearInterval(tim_buble_id); } },1000); */ $('.pointer').removeClass('pointy-active'); $('.pointer').css({'z-index':1}); $('canvas.pointy').removeClass('pointy-active'); $('canvas.pointy').css({'z-index':1}); $pointer.css({'z-index':9999}); $canvas.css({'z-index':9999}); $('.pointer').on('mouseenter mouseleave click touchstart', function() { // Khi di chuột vào $('.pointer').removeClass('pointy-active'); $('.pointer').css({'z-index':1}); $(this).css({'z-index':9999}); $('canvas.pointy').removeClass('pointy-active'); $('canvas.pointy').css({'z-index':1}); $(this).prev('canvas.pointy').addClass('pointy-active'); $(this).prev('canvas.pointy').css({'z-index':9999}); } ); var list_tds_max_height_interval = setInterval(function(){ if ($pointer.find('.list_tds').length) { var windowHeight = $(window).height()-20 - $('#nav-tab-vb').height(); var pointerHeight = Math.max(250, Math.min(windowHeight * 0.8, 450)); $pointer.find('.list_tds').css('max-height', pointerHeight + 'px'); clearInterval(list_tds_max_height_interval); } },50); $(window).resize(function() { if ($(document).width()<=768) { $pointer.hide(); $pointer.prev('canvas.pointy').hide(); } var cap_nhat_pointy_top = setInterval(function(){ if ($this.position().top-$this.parent().height()+10!=$pointer.prev('canvas.pointy').position().top) { $pointer.prev('canvas.pointy').css({'top': $this.position().top-$this.parent().height()+10+'px'}); clearInterval(cap_nhat_pointy_top); } else { clearInterval(cap_nhat_pointy_top); } },50); var list_tds_max_height_interval = setInterval(function(){ if ($pointer.find('.list_tds').length) { var windowHeight = $(window).height()-20 - $('#nav-tab-vb').height(); var pointerHeight = Math.max(250, Math.min(windowHeight * 0.8, 450)); $pointer.find('.list_tds').css('max-height', pointerHeight + 'px'); clearInterval(list_tds_max_height_interval); } },50); }); var parentElement = $(this).parent(); // Define the selectors for the target elements var selectors = 'cttd.chuthichtudong > span, a.chuthichtudong > span, dctk > span, dctd > span'; // Find and click all matching child elements parentElement.find(selectors).each(function() { $(this).click(); }); var cap_nhat_pointy_top = setInterval(function(){ if ($this.position().top-$this.parent().height()+10!=$pointer.prev('canvas.pointy').position().top) { $pointer.prev('canvas.pointy').css({'top': $this.position().top-$this.parent().height()+10+'px'}); clearInterval(cap_nhat_pointy_top); } else { clearInterval(cap_nhat_pointy_top); } },50); }); }); function random_string_id(numstr) { var text = ""; var possible = "abcdefghijklmnopqrstuvwxyz0123456789"; for (var i = 0; i < numstr; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; } $(document).ready(function() { function setPointerHeight() { var windowHeight = $(window).height() - $('#nav-tab-vb').height()-20; var pointerHeight = Math.max(250, Math.min(windowHeight * 0.8, 450)); $('.pointer').css('height', pointerHeight + 'px'); } // Đặt chiều cao khi tải trang setPointerHeight(); // Đặt lại chiều cao khi thay đổi kích thước cửa sổ (nếu cần) $(window).resize(function() { setPointerHeight(); }); }); // Lưu dấu chọn lựa cuối cùng let lastChosen = null; let lastChosentr = null; function scroll_den_hd(ndsh_dich_address) { if (lastChosen) { $(lastChosen).css('background-color', ''); // Xóa mọi bôi mờ trước } if (lastChosentr) { $(lastChosentr).css('background-color', ''); // Xóa mọi bôi mờ trước } lastChosen = $('[href="javascript:scroll_den_hd(\'' + ndsh_dich_address + '\')"]'); lastChosentr = $('[data-ct="' + ndsh_dich_address + '"]'); $(lastChosen).css('background-color', 'yellow'); // Thay bôi mờ $(lastChosentr).css('background-color', 'yellow'); // Thay bôi mờ var targetElement = $('[address="' + ndsh_dich_address + '"]'); $('.selected_dchd').removeClass('selected_dchd'); targetElement.addClass('selected_dchd'); targetElement.children('p').children('cttd').click(); targetElement.children('cttd').click(); targetElement.children('p').children('dctk').click(); targetElement.children('dctk').click(); // Tính toán vị trí để cuộn đến và đẩy vị trí xuống một chút cho dễ nhìn /* var position = targetElement.offset().top - $(window).height()/2; // Sử dụng animate để cuộn đến vị trí, sau đó không cần bôi màu như trước $('html, body').animate({ scrollTop: position }, 800, function() { // Không cần thực hiện thêm hành động nào sau khi cuộn, vì việc đánh dấu đã được xử lý ở trên }); */ }