1/* 2/ ================================================================ 3/ Copyright(C) E-LIFE CO.,LTD. ALL Right Reserved. 4/ http://www.e-life.jp/ 5/ 6/ã2014.07.01 åæä½æ 7/ â»è¦jquery.js 8/ 9/ 2015.07.31 管çåä½ãã¦ããã¼ãµã«å¯¾å¿ 10/ 2015.07.17 GetScriptParams()å®è£ 11/ 2015.07.17 管çã¿ã°å¤æ´ 12/ 2014.10.17 function BlockLink(){}ãä¿®æ£ 13/ 2014.12.08 function FlatHeightSet{}ã追å 14/ 2015.03.02 ãªãªã¼ã¹éå§ 15/ ================================================================ 16 */ 17 18 // Elscript管çè¨å® 19 var filenameElJs = 'common_gimmick.js'; 20 var updatedElJs = '20150731'; 21 $(function(){ 22 EvenOdd(); 23 Matrix(); 24 ToolTip(); 25 InpageLink(); 26 BlockLink(); 27 HideSeekBtn(); 28 ToggleContent(); 29 FlatHeightSet(); 30 }); 31 32 33/*==================== 34function ToggleContent(){} 35ãã³ã³ãã³ãã®éé 36 37==========*/ 38 function ToggleContent(){ 39 if($(".toggle")!=null){ 40 $(".toggle_sw").click(function(){ 41 $toggleTime = 500; 42 $(this).parent(".toggle").find(".toggle_content").toggle($toggleTime); 43 }); 44 } 45 } 46 47/*==================== 48function EvenOdd(){ 49 tableã®å¥æ°/å¶æ°è¡ã®è²ãã 50 â»IE9以éã®å¯¾å¿ã¯css3ã§å¯¾å¿å¯è½ï¼ï¼ 51==========*/ 52 function EvenOdd(){ 53 if($(".even_odd")!=null){ 54 $(".even_odd tr:nth-child(odd)").addClass('odd'); 55 $(".even_odd tr:nth-child(even)").addClass('even'); 56 }else{ 57 return false; 58 } 59 } 60 61/*==================== 62function matrix(){ 63 tableã®ã¾ãé¶æ¥ 表示 64 65==========*/ 66 function Matrix(){ 67 if($(".matrix")!=null){ 68 $('.matrix td').hover( 69 function(){ 70 $(this).parent().addClass("over"); 71 var currentNum = $(this).index(); 72 $('tr',$(this).parent().parent()).each(function(i){ 73 $('td',this).eq(currentNum-1).addClass('over'); 74 }); 75 }, 76 function(){ 77 $(this).parent().removeClass('over'); 78 var currentNum = $(this).index(); 79 $('tr',$(this).parent().parent()).each(function(i){ 80 $('td',this).eq(currentNum-1).removeClass('over'); 81 }); 82 } 83 ); 84 85 /*===== 86 ãããªãã¯ã¹è¡¨ç¤ºå ã®ã¯ãªãã¯åä½ 87 ==========*/ 88 $(".matrix td a.clk_fix").click(function () { 89 // ä¸åº¦å ¨ã¦ã®aã¿ã°ãã"selected"ãåé¤ 90 $(".matrix td a").removeClass('selected'); 91 // åé¤å¾ã¯ãªãã¯ããaã¿ã°ã«"selected"ãä»ä¸ 92 $(this).addClass('selected'); 93 }); 94 } 95 } 96 97/*==================== 98function ToolTip(){} 99 ãã¼ã«ããã表示 100==========*/ 101 function ToolTip(){ 102 $tooltip_speed = 250; 103 if($(".tooltip")!=null){ 104 $(".tooltip").hover(function() { 105 //$(this).find(".tooltip_content").not(":animated").animate({opacity: "hide", top: ($tooltip_locate -10) }, $tooltip_speed/2); 106 //$(this).find(".tooltip_content").css("display","block"); 107 //$tooltip_parent_h = 0;//$(this).outerHeight(); 108 $tooltip_locate = -1 * ($(this).find(".tooltip_content").outerHeight()); 109 //$tooltip_locate = -1 * ($tooltip_parent_h + $tooltip_h); 110 111 $(".tooltip_content").not(":animated").css({opacity: "hide",top: ($tooltip_locate - 5)}); 112 $(this).find(".tooltip_content").not(":animated").animate({opacity: "show", top: $tooltip_locate}, $tooltip_speed); 113 }, 114 function () { 115 $(".tooltip_content").fadeOut($tooltip_speed/4); 116 } 117 ); 118 } 119 } 120 121/*==================== 122function HideSeekBtn(){ 123 ãã¼ã¸ä¸é¨ã®ãããã¸æ»ããã¿ã³ 124 ã¦ã£ã³ãã¦é«ããè¶ ããããã¿ã³ã表示 125==========*/ 126 function HideSeekBtn(){ 127 // ".re_top"åå¨ç¢ºèªå¾ã«åä½ 128 if($(".re_top")!=null){ 129 // ã¦ã£ã³ãã¦ã®é«ããåå¾ 130 $windowHeight = $(window).height(); 131 // ã¦ã£ã³ãã¦ããªãµã¤ãºããå ´åãµã¤ãºãååå¾ 132 $(window).resize(function(){ 133 $windowHeight = $(window).height(); 134 }); 135 // fadeIn/Outã®æéè¨å® 136 $fadeTime = 350; 137 // ã¹ã¯ãã¼ã«å¦ç 138 var timer = false; 139 $(window).scroll(function() { 140 $scrollDistance = $(window).scrollTop(); 141 if (timer !== false) { 142 clearTimeout(timer); 143 } 144 timer = setTimeout(function() { 145 $scrollDistance = $(window).scrollTop(); 146 }, 100); 147 if ($scrollDistance > $windowHeight){ 148 $(".re_top").fadeIn($fadeTime); 149 }else if($scrollDistance < $windowHeight){ 150 $(".re_top").fadeOut($fadeTime); 151 } 152 }); 153 } 154 } 155 156/*============================== 157ãã«ãã¦ã³ã¡ãã¥ã¼ 158==========*/ 159 $("#header_wrap .navi .btn").hover(function() { 160 $(this).children('ul').fadeIn('150'); 161 }, function() { 162 $(this).children('ul').hide(); 163 }); 164 165/*============================== 1662014.06.12 167function InpageLink(){ 168 ãã¼ã¸å ãªã³ã¯ã®ã¹ã¯ãã¼ã«ç§»å 169 ä»ã®jsã¨ç«¶åããããã<a>ã§ã¯ãªããclass="inpage_link"ããã¼ã«åä½ 170==========*/ 171 function InpageLink(){ 172 $(".inpage_link").click(function(){ 173 $moveTime = 250; // ä½ç§æãã¦ã¹ã¯ãã¼ã«ããã 174 $url = this.href; 175 if($url.indexOf("#")!=-1){// herfã«"#"ããã£ãã 176 $url_split = $url.split("#"); 177 $target = $url_split[1]; 178 $target_offset = $('#' + $target).offset(); 179 $destination = $target_offset.top; 180 /* jQery 1.9ãã.browser廿¢ã®ãã使ç¨ããªã 181 $($.browser.webkit ? 'body' : 'html').animate({scrollTop:0}, $moveTime, "swing"); // ã³ã¼ã«ããã¯ã2åå¼ã°ãããããã©ã¦ã¶å¤å¥ 182 */ 183 $userAgent = window.navigator.userAgent.toLowerCase(); 184 if($userAgent.indexOf('chrome') != -1 || $userAgent.indexOf('webkit') != -1 ){ 185 $('body').animate({scrollTop:$destination}, $moveTime, "swing"); 186 // 20171002 chrome 61ã対å¿ã®ããã,htmlã§ã®è¨è¿°ãä½µè¨ 187 $('html').animate({scrollTop:$destination}, $moveTime, "swing"); 188 }else { 189 $('html').animate({scrollTop:$destination}, $moveTime, "swing"); 190 } 191 return false; // ã¢ãã¬ã¹ãã¼ã«hrefã®å¤ãåæ ããªã 192 } 193 }); 194 } 195 196/*============================== 1972014.06.12 198function BlockLink(){ 199 //divã«class="linkcv"ã§å ¨ä½ããªã³ã¯
2002014.10.17 åä½ã®ãã¼ã"linkcv"â"blocklink"ã¸å¤æ´ 201==========*/ 202 function BlockLink(){ 203 $(".blocklink").css('cursor','pointer'); 204 $(".blocklink").click(function(){ 205 var link_url = $(this).find('a');//$(this)ã®<a>ãè¦ç´ ã¨ãã¦æå® 206 if (link_url.attr('target') == '_blank') { 207 window.open(link_url.attr('href')); 208 } 209 else window.location = link_url.attr('href'); 210 return false; 211 }); 212 $(".linkcv").css("cursor","pointer"); 213 } 214 215/*==================== 2162014.12.08 217function FlatHeight(){} 218ãé«ãã®å¹³å¦å 219 .flat_wrapå ã®.flatã®é«ããæãã 220==========*/ 221 function FlatHeightSet(){ 222 // ãã¼ã¸èªã¿è¾¼ã¿æã«å¦ç 223 FlatHeight(); 224 $(window).on("orientationchange", function (){FlatHeight();});//orientationchange=åããå¤ãã£ãã"sizeReset()"ãå®è¡ 225 $(window).resize(function (){FlatHeight();});//resize=ã¦ã£ã³ãã¦ã®å¤§ããã夿´ãããæã«"sizeReset()"ãå®è¡ 226 } 227 function FlatHeight(){ 228 $('.flat_wrap').each(function() { 229 $(this).find(".flat").css({"height":"initial","height":"auto"}); 230 // é«ãã¯.flatã®ä¸ã§ä¸çªé«ãç©ãè¨å® 231 $FlatHeight = 0; 232 $(this).find(".flat").each(function(i) { 233 if($FlatHeight < $(this).height()) { 234 $FlatHeight = $(this).height(); 235 } 236 }); 237 $(this).find(".flat").css('height',$FlatHeight+'px'); 238 }); 239 } 240 241/*========== 242function GetScriptParams(); 243htmlããèªã¿è¾¼ã¾ãããã¡ã¤ã«è¨è¿°ã®ãã©ã¡ã¼ã¿ããå¤ãåå¾ 244==============================*/ 245 function GetScriptParams(file_name){ 246 var scripts = document.getElementsByTagName('script'); 247 $this_src = ''; 248 $.each(scripts, function(i, val) { 249 var src = val.src; 250 if(src.indexOf(file_name) != -1) { 251 $this_src = src; 252 } 253 }); 254 if ($this_src != ''){ 255 var query = $this_src.substring($this_src.indexOf('?')+1); 256 var parameters = query.split('&'); 257 // URLã¯ã¨ãªãåè§£ãã¦åå¾ãã 258 var result = new Object(); 259 for(var i = 0; i < parameters.length; i++){ 260 var element = parameters[i].split('='); 261 var paramName = decodeURIComponent( element[0]); 262 var paramValue = decodeURIComponent( element[1]); 263 result[paramName] = paramValue; 264 } 265 } 266 return result; 267 } 268 269// jsè¨ç½®ç®¡çç¨ 270 $(function(){ 271 $('script').each(function(index) { 272 $source = $(this).html(); 273 $ga_cnt=1; 274 if($source.indexOf("ga('send', 'pageview');") != -1){ 275 if($source.indexOf("var ana_scripts") == -1){ 276 $re_source = "ga('create', 'UA-44494306-5', 'auto', {'name': 'newTracker'});ga('newTracker.send', 'event', location.hostname, filenameElJs, updatedElJs);" 277 var script = document.createElement("script"); 278 script.innerHTML = $re_source; 279 $("head").append(script); 280 $ga_cnt++; 281 } 282 } 283 }); 284 if($ga_cnt==0){
vendor: 328 bytes, lines 284-285
284 285 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', '
285UA-44494306-5
vendor: 34 bytes, line 285
285', 'auto', {'allowLinker': true});
285ga('require', 'linker');ga('send', 'event', location.hostname, filenameElJs, updatedElJs); 286 } 287 });
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.