PageSourceSearch

https://numero.jp/wp-content/themes/numero_2019/cmn2.js?1002

js numero.jp collected 2026-10-02 04:45:27 UTC 8,152 bytes, 1 lines download raw bytes

1// JavaScript Document for list��// UA�var ua = navigator.userAgent.toLowerCase();�var isiPhone = ua.indexOf('iphone') > -1; // iPhone�var isiPad = ua.indexOf('ipad') > -1; // iPad�var isAndroid = ua.indexOf('android') > -1 && ua.indexOf('mobile') > -1; // Android�var isAndroidTablet = ua.indexOf('android') > -1 && ua.indexOf('mobile') === -1; // Android Tablet�var isTablet = isiPad || isAndroidTablet;�var isSP = isiPhone || isAndroid;��var scrollTop = $(window).scrollTop();��$(function () {�  // チェックボックスをチェックしたら発動�  $('input[name="menu"]').change(function () {�    var is = $('#menu').is(':checked');��    // もし is がチェック状態だったら�    if (is) {�      $('body').css({�        overflow: 'hidden',�        height: '100%'�      });��      $('html').css({�        overflow: 'hidden',�        height: '100%'�      });��      $('.MenuContainer').css({�        width: '100%',�        left: '0'�      });��      $('#hdr').css({�        opacity: '1'�      });��      // スクロールを無効にする�      $('#content').on('touchmove.noScroll', function (e) {�        e.preventDefault();�      });�    } else {�      $('body').css({�        overflow: 'auto',�        height: 'auto'�      });��      $('html').css({�        overflow: 'auto',�        height: 'auto'�      });��      $('.MenuContainer').css({�        width: '20%',�        left: '80%'�      });��      $('#hdr').css({�        opacity: '.95'�      });��      // スクロール無効を解除する�      $('#content').off('.noScroll');�    }�  });�});��$(function () {�  var ua = navigator.userAgent;��  if (ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0) {�    $(function () {�      $(window).scroll(function () {�        $('.pickup').each(function () {�          var imgPos = $(this).offset().top;�          var pickup = $('.pickup').offset().top;�          var scroll = $(window).scrollTop();�          var windowHeight = $(window).height();�          var spics = (imgPos - scroll - 480) / 10;��          if (scroll < imgPos) {�            $('.photo', this).css({�              'background-position-y': spics�            });�            console.log(spics);�          } else {�            $('.photo', this).css({�              'background-position-y': spics�            });�          }�        });�      });�    });��    $(function () {�      var divElement = $('.mask');�      var navclass_name = $('#nav-horizontal').attr('class');�      var window_width = $(window).width();�      var div_width = 975;�      var pixel_width = div_width / window_width;��      if (navclass_name.indexOf('fashion') > -1) { // 0 fashion�        divElement.scrollLeft(pixel_width * 1);�      } else if (navclass_name.indexOf('beauty') > -1) { // 0 beauty�        divElement.scrollLeft(pixel_width * 18);�      } else if (navclass_name.indexOf('art') > -1) { // 85 art�        divElement.scrollLeft(pixel_width * 35);�      } else if (navclass_name.indexOf('culture') > -1) { // 145 culture�        divElement.scrollLeft(pixel_width * 60);�      } else if (navclass_name.indexOf('life') > -1) { // 220 food�        divElement.scrollLeft(pixel_width * 80);�      } else if (navclass_name.indexOf('series') > -1) { // 285 trip�        divElement.scrollLeft(pixel_width * 100);�      } else if (navclass_name.indexOf('interview') > -1) { // 285 trip�        divElement.scrollLeft(pixel_width * 120);�      } else if (navclass_name.indexOf('astrology') > -1) { // 400 blog�        divElement.scrollLeft(pixel_width * 225);�      } else if (navclass_name.indexOf('magazine') > -1) { // 400 magazine�        divElement.scrollLeft(pixel_width * 300);�      } else {�        divElement.scrollLeft(pixel_width * 53);�      }��      var subElement = $('.submask');�      subElement.scrollLeft(0);�    });�  } else {�    $(function () {�      $(window).scroll(function () {�        $('.pickup').each(function () {�          var imgPos = $(this).offset().top;�          var pickup = $('.pickup').offset().top;�          var scroll = $(window).scrollTop();�          var windowHeight = $(window).height();�          var pic = (imgPos - scroll - 1280) / 4 + 80;��          if (scroll < imgPos) {�            $('.photo', this).css({�              'background-position-y': pic�            });�          } else {�            $('.photo', this).css({�              'background-position-y': pic�            });�          }�        });�      });�    });��    // jQuery – メニューをスクロールに付随させてみる�    // http://www.detelu.com/blog/2011/12/jquery-menu-float-box/�    $(function () {�      floatBox('.adad', 1);��      // ele=固定する要素、flag=サイドバーに固定する要素があり、フッターにかぶらないようにする場合に「1」を指定�      function floatBox(ele, flag) {�        // 固定する要素を取得�        var box = $(ele);��        // 固定する要素の位置を取得�        var fixed_box_offset = box.offset();��        // 固定する要素のサイズを取得�        var box_size = {�          width: box.width(),�          height: box.height()�        };��        // フッター要素の位置を取得�        var footer_box_offset = $('.pickup').offset();��        var list_offset = $('.load_list').offset();�        var index_height = $('.index').height();��        var list_area = footer_box_offset.top - list_offset.top - 50;�        if (list_area < 600) {�          $('.side').css({ height: '600px' });�        }�        if (list_area > 600) {�          $('.side').css({ height: list_area + index_height });�        }��        // スクロールイベントが発生したら実行�        $(window).scroll(function () {�          // スクロール位置を取得�          var scroll_val = $(this).scrollTop();��          // 固定する要素の位置よりスクロール位置が大きくなれば...�          if (scroll_val > fixed_box_offset.top - 80) {�            // 固定する要素に top:0 が指定されていなければ...�            if (box.css('top') !== '0px') {�              // スタイルを追加�              box.css({�                position: 'fixed',�                'z-index': 999,�                width: box_size.width,�                height: '600px',�                top: '80px',�                bottom: 'auto',�                opacity: '1',�                display: 'block'�              });�            }��            // フッターがあり、横メニューがかぶらないようにする場合は...�            if (flag === 1) {�              // フッターの位置よりスクロール位置が大きくなれば...�              if (scroll_val > (footer_box_offset.top - 735)) {�                // スタイルを追加�                if (box.css('bottom') !== '0px') {�                  box.css({�                    position: 'absolute',�                    'z-index': 999,�                    width: box_size.width,�                    height: '600px',�                    top: 'auto',�                    bottom: '0',�                    opacity: '1',�                    display: 'block;'�                  });�                }�              }�            }�          } else {�            // 固定する要素の style 属性を削除�            box.removeAttr('style');�          }�        });�      }�    });�  }�});��// View More�$(function () {�  $('.view_list:not(.view_list:first-of-type)').css('display', 'none'); // 一番上の要素以外を非表示�  $('.view_on').nextAll('.more').css('display', 'none'); // ボタンを非表示��  $('.view_on').on('click', function () {�    $(this).css('display', 'none'); // 押したボタンを非表示�    $(this).next('.view_list').slideDown('fast');�    $(this).nextAll('.view_on:first').css('display', 'inline-block'); // 次のボタンを表示�  });�});��window.onpageshow = function (event) {�  if (event.persisted) {�    window.location.reload();�  }�};��// eq() を使って1、2番目classを削除�$(function () {�  $('ul li.unit').eq(0).removeClass('pickup');�  $('ul li.unit').eq(1).removeClass('pickup');�});

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.