PageSourceSearch

https://mangapedia.com/js/nword.js?20260929155630

js mangapedia.com collected 2026-10-02 14:48:07 UTC 8,330 bytes, 247 lines download raw bytes

1var modalSpace;
2var modalImage = function(obj) {
3    var imgW,imgH;
4    $('body').prepend('<div id="modal"><div class="cont"><div class="view"><span class="inner"><span class="close"></span></span><img /></div></div></div>');
5    $(window).bind('load resize',function(){
6        imgW = $('#modal img').width();
7        imgH = $('#modal img').height();
8        $('#modal .inner').css({"width": imgW+modalSpace*2});
9        $('#modal img,#modal .inner').css({"margin-top": -imgH/2-modalSpace});
10    });
11    $('#modal').click(function(){
12        if(!($('#modal img').hasClass('hover'))){
13            $('#modal').fadeOut();
14        }
15        return false;
16    });
17        $('#modal img').mouseover(function(){
18    $(this).addClass('hover');
19    }).mouseout(function(){
20        $(this).removeClass('hover');
21    });
22    $(obj).mouseover(function(){
23        $(this).addClass('hover');
24    }).mouseout(function(){
25        $(this).removeClass('hover');
26    }).click(function(){
27        var url = $('a',this).attr('href');
28        if (url != undefined && url != '#' && url != '') return;
29
30        url = $('a',this).data('image-url');
31        var img = new Image();
32        img.onload = function () {
33        $('#modal img').attr({src:url});
34        $('#modal,#modalMask2').fadeIn();
35        imgW = $('#modal img').width();
36        imgH = $('#modal img').height();
37        $('#modal .inner').css({"width": imgW+modalSpace*2});
38            $('#modal img,#modal .inner').css({"margin-top": -imgH/2-modalSpace});
39        };
40        img.src = url + "?" + $.now();
41        return false;
42    });
43}
44var imageList = function(obj,winW,winH) {
45    $(obj).find('img').each(function(i, val) {
46        var obj = $(this);
47        var img = new Image();
48        img.onload = function(){
49            var imgW = this.width;
50            var imgH = this.height;
51            var scaleW = winW / imgW;
52            var scaleH = winH / imgH;
53            var fixScale = Math.max(scaleW, scaleH);
54            var setW = imgW * fixScale;
55            var setH = imgH * fixScale;
56            var moveX = Math.floor((winW - setW) / 2);
57            var moveY = Math.floor((winH - setH) / 2);
58            if (moveX < 0) moveX = 0;
59            if (moveY < 0) moveY = 0;
60            obj.css({
61                'max-width': winW,
62                'max-height': winH,
63                'left' : 0,
64                'top' : 0,
65                // MANGAPEDIA-2051
66//                 'width': setW,
67//                 'height': setH,
68//                 'left' : moveX,
69//                 'top' : moveY,
70            });
71        }
72        img.src = obj.attr('src');
73    });
74}
75var positionBox = function() {
76    $('.posiBox').wrapInner('<span></span>');
77    $('.posiBox').prepend('<a href="#">...</a>');
78    $('.posiBox span').hide();
79    $('.posiBox a').click(function(){
80        $(this).hide();
81        $(this).closest('.posiBox').find('span').show();
82        return false;
83    });
84    $('.posiBox span').click(function(){
85        $(this).hide();
86        $(this).closest('.posiBox').find('a').show();
87        return false;
88    });
89}
90var localAnchors = function() {
91    $('article').find('section').each(function(i, val) {
92        $(this).attr('id', 'SCT'+ (i+1));
93        $('h2',this).prepend('<ul><li class="next"><a href="#SCT'+(i+2)+'"><img src="img/to_next_h.png" alt="" width="32" height="32"></a></li><li class="prev"><a href="#SCT'+(i)+'"><img src="img/to_pre_h.png" alt="" width="32" height="32"></a></li></ul>');
94        $('h2 li a',this).click(function(){
95            $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top - 60 }, 500,'swing');
96            return false;
97        });
98    });
99}
100var googlemap = function() {
101    var flagIcon_front = {
102        url : 'img/mp_pin_w_shadow.png',
103        scaledSize : new google.maps.Size(54, 58)
104    }
105    var latlng = new google.maps.LatLng(36.313362,140.5748883);
106    var myOptions = {
107        zoom: 15,
108        center: latlng,
109        mapTypeControl: true,
110        streetViewControl: true,
111        scrollwheel: false,
112        mapTypeId: google.maps.MapTypeId.ROADMAP
113    };
114    var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
115    var markerOptions = {
116        position: latlng,
117        map: map,
118        icon: flagIcon_front
119    };
120    var Accmarker = new google.maps.Marker(markerOptions);
121}
122var anchorShow = true;
123var spBottomBar = 700;
124var anchorTopLink = function() {
125  var i = $(window).scrollTop();
126  if ( i >= spBottomBar ) {
127    if(anchorShow){
128      $('#anchorTop').fadeIn();
129      anchorShow = false;
130    }
131  } else {
132    if(!(anchorShow)){
133      $('#anchorTop').fadeOut();
134      anchorShow = true;
135    }
136  }
137}
138var sideListLink = function() {
139    var windowWidth = (!(window.innerWidth)) ? document.documentElement.clientWidth : window.innerWidth;
140    var fixedHeight = 70;
141    var off = $('article').offset().top;
142    var i = $(window).scrollTop() + fixedHeight;
143    var p = 769;
144    if(windowWidth >= p){
145        $('.socialList').show();
146        $('.keywordList').show();
147        if (i > off) {
148            $('.socialList .block').css('position', 'fixed');
149            $('.socialList .block').css('top', fixedHeight);
150            $('.keywordList .block').css('position', 'fixed');
151            $('.keywordList .block').css('top', fixedHeight);
152        } else {
153            $('.socialList .block').css('position', '');
154            $('.socialList .block').css('top', '');
155            $('.keywordList .block').css('position', '');
156            $('.keywordList .block').css('top', '');
157        }
158    } else {
159            $('.socialList .block').css('position', '');
160            $('.socialList .block').css('top', '');
161            $('.keywordList .block').css('position', '');
162            $('.keywordList .block').css('top', '');
163        if (i > spBottomBar) {
164            $('.socialList').fadeIn('fast');
165        } else {
166            $('.socialList').fadeOut('fast');
167        }
168    }
169}
170var sideListAction = function() {
171  $('.socialList,.keywordList').mouseover(function(){
172    $(this).addClass('hover');
173  });
174  $('.socialList,.keywordList').mouseout(function(){
175    $(this).removeClass('hover');
176  });
177}
178var windowWidth,windowHeight;
179$(function() {
180    var contOpen = false;
181    var _contOpen;
182    $(window).bind('load resize',function(){
183        windowWidth = (!(window.innerWidth)) ? document.documentElement.clientWidth : window.innerWidth;
184        windowHeight = (!(window.innerHeight)) ? document.documentElement.clientHeight : window.innerHeight;
185        var p = 769;
186        if(windowWidth >= p){
187            contOpen = false;
188            if(contOpen != _contOpen){
189                $('article .cont').show();
190                $('article h2').removeClass('open');
191            }
192            _contOpen = contOpen;
193            modalSpace = 50;
194        } else {
195            contOpen = true;
196            if(contOpen != _contOpen){
197                $('article section h2').addClass('open');
198            }
199            _contOpen = contOpen;
200            modalSpace = 20;
201        }
202    });
203    $('.follow .twitter a').on('click', function(evt) {
204        window.open(this.href, '', 'width=600, height=600');
205        return false;
206    });
207    $('article h2').click(function(){
208    if (contOpen){
209        $(this).toggleClass('open');
210            if($(this).hasClass('open')){
211                $(this).closest('section').find('.cont').slideDown();
212            } else {
213                $(this).closest('section').find('.cont').slideUp();
214            }
215        }
216    return false;
217    });
218    sideListAction();
219    $(window).bind('resize scroll load',function(){
220        sideListLink();
221        anchorTopLink();
222    });
223    modalImage('#keyBox .gallery li, .imageColumn1 .image, .imageColumn2 .image');
224    imageList('.gallery',80,80);
225    imageList('.characterList',120,120);
226    imageList('.imageColumn2',420,250);
227    imageList('.mapBlock',300,300);
228    positionBox();
229    localAnchors();
230    //googlemap();
231});
232var slider = null;
233$(document).ready(function(){
234  slider = $('.gallery ul').bxSlider({
235        responsive: true,
236        controls: true,
237        pager: false,
238        infiniteLoop: false,
239        hideControlOnEnd: true,
240        auto: false,
241        slideMargin: 1,
242        slideWidth: 80,
243        minSlides: 1,
244        maxSlides: 11,
245        moveSlides: 1
246  });
247});

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.