1(function($) { 2 $(function() { 3 // fancybox 4 $('.fancybox').fancybox({ 5 padding: 0, 6 width: 640, 7 height: 1136, 8 aspectRatio: true, 9 centerOrScroll: true, 10 helpers: { 11 overlay: { 12 locked: false 13 } 14 } 15 }); 16 17 // ã¢ã³ã¼ãã£ãªã³ 18 $('.accordion-btn').click(function() { 19 $(this).toggleClass('opened').toggleClass('closed'); 20 $(this).next('p').slideToggle('fast', 'swing'); 21 }); 22 23 // ãã£ã©ã¯ã¿ã¼ã¢ã¼ãã« 24 $('.zoom-btn').click(function(){ 25 $('.chara-modal').fadeIn('fast'); 26 $('.modal-close-btn').click(function() { 27 $('.chara-modal').fadeOut('fast'); 28 return false; 29 }); 30 return false; 31 }); 32 33 // MixItUp 34 var config = { 35 animation: { 36 enable: false 37 }, 38 controls: { 39 toggleLogic: 'and' 40 }, 41 }; 42 mixitup('.hero-list-box', config); 43 44 $('.core2-toggle').click(function(ev) { 45 var $currentTarget = $('.core2-toggle'); 46 if ($currentTarget.hasClass('active')) { 47 $currentTarget.removeClass('active'); 48 $('.core1-only').removeClass('hide'); 49 } else { 50 $currentTarget.addClass('active'); 51 $('.core1-only').addClass('hide'); 52 } 53 }); 54 55 56 // TOPã¸æ»ãã¹ã¯ãã¼ã« 57 $('.to-top').click(function() { 58 var speed = 400; 59 var href= $(this).attr('href'); 60 var target = $(href == '#' || href == '' ? 'html' : href); 61 if (target.length > 0) { 62 var position = target.offset().top; 63 $('body,html').animate({scrollTop:position}, speed, 'swing'); 64 return false; 65 } 66 }); 67 $('.to-about').click(function() { 68 var speed = 400; 69 var href= $(this).attr('href'); 70 var target = $(href == '#' || href == '' ? 'html' : href); 71 if (target.length > 0) { 72 var position = target.offset().top; 73 $('body,html').animate({scrollTop:position}, speed, 'swing'); 74 return false; 75 } 76 }); 77 78 // ãã£ã©ã¯ã¿ã¼ã¢ã¼ãã« 79 $('.core-change').click(function(ev){ 80 var $parentElement = $(ev.currentTarget.parentElement); 81 if ($parentElement.hasClass('enabled-core2')) { 82 $parentElement.removeClass('enabled-core2'); 83 } else { 84 $parentElement.addClass('enabled-core2'); 85 } 86 return false; 87 }); 88 89 //totopã®è¡¨ç¤º 90 $(window).scroll(function () { 91 var s = $(this).scrollTop(); 92 var m = 300; 93 if(s > m) { 94 $("a.to-top").fadeIn('slow'); 95 } else if(s < m) { 96 $("a.to-top").fadeOut('fast'); 97 } 98 }); 99 100 // SPçheaderã¡ãã¥ã¼ 101 $('.h-menu, .btn-close').on('click', function() { 102 $('.h-menu-box').slideToggle(); 103 return false; 104 }); 105 106 }); 107})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.