1/* jshint strict: false */ 2/********************************************************/ 3/* document.write */ 4/********************************************************/ 5//document.write('<script src="https://maps.googleapis.com/maps/api/js?callback=initMap"></script>'); 6$(window).load(function() { 7 $('.BlkArticle__tableNormal').each(function(i, box) { 8 var maxHeight = 0; 9 $(box).find('.cellHeading span').each(function() { 10 if ($(this).height() > maxHeight) maxHeight = $(this).height(); 11 }); 12 $(box).find('.cellHeading span').height(maxHeight); 13 }); 14}); 15/************************************ 16BlkData js-blkDataFealthSlider 17************************************/ 18$(document).ready(function(){ 19 $('.js-blkDataFealthSlider').slick({ 20 slidesToShow: 3, 21 autoplay: true, 22 pauseOnFocus: false, 23 autoplaySpeed: 4000, 24 responsive: [ 25 { 26 breakpoint: 980, 27 settings: { 28 slidesToShow: 2 29 } 30 }, 31 { 32 breakpoint: 700, 33 settings: { 34 slidesToShow: 1 35 } 36 } 37 ] 38 }); 39 $('.js-blkFacilityFealthSlider').slick({ 40 infinite: true, 41 //dots:true, 42 slidesToShow: 1, 43 centerMode: true, //è¦ç´ ãä¸å¤®å¯ã 44 centerPadding:'0px', //両ãµã¤ãã®è¦ãã¦ããé¨åã®ãµã¤ãº 45 autoplay: true, 46 pauseOnFocus: false, 47 adaptiveHeight: false,//é«ããåºå® 48 responsive: [ 49 { 50 breakpoint: 980, 51 settings: { 52 centerPadding:'0px', 53 slidesToShow: 1 54 } 55 //}, 56 //{ 57 // breakpoint: 700, 58 // settings: { 59 // slidesToShow: 1 60 // } 61 } 62 ] 63 64 }); 65 $('.js-BlkVoiceFealthSlider').slick({ 66 infinite: true, 67 //dots:true, 68 slidesToShow: 4, 69 autoplay: true, 70 pauseOnFocus: false, 71 responsive: [ 72 { 73 breakpoint: 980, 74 settings: { 75 slidesToShow: 1 76 } 77 //}, 78 //{ 79 // breakpoint: 700, 80 // settings: { 81 // slidesToShow: 1 82 // } 83 } 84 ] 85 86 }); 87}); 88/************************************ 89BlkDepartment__list 90************************************/ 91$(document).ready(function () { 92 $('.BlkDepartmentDetail__list__item').hide(); 93 $('.BlkDepartmentDetail__list__item').eq(0).show(); 94 $('.BlkDepartment__list__item').eq(0).addClass('BlkDepartment__list__item--current'); 95 $('.BlkDepartment__list__item').each(function () { 96 $(this).on('click', function () { 97 var index = $('.BlkDepartment__list__item').index(this); 98 var targetTop = $('.BlkDepartment__list').offset().top; 99 $('html,body').animate({ 100 scrollTop: targetTop - 20 101 }, 800, 'easeOutQuart'); 102 //}, 400); 103 $('.BlkDepartment__list__item').removeClass('BlkDepartment__list__item--current'); 104 $(this).addClass('BlkDepartment__list__item--current'); 105 $('.BlkDepartmentDetail__list__item').hide(); 106 $('.BlkDepartmentDetail__list__item').eq(index).fadeIn().show(); 107 return false; 108 }); 109 }); 110}); 111/************************************ 112BlkDepartment__list sp 113************************************/ 114$(document).ready(function () { 115 $('.BlkDepartment__listSp__itemDetail').hide(); 116 $('.BlkDepartment__listSp__item').each(function () { 117 $(this).on('click', function () { 118 var index = $('.BlkDepartment__listSp__item').index(this); 119 if($(this).hasClass('BlkDepartment__listSp__item--current')){ 120 $(this).removeClass('BlkDepartment__listSp__item--current'); 121 $('.BlkDepartment__listSp__itemDetail').eq(index).slideToggle(); 122 }else { 123 $(this).addClass('BlkDepartment__listSp__item--current'); 124 $('.BlkDepartment__listSp__itemDetail').eq(index).slideToggle(); 125 } 126 return false; 127 }); 128 }); 129}); 130/************************************ 131BlkDepartment__list sp 132************************************/ 133$(document).ready(function () { 134 $('.BlkLocalDetailSp').hide(); 135 $('.BlkTabLocalSp__navList__item--lv1 .BlkTabLocalSp__navList__item__headline').each(function () { 136 $(this).on('click', function () { 137 var index = $('.BlkTabLocalSp__navList__item--lv1 .BlkTabLocalSp__navList__item__headline').index(this); 138 if($(this).hasClass('BlkTabLocalSp__navList__item__headline--current')){ 139 $(this).removeClass('BlkTabLocalSp__navList__item__headline--current'); 140 $('.BlkLocalDetailSp').eq(index).slideToggle(); 141 }else { 142 $(this).addClass('BlkTabLocalSp__navList__item__headline--current'); 143 $(this).nextAll().slideToggle(); 144 } 145 return false; 146 });
147 }); 148}); 149//spå¦ç§å é·ç§»æã®current表示 20190403 150$(document).ready(function () { 151 var url = window.location.pathname; 152 //console.log(url); 153 $('.BlkLocalDetailSp__item--lv3 .BlkLocalDetailSp__item a[href="'+url+'"]').parents('.BlkLocalDetailSp__item--lv2').addClass('BlkLocalDetailSp__item--lv2--current'); 154 $('.BlkLocalDetailSp__item--lv2--current').parent('.BlkLocalDetailSp').show(); 155 $('.BlkLocalDetailSp__item--lv2--current .BlkTabLocalSp__navList__item__headline').addClass('BlkTabLocalSp__navList__item__headline--current'); 156 $('.BlkLocalDetailSp__item--lv2--current .BlkLocalDetailSp').show(); 157}); 158/************************************ 159BlkTabGlobalHealth__navList 160************************************/ 161$(document).ready(function(){ 162 $('.BlkGlobalDetailHealth__item').hide(); 163 $('.BlkGlobalDetailHealth__item').removeClass('BlkTabGlobalHealth__navList__item--current'); 164 $('.BlkGlobalDetailHealth__item').eq(0).show(); 165 $('.BlkGlobalDetailHealth__item').removeClass('BlkTabGlobalHealth__navList__item--currentSp'); 166 $('.BlkTabGlobalHealth__navList__item').removeClass('BlkTabGlobalHealth__navList__item--current'); 167 $('.BlkTabGlobalHealth__navList__item').eq(0).addClass('BlkTabGlobalHealth__navList__item--current'); 168 var x = 980; 169 $('.BlkTabGlobalHealth__navList__item').on('click', function () { 170 var w = $(window).width(); 171 if (w <= x) { 172 //SP 173 var index = $('.BlkTabGlobalHealth__navList__item').index(this); 174 if($(this).hasClass('BlkTabGlobalHealth__navList__item--currentSp')){ 175 $(this).children('ul').slideToggle(); 176 $(this).removeClass('BlkTabGlobalHealth__navList__item--currentSp'); 177 }else { 178 $(this).children('ul').slideToggle(); 179 $(this).addClass('BlkTabGlobalHealth__navList__item--currentSp'); 180 } 181 } else { 182 //PC 183 $('.BlkTabGlobalHealth__navList__item ul').hide(); 184 $('.BlkTabGlobalHealth__navList__item').removeClass('BlkTabGlobalHealth__navList__item--currentSp'); 185 var index = $('.BlkTabGlobalHealth__navList__item').index(this); 186 if($(this).hasClass('BlkTabGlobalHealth__navList__item--current')){ 187 }else { 188 $('.BlkTabGlobalHealth__navList__item').removeClass('BlkTabGlobalHealth__navList__item--current'); 189 $(this).addClass('BlkTabGlobalHealth__navList__item--current'); 190 $('.BlkGlobalDetailHealth__item').hide(); 191 $('.BlkGlobalDetailHealth__item').eq(index).fadeIn().show(); 192 } 193 } 194 }); 195}); 196//PCå¦ç§å é·ç§»æã®current表示 20190403 197/*$(document).ready(function(){ 198 var url = window.location.pathname; 199 $('.BlkGlobalDetailHealth__item').hide(); 200 $('.BlkGlobalDetailHealth__item').removeClass('BlkTabGlobalHealth__navList__item--current'); 201 $('.BlkGlobalDetailHealth__item--detail a[href="'+url+'"]').parents('.BlkGlobalDetailHealth__item').addClass('BlkTabGlobalHealth__navList__item--current'); 202 $('.BlkGlobalDetailHealth__item--detail a[href="'+url+'"]').parents('.BlkGlobalDetailHealth__item').addClass('BlkGlobalDetailHealth__item--current'); 203 $('.BlkGlobalDetailHealth__item--detail a[href="'+url+'"]').parents('.BlkGlobalDetailHealth__item').show(); 204 var index = $('.BlkGlobalDetailHealth__item--current').index('.BlkGlobalDetailHealth li.BlkGlobalDetailHealth__item'); 205 206 $('.BlkTabGlobalHealth__navList__item').removeClass('BlkTabGlobalHealth__navList__item--current'); 207 $('.BlkTabGlobalHealth__navList__item').eq(index).addClass('BlkTabGlobalHealth__navList__item--current'); 208 if (index < 0) { 209 $('.BlkGlobalDetailHealth__item').eq(0).show(); 210 $('.BlkTabGlobalHealth__navList__item').eq(0).addClass('BlkTabGlobalHealth__navList__item--current'); 211 } 212}); */ 213/************************************ 214txt for sp 215************************************/ 216$(document).ready(function(){ 217 $('.BlkTitleFaculty__heading1 span.BlkTitleFaculty__txt').clone().insertAfter($('.BlkTitleFaculty__inner')); 218 $('.BlkMainFaculty__heading1 span.BlkMainFaculty__txt').clone().insertAfter($('.BlkMainFaculty__inner')); 219}); 220/************************************ 221modal 222************************************/ 223$(function(){ 224 //ããã¹ããªã³ã¯ãã¯ãªãã¯ããã 225 $(".modal-open").click(function(){ 226 //bodyå ã®æå¾ã«<div id="modal-bg"></div>ãæ¿å ¥ 227 $("body").append('<div id="modal-bg"></div>'); 228 //ç»é¢ä¸å¤®ãè¨ç®ãã颿°ãå®è¡ 229 modalResize(); 230 //ã¢ã¼ãã«ã¦ã£ã³ãã¦ã表示
231 $("#modal-bg").fadeIn(); 232 $(this).next(".modal-main").fadeIn(); 233 //$("#modal-bg,#modal-main-01").fadeIn(); 234 //ç»é¢ã®ã©ãããã¯ãªãã¯ãããã¢ã¼ãã«ãéãã 235 $("#modal-bg,.modal-main").click(function(){ 236 $(".modal-main,#modal-bg").fadeOut(function(){ 237 //æ¿å ¥ãã<div id="modal-bg"></div>ãåé¤ 238 $('#modal-bg').remove() ; 239 }); 240 }); 241 //ç»é¢ã®å·¦ä¸ããmodal-mainã®æ¨ªå¹ ã»é«ããå¼ãããã®å¤ã2ã§å²ãã¨ç»é¢ä¸å¤®ã®ä½ç½®ãè¨ç®ã§ãã¾ã 242 $(window).resize(modalResize); 243 function modalResize(){ 244 var w = $(window).width(); 245 var h = $(window).height(); 246 var cw = $(".modal-main").outerWidth(); 247 var ch = $(".modal-main").outerHeight(); 248 //åå¾ããå¤ãcssã«è¿½å ãã 249 $(".modal-main").css({ 250 "left": ((w - cw)/2) + "px", 251 "top": ((h - ch)/2) + "px" 252 }); 253 } 254 }); 255}); 256/************************************ 257BlkDepartment__list sp 258************************************/ 259$(document).ready(function () { 260 $('.BlkDepartment__listSp__itemDetail').hide(); 261 $('.BlkCurriculum__subject').each(function () { 262 $(this).on('click', function () { 263 var x = 980; 264 var w = $(window).width(); 265 if (w <= x) { 266 if($(this).hasClass('BlkCurriculum__subject--current')){ 267 $(this).removeClass('BlkCurriculum__subject--current'); 268 $(this).next().slideToggle(); 269 }else { 270 $(this).addClass('BlkCurriculum__subject--current'); 271 $(this).next().slideToggle(); 272 } 273 return false; 274 } 275 }); 276 }); 277}); 278/************************************ 279BlkMovie 280************************************/ 281jQuery(function ($) { 282 $.extend(true, $.magnificPopup.defaults, { 283 tClose: 'éãã', 284 tLoading: 'ãã¼ãä¸...', 285 gallery: { 286 tPrev: 'å㸠(å·¦ç¢å°ãã¼)', 287 tNext: '次㸠(å³ç¢å°ãã¼)', 288 tCounter: '%curr% / %total%' 289 } 290 }); 291 $('.video_image, .video_text').magnificPopup({ 292 delegate: 'a', 293 type: 'iframe', 294 iframe: { 295 markup: '<div class="mfp-iframe-scaler">' + 296 '<div class="mfp-close"></div>' + 297 '<iframe class="mfp-iframe" frameborder="0" allow="autoplay;" allowfullscreen></iframe>' + 298 '</div>' 299 }, 300 gallery: { 301 enabled: true 302 }, 303 callbacks: { 304 markupParse: function (template, values, item) { 305 values.title = item.el.attr('title'); 306 } 307 }, 308 /*disableOn: function() { 309 if( $(window).width() < 480 ) { 310 return false; 311 } 312 return true; 313 }*/ 314 }); 315}); 316/************************************ 317top slick 318************************************/ 319$(function(){ 320 $(".slider").slick({ 321 arrows: false, 322 autoplay: true, 323 autoplaySpeed: 5000, 324 speed: 2000, 325 fade: true 326 }); 327}); 328/************************************ 329Breadcrumb remove() 330************************************/ 331$(function(){ 332 $(".BlkBreadcrumbs__list__item.page_content.level_3").each(function(){ 333 var $lv2 = $(this).prev(".BlkBreadcrumbs__list__item.page_content.level_2"); 334 //console.log( $lv2.text() ); 335 $lv2.remove(); 336 }); 337 $(".BlkBreadcrumbs__list__item.post_content.level_3").each(function(){ 338 var $lv2 = $(this).prev(".BlkBreadcrumbs__list__item.level_2"); 339 //console.log( $lv2.text() ); 340 if( $lv2.text() == "ç ç©¶ææ" ){ 341 $lv2.find("a").attr('href',"/univ/faculty/medicine/research/"); 342 } 343 if( $lv2.text() == "åè³" ){ 344 $lv2.find("a").text("ãç¥ãã"); 345 $lv2.find("a").attr('href',"/univ/faculty/medicine/news/"); 346 } 347 }); 348 $(".BlkBreadcrumbs__list__item.page_content.staff-detail").prev().remove(); 349}); 350/************************************ 351page-numbers 352************************************/ 353$(function(){ 354 $(".page-numbers li").each(function(){ 355 var $li = $(this); 356 if( $li.children("a").hasClass("prev") ){ 357 $li.addClass("__back"); 358 $li.children("a").html('<img src="/univ/voice/images/prev_btn.png" alt="">'); 359 } else if( $li.children("a").hasClass("next") ){ 360 $li.addClass("__next"); 361 $li.children("a").html('<img src="/univ/voice/images/next_btn.png" alt="">'); 362 } else if( $li.children("span").hasClass("current") ){ 363 364 } else { 365 $li.addClass("next-link"); 366 } 367 }); 368}); 369/************************************ 370staff list search check 371************************************/ 372$(function(){ 373 if( $('form.s-all').length ){ 374 var $kanahead = ["a", "k", "s", "t", "n", "h", "m", "y", "r", "w"]; 375 $.each($kanahead, function($index, $key) { 376 if( $('a#'+$key+'[name='+$key+']').length == 0 ){ $('a.link-'+$key).attr("href",'javascript:void(0);').removeClass("arrow").addClass("link-none"); } 377 }) 378 } 379}); 380/************************************ 381æå®¤ãã¼ã¸ããè¿å¹´ã®ä¸»ãªæ¥ç¸¾ãã®ãªã¹ãã¢ã³ã¼ãã£ãªã³ãèªåä»ä¸ 382************************************/ 383$(function(){ 384 $('.js-accordion').each(function(){ 385 const $list = $(this); 386 const $lCnt = $list.find('li').length; 387 //console.log($lCnt+"è¡"); 388 if($lCnt > 9){ 389 const $plusHtml = $('<ol class="BlkArticle__listNumber u-mgt_15 txt-hide" start="6"></ol>'); 390 const $moreHtml = $('<div class="btn_more more"><p><button><span></span></button></p></div>'); 391 for(var $icnt=5;$icnt<$lCnt;$icnt++){ 392 $plusHtml.append( $list.children('li').eq(5) ); 393 } 394 $list.after($moreHtml); 395 $list.after($plusHtml); 396 } 397 }); 398}); 399/************************************ 400ãã£ã¨è¦ããã¿ã³ 401************************************/ 402$(function(){ 403 $(".more").on("click", function() { 404 $(this).toggleClass("on-click"); 405 $(this).prev(".txt-hide").slideToggle(800);
406 }); 407}); 408/************************************ 409ããã¼ãã¿ãã¡ãã¥ã¼ 410************************************/ 411$(function(){ 412 if( $('.BlkAnchorArea').length > 0 ){ 413 /* ã¢ã³ã«ã¼ä½ç½®ã®èª¿æ´ */ 414 var $sncPos = new Array(); 415 $('.anchorMenu a').each(function(){ 416 var $aid = $(this).attr('href'); 417 $($aid).addClass('sAnchor'); 418 if( $($aid).length > 0 ){ 419 $pos = $($aid).offset().top; 420 $sncPos.push({'name':$aid,'position':$pos}); 421 $(this).attr('data-pos',$pos); 422 } else { 423 $(this).parent().remove(); 424 } 425 }); 426 $sncPos.push({'name':'.BlkFooter','position':$('.BlkFooter').offset().top}); 427 $sncPos.sort(function(a, b) { return a.position - b.position; }); 428 $('.anchorMenu').addClass('column_' + $('.anchorMenu li').length); 429 $('.anchorMenu').addClass('active'); 430 //($sncPos); 431 /* ãã£ãã¯ã¹ã¡ãã¥ã¼ã®èª¿æ´ */ 432 var $am = $('.BlkAnchorArea'); 433 var $ws = $(window).scrollTop(); 434 var $lam = $am.offset().top; 435 $(window).resize(function(){ 436 $sncPos = new Array(); 437 $ws = $(window).scrollTop(); 438 $lam = $am.offset().top; 439 $('.anchorMenu a').each(function(){ 440 var $aid = $(this).attr('href'); 441 $pos = $($aid).offset().top; 442 $sncPos.push({'name':$aid,'position':$pos}); 443 $(this).attr('data-pos',$pos); 444 }); 445 $sncPos.push({'name':'.BlkFooter','position':$('.BlkFooter').offset().top}); 446 $sncPos.sort(function(a, b) { return a.position - b.position; }); 447 //console.log($sncPos); 448 }); 449 $(window).scroll(function(){ 450 $ws = $(window).scrollTop(); 451 //console.log($ws); 452 if( $ws < $lam ){ 453 $am.removeClass('fixed'); 454 } else { 455 $am.addClass('fixed'); 456 } 457 chkPos($ws); 458 }); 459 function chkPos( $position ){ 460 if (window.matchMedia("(max-width: 980px)").matches) { 461 var hheight = 56 + 60 + 10; 462 } else { 463 var hheight = 10; 464 } 465 if ( $('html.safari').length > 0 ) { 466 hheight = hheight + 80; 467 } 468 var $current = ''; 469 $sncPos.forEach(function(element){ 470 //console.log( element.name ); 471 if( $position >= element.position - hheight ){ 472 $current = element.name; 473 } 474 }); 475 $('.anchorMenu a').removeClass('current'); 476 $('.anchorMenu a[href="' + $current + '"]').addClass('current'); 477 } 478 $(".BlkAnchorArea a[href^='#']").click(function () { 479 var w = $(window).width(); 480 var x = 980; 481 var speed = 500; 482 var href = $(this).attr("href"); 483 var target = $(href == "#" || href == "" ? "html" : href); 484 if (window.matchMedia("(max-width: 980px)").matches) { 485 if ( $('html.safari').length > 0 ) { 486 var position = target.offset().top - 126; 487 //console.log('safari|iPhone|iPad :to ' + position + 'px'); 488 //alert('iPhone|iPad :to ' + position + 'px'); 489 } else { 490 var position = target.offset().top - 56; 491 } 492 //var position = target.offset().top - 56; 493 } else { 494 if ( $('html.safari').length > 0 ) { 495 var position = target.offset().top - 56 - 20; 496 //console.log('safari|iPhone|iPad :to ' + position + 'px'); 497 } else { 498 var position = target.offset().top; 499 } 500 } 501 $("body,html").animate({ scrollTop: position }, speed); 502 return false; 503 }); 504 } 505});
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.