1jQuery(document).ready(function($){ 2 var positionElementInPage = $('#nav').offset().top; 3 $(window).scroll( 4 function() { 5 if ($(window).scrollTop() >= positionElementInPage) { 6 // fixed 7 $('#nav').addClass("floatable"); 8 $('#text_header_contain').css('display','none'); 9 $('#text_header').addClass('animated hinge fadeIn'); 10 setTimeout(function(){ 11 $('#text_header').removeClass('animated hinge fadeIn'); 12 },1500); 13 $('.discover').addClass('animated fadeInUp'); 14 setTimeout(function(){ 15 $('.discover').removeClass('animated fadeInUp'); 16 },1500); 17 $('#right_slide_head').css('display','none'); 18 $('#left_slide_head').css('display','none'); 19 $('#container_discover').css('display','none'); 20 $('#container_nav_header').css('display','none'); 21 $('#slides').css('opacity','0'); 22 $('#slide').css('opacity','0'); 23 } else { 24 // relative 25 $('#nav').removeClass("floatable"); 26 $('#text_header_contain').css('display','block'); 27 $('#text_header').css('display','block'); 28 $('#right_slide_head').css('display','block'); 29 $('#left_slide_head').css('display','block'); 30 $('#container_discover').css('display','block'); 31 $('#container_nav_header').css('display','block'); 32 $('#slides').css('opacity','1'); 33 $('#slide').css('opacity','1'); 34 } 35 36 } 37 ); 38 39 40
41 $("#top").on("click", "#top_content", function(){ 42 $("#menu_phone li").toggleClass("show"); 43 }); 44 $("#top").on("click", "#menu_phone li", function(){ 45 $("#menu_phone li").toggleClass("show"); 46 }); 47 48}); 49 50jQuery(window).load(function () { 51 52 $(function() { 53 $('#nav #menu table tr td a').bind('click',function(event){ 54 var $anchor = $(this); 55 56 $('html, body').stop().animate({ 57 scrollTop: $($anchor.attr('href')).offset().top 58 }, 1500,'easeInOutExpo'); 59 event.preventDefault(); 60 }); 61 $('#menu_phone ul a').bind('click',function(event){ 62 var $anchor = $(this); 63 64 $('html, body').stop().animate({ 65 scrollTop: $($anchor.attr('href')).offset().top 66 }, 1500,'easeInOutExpo'); 67 event.preventDefault(); 68 }); 69 $('.discover a').each(function(){ 70 $(this).bind('click',function(event){ 71 var $anchor = $(this); 72 console.log($anchor); 73 74 $('html, body').stop().animate({ 75 scrollTop: $($anchor.attr('href')).offset().top 76 }, 1500,'easeInOutExpo'); 77 event.preventDefault(); 78 }); 79 }) 80 81 $('#contact_nav').bind('click',function(event){ 82 var $anchor = $(this); 83 84 $('html, body').stop().animate({ 85 scrollTop: $($anchor.attr('href')).offset().top 86 }, 1500,'easeInOutExpo'); 87 event.preventDefault(); 88 }); 89 $('#team_contact').bind('click',function(event){ 90 var $anchor = $(this); 91 92 $('html, body').stop().animate({ 93 scrollTop: $($anchor.attr('href')).offset().top 94 }, 1500,'easeInOutExpo'); 95 event.preventDefault(); 96 }); 97 $('#text_contact').bind('click',function(event){ 98 var $anchor = $(this); 99 100 $('html, body').stop().animate({ 101 scrollTop: $($anchor.attr('href')).offset().top 102 }, 1500,'easeInOutExpo'); 103 event.preventDefault(); 104 }); 105 $('#top_mail').bind('click',function(event){ 106 var $anchor = $(this).parent(); 107 108 $('html, body').stop().animate({ 109 scrollTop: $($anchor.attr('href')).offset().top 110 }, 1500,'easeInOutExpo'); 111 event.preventDefault(); 112 }); 113 }); 114 115 if($('#header').length > 0){ 116 var positionHeaderInPage = $('#header').offset().top; 117 $(window).scroll( 118 function() { 119 if ($(window).scrollTop() >= positionHeaderInPage) { 120 // actif 121 $('.menu_links').removeClass("active"); 122 $("#current_menu_phone").html("the<br><strong>HOME</strong>"); 123 } 124 } 125 ); 126 } 127 128 $(window).scroll(function(){ 129 $('.cat').each(function(){ 130 var positionCatInPage = $(this).offset().top - 10; 131 if($(window).scrollTop() >= positionCatInPage){ 132 var title = $(this).find('.title'); 133 var id = $(title).text(); 134 var t = id.split(" "); 135 var title1 = t[0]; 136 var title2 = t[1]; 137 138 var idmenu = $(this).attr('id'); 139 var menu = $('#menu_' + idmenu + ''); 140 $('.menu_links').removeClass("active"); 141 menu.addClass('active'); 142 143 $('#current_menu_phone').html(title1 + '<br><strong>' + title2 + '</strong>'); 144 } 145 }); 146 }); 147 148 149}); 150 151/* 152 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 153 * 154 * Uses the built in easing capabilities added In jQuery 1.1 155 * to offer multiple easing options 156 * 157 * TERMS OF USE - jQuery Easing 158 * 159 * Open source under the BSD License. 160 * 161 * Copyright © 2008 George McGinley Smith 162 * All rights reserved. 163 * 164 * Redistribution and use in source and binary forms, with or without modification, 165 * are permitted provided that the following conditions are met: 166 * 167 * Redistributions of source code must retain the above copyright notice, this list of 168 * conditions and the following disclaimer. 169 * Redistributions in binary form must reproduce the above copyright notice, this list 170 * of conditions and the following disclaimer in the documentation and/or other materials 171 * provided with the distribution. 172 * 173 * Neither the name of the author nor the names of contributors may be used to endorse 174 * or promote products derived from this software without specific prior written permission. 175 * 176 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 177 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 178 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 179 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
vendor: 5,091 bytes, lines 180-325
180 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 181 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 182 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 183 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 184 * OF THE POSSIBILITY OF SUCH DAMAGE. 185 * 186*/ 187 188// t: current time, b: begInnIng value, c: change In value, d: duration 189jQuery.easing['jswing'] = jQuery.easing['swing']; 190 191jQuery.extend( jQuery.easing, 192{ 193 def: 'easeOutQuad', 194 swing: function (x, t, b, c, d) { 195 //alert(jQuery.easing.default); 196 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 197 }, 198 easeInQuad: function (x, t, b, c, d) { 199 return c*(t/=d)*t + b; 200 }, 201 easeOutQuad: function (x, t, b, c, d) { 202 return -c *(t/=d)*(t-2) + b; 203 }, 204 easeInOutQuad: function (x, t, b, c, d) { 205 if ((t/=d/2) < 1) return c/2*t*t + b; 206 return -c/2 * ((--t)*(t-2) - 1) + b; 207 }, 208 easeInCubic: function (x, t, b, c, d) { 209 return c*(t/=d)*t*t + b; 210 }, 211 easeOutCubic: function (x, t, b, c, d) { 212 return c*((t=t/d-1)*t*t + 1) + b; 213 }, 214 easeInOutCubic: function (x, t, b, c, d) { 215 if ((t/=d/2) < 1) return c/2*t*t*t + b; 216 return c/2*((t-=2)*t*t + 2) + b; 217 }, 218 easeInQuart: function (x, t, b, c, d) { 219 return c*(t/=d)*t*t*t + b; 220 }, 221 easeOutQuart: function (x, t, b, c, d) { 222 return -c * ((t=t/d-1)*t*t*t - 1) + b; 223 }, 224 easeInOutQuart: function (x, t, b, c, d) { 225 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 226 return -c/2 * ((t-=2)*t*t*t - 2) + b; 227 }, 228 easeInQuint: function (x, t, b, c, d) { 229 return c*(t/=d)*t*t*t*t + b; 230 }, 231 easeOutQuint: function (x, t, b, c, d) { 232 return c*((t=t/d-1)*t*t*t*t + 1) + b; 233 }, 234 easeInOutQuint: function (x, t, b, c, d) { 235 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 236 return c/2*((t-=2)*t*t*t*t + 2) + b; 237 }, 238 easeInSine: function (x, t, b, c, d) { 239 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 240 }, 241 easeOutSine: function (x, t, b, c, d) { 242 return c * Math.sin(t/d * (Math.PI/2)) + b; 243 }, 244 easeInOutSine: function (x, t, b, c, d) { 245 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 246 }, 247 easeInExpo: function (x, t, b, c, d) { 248 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 249 }, 250 easeOutExpo: function (x, t, b, c, d) { 251 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 252 }, 253 easeInOutExpo: function (x, t, b, c, d) { 254 if (t==0) return b; 255 if (t==d) return b+c; 256 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 257 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 258 }, 259 easeInCirc: function (x, t, b, c, d) { 260 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 261 }, 262 easeOutCirc: function (x, t, b, c, d) { 263 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 264 }, 265 easeInOutCirc: function (x, t, b, c, d) { 266 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 267 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 268 }, 269 easeInElastic: function (x, t, b, c, d) { 270 var s=1.70158;var p=0;var a=c; 271 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 272 if (a < Math.abs(c)) { a=c; var s=p/4; } 273 else var s = p/(2*Math.PI) * Math.asin (c/a); 274 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 275 }, 276 easeOutElastic: function (x, t, b, c, d) { 277 var s=1.70158;var p=0;var a=c; 278 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 279 if (a < Math.abs(c)) { a=c; var s=p/4; } 280 else var s = p/(2*Math.PI) * Math.asin (c/a); 281 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 282 }, 283 easeInOutElastic: function (x, t, b, c, d) { 284 var s=1.70158;var p=0;var a=c; 285 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 286 if (a < Math.abs(c)) { a=c; var s=p/4; } 287 else var s = p/(2*Math.PI) * Math.asin (c/a); 288 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 289 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 290 }, 291 easeInBack: function (x, t, b, c, d, s) { 292 if (s == undefined) s = 1.70158; 293 return c*(t/=d)*t*((s+1)*t - s) + b; 294 }, 295 easeOutBack: function (x, t, b, c, d, s) { 296 if (s == undefined) s = 1.70158; 297 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 298 }, 299 easeInOutBack: function (x, t, b, c, d, s) { 300 if (s == undefined) s = 1.70158; 301 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 302 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 303 }, 304 easeInBounce: function (x, t, b, c, d) { 305 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 306 }, 307 easeOutBounce: function (x, t, b, c, d) { 308 if ((t/=d) < (1/2.75)) { 309 return c*(7.5625*t*t) + b; 310 } else if (t < (2/2.75)) { 311 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 312 } else if (t < (2.5/2.75)) { 313 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 314 } else { 315 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 316 } 317 }, 318 easeInOutBounce: function (x, t, b, c, d) { 319 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 320 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 321 } 322}); 323 324/* 325 *
326 * TERMS OF USE - EASING EQUATIONS 327 * 328 * Open source under the BSD License. 329 * 330 * Copyright © 2001 Robert Penner 331 * All rights reserved. 332 * 333 * Redistribution and use in source and binary forms, with or without modification, 334 * are permitted provided that the following conditions are met: 335 * 336 * Redistributions of source code must retain the above copyright notice, this list of 337 * conditions and the following disclaimer. 338 * Redistributions in binary form must reproduce the above copyright notice, this list 339 * of conditions and the following disclaimer in the documentation and/or other materials 340 * provided with the distribution. 341 * 342 * Neither the name of the author nor the names of contributors may be used to endorse 343 * or promote products derived from this software without specific prior written permission. 344 * 345 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 346 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 347 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 348 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 349 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 350 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 351 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 352 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 353 * OF THE POSSIBILITY OF SUCH DAMAGE. 354 * 355 */
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.