Files
partnerpage/public/js/common.js

79 lines
1.7 KiB
JavaScript
Raw Normal View History

2026-03-06 19:44:43 +08:00
/* animation */
window.counter = function () {
const span = this.querySelector('span')
const current = parseInt(span.textContent)
span.textContent = current + 1
}
document.addEventListener('DOMContentLoaded', function () {
// const trigger = new ScrollTrigger({
// addHeight: true
// })
})
/* tab */
// $('ul.tabs li').click(function(){
// var tab_id = $(this).attr('data-tab');
//
// $('ul.tabs li').removeClass('on');
// $('.tab-content').removeClass('on');
//
// $(this).addClass('on');
// $("#"+tab_id).addClass('on');
// });
//
// /* hrader */
// $('.dropdown').hover(function() {
// $(this).find('.dropdown-menu').stop(true, true).delay(200).slideDown(200);
// }, function() {
// $(this).find('.dropdown-menu').stop(true, true).delay(200).slideUp(200);
// });
//
//
// /* tab */
// $('ul.tabs li').click(function(){
// var tab_id = $(this).attr('data-tab');
//
// $('ul.tabs li').removeClass('current');
// $('.tab-content').removeClass('current');
//
// $(this).addClass('current');
// $("#"+tab_id).addClass('current');
// });
//
// /* login */
// $('.loginbtn').click(function(){
// $('.loginmodal').show();
// });
//
// function close_pop() {
// $('.loginmodal').hide();
// };
//
// /* betlist */
// $('.betlistbtn').click(function(){
// $('.betlistmodal').show();
// });
//
// function close_bet() {
// $('.betlistmodal').hide();
// };
//
// /* sub menu */
// $(".submenu").click(function(){
// $(this).next(".submenucon").slideToggle(100);
// });
//
// /* qna */
// $(".qnahead").click(function(){
// $(this).next(".qnacon").slideToggle(100);
// });
//
// /* boardstr */
// $(".boardstrsw").click(function(){
// $(this).parent().parent().next(".boardstrin").slideToggle(100);
// });