1/* 2 * LAST UPDATE : 3*/ 4var W = 0; 5var H = 0; 6var windowW = 0; 7var windowH = 0; 8 9var headerH = 270; 10var contentsH = 2688; 11var reelH = contentsH + headerH; 12var conFlg = 0; 13var conTotal = 0; 14var nowPosition = 0; 15 16var globalScroll = 0; 17 18var contactFlg = 0; 19var contactH = 0; 20var contactCloseinit = 0; 21var telephoneFlg = 0; 22var telephoneH = 0; 23var telephoneCloseinit = 0; 24 25 26 27$(document).ready(function() { 28 $('body').setMain({}); 29}); 30 31(function($){ 32 var setMain; 33 34 $.fn.setMain = setMain = function(options) { 35 36 var settings = { 37 }; 38 39 return this.each(function() { 40 if ( options ) { 41 $.extend( settings, options ); 42 } 43 setMain.prototype.create(settings,this); 44 }); 45 }; 46 47 setMain.prototype = { 48 49 create: function(settings,elem) { 50 this.element = $(elem); 51 this.options = settings; 52 this.init(); 53 }, 54 55 56 init: function() { 57 var self = this; 58 59 self.setUp(); 60 }, 61 62 setUp: function() { 63 var self = this; 64 secHArray = new Array(); 65 secBoxHArray = new Array(); 66 self.classSet(); 67 self.resize(); 68 $(window).bind("resize", function(){ 69 self.resize(); 70 }); 71 $(window).scroll(function() { 72 var value = $(this).scrollTop(); 73 self.scrollManage(value); 74 }); 75 self.btnSet(); 76 //$('.article_body img').parent().colorbox(); 77 }, 78 79 btnSet: function() { 80 var self = this; 81 $('#to_top').bind("click", function(){ 82 $('html,body').stop().animate( 83 {scrollTop: 0}, 84 {duration: 1000, easing: 'easeOutExpo',complete: function(){ 85 } 86 } 87 ); 88 return false; 89 }); 90 $(' #gnavi_mail, #footer_mail').bind("click touchstart", function(){ 91 var newPos = 0; 92 if((navigator.userAgent.indexOf('iPhone') != -1)||(navigator.userAgent.indexOf('iPad') != -1)){ 93 newPos = 103; 94 }else{ 95 newPos = 103+(globalScroll); 96 } 97 $('.main_con').css('display', 'none'); 98 self.closeReset(); 99 $('#contact').css('top', windowH + 'px').css('display', 'block').stop().animate( 100 {top: newPos + 'px'}, 101 {duration: 500, easing: 'easeOutExpo',complete: function(){ 102 } 103 } 104 ); 105 $('#contact_box').css('margin-top', 300 + 'px').stop().animate( 106 {marginTop: 0}, 107 {duration: 1000, easing: 'easeOutExpo',complete: function(){ 108 } 109 } 110 ); 111 if(contactFlg==0){ 112 contactFlg = 1; 113 contactCloseinit = nowPosition; 114 contactH = parseNumber($('#contact').css('height')); 115 } 116 return false; 117 }); 118 $('#gnavi_tel, #footer_tel').bind("click touchstart", function(){ 119 var newPos = 0; 120 if((navigator.userAgent.indexOf('iPhone') != -1)||(navigator.userAgent.indexOf('iPad') != -1)){ 121 newPos = 103; 122 }else{ 123 newPos = 103+(globalScroll); 124 } 125 $('.main_con').css('display', 'none'); 126 self.closeReset(); 127 $('#telephone').css('top', windowH + 'px').css('display', 'block').stop().animate( 128 {top: newPos + 'px'}, 129 {duration: 500, easing: 'easeOutExpo',complete: function(){ 130 } 131 } 132 ); 133 $('#contact_box').css('margin-top', 300 + 'px').stop().animate( 134 {marginTop: 0}, 135 {duration: 1000, easing: 'easeOutExpo',complete: function(){ 136 } 137 } 138 ); 139 if(telephoneFlg==0){ 140 telephoneFlg = 1; 141 telephoneCloseinit = nowPosition; 142 telephoneH = parseNumber($('#telephone').css('height')); 143 } 144 return false; 145 }); 146 $('.contact_tab_link').bind("click touchstart", function(){ 147 var indexNo = $('.contact_tab_link').index(this); 148 $('#contact_tab li').removeClass('current'); 149 $('#contact_tab li:eq('+indexNo+')').addClass('current'); 150 $('.contact_contents').css('display', 'none'); 151 $('.contact_contents:eq('+indexNo+')').css('display', 'block'); 152 contactH = parseNumber($('#contact').css('height')); 153 return false; 154 }); 155 $('#contact_close').bind("click touchstart", function(){ 156 $('#contact').css('display', 'none'); 157 contactFlg = 0; 158 $('#contact_close').css('top', 30 + 'px'); 159 return false; 160 }); 161 $('#telephone_close').bind("click touchstart", function(){ 162 $('#telephone').css('display', 'none'); 163 telephoneFlg = 0; 164 $('#telephone_close').css('top', 30 + 'px'); 165 return false;
166 }); 167 }, 168 169 classSet: function() { 170 var self = this; 171 172 if(navigator.userAgent.indexOf('iPhone') != -1){ 173 $('body').addClass('iphone'); 174 }else if(navigator.userAgent.indexOf('iPad') != -1){ 175 $('body').addClass('ipad'); 176 }else{ 177 } 178 179 if(navigator.userAgent.indexOf('iPhone') > -1){ 180 $("head").append(jQuery('<meta name="viewport" content="width=1092, user-scalable=yes" />')); 181 } 182 else if(navigator.userAgent.indexOf('iPad') > -1){ 183 $('head').append('<meta name="viewport" content="width=1092, user-scalable=yes" />'); 184 } 185 }, 186 187 closeReset: function() { 188 var self = this; 189 contactFlg = 0; 190 $('#contact_close').css('top', 30 + 'px'); 191 telephoneFlg = 0; 192 $('#telephone_close').css('top', 30 + 'px'); 193 }, 194 195 196 resize: function() { 197 var self = this; 198 windowW = windowSizeW(W); 199 windowH = windowSizeH(H); 200 201 if((windowW<1092)&&(windowW>=703)){ 202 $('#contents').css('width', windowW + 'px'); 203 $('#to_top').css('right', 0 + 'px'); 204 }else if(windowW>=1092){ 205 $('#contents').css('width', 1092 + 'px'); 206 $('#to_top').css('right', (windowW -1092)/2 + 'px'); 207 } 208 209 210 }, 211 212 213 scrollManage: function(value) { 214 var self = this; 215 globalScroll = value; 216 if(value>270){ 217 $('#to_top').css('display', 'block').stop().animate( 218 {opacity: 1}, 219 {duration: 300, easing: 'easeOutExpo',complete: function(){ 220 } 221 } 222 ); 223 }else{ 224 $('#to_top').stop().animate( 225 {opacity: 0}, 226 {duration: 300, easing: 'easeOutExpo',complete: function(){ 227 $(this).css('display', 'none') 228 } 229 } 230 ); 231 } 232 } 233 }; 234})(jQuery); 235 236 237function windowSizeW(w){ 238 //ã¹ãã¼ã¸ãµã¤ãºãåå¾ 239 if(navigator.userAgent.indexOf("Opera") != -1){ // æååã«ãOperaããå«ã¾ãã¦ããå ´å 240 var windowW = document.body.clientWidth; 241 } 242 else if(navigator.userAgent.indexOf("MSIE") != -1){ // æååã«ãMSIEããå«ã¾ãã¦ããå ´å 243 var windowW = document.documentElement.clientWidth; 244 } 245 else if(navigator.userAgent.indexOf("Firefox") != -1){ // æååã«ãFirefoxããå«ã¾ãã¦ããå ´å 246 var windowW = document.body.clientWidth; 247 248 } 249 else if(navigator.userAgent.indexOf("Netscape") != -1){ // æååã«ãNetscapeããå«ã¾ãã¦ããå ´å 250 var windowW = window.innerWidth; 251 } 252 else if(navigator.userAgent.indexOf("Safari") != -1){ // æååã«ãSafariããå«ã¾ãã¦ããå ´å 253 var windowW = document.documentElement.clientWidth; 254 } 255 else{ 256 var windowW = $(window).Width; 257 } 258 var w = windowW; 259 260 return(w); 261} 262function windowSizeH(h){ 263 //ã¹ãã¼ã¸ãµã¤ãºãåå¾ 264 if(navigator.userAgent.indexOf("Opera") != -1){ // æååã«ãOperaããå«ã¾ãã¦ããå ´å 265 var windowH = document.body.clientHeight; 266 } 267 else if(navigator.userAgent.indexOf("MSIE") != -1){ // æååã«ãMSIEããå«ã¾ãã¦ããå ´å 268 var windowH = document.documentElement.clientHeight; 269 } 270 else if(navigator.userAgent.indexOf("Firefox") != -1){ // æååã«ãFirefoxããå«ã¾ãã¦ããå ´å 271 var windowH = document.body.clientHeight; 272 273 } 274 else if(navigator.userAgent.indexOf("Netscape") != -1){ // æååã«ãNetscapeããå«ã¾ãã¦ããå ´å 275 var windowH = window.innerHeight; 276 } 277 else if(navigator.userAgent.indexOf("Safari") != -1){ // æååã«ãSafariããå«ã¾ãã¦ããå ´å 278 var windowH = document.documentElement.clientHeight; 279 } 280 else{ 281 var windowH = $(window).Height; 282 } 283 var h = windowH; 284 285 return(h); 286 mainH = parseInt(sec02H_Raw.replace('px', '')); 287} 288 289function parseNumber(no){ 290 no = parseInt(no.replace('px', '')); 291 return(no); 292}
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.