1'use strict'; 2 3/** 4 * Hello 5 * init.js 6 * ver.202009170000 7 */ 8 9$(function() { 10 // Android4.4æªæºå¤å¥ 11 if(navigator.userAgent.indexOf('Android') > 0 && typeof window.orientation != 'undefined' && typeof(EventSource) == 'undefined') { 12 $('body').addClass('ua-android-u440'); 13 } 14 15 // ãã£ã¹ãã¬ã¤ãµã¤ãºå¤å® 16 function isDisplaySize(width) { 17 return $(window).width() <= width; 18 } 19 20 // é»è©±çªå·ãªã³ã¯PCã§ã®ã¿ç¡å¹å 21 $('.js-shop_tel').on('click', function() { 22 if (!isDisplaySize(480)) { 23 return false; 24 } 25 }); 26 27 // ã¹ããç¨ã¡ãã¥ã¼å¶å¾¡(required mobilemenu.js) 28 $('#container').mobile_menu({ 29 menu: ['#sm_navi ul'], 30 menu_width: 280, 31 prepend_button_to: '.sm_header' 32 }); 33 34 // colorboxå¶å¾¡(æ±äººãã¼ã¸ã»ã¡ã«ãã¬é¤å¤) 35 $('.thickbox').not('.navi_recruit, .navi_melmaga, .js-colorbox-html').each(function() { 36 $(this).colorbox({ 37 rel: $(this).attr('rel'), 38 width: '90%', 39 height: '90%', 40 transition: 'fade', 41 previous: '<i class="fa fa-angle-left"></i>', 42 next: '<i class="fa fa-angle-right"></i>', 43 close: '<i class="fa fa-close"></i>', 44 fixed: true 45 }); 46 }); 47 48 // selectãã¼ã¯è¿½å (1ã«ã©ã æ(ã¹ãã)ã®ã¿) 49 if ( $('#main_column').css('float') != 'right' ) { 50 $('select').wrap('<div class="wrap_select" />').before('<div class="select_arrow fa fa-caret-down"></div>'); 51 } 52 53 // ããã¿è¡¨ç¤ºå¶å¾¡ 54 var footerElement = $('#footer').clone().attr('id', 'content_footer'); 55 $('#main_column').append(footerElement); 56 57 // ããã¿ã®ãããã¼ããåé¤ 58 $('#footer #navi_parts').remove(); 59 60 // pager(nextã»prev)ãfont-awesomeã«ç½®æ 61 $('.pager .prev').text('').attr('class', 'prev fa fa-chevron-left'); 62 $('.pager .next').text('').attr('class', 'next fa fa-chevron-right'); 63 64 // navi_parts(ããã¼/ã¦ã£ã¸ã§ãã)ãæ½åºãã¦ç§»å 65 var naviparts = $('#navi_parts'); 66 if (naviparts.children().length !== 0) { 67 $('.gadgets').append(naviparts); 68 } else { 69 $('.gadgets').remove(); 70 } 71 72 // Socialãã¿ã³ãå ¨ã¦é表示ãªãé ååé¤ 73 if ($('.social').children().length === 0) { 74 $('.social').remove(); 75 } 76 77 // facebookãã¼ã¸ã¦ã£ã¸ã§ããã®æåã«æ¹è¡ä»å 78 $('.social_widget_facebook_likebox').before('<br />'); 79 80 // ãããã«æ»ããã¿ã³å¶å¾¡ 81 var $pagetop = $('.sm_totop_button'); 82 $(window).on('scroll', function() { 83 if ($(this).scrollTop() > 100) { 84 $pagetop.css('visibility', 'visible'); 85 } else { 86 $pagetop.css('visibility', 'hidden'); 87 } 88 }); 89 90 $pagetop.on('click', function() { 91 $('body, html').animate({ scrollTop: 0 }, 500); 92 return false; 93 }); 94});
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.