1/* ------------------------------------------------------------------------- 2 3 CUBE.common 4 5 ãµã¤ãå ã§å ±éã®ã¹ã¯ãªãããå®ç¾© 6 â»jQueryå¿ é 7 2017/04 CUBE 8 9------------------------------------------------------------------------- */ 10 11// ã°ãã¼ãã«åå空éå®ç¾© 12var CUBE; 13if (!CUBE) CUBE = {}; 14if (!CUBE.common) CUBE.common = {}; 15 16(function (){ 17 // ã°ãã¼ãã«åå空éãªãã¸ã§ã¯ãããã¼ã«ã«ãªãã¸ã§ã¯ãã«ç½®ãæã 18 var ns = CUBE.common; 19 20 21 /* ----------------------------------------------------- 22 pageTopSet ãã¼ã¸ããã表示ä½ç½® 23 ----------------------------------------------------- */ 24 ns.pageTopSet = function() { 25 $('.page_top').hide(); 26 $(window).scroll(function () { 27 if($(window).scrollTop() > 300) { 28 $('.page_top').fadeIn(500); 29 } else { 30 $('.page_top').fadeOut(500); 31 } 32 }); 33 } 34 35 /* ----------------------------------------------------- 36 scrollSet ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 37 ----------------------------------------------------- */ 38 ns.scrollSet = function() { 39 $('a[href^="#"]').click(function() { 40 // ã¹ã¯ãã¼ã«ã®é度 41 var speed = 400; // ããªç§ 42 // ã¢ã³ã«ã¼ã®å¤åå¾ 43 var href= $(this).attr("href"); 44 // ç§»åå ãåå¾ 45 var target = $(href == "#" || href == "" ? 'html' : href); 46 // ç§»åå ãæ°å¤ã§åå¾ 47 var position = target.offset().top; 48 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 49 $('body,html').animate({scrollTop:position}, speed, 'swing'); 50 return false; 51 }); 52 } 53 54})(); 55 56 57$(function(){ 58 59 CUBE.common.pageTopSet(); 60 CUBE.common.scrollSet(); 61 62}); 63 64/* ----------------------------------------------------- 65ãµã¤ããã¼ ã¢ã¼ã«ã¤ããããããã¦ã³ 66----------------------------------------------------- */ 67$(function () { 68 $(".months_list").hide(); 69 $(".year_head").click(function () { 70 $(this).next("ul").slideToggle(); 71 $(this).toggleClass("open"); 72 }); 73}); 74 75 76/* ----------------------------------------------------- 77SPããã¯ã¼ãã 78----------------------------------------------------- */ 79$(function() { 80 $('.nav_toggle').click(function() { 81 $('.site_header').toggleClass('nav_open'); 82 $('html').toggleClass('nav_bg'); 83 }); 84 if (window.matchMedia('(min-width: 961px)').matches) { 85 $('.global_nav').css('display', 'block'); 86 } 87}); 88$(window).on('load resize', function() { 89 $('html').removeClass('nav_bg'); 90 $('.site_header').removeClass('nav_open'); 91}); 92 93 94/* ----------------------------------------------------- 95AOS 96----------------------------------------------------- */ 97$(function() { 98 AOS.init(); 99}); 100 101 102/* ----------------------------------------------------- 103Object fit image 104----------------------------------------------------- */ 105$(function() { 106 objectFitImages(".ofi img"); 107}); 108 109 110/* ----------------------------------------------------- 111form validation 112----------------------------------------------------- */ 113// $(function () { 114// $('#form').validationEngine({ promptPosition: 'topLeft' }); 115// }); 116 117/* ----------------------------------------------------- 118target blank 119----------------------------------------------------- */ 120$(function() { 121 $("a[href*='.pdf']").attr("target","_blank"); 122 $("a[href*='.doc']").attr("target","_blank"); 123 $("a[href*='.xls']").attr("target","_blank"); 124 $("a[href^='http']:not([target])").each(function() { 125 if (!this.href.match(new RegExp("^(#|\/|(https?:\/\/" + location.hostname + "))"))) { 126 $(this).attr('target', '_blank'); 127 }//if 128 }); 129}); 130 131/* ----------------------------------------------------- 132accordion 133----------------------------------------------------- */ 134$(function () { 135 //éããã¾ã¾pattern 136 // $(".accordion").hide(); 137 // $(".click_btn").click(function () { 138 // $(this).next(".accordion").slideToggle(); 139 // $(this).toggleClass("open"); 140 // }); 141 //ä»ãéããpattern 142 $(".accordion").hide(); 143 $(".open").next('.accordion').show(); 144 $(".click_btn").click(function () { 145 $(this).next('.accordion').slideToggle(400).siblings('.accordion').slide
145Up(400); 146 $(this).siblings('.click_btn').removeClass('open'); 147 $(this).toggleClass('open'); 148 }); 149}); 150 151 152/* ----------------------------------------------------- 153MW WP FOME disabled SET 154----------------------------------------------------- */ 155// $(function () { 156// var childLen = $("body.cucina .radio_btn01").children('.mwform-checkbox-field').length; 157// var textSearch = 'æºå¸'; 158// for (i = 1; i <= childLen; i++) { 159// var getText = 'body.cucina #select_course-' + i + '+.mwform-checkbox-field-text' 160// var textMsg = $(getText).text(); 161// if( textMsg.indexOf(textSearch) !== -1){ 162// var setDisabled='body.cucina #select_course-' + i; 163// $(setDisabled).prop('disabled', true); 164// } 165// } 166// }); 167 168/* ----------------------------------------------------- 169MW WP FOME separator "<br>"->"<br>" 170----------------------------------------------------- */ 171$(function () { 172 var textMsg = $("body.cucina .mw_wp_form_confirm .radio_btn01").html(); 173 if( textMsg !== undefined){ 174 var result = textMsg.replace(/<br>/g, "<br>"); 175 $("body.cucina .mw_wp_form_confirm .radio_btn01").html(result); 176 } 177}); 178 179 /* ----------------------------------------------------- 180 MW WP FOME é·ç§»æã®ã¹ã¯ãã¼ã« 181 ----------------------------------------------------- */ 182// $(function () { 183// $('body.cucina btn_return').on('submit',function(){ 184// var scroll_top = $(window).scrollTop(); 185// $('input.scroll_top',this).prop('value',scroll_top); 186// $('body.cucina').on('load',function(){ 187// //ãã¼ãæã«é ããã£ã¼ã«ãããåå¾ããå¤ã§ä½ç½®ãã¹ã¯ãã¼ã« 188// $(window).scrollTop("<?php echo @$_REQUEST['scroll_top']; ?>"); 189// }); 190// }); 191// }); 192// $(function () { 193// $('body.complete').on('load',function(){ 194// $('body,html').scrollTop(0); 195// }); 196// });
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.