PageSourceSearch

https://www.lifecard.co.jp/app-files/js/subpage_common.js

js lifecard.co.jp collected 2026-10-01 11:41:00 UTC 1,356 bytes, 38 lines download raw bytes

1// 見出しのサブタイトルがない場合の処理
2// spのみヘッダーダウンロードコンテンツ
3
4document.addEventListener("DOMContentLoaded", function() {
5  var headingElement = document.querySelector(".heading1__title");
6  var roundBtn = document.querySelector(".round_btn");
7  
8  if (headingElement && !headingElement.classList.contains("heading1__subtitle")) {
9    headingElement.classList.add("additional-css-class");
10  }
11  if (roundBtn) {
12    roundBtn.addEventListener("click", function() {
13      toggleClass(".sp-dl_contents", "sp-dl_close");
14      toggleClass(".Header", "sp-head_close");
15      toggleClass(".heading1__inner", "sp-head-padding_close");
16      toggleClass(".heading1__title", "sp-head-padding_close");
17      toggleClass(".header-menu-v2-wrap", "sp-padding_close");
18    });
19  }
20});
21
22
23
24function toggleClass(selector, className) {
25  var elements = document.querySelectorAll(selector);
26  elements.forEach(function(element) {
27    element.classList.toggle(className);
28  });
29}
30
31// 8/1追記分(ヘッダー挙動修正のため)
32(() => {
33  const btn = document.querySelector(".js-header-menu-btn");
34  btn.addEventListener("click", () => {
35      const body = document.querySelector("body");
36      body.style.overflow = btn.classList.contains("is-open") ? "" : "hidden";
37  });
38})();

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.