1$(function () { 2 'use strict' 3 4 // custommenu 5 var menu = $('#side_column .custommenu') 6 menu.find('span').each(function () { 7 // ä¸å±¤ãåå¨ããã° 8 var self = $(this) 9 var child = $(this).find('> div') 10 if (child.length) { 11 var ck = $('<div class="ck" />') 12 self.css('cursor', 'pointer').prepend(ck) 13 // aã¿ã°ã®ã¾ãããã¯ãªãã¯ã§éé 14 self.click(function () { 15 ck.toggleClass('open') 16 child.slideToggle('fast') 17 return false 18 }) 19 // ä¸å±¤ã¯ä¼æãããªãï¼aã¿ã°ãé·ç§»ããããã«ï¼ 20 self.find("a,div:not('.ck')").click(function (e) { 21 e.stopPropagation() 22 }) 23 } 24 }) 25 26 // pageScroller 27 if (typeof $.fn.pageScroller === 'function') { 28 $('.pagetop').find('a').pageScroller() 29 } 30 31 // searchBox 32 var gnavi = $('#gnavi') 33 var searchBox = $('#searchBox') 34 var overlay = $('#overlay') 35 36 $('.btnSearchBox').click(function () { 37 // èæ¯åºå® 38 $('body').addClass('fixed') 39 40 var windowWidth = (window.innerWidth - searchBox.width() - 60) / 2 41 searchBox.show().css({ 42 top: $(window).scrollTop() + 60, 43 left: windowWidth 44 }) 45 overlay.show() 46 return false 47 }) 48 49 searchBox.find('.close a').click(function () { 50 // èæ¯åºå®è§£é¤ 51 $('body').removeClass('fixed') 52 searchBox.removeAttr('style').hide() 53 overlay.hide() 54 return false 55 }) 56 57 $('#overlay').click(function () { 58 // èæ¯åºå®è§£é¤ 59 $('body').removeClass('fixed') 60 }) 61 62 // 詳細æ¤ç´¢ ç¾å¨ã®æ¡ä»¶ãã¯ãªã¢ ãã¿ã³ 63 searchBox.find('.search_clear').click(function () { 64 // ããã¹ããã¸ã£ã³ã«ãã·ãªã¼ãºãã«ãã¦ã³ãæªé¸æã¸ 65 searchBox.find('input[type=text], textarea, [name=search_genre],[name=search_series]').val('') 66 67 searchBox.find('[name=amount],[name=order]').each(function () { 68 // 表示件æ°ã並ã³é 㯠ãã«ãã¦ã³ã®ä¸çªä¸ã鏿 69 $(this).find('option').eq(0).prop('selected', true) 70 }) 71 // 試ãèªã¿ã®ãã§ã㯠72 var trial = searchBox.find('#searchBox_trial_status') 73 if (trial.length) { 74 trial.prop('checked', false) 75 } 76 // æ¤ç´¢ç¯å²é¸æ 77 var format1 = searchBox.find('#searchBox_format1') 78 if (format1.length) { 79 format1.prop('checked', true) 80 } 81 return false 82 }) 83 84 overlay.click(function () { 85 searchBox.removeAttr('style').hide() 86 overlay.hide() 87 return false 88 }) 89 90 // slideType1 91 var slideType1 = $('.slideType1') 92 if (slideType1.length > 0) { 93 slideType1.each(function () { 94 var ul = $(this).find('ul') 95 if (ul.children().length >= 6) { 96 var slider = ul.bxSlider({ 97 pager: false, 98 responsive: false, 99 auto: true, 100 pause: 6000, 101 autoHover: true, 102 moveSlides: 1, 103 minSlides: 6, 104 maxSlides: 6, 105 prevText: '', 106 nextText: '' 107 }) 108 109 var ttlHeight = $('.ttlWrap').height() 110 var parentHeight = slideType1.height() - ttlHeight 111 // console.log(parentHeight) 112 $('.bx-controls-direction a').css({ 113 top: parentHeight / 2 + 'px' 114 }) 115 } 116 }) 117 } 118 119 // slideType2 120 // var slideType2 = $(".slideType2") 121 // if(slideType2.length > 0){ 122 // slideType2.each(function(){ 123 // var ul = $(this).find("ul") 124 // if(ul.children().length >= 4){ 125 // var slider = ul.bxSlider({ 126 // pager: false, 127 // responsive: false, 128 // auto: true, 129 // pause: 6000, 130 // prevText:"", 131 // nextText:"", 132 // moveSlides: 1, 133 // minSlides: 4, 134 // maxSlides: 4, 135 // }) 136 137 // var ttlHeight = $('.ttlWrap').height() 138 // var parentHeight = slideType2.height() - ttlHeight 139 // // console.log(parentHeight) 140 // $('.bx-controls-direction a').css({ 141 // top : parentHeight/2 + 'px', 142 // }) 143 // } 144 // }) 145 // } 146 147 // sub 148 var sub = $('#sub') 149 sub.find('.switch').each(function () { 150 var ul = $(this).parents('li').first().children('ul') 151 if (ul.length > 0 && ul.children('li:not(.none)').length > 0) { 152 $(this).css('visibility', 'visible') 153 } 154 }) 155 156 var defaultOpen = sub.find('.defaultOpen') 157 defaultOpen.find('ul').show() 158 defaultOpen.parents('ul').show() 159 160 sub.find('.switch').click(function () { 161 var ul = $(this).parents('li').first().children('ul') 162 if (ul.is(':visible')) { 163 ul.slideUp('fast') 164 }else { 165 ul.slideDown('fast') 166 } 167 }) 168 169 // ãµã¤ãã«ã©ã ã¸ã£ã³ã«ãã·ãªã¼ãº éé
170 const sideMenuBtn = $('#side_column .ttl') 171 if (sideMenuBtn.length) { 172 sideMenuBtn.click(el => { 173 const sidebox = $(el.target).closest('.sidebox') 174 const menu = sidebox.find('.custommenu') 175 menu.stop().slideToggle('fast') 176 sidebox.toggleClass('open') 177 sidebox.toggleClass('close') 178 }) 179 } 180 181 // ã¹ããã¡ãã¥ã¼ 182 var gnavi = $('#gnavi') 183 var spbtn = gnavi.find('.wrap .btn') 184 spbtn.click(function () { 185 if (!gnavi.hasClass('open')) { 186 // ã¡ãã¥ã¼éã 187 gnavi.addClass('open') 188 } else { 189 // ã¡ãã¥ã¼éãã 190 gnavi.removeClass('open') 191 } 192 }) 193 gnavi.on('click', function (e) { 194 if (gnavi.hasClass('open')) { 195 if ( 196 !$.contains($('#gnavi .wrap')[0], e.target) 197 ) { 198 // ã¡ãã¥ã¼éãã 199 gnavi.removeClass('open') 200 } 201 } 202 }) 203}) 204 205// $(window).load(function(){ 206// $(".listType1 .image").tile(5) 207// $(".listType1 .txt").tile(5) 208// $(".listType1 .btns").tile(5) 209// // $(".custommenu .submenublock").tile() 210 211// $(".bookWrap ul.ro .image").tile(3) 212// $(".bookWrap ul.ro .txt").tile(3) 213// $(".bookWrap ul.ro li").tile(3) 214 215// $(".slideType1.genre ul.ro .image").tile() 216// $(".slideType1.genre ul.ro .txt").tile() 217// $(".slideType1.genre ul.ro li").tile() 218// $(".slideType1.recommend ul.ro .image").tile() 219// $(".slideType1.recommend ul.ro .txt").tile() 220// $(".slideType1.recommend ul.ro li").tile() 221// $(".slideType2.relateve ul.ro .image").tile() 222// $(".slideType2.relateve ul.ro .txt").tile() 223// $(".slideType2.relateve ul.ro li").tile() 224// $(".slideType2.sectionType1 ul.ro .image").tile() 225// $(".slideType2.sectionType1 ul.ro .txt").tile() 226// $(".slideType2.sectionType1 ul.ro li").tile() 227// })
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.