1var lh = ""; 2lh = location.href; 3if (lh.match(/dcmsadm/)) {} else { 4 $(document).ready(function () { 5 $('<div id="pageTop"></div>').appendTo('body'); 6 //page top 7 var topBtn = $('#pageTop'); 8 topBtn.click(function () { 9 $('body,html').animate({ 10 scrollTop: 0 11 }, 500); 12 return false; 13 }); 14 // #ã§å§ã¾ãaè¦ç´ ãã¯ãªãã¯ããå ´åã«å¦çï¼"#"âããã«ã¯ã©ã¼ãã³ã·ã§ã³ã§å²ãã®ãå¿ããã«ãå¿ããã¨jQueryã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯åããªãããï¼ 15 $('a[href^="#"]').click(function(){ 16 var adjust = $('header').innerHeight(); 17 var speed = 500; 18 var href= $(this).attr("href"); 19 var target = $(href == "#" || href == "" ? 'html' : href); 20 var position = target.offset().top - adjust * 1.5; 21 $('body,html').animate({scrollTop:position}, speed, 'swing'); 22 return false; 23 }); 24 if (navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)) { 25 $(function() { 26 $('.js--tel').each(function() { 27 var str = $(this).html(); 28 if ($(this).children().is('img')) { 29 $(this).html($('<a>').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>')); 30 } else { 31 $(this).html($('<a>').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>')); 32 } 33 }); 34 $('body').addClass('js--sp-body'); 35 }); 36 } 37 var agent = window.navigator.userAgent.toLowerCase(); 38 var ipad = agent.indexOf('ipad') > -1 || agent.indexOf('macintosh') > -1 && 'ontouchend' in document; 39 if(ipad == true){ 40 $(function() { 41 $('.js--tel').each(function() { 42 var str = $(this).html(); 43 if ($(this).children().is('img')) { 44 $(this).html($('<a>').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>')); 45 } else { 46 $(this).html($('<a>').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>')); 47 } 48 }); 49 $('body').addClass('js--sp-body'); 50 }); 51 }else{ 52 } 53 54 55 56 $('#pagetitle-area').insertBefore('#locator'); 57 $('.parts-list--news').each(function () { 58 var label = $(this).find('.parts-label--line'); 59 $(label).insertBefore($(this).find('.conArea a')); 60 }); 61 62 if ($('.case-list-title').index() > -1) { 63 console.log('test'); 64 $('.case-list-title span').each(function () { 65 var titleClass = $(this).attr('class'); 66 console.log(titleClass); 67 if (titleClass.indexOf('case-list-subtitle') > -1) { 68 $(this).parents('.case-list-title').addClass('subtitle-is-active'); 69 } 70 }); 71 } 72 73 if ($('.mH').index() > -1) { 74 $('.mH').matchHeight(); 75 } 76 if ($('.anchor-link-item a').index() > -1) { 77 $('.anchor-link-item a').matchHeight(); 78 } 79 if ($('.bl').index() > -1 || $('.case-list-title').index() > -1 || $('.case-swiper-slide').index() > -1) { 80 biggerLink('.bl'); 81 biggerLink('.case-list-title'); 82 biggerLink('.case-swiper-slide'); 83 } 84 if ($('.case-swiper').index() > -1) { 85 var caseSwiper = new Swiper('.case-swiper', { 86 loop: true, 87 slidesPerView: 1, 88 spaceBetween: 20, 89 speed: 2000, 90 navigation: { 91 nextEl: ".swiper-button-next", 92 prevEl: ".swiper-button-prev", 93 }, 94 pagination: { 95 el: '.case-swiper-pagination', 96 type: 'bullets', 97 clickable: true, 98 }, 99 breakpoints: { 100 768: { 101 slidesPerView: 2, 102 }, 103 1024: { 104 slidesPerView: 3, 105 }, 106 }, 107 }); 108 } 109 110 if ($('.solution-swiper').index() > -1) { 111 var caseSwiper = new Swiper('.solution-swiper', { 112 loop: true, 113 slidesPerView: 1, 114 spaceBetween: 20, 115 speed: 2000, 116 navigation: { 117 nextEl: ".swiper-button-next", 118 prevEl: ".swiper-button-prev", 119 }, 120 pagination: { 121 el: '.solution-swiper-pagination', 122 type: 'bullets', 123 clickable: true, 124 }, 125 breakpoints: { 126 768: { 127 slidesPerView: 2, 128 spaceBetween: 40, 129 }, 130 1024: { 131 slidesPerView: 3, 132 spaceBetween: 40, 133 }, 134 }, 135 }); 136 } 137 138 if ($('.case-swiper').index() > -1 || $('.solution-swiper').index() > -1) { 139 $('.swiper-button').insertBefore('.swiper-container'); 140 $('.swiper-button').insertBefore('.swiper-container'); 141 } 142 143 function db() { 144 const load = {}; 145 load.area = $('#search-box'); 146 load.url = '/showcasesearch/search #formgrid1col1'; 147 load.area.load(load.url, function () { 148 $('.search-box-btn').click(function () { 149 $('.search-box-accordion').slideToggle(500); 150 $(this).toggleClass('active'); 151 }); 152 153 if (document.querySelector(".search-submit-btn")) { 154 document.querySelector(".search-submit-btn").closest("form").onsubmit = () => { 155 return false; 156 }; 157 document.querySelector(".search-submit-btn button").addEventListener("click", () => { 158 console.log('searchsubmit') 159 searchsubmit(); 160 });
161 setCheckBox(); 162 } 163 164 function setCheckBox() { 165 document.querySelectorAll("input[name^=ible-Service]").forEach((el) => { 166 if (el.value) { 167 let name = el.name; 168 value = name.replace("ible-Service", ""); 169 document.querySelectorAll(".search-service-check-box input[value='" + value + "']").forEach((el) => (el.checked = true)); 170 } 171 }); 172 document.querySelectorAll("input[name^=ible-Keyword]").forEach((el) => { 173 if (el.value) { 174 let name = el.name; 175 value = name.replace("ible-Keyword", ""); 176 document.querySelectorAll(".search-keyword-check-box input[value='" + value + "']").forEach((el) => (el.checked = true)); 177 } 178 }); 179 } 180 181 function searchsubmit() { 182 let service_flag = 0; 183 console.log('searchsubmit') 184 document.querySelectorAll(".search-service-check-box input[type=checkbox]").forEach((el) => { 185 let i = el.value; 186 let checked = document.querySelectorAll('.search-service-check-box input[value="' + i + '"]:checked').length; 187 console.info(checked); 188 el.disabled = true; 189 if (document.querySelector("input[name=ible-Service" + i + "]")) document.querySelector("input[name=ible-Service" + i + "]").value = checked ? "1" : null; 190 if (checked) service_flag = 1; 191 }); 192 193 let keyword_flag = 0; 194 document.querySelectorAll(".search-keyword-check-box").forEach((els) => { 195 els.querySelectorAll("input[type=checkbox]").forEach((el) => { 196 let i = el.value; 197 let checked = els.querySelectorAll('input[value="' + i + '"]:checked').length; 198 console.info(checked); 199 el.disabled = true; 200 if (document.querySelector("input[name=ible-Keyword" + i + "]")) document.querySelector("input[name=ible-Keyword" + i + "]").value = checked ? "1" : null; 201 if (checked) keyword_flag = 1; 202 }); 203 }); 204 205 if (service_flag + keyword_flag >= 2) { 206 document.querySelector("input[name=ible-Keyword00]").value = "1"; 207 } else { 208 document.querySelector("input[name=ible-Keyword00]").value = null; 209 } 210 211 const form = document.querySelector(".search-service-input-box").closest("form"); 212 document.querySelectorAll('[name="ible-checkbox1[]"]:checked').forEach((el) => { 213 let name = el.name; 214 let value = el.value; 215 let input = document.createElement("input"); 216 input.type = "hidden"; 217 input.name = name; 218 input.value = value; 219 form.appendChild(input); 220 el.disabled = true; 221 }); 222 223 form.submit(); 224 } 225 }) 226 } 227 228 db(); 229 230 $(window).on('load resize', function () { 231 232 var w = document.documentElement.clientWidth; 233 var headerH = $('header').innerHeight(); 234 var footerT = $('footer').offset().top - $(window).height(); 235 236 $(window).on('scroll', function () { 237 scrollDirection(); 238 }); 239 $('body').on('touchmove', function () { 240 scrollDirection(); 241 }); 242 243 var startPos = 0, 244 newScrollPoint = 0; 245 246 function scrollDirection() { 247 newScrollPoint = $(window).scrollTop(); 248 if (newScrollPoint > headerH) { 249 $('#pageTop').addClass('active'); 250 } else { 251 $('#pageTop').removeClass('active'); 252 } 253 if (newScrollPoint > footerT) { 254 $('#pageTop').addClass('bottom'); 255 } else { 256 $('#pageTop').removeClass('bottom'); 257 } 258 startPos = newScrollPoint; 259 } 260 }); 261 262 }); 263} 264 265function biggerLink($target) { 266 var $target = $($target); 267 $target.each(function () { 268 if ($(this).find('a').index() > -1) { 269 var $linkGet = $(this).find('a').attr('href'), 270 $targetGet = $(this).find('a').attr('target'); 271 $(this).on({ 272 'mouseover': function () { 273 $(this).addClass('biggerLink'); 274 }, 275 'mouseout': function () { 276 $(this).removeClass('biggerLink'); 277 } 278 }) 279 $(this).on('click', function () { 280 if ($targetGet == '_blank') { 281 window.open($linkGet) 282 } else { 283 location.href = $linkGet; 284 } 285 }); 286 } else {} 287 $(this).on({ 288 'mouseover': function () { 289 $(this).css({ 290 'cursor': 'pointer' 291 }) 292 } 293 }) 294 }); 295}
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.