1 2 3function login_fb() { 4 5 FB.login(function (response) { 6 7 if (response.authResponse) { 8 access_token = response.authResponse.accessToken; 9 user_id = response.authResponse.userID; 10 11 FB.api( 12 "/me/picture", 13 { 14 "redirect": false, 15 "height": "200", 16 "type": "normal", 17 "width": "200" 18 }, 19 function (response) { 20 if (response && !response.error) { 21 /* handle the result */ 22 hdnFB.Set('Image', response.data.url); 23 } 24 } 25 ); 26 27 FB.api('/me?fields=email,name,first_name,last_name,gender', function (response) { 28 hdnFB.Set('Name', response.name); 29 hdnFB.Set('Email', response.email); 30 hdnFB.Set('FirstName', response.first_name); 31 hdnFB.Set('LastName', response.last_name); 32 hdnFB.Set('Gender', response.gender); 33 hdnFB.Set('By', 'FB'); 34 console.log(JSON.stringify(response)); 35 $('#LogoutLinkFB').show(); 36 $('#LoginLink').hide(); 37 callbackPnlLoginPage.PerformCallback(); 38 }); 39 40 } else { 41 console.log('User cancelled login or did not fully authorize.'); 42 43 } 44 }, { 45 scope: 'public_profile,email' 46 }); 47} 48function fb_login() { 49 FB.login(function (response) { 50 51 if (response.authResponse) { 52 53 access_token = response.authResponse.accessToken; 54 user_id = response.authResponse.userID; 55 56 FB.api( 57 "/me/picture", 58 { 59 "redirect": false, 60 "height": "200", 61 "type": "normal", 62 "width": "200" 63 }, 64 function (response) { 65 if (response && !response.error) { 66 /* handle the result */ 67 hdnFB.Set('Image', response.data.url); 68 } 69 } 70 ); 71 72 FB.api('/me?fields=email,name,first_name,last_name,gender', function (response) { 73 hdnFB.Set('Name', response.name); 74 hdnFB.Set('Email', response.email); 75 hdnFB.Set('FirstName', response.first_name); 76 hdnFB.Set('LastName', response.last_name); 77 hdnFB.Set('Gender', response.gender); 78 hdnFB.Set('By', 'FB'); 79 console.log(JSON.stringify(response)); 80 $('#LogoutLinkFB').show(); 81 $('#LoginLink').hide(); 82 callbackPnl.PerformCallback(); 83 }); 84 85 } else { 86 console.log('User cancelled login or did not fully authorize.'); 87 88 } 89 }, { 90 scope: 'public_profile,email' 91 }); 92} 93 94function fb_logout() { 95 FB.logout(function (response) { 96 console.log(JSON.stringify(response)); 97 }); 98} 99 100$(document).ready(function () { 101 102 /* -------------------- Lazy Load Setting -------------------- */ 103 104 $(function () { 105 $('img').lazy({ 106 effect: "fadeIn", 107 effectTime: 1000, 108 threshold: 10, 109 }); 110 }); 111 112 /* -------------------- Short Description Setting ( For Category Description ) -------------------- */ 113 114 $(function () { 115 if ($('#collapseShortDesc p').text().length < 425) { 116 $('#btnShortDesc').addClass('d-none'); 117 $('#collapseShortDesc').removeClass('collapse'); 118 } 119 }); 120 121 /* -------------------- Quick Search Category Setting -------------------- */ 122 123 var $item = $('.quick-search .items'), 124 visible = 1, 125 index = 0, 126 endIndex = ($item.length / visible) - 1; 127 128 $('.arrow-next').click(function () { 129 if (index < endIndex) { 130 index++; 131 $item.animate({ 'left': '-=100px' }); 132 } 133 });
134 135 $('.arrow-prev').click(function () { 136 if (index > 0) { 137 index--; 138 $item.animate({ 'left': '+=100px' }); 139 } 140 }); 141}); 142 143$(window).on('load', function () { 144 145 /* -------------------- Navbar Scroll Setting -------------------- */ 146 147 $(window).scroll(function () { 148 $(".navbar").toggleClass("scroll", $(this).scrollTop() > 50) 149 }); 150}); 151 152/* -------------------- Slick Setting -------------------- */ 153 154/* Slick For Responsive - Detail Product */ 155 156$('.slick-for-detail-product-responsive').slick({ 157 lazyLoad: 'ondemand', 158 slidesToShow: 1, 159 slidesToScroll: 1, 160 arrows: true, 161 dots: true, 162 infinite: false, 163 autoplay: true, 164 autoplaySpeed: 3500, 165 166 asNavFor: '.slick-nav-detail-product-responsive', 167}); 168 169/* Slick Nav Responsive - Detail Product */ 170 171$('.slick-nav-detail-product-responsive').slick({ 172 lazyLoad: 'ondemand', 173 slidesToShow: 3, 174 slidesToScroll: 1, 175 arrows: true, 176 dots: true, 177 centerMode: false, 178 focusOnSelect: true, 179 infinite: false, 180 autoplay: true, 181 autoplaySpeed: 3500, 182 183 asNavFor: '.slick-for-detail-product-responsive', 184}); 185 186 187/* Slick For Responsive */ 188 189$('.slick-for-responsive').slick({ 190 lazyLoad: 'ondemand', 191 slidesToShow: 1, 192 slidesToScroll: 1, 193 arrows: true, 194 dots: true, 195 infinite: false, 196 197 asNavFor: '.slick-nav-responsive', 198}); 199 200/* Slick Nav Responsive */ 201 202$('.slick-nav-responsive').slick({ 203 lazyLoad: 'ondemand', 204 slidesToShow: 3, 205 slidesToScroll: 1, 206 arrows: true, 207 dots: true, 208 centerMode: false, 209 focusOnSelect: true, 210 infinite: false, 211 212 asNavFor: '.slick-for-responsive', 213}); 214 215/* Single Slick */ 216 217$('.slick-responsive-auto.single').slick({ 218 lazyLoad: 'ondemand', 219 mobileFirst: false, 220 dots: true, 221 arrows: true, 222 slidesToShow: 1, 223 slidesToScroll: 1, 224 infinite: false, 225 autoplay: true, 226 autoplaySpeed: 3500, 227}); 228 229$('.slick-responsive-auto-fade.single').slick({ 230 lazyLoad: 'ondemand', 231 mobileFirst: false, 232 dots: true, 233 arrows: true, 234 slidesToShow: 1, 235 slidesToScroll: 1, 236 fade: true, 237 infinite: false, 238 autoplay: true, 239 autoplaySpeed: 2500, 240}); 241 242/* Single Slick - Center*/ 243 244$('.slick-responsive-auto-center.single').slick({ 245 lazyLoad: 'ondemand', 246 mobileFirst: true, 247 dots: true, 248 arrows: true, 249 centerMode: true, 250 variableWidth: true, 251 focusOnSelect: true, 252 slidesToShow: 1, 253 slidesToScroll: 1, 254 infinite: true, 255 autoplay: false, 256 autoplaySpeed: 3500, 257}); 258 259 260/* Double Slick */ 261 262$('.slick-responsive-auto.double').slick({ 263 lazyLoad: 'ondemand', 264 mobileFirst: false, 265 dots: true, 266 arrows: true, 267 slidesToShow: 2, 268 slidesToScroll: 1, 269 infinite: false, 270 autoplay: true, 271 autoplaySpeed: 3500, 272 responsive: [ 273 { 274 breakpoint: 1000, 275 settings: { 276 slidesToShow: 2, 277 } 278 }, 279 { 280 breakpoint: 600, 281 settings: { 282 slidesToShow: 2, 283 } 284 }] 285}); 286 287/* Triple Slick */ 288 289$('.slick-responsive-auto.triple').slick({ 290 lazyLoad: 'ondemand', 291 mobileFirst: false, 292 dots: true, 293 arrows: true, 294 slidesToShow: 3, 295 slidesToScroll: 1, 296 infinite: false, 297 autoplay: true, 298 autoplaySpeed: 3500, 299 responsive: [ 300 { 301 breakpoint: 1000, 302 settings: { 303 slidesToShow: 2, 304 } 305 }, 306 { 307 breakpoint: 600, 308 settings: { 309 slidesToShow: 1, 310 } 311 }] 312}); 313 314/* ---------- Slick Responsive Auto - Dual Row ---------- */ 315 316$('.slick-responsive-auto-dual-row.triple').slick({ 317 dots: true, 318 arrows: true, 319 infinite: false, 320 rows: 2, 321 slidesToShow: 3, 322 slidesToScroll: 2, 323 responsive: [ 324 { 325 breakpoint: 1000, 326 settings: { 327 slidesToShow: 2, 328 } 329 }, 330 { 331 breakpoint: 600, 332 settings: { 333 slidesToShow: 2, 334 rows: 1, 335 } 336 }] 337}); 338 339/* Quadruple Slick */ 340 341$('.slick-responsive-auto.quadruple').slick({ 342 lazyLoad: 'ondemand', 343 mobileFirst: false, 344 dots: true, 345 arrows: true, 346 slidesToShow: 4, 347 slidesToScroll: 1, 348 infinite: false, 349 autoplay: false, 350 autoplaySpeed: 3500, 351 responsive: [ 352 { 353 breakpoint: 1000, 354 settings: { 355 slidesToShow: 3, 356 } 357 }, 358 { 359 breakpoint: 600, 360 settings: { 361 slidesToShow: 2, 362 } 363 }] 364}); 365 366/* Quadruple Slick - Dual Row */ 367 368$('.slick-responsive-auto-dual-row.quadruple').slick({ 369 dots: true, 370 arrows: true, 371 infinite: false, 372 rows: 2, 373 slidesToShow: 4, 374 slidesToScroll: 2, 375 responsive: [ 376 { 377 breakpoint: 1000, 378 settings: { 379 slidesToShow: 3, 380 } 381 }, 382 { 383 breakpoint: 600, 384 settings: { 385 slidesToShow: 2, 386 rows: 1, 387 } 388 }] 389}); 390 391/* Quintuple Slick */ 392 393//$('.slick-responsive-auto.quintuple').slick({
394// lazyLoad: 'ondemand', 395// mobileFirst: false, 396// dots: true, 397// arrows: true, 398// slidesToShow: 5, 399// slidesToScroll: 1, 400// infinite: false, 401// autoplay: true, 402// autoplaySpeed: 3500, 403// responsive: [ 404// { 405// breakpoint: 1000, 406// settings: { 407// slidesToShow: 3, 408// } 409// }, 410// { 411// breakpoint: 600, 412// settings: { 413// slidesToShow: 1, 414// } 415// }] 416//}); 417 418$('.slick-responsive-auto.quintuple').slick({ 419 lazyLoad: 'ondemand', 420 mobileFirst: false, 421 dots: true, 422 arrows: true, 423 slidesToShow: 4, 424 slidesToScroll: 1, 425 infinite: false, 426 autoplay: true, 427 autoplaySpeed: 3500, 428 responsive: [ 429 { 430 breakpoint: 1000, 431 settings: { 432 slidesToShow: 4, 433 } 434 }, 435 { 436 breakpoint: 600, 437 settings: { 438 slidesToShow: 3, 439 } 440 }] 441}); 442 443/* Sextuple Slick */ 444 445$('.slick-responsive-auto.sextuple').slick({ 446 lazyLoad: 'ondemand', 447 mobileFirst: false, 448 dots: true, 449 arrows: true, 450 slidesToShow: 6, 451 slidesToScroll: 1, 452 infinite: false, 453 autoplay: true, 454 autoplaySpeed: 3500, 455 responsive: [ 456 { 457 breakpoint: 1000, 458 settings: { 459 slidesToShow: 4, 460 } 461 }, 462 { 463 breakpoint: 600, 464 settings: { 465 slidesToShow: 3, 466 } 467 }] 468}); 469 470// Slick Overview Size Chart 471 472$(document).ready(function () { 473 if ($(window).width() < 700) { 474 $('.overview-detail-sizechart.primary .overview-content .content-table .table-body .body-list ul').slick({ 475 mobileFirst: true, 476 lazyLoad: 'ondemand', 477 dots: true, 478 arrows: false, 479 slidesToShow: 2, 480 slidesToScroll: 1, 481 infinite: false, 482 autoplay: false, 483 variableWidth: true, 484 autoplaySpeed: 3500, 485 }); 486 } 487 488 $('#btnOverviewSizeChartOpenModal').attr({ 489 'data-toggle': 'modal', 490 'data-target': '#modalImagePrimary' 491 }); 492 493 $('#btnOverviewSizeChartCloseModal').attr({ 494 'data-dismiss': 'modal', 495 }); 496}); 497 498(function() { 499 var parallax, speed; 500 501 parallax = document.querySelectorAll('.call-to-action-parallax .content-image .image img'); 502 503 speed = 0.25; 504 505 window.onscroll = function() { 506 return [].slice.call(parallax).forEach(function(el, i) { 507 var dist; 508 dist = $(window).scrollTop() - $(el).offset().top; 509 return $(el).css('top', dist * speed + 'px'); 510 }); 511 }; 512 513}).call(this);
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.