1$(function () { 2 3 ////////////////////////////// 4 // ãã¼ã¸é·ç§»æã«ãµãã£ã¨è¡¨ç¤º 5 ////////////////////////////// 6 $('body').fadeIn(1000); //1ç§ããã¦ãã§ã¼ãã¤ã³ï¼ 7 8 ////////////////////////////// 9 // å¤é¨ãªã³ã¯ã¯å¥ã¿ãã§éã 10 ////////////////////////////// 11 $('a[href^="http"]:not([href^="http://www.satv.co.jp"])').click(function () { 12 window.open(this.href, '_blank'); 13 return false; 14 }).addClass('externalLink'); 15 16 ////////////////////////////// 17 // ãã¼ã¸å ãªã³ã¯ãããã£ã¨ 18 ////////////////////////////// 19 $('a[href*="#"]').click(function () { 20 var speed = 600; 21 var href = $(this).attr("href"); 22 var target = $(href === "#" || href === "" ? 'html' : href); 23 24 if (target.length) { 25 var position = target.offset().top; 26 27 $("html, body").animate({ 28 scrollTop: position 29 }, speed, "swing"); 30 } 31 32 return false; 33 }); 34 35 ////////////////////////////// 36 // ä»äºç´¹ä»ã¿ãã¡ãã¥ã¼ 37 ////////////////////////////// 38 $('.tab-menu li').on('click', function () { 39 if ($(this).not('active')) { 40 // ã¿ãã¡ãã¥ã¼ 41 $(this).addClass('active').siblings('li').removeClass('active'); 42 // ã¿ãã®ä¸èº« 43 var index = $('.tab-menu li').index(this); 44 $('.tab-box>div').eq(index).addClass('active').siblings('div').removeClass('active'); 45 } 46 }); 47 48 ////////////////////////////// 49 // 社å¡ç´¹ä»ã¿ã¤ãã«ãªãªãé¨å 50 ////////////////////////////// 51 var body = $('body'); 52 var bodyWidth = body.width(); 53 if (bodyWidth < 1170) { 54 bodyWidth = 1170; 55 } 56 var wrapperMargin = bodyWidth - 1170; 57 var wrapperMargin2 = wrapperMargin / 2; 58 var copy = $('#copy'); 59 var copyWidth = copy.width(); 60 var copyHeight = copy.height(); 61 //var mainVisualBgWidth = wrapperMargin2 + copyWidth + 250; 62 var mainVisualBgWidth2 = wrapperMargin2 + copyWidth + 300; 63 var mainVisualBgHeight = copyHeight + 200; 64 //var peopleMainVisualHeight = mainVisualBgHeight + 150; 65 //$('.peoNewIndividual .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth + 'px; height:' + mainVisualBgHeight + 'px;">'); 66 //$('.peoNewIndividual .peopleMainVisual .personalImage').css('height', peopleMainVisualHeight); 67 $('.peoSenIndividual .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:' + mainVisualBgHeight + 'px;">'); 68 $('.peoCareer_interview .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:' + mainVisualBgHeight + 'px;">'); 69 $('#peoYoutuber .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:' + mainVisualBgHeight + 'px;">'); 70 //$('.peoSenIndividual .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:340px;">'); 71 72 $(window).on('load resize', function () { 73 $(".mainVisualBg").remove(); 74 var bodyWidth = $(window).width(); 75 if (bodyWidth < 1170) { 76 bodyWidth = 1170; 77 } 78 var wrapperMargin = bodyWidth - 1170; 79 var wrapperMargin2 = wrapperMargin / 2; 80 var copy = $('#copy'); 81 var copyWidth = copy.width(); 82 var copyHeight = copy.height(); 83 //var mainVisualBgWidth = wrapperMargin2 + copyWidth + 250; 84 var mainVisualBgWidth2 = wrapperMargin2 + copyWidth + 300; 85 var mainVisualBgHeight = copyHeight + 150; 86 //var peopleMainVisualHeight = mainVisualBgHeight + 150; 87 //$('.peoNewIndividual .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth + 'px; height:' + mainVisualBgHeight + 'px;">'); 88 //$('.peoNewIndividual .peopleMainVisual .personalImage').css('height', peopleMainVisualHeight); 89 $('.peoSenIndividual .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:' + mainVisualBgHeight + 'px;">'); 90 //$('.peoSenIndividual .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:340px;">'); 91 $('.peoCareer_interview .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:' + mainVisualBgHeight + 'px;">'); 92 $('#peoYoutuber .peopleMainVisual .inner').after('<div class="mainVisualBg" style="width:' + mainVisualBgWidth2 + 'px; height:' + mainVisualBgHeight + 'px;">'); 93 }); 94}); 95 96////////////////////////////// 97// ãããã¼ããã¹ããç¨
98////////////////////////////// 99$(".openbtn1").click(function () { //ãã¿ã³ãã¯ãªãã¯ãããã 100 $(this).toggleClass('active'); //ãã¿ã³èªèº«ã« activeã¯ã©ã¹ãä»ä¸ã 101 $("#g-nav").toggleClass('panelactive'); //ããã²ã¼ã·ã§ã³ã«panelactiveã¯ã©ã¹ãä»ä¸ 102}); 103 104$("#g-nav a").click(function () { //ããã²ã¼ã·ã§ã³ã®ãªã³ã¯ãã¯ãªãã¯ãããã 105 $(".openbtn1").removeClass('active'); //ãã¿ã³ã® activeã¯ã©ã¹ãé¤å»ã 106 $("#g-nav").removeClass('panelactive'); //ããã²ã¼ã·ã§ã³ã®panelactiveã¯ã©ã¹ãé¤å» 107}); 108 109 110////////////////////////////// 111// ãã§ã¼ãã¢ãã 112////////////////////////////// 113function fadeAnime() { 114 115 // ãµã㣠116 $('.fadeUpTrigger').each(function () { //fadeUpTriggerã¨ããã¯ã©ã¹åã 117 var elemPos = $(this).offset().top - 100; //è¦ç´ ããã100pxä¸ã® 118 var scroll = $(window).scrollTop(); 119 var windowHeight = $(window).height(); 120 if (scroll >= elemPos - windowHeight) { 121 $(this).addClass('fadeUp'); // ç»é¢å ã«å ¥ã£ããfadeUpã¨ããã¯ã©ã¹åãè¿½è¨ 122 } else { 123 $(this).removeClass('fadeUp'); // ç»é¢å¤ã«åºããfadeUpã¨ããã¯ã©ã¹åãå¤ã 124 } 125 }); 126} 127 128// ç»é¢ãã¹ã¯ãã¼ã«ããããåããããå ´åã®è¨è¿° 129$(window).scroll(function () { 130 fadeAnime(); /* ã¢ãã¡ã¼ã·ã§ã³ç¨ã®é¢æ°ãå¼ã¶*/ 131}); // ããã¾ã§ç»é¢ãã¹ã¯ãã¼ã«ããããåããããå ´åã®è¨è¿° 132 133// ç»é¢ãèªã¿è¾¼ã¾ãããããã«åããããå ´åã®è¨è¿° 134$(window).on('load', function () { 135 fadeAnime(); /* ã¢ãã¡ã¼ã·ã§ã³ç¨ã®é¢æ°ãå¼ã¶*/ 136}); // ããã¾ã§ç»é¢ãèªã¿è¾¼ã¾ãããããã«åããããå ´åã®è¨è¿° 137 138 139////////////////////////////// 140// å·¦ãã帯ã伸ã³ã¦è¡¨ç¤º 141////////////////////////////// 142// åãã®ãã£ããã®èµ·ç¹ã¨ãªãã¢ãã¡ã¼ã·ã§ã³ã®ååãå®ç¾© 143function BgFadeAnime() { 144 145 // èæ¯è²ã伸ã³ã¦åºç¾ï¼å·¦ããå³ï¼ 146 $('.bgLRextendTrigger').each(function () { //bgLRextendTriggerã¨ããã¯ã©ã¹åã 147 var elemPos = $(this).offset().top - 50; //è¦ç´ ããã50pxä¸ã® 148 var scroll = $(window).scrollTop(); 149 var windowHeight = $(window).height(); 150 if (scroll >= elemPos - windowHeight) { 151 $(this).addClass('bgLRextend'); // ç»é¢å ã«å ¥ã£ããbgLRextendã¨ããã¯ã©ã¹åãè¿½è¨ 152 } else { 153 $(this).removeClass('bgLRextend'); // ç»é¢å¤ã«åºããbgLRextendã¨ããã¯ã©ã¹åãå¤ã 154 } 155 }); 156 157 // æååãå²ãåè¦ç´ 158 $('.bgappearTrigger').each(function () { //bgappearTriggerã¨ããã¯ã©ã¹åã 159 var elemPos = $(this).offset().top - 50; //è¦ç´ ããã50pxä¸ã® 160 var scroll = $(window).scrollTop(); 161 var windowHeight = $(window).height(); 162 if (scroll >= elemPos - windowHeight) { 163 $(this).addClass('bgappear'); // ç»é¢å ã«å ¥ã£ããbgappearã¨ããã¯ã©ã¹åãè¿½è¨ 164 } else { 165 $(this).removeClass('bgappear'); // ç»é¢å¤ã«åºããbgappearã¨ããã¯ã©ã¹åãå¤ã 166 } 167 }); 168} 169 170// ç»é¢ãã¹ã¯ãã¼ã«ããããåãã 171$(window).scroll(function () { 172 BgFadeAnime(); /* ã¢ãã¡ã¼ã·ã§ã³ç¨ã®é¢æ°ãå¼ã¶*/ 173}); 174 175// ç»é¢ãèªã¿è¾¼ã¾ãããããã«åãã 176$(window).on('load', function () { 177 BgFadeAnime(); /* ã¢ãã¡ã¼ã·ã§ã³ç¨ã®é¢æ°ãå¼ã¶*/ 178}); 179 180////////////////////////////// 181// ããã¿ã¼ãã¿ã³ 182////////////////////////////// 183function PageTopAnime() { 184 var scroll = $(window).scrollTop(); 185 if (scroll >= 100) { //ä¸ãã100pxã¹ã¯ãã¼ã«ããã 186 $('#footerBtnWrapper').removeClass('DownMove'); //.footerBtnã«ã¤ãã¦ããDownMoveã¨ããã¯ã©ã¹åãé¤ã 187 $('#footerBtnWrapper').addClass('UpMove'); //.footerBtnã«ã¤ãã¦ããUpMoveã¨ããã¯ã©ã¹åãä»ä¸ 188 } else { 189 if ($('#footerBtnWrapper').hasClass('UpMove')) { //ãã§ã«.footerBtnã«UpMoveã¨ããã¯ã©ã¹åãã¤ãã¦ããã 190 $('#footerBtnWrapper').removeClass('UpMove'); //UpMoveã¨ããã¯ã©ã¹åãé¤ã 191 $('#footerBtnWrapper').addClass('DownMove'); //DownMoveã¨ããã¯ã©ã¹åã.footerBtnã«ä»ä¸ 192 } 193 } 194} 195 196// ç»é¢ãã¹ã¯ãã¼ã«ããããåããããå ´åã®è¨è¿° 197$(window).scroll(function () {
198 PageTopAnime(); /* ã¹ã¯ãã¼ã«ããéã®åãã®é¢æ°ãå¼ã¶*/ 199}); 200 201 202////////////////////////////// 203// ã¢ã³ã¼ãã£ãªã³ 204////////////////////////////// 205$('.accordion-area .title').on('click', function () { //ã¿ã¤ãã«è¦ç´ ãã¯ãªãã¯ããã 206 var findElm = $(this).next(".box"); //ç´å¾ã®ã¢ã³ã¼ãã£ãªã³ãè¡ãã¨ãªã¢ãåå¾ã 207 $(findElm).slideToggle(); //ã¢ã³ã¼ãã£ãªã³ã®ä¸ä¸åä½ 208 209 if ($(this).hasClass('close')) { //ã¿ã¤ãã«è¦ç´ ã«ã¯ã©ã¹åcloseãããã° 210 $(this).removeClass('close'); //ã¯ã©ã¹åãé¤å»ã 211 } else { //ãã以å¤ã¯ 212 $(this).addClass('close'); //ã¯ã©ã¹åcloseãä»ä¸ 213 } 214}); 215 216$(window).on('load', function () { 217 // openã¯ã©ã¹ãã¤ãã¦ãããã®ãå±é 218 $(".open").each(function (index, element) { 219 var Title = $(element).find('.title'); 220 $(Title).addClass('close'); 221 var Box = $(element).find('.box'); 222 $(Box).slideDown(500); 223 }); 224 225 // ⼠追å ï¼URLã«#degitalãããå ´åã¯ããã®liãå±é 226 if (window.location.hash === "#degital") { 227 var target = $("#degital"); 228 if (target.length > 0) { 229 var Title = target.find('.title'); 230 var Box = target.find('.box'); 231 232 // ã¯ã©ã¹è¿½å ãã¦å±é 233 target.addClass("open"); 234 Title.addClass('close'); 235 Box.slideDown(500); 236 } 237 } 238}); 239 240 241$(window).on("scroll", function () { 242 $(".footerBtn").css("left", -$(window).scrollLeft()); 243});
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.