Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 1, 2024
1 parent 74190fc commit c2dc364
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
1 change: 0 additions & 1 deletion css/rt-dmview-css-min.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ label::before {
justify-content: center;
border-radius: 4px 4px 0 0;
border-bottom: 2px solid transparent;
cursor: pointer;
}

.nav-pills .nav-link.active {
Expand Down
31 changes: 0 additions & 31 deletions js/WorkflowAI-H24-scr501-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,37 +133,6 @@ <h2 class="dmview-title">##store_lb##</h2>
const listFiles = "https://img.icons8.com/ios-filled/50/youtube-squared.png;https://img.icons8.com/arcade/64/youtube-squared.png;https://img.icons8.com/officel/50/facebook-new.png;https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf;https://filesamples.com/samples/document/docx/sample3.docx;https://www.w3resource.com/python-exercises/pandas/excel/SaleData.xlsx;http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4";
const listFilesArray = listFiles.split(";");
new MediaSlider('media-slider-container', listFilesArray);

// Initialize tabs with proper mobile handling
const tabButtons = document.querySelectorAll('[data-bs-toggle="tab"]');

const handleTabActivation = (event) => {
// Prevent default behavior
event.preventDefault();
event.stopPropagation();

// Remove active class from all tabs
tabButtons.forEach(btn => {
btn.classList.remove('active');
btn.setAttribute('aria-selected', 'false');
});

// Add active class to clicked tab
const targetTab = event.currentTarget;
targetTab.classList.add('active');
targetTab.setAttribute('aria-selected', 'true');

// Show tab content using Bootstrap Tab API
const tab = new bootstrap.Tab(targetTab);
tab.show();
};

// Add both touch and click handlers
tabButtons.forEach(button => {
['touchstart', 'click'].forEach(eventType => {
button.addEventListener(eventType, handleTabActivation, { passive: false });
});
});
});
</script>
</body>
Expand Down

0 comments on commit c2dc364

Please sign in to comment.