PageSourceSearch

https://www.nttdata-tokai.co.jp/common/assets/js/ndb-custom.js

js nttdata-tokai.co.jp collected 2026-10-04 13:31:25 UTC 1,305 bytes, 41 lines download raw bytes

1/*---------------------------------
2 // NDB カスタム Add 2021/02/05
3 ---------------------------------*/
4(function (window, $) {
5  'use strict';
6
7  $(function () {
8    // パンくずリストを div 内に移動する
9    $('.ndb-breadcrumb > .c-page-header__breadcrumb').prependTo('.c-page-header');
10
11    // タイルのリンク領域を全体に変更
12    var $targets = $('.ndb-content .c-screen-image-tile__item, .ndb-content .c-image-tile__item');
13    $targets.css('cursor', 'pointer');
14    $targets.on('click', function (e) {
15      e.preventDefault();
16      var $link = $(this).find('a').eq(0);
17      if ($link.attr('target') === '_blank') {
18        window.open($link.attr('href'));
19        return false;
20      }
21      window.location.href = $link.attr('href');
22    });
23
24    // グローバルナビ現在地表示
25    var pageURL = location.pathname,
26      pageURLArr = pageURL.split('/'),
27      pageURLArrCategory = pageURLArr[1];
28
29    $('.l-header-gnav > ul > li > a').each(function (i, v) {
30      var selfhref = $(v).attr('href'),
31        hrefArr = selfhref.split('/'),
32        hrefArrCategory = hrefArr[1];
33
34      if (pageURLArrCategory === hrefArrCategory) {
35        $(v).parent().addClass('current');
36      }
37    });
38
39  });
40
41})(window, jQuery);

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.