initial commit
This commit is contained in:
78
public/js/common.js
Normal file
78
public/js/common.js
Normal file
@@ -0,0 +1,78 @@
|
||||
|
||||
/* 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);
|
||||
// });
|
||||
Reference in New Issue
Block a user