1// Webã·ã©ãã¹ç¨ã«mpee.jsã®æµç¨ã»ä¿®æ£ç 2 3$.fn.extend({ 4 //------------------------------------- 5 // animate.css ããä¸è¨ã®ãããªè¨æ³ã§ç°¡åã«ä½¿ããããã«ãã 6 // $('#yourElement').animateCss('bounce'); 7 8 // ãåç §ã animate.cssã§CSS3ã¢ãã¡ã¼ã·ã§ã³ã追å 9 // http://daneden.github.io/animate.css/ 10 animateCss: function (animationName) { 11 var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 12 $(this).addClass('animated ' + animationName).one(animationEnd, function () { 13 $(this).removeClass('animated ' + animationName); 14 }); 15 } 16}); 17 18$(function () { 19 // Bootstrap tooltip 20 // ãã¼ã«ããããæå¹å 21 $('[data-toggle="tooltip"]').tooltip(); 22 23 // ã°ããããç¡ãã®ã§ã代ããã«ããããé ããã¿ã¤ãã³ã°ã§ã¹ã¯ãã¼ã«ãã¿ã³ã表示 24 // websyllabus/syllabus_template.xhtml 25 var syllabus_header = $('#websyllabus_header'); 26 var syllabus_header_offset = syllabus_header.offset(); 27 var button = $('.icon_scroll_top'); 28 29 $(window).ready(function () { 30 // ç»é¢ä¸é¨ã®æ¤ç´¢ãã¿ã³ã表示ãããããç»é¢ä¸é¨åºå®ã®æ¤ç´¢ãã¿ã³ã¨ãªã¢ãé表示 31 dispFixedSearchButton(); 32 }); 33 34 $(window).resize(function () { 35 // ç»é¢ä¸é¨ã®æ¤ç´¢ãã¿ã³ã表示ãããããç»é¢ä¸é¨åºå®ã®æ¤ç´¢ãã¿ã³ã¨ãªã¢ãé表示 36 dispFixedSearchButton(); 37 }); 38 39 $(window).scroll(function () { 40 // scrollTopï¼ã¹ã¯ãã¼ã«ããè·é¢ï¼ã¨ãTopããoffsetã¾ã§ã®è·é¢ãæ¯è¼ 41 if ($(window).scrollTop() > syllabus_header_offset.top) { 42 button.addClass('is_show'); 43 } else { 44 button.removeClass('is_show'); 45 } 46 // ç»é¢ä¸é¨ã®æ¤ç´¢ãã¿ã³ã表示ãããããç»é¢ä¸é¨åºå®ã®æ¤ç´¢ãã¿ã³ã¨ãªã¢ãé表示 47 dispFixedSearchButton(); 48 }); 49 50 // ãã¿ã³ãã¯ãªãã¯ã§ããã¼ã¸ãããã¸ã¹ã ã¼ãºã«ã¹ã¯ãã¼ã« 51 button.click(function () { 52 $('html,body').animate({scrollTop: 0}, 1000, 'easeOutExpo'); 53 }); 54}); 55 56// ç»é¢ä¸é¨ã®æ¤ç´¢ãã¿ã³ã表示ãããããç»é¢ä¸é¨åºå®ã®æ¤ç´¢ãã¿ã³ã¨ãªã¢ãé表示 57function dispFixedSearchButton() { 58 // ç»é¢ä¸é¨ã®æ¤ç´¢ãã¿ã³ï¼ã¦ã£ã³ãã¦ã®é«ãé¤ãï¼ã¨ã¹ã¯ãã¼ã«è·é¢ãæ¯è¼ 59 var search_button = $('.websyllabus_search_btn'); 60 var fixed_search_button = $('.websyllabus_search_fixed_footer'); 61 if (fixed_search_button.length) { 62 if ($(window).scrollTop() > search_button.offset().top - $(window).height() + 88) { 63 fixed_search_button.fadeOut('fast'); 64 } else { 65 fixed_search_button.fadeIn('fast'); 66 } 67 } 68} 69 70//è¡é¸æã§è©³ç´°ç»é¢ã¸ 71function loadData() { 72 $('.main_table tr').each(function () { 73 $(this).off('click'); 74 $(this).on('click', function (e) { 75 if ( 76 !$(e.target).is('a') && !$(e.target).is('button') && !$(e.target).is('button > span') && !$(e.target).is('.disabled')) { 77 var main_src = $(this).find("[data-mainbtn='true'] > button"); 78 main_src.click(); 79 } 80 }); 81 }); 82}
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.