1/* top.js */ 2 3$(function(){ 4 5 $('#blog-inner, #column-inner, #news-inner').jAccordion({ 6 speed: 500, 7 easing: 'easeOutQuad' 8 }); 9 10 $('#clinic-more-inner').owlCarousel({ 11 autoPlay : 3000, 12 items : 3, 13 itemsCustom : false, 14 itemsDesktop : [1199,3], 15 itemsDesktopSmall : [980,3], 16 itemsTablet: [768,3], 17 itemsTabletSmall: false, 18 itemsMobile : [767,1], 19 singleItem : false, 20 itemsScaleUp : false, 21 navigation : true, 22 pagination : false 23 }); 24 25 $("#index-service").owlCarousel({ 26 autoPlay : 3000, 27 items : 4, 28 itemsCustom : false, 29 itemsDesktop : [1199,4], 30 itemsDesktopSmall : [980,4], 31 itemsTablet: [768,4], 32 itemsTabletSmall: false, 33 itemsMobile : [767,1], 34 singleItem : false, 35 itemsScaleUp : false, 36 navigation : true, 37 pagination : false 38 }) 39 40 $('#index-medical li').on('mouseenter', function(){ 41 $(this).find('dd').stop(false, true).animate({ 42 height: 'show' 43 }, 500, 'easeOutExpo'); 44 }).on('mouseleave', function(){ 45 $(this).find('dd').stop(false, true).animate({ 46 height: 'hide' 47 }, 500, 'easeOutExpo'); 48 }); 49 50 var $moreContent = $('#news-more'); 51 $('#news .btn-more a').on('click', function(e){ 52 e.preventDefault(); 53 $moreContent.stop(false, true).animate({ 54 height: 'toggle' 55 }, 500, 'easeOutQuad');; 56 }); 57 58 // if( !_ua.Tablet && !_ua.Mobile ){ 59 // if(jQuery.support.opacity){ 60 // $.videoInit(); 61 // }else{ 62 // $('#main-visual').addClass('non-video'); 63 // }; 64 // }; 65 // if( _ua.Tablet || _ua.Mobile ){ 66 // $('#main-visual').addClass('non-video'); 67 // }; 68 $('#main-visual').addClass('non-video'); 69 70 var columnNum = $('#index-column').find('article').length; 71 $('#index-column').addClass('index-column--'+columnNum); 72}); 73 74$.videoInit = function(){ 75 var _video = '<video id="main-video" preload="auto" autoplay webkit-playsinline loop="loop">'+ 76 '<source src="/movie/top.mp4" type="video/mp4">'+ 77 '<source src="/movie/top.webm" type="video/webm">'+ 78 '<source src="/movie/top.ogv" type="video/ogg">'+ 79 '</video>'; 80 $('#main-visual-inner').append(_video); 81 //$.videoResize(); 82}; 83 84$.videoResize = function(){ 85 var $video = $('#main-visual-inner'); 86 var resizing = function(){ 87 var _w = $(this).width(); 88 if( _w > 1600 ){ 89 var _top = $video.height() / 2; 90 if( _top < 540 ){ 91 _top = 540; 92 }; 93 $video.css('margin-top', -_top); 94 }else{ 95 $video.css('margin-top', -540); 96 }; 97 }; 98 resizing(); 99 $(window).on('resize', function(){
100 resizing(); 101 }); 102}; 103 104// 20230530 Smash Balloonãã©ã°ã¤ã³ã«ããspã¡ãã¥ã¼ééãã§ããªããªãä»¶ã®å¯¾å¿ 105//TOPãã¼ã¸ã®ã¿é©ç¨ï¼TOPãã¼ã¸ä»¥å¤ã§ã¯ã¡ãã¥ã¼ééã«åé¡ãªãï¼ 106$('#btn-menu').on('tap', function() { 107 $('#body').toggleClass('menu_open'); 108 $('#menu').toggleClass('menu_open'); 109 $('#btn-menu').toggleClass('menu_open'); 110}); 111 112$('#btn-menu').on('tap', function () { 113 if($('#menu').hasClass('menu_open')) { 114 $('#main').on('tap', function () { 115 $('#body').removeClass('menu_open'); 116 $('#menu').removeClass('menu_open'); 117 $('#btn-menu').removeClass('menu_open'); 118 }); 119 } 120});
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.