PageSourceSearch

https://myportal.osakac.ac.jp/m/javax.faces.resource/websyllabus/w…p11-instance;jsessionidversion=2f6d:0?ln=js

js osakac.ac.jp collected 2026-09-24 09:40:53 UTC 3,394 bytes, 82 lines download raw bytes

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.