1var homepagemodule = angular.module('homePage', [ 2 'ngMaterial', 'ngRoute', 'ngMeta' 3]).run(['ngMeta', function(ngMeta) { 4 5 ngMeta.init(); 6 7 8 9}]).config(function($sceDelegateProvider) { 10 $sceDelegateProvider.resourceUrlWhitelist([ 11 'self', 12 'http://webcache.googleusercontent.com/**', 13 /webcache/, 14 /google/ 15 ]); 16}); 17 18homepagemodule. 19component('homePage', { 20 templateUrl: '/templates/homepage/homepage.html', 21 controller: ['$http', '$routeParams', '$scope', '$rootScope', '$route', '$location', '$mdMedia', '$window', '$mdDialog', 22 function HomePageController($http, $routeParams, $scope, $rootScope, $route, $location, $mdMedia, $window, $mdDialog) { 23 window.scrollTo(0, 0); 24 var self = this; 25 var path = $location.path(); 26 self.path = path; 27 self.exp_country = country; 28 self.active_tab = 1; 29 console.log(country); 30 self.homepage_country = country; 31 $scope.slickConfig2Loaded = false; 32 33 if ("ga" in window) { 34 $window.ga(function() { 35 tracker = $window.ga.getAll()[0]; 36 37 if (tracker) { 38 tracker.set('page', $location.path()); 39 tracker.send('pageview'); 40 } 41 }); 42 43 } 44 45 $window.dataLayer.push({ 46 'UserId': $window.userid, //user id of the logged in user; NULL if no user id exists 47 'Page': 'Home', //Name of the page 48 'PageType': 'Home', //Type of the page: category, sub category, PDP, Home, etc. 49 'UserStatus': $window.userstatus //LoggedIn/LoggedOut 50 }); 51 self.isMedia = function(media) { 52 return $mdMedia(media); 53 } 54 $rootScope.ngMeta.statuscode = '200'; 55 /*$rootScope.ngMeta.title = 'Buy Diamond Jewellery Online in India | 100% Certified Gold and Diamond Jewellery | Kirtilals';*/ 56 $rootScope.ngMeta.title = 'Online Diamond Jewellery Store In India | Kirtilals'; 57 /*$rootScope.ngMeta.description = 'Buy Diamond Jewellery Online, Browse Gold and Diamond Jewellery Designs and avail Free Shipping, Money Back Guarantee only at Kirtilal';*/ 58 $rootScope.ngMeta.description = 'Shop all our latest collections of light-weight and fashionable diamond jewellery at Kirtilals. 100% Certified Diamond Jewellery Over 1500 Designs.'; 59 $rootScope.ngMeta.keywords = 'Kirtilal jewellers,Kirtilals,Kirtilals,Jewellery for women,Buy Jewellery Online in india,best shop for diamond jewellery'; 60 self.carousel_banners_desktop_top = []; 61 self.carousel_banners_mobile_top = []; 62 self.carousel_banners_desktop_middle = []; 63 self.carousel_banners_mobile_middle = []; 64 self.showcarousel = false; 65 self.home_page_banners_top = []; 66 self.home_page_banners_bottom = []; 67 $scope.slickCarouselMainConfig = { 68 dots: false, 69 infinite: true, 70 autoplay: true, 71 slidesToShow: 1, 72 slidesToScroll: 1, 73 adaptiveHeight: true, 74 mobileFirst: true, 75 centerMode: true, 76 autoplaySpeed: 3000, 77 speed: 1000 78 }; 79 $scope.slickCarouselMainConfig = { 80 81 dots: true, 82 infinite: true, 83 autoplay: true, 84 arrows: false, 85 slidesToShow: 1, 86 centerMode: true, 87 centerPadding: '100px', 88 slidesToScroll: 1, 89 autoplaySpeed: 3000, 90 speed: 1000, 91 responsive: [ 92 { 93 breakpoint: 599, 94 settings: 95 { 96 slidesToShow: 1, 97 slidesToScroll: 1, 98 centerMode: false, 99 centerPadding: '0px' 100 } 101 }] 102 }; 103 104 $scope.slickCarouselSingle = { 105 dots: false, 106 infinite: false, 107 autoPlay: false, 108 arrows:true, 109 slidesToShow: 1, 110 slidesToScroll: 1, 111 }; 112 113 $scope.slickCarouselConfig = { 114 dots: false, 115 arrows: true, 116 infinite: true,
117 autoPlay: false, 118 slidesToShow: 4, 119 slidesToScroll: 1, 120 variableWidth: false, 121 responsive: [{ 122 breakpoint: 1024, 123 settings: { 124 slidesToShow: 3, 125 slidesToScroll: 1 126 } 127 }, 128 { 129 breakpoint: 600, 130 settings: { 131 slidesToShow: 2, 132 slidesToScroll: 1, 133 //variableWidth: false 134 } 135 }, 136 { 137 breakpoint: 480, 138 settings: { 139 slidesToShow: 2, 140 slidesToScroll: 1, 141 //variableWidth: true 142 } 143 } 144 ] 145 }; 146 147 148 $scope.slickCarouselConfig1 = { 149 dots: false, 150 arrows: true, 151 infinite: true, 152 autoplay: true, 153 slidesToShow: 4, 154 slidesToScroll: 1, 155 centerMode: true, 156 centerPadding: '100px', 157 responsive: [ 158 { 159 breakpoint: 991, 160 settings: 161 { 162 slidesToShow: 2, 163 slidesToScroll: 1, 164 infinite: true, 165 autoplay: true, 166 } 167 }, 168 { 169 breakpoint: 768, 170 settings: 171 { 172 slidesToShow: 2, 173 slidesToScroll: 1, 174 autoplay: true, 175 variableWidth: false, 176 } 177 }, 178 { 179 breakpoint: 580, 180 settings: 181 { 182 slidesToShow: 2, 183 slidesToScroll: 1, 184 autoplay: true, 185 variableWidth: false, 186 centerMode: false, 187 } 188 }] 189 }; 190 191 $scope.slickCarouselConfig2 = { 192 dots: false, 193 infinite: true, 194 loop: true, 195 speed: 800, 196 slidesToShow: 5, 197 slidesToScroll: 1, 198 autoplay: true, 199 autoplaySpeed: 2500, 200 arrows: true, 201 responsive: [ 202 { 203 breakpoint: 1100, 204 settings: 205 { 206 slidesToShow: 4, 207 slidesToScroll: 1 208 } 209 }, 210 { 211 breakpoint: 992, 212 settings: 213 { 214 slidesToShow: 3, 215 slidesToScroll: 1 216 } 217 }, 218 { 219 breakpoint: 667, 220 settings: 221 { 222 slidesToShow: 2, 223 slidesToScroll: 1 224 } 225 } 226 ] 227 }; 228 229 230 $scope.slickCarouselConfig3 = { 231 slidesToShow: 5, 232 slidesToScroll: 1, 233 autoplay: true, 234 autoplaySpeed: 3000, 235 arrows: false, 236 dots: true, 237 infinite: true, 238 lazyLoad: 'ondemand', 239 responsive: [ 240 { 241 breakpoint: 800, 242 settings: 243 { 244 slidesToShow: 3, 245 slidesToScroll: 1 246 } 247 }, 248 { 249 breakpoint: 520, 250 settings: 251 { 252 slidesToShow: 2, 253 slidesToScroll: 1 254 } 255 }] 256 }; 257 258 259 260 $scope.slickCarouselConfig4 = { 261 slidesToShow: 4, 262 slidesToScroll: 1, 263 autoplay: true, 264 autoplaySpeed: 3000, 265 arrows: true, 266 dots: false, 267 infinite: true, 268 lazyLoad: 'ondemand', 269 responsive: [ 270 { 271 breakpoint: 800, 272 settings: 273 { 274 slidesToShow: 3, 275 slidesToScroll: 1 276 } 277 }, 278 { 279 breakpoint: 520, 280 settings: 281 { 282 slidesToShow: 2, 283 slidesToScroll: 1 284 } 285 }] 286 }; 287 288 289 $scope.slickCarouselConfig9 = { 290 dots: true, 291 slidesToShow: 5, 292 infinite: true, 293 autoplay: true, 294 autoplaySpeed: 3000, 295 arrows:false, 296 speed: 500, 297 slidesToScroll: 1, 298 299 }; 300 301 302 303 $scope.slickCarouselConfig5 = { 304 dots: false, 305 arrows:true, 306 infinite: true, 307 autoPlay: false, 308 slidesToShow: 2, 309 slidesToScroll: 1, 310 variableWidth: false, 311 responsive: [{ 312 breakpoint: 480, 313 settings: { 314 slidesToShow: 2, 315 slidesToScroll: 1 316 } 317 } 318 ] 319 }; 320 321 322 323 $scope.slickCarouselConfig6 = { 324 slidesToShow: 4, 325 slidesToScroll: 1, 326 autoplay: true, 327 autoplaySpeed: 3000,
328 arrows: false, 329 dots: false, 330 infinite: true, 331 responsive: [ 332 { 333 breakpoint: 1100, 334 settings: 335 { 336 slidesToShow: 2, 337 slidesToScroll: 1 338 } 339 }, 340 { 341 breakpoint: 800, 342 settings: 343 { 344 slidesToShow: 2, 345 slidesToScroll: 1 346 } 347 }, 348 { 349 breakpoint: 520, 350 settings: 351 { 352 slidesToShow: 1, 353 slidesToScroll: 1 354 } 355 }] 356 }; 357 358 359 $scope.slickCarouselConfig7 = { 360 dots: false, 361 infinite: false, 362 slidesToShow: 3, 363 slidesToScroll: 1, 364 autoplay: false, 365 arrows: true, 366 adaptiveHeight: true, 367 centerMode: false, 368 variableWidth: false, 369 responsive: [ 370 { 371 breakpoint: 992, 372 settings: 373 { 374 slidesToShow: 1, 375 slidesToScroll: 1 376 } 377 }, 378 { 379 breakpoint: 667, 380 settings: 381 { 382 slidesToShow: 1, 383 slidesToScroll: 1 384 } 385 }] 386 }; 387 388 389 $scope.slickCarouselConfig8 = { 390 dots: false, 391 slidesToShow: 1, 392 infinite: true, 393 autoplay: true, 394 autoplaySpeed: 3000, 395 arrows:true, 396 speed: 500, 397 slidesToScroll: 1, 398 399 }; 400 401 402 $scope.slickCarouselConfig10 = { 403 dots: false, 404 slidesToShow: 5, 405 infinite: true, 406 autoplay: true, 407 autoplaySpeed: 3000, 408 arrows: false, 409 speed: 500, 410 slidesToScroll: 1, 411 responsive: [ 412 { 413 breakpoint: 991, 414 settings: 415 { 416 slidesToShow: 4, 417 slidesToScroll: 1, 418 infinite: true, 419 autoplay: true, 420 } 421 }, 422 { 423 breakpoint: 768, 424 settings: 425 { 426 slidesToShow: 3, 427 slidesToScroll: 1, 428 autoplay: true, 429 variableWidth: false, 430 } 431 }, 432 { 433 breakpoint: 580, 434 settings: 435 { 436 slidesToShow: 2, 437 slidesToScroll: 1, 438 autoplay: true, 439 variableWidth: false, 440 centerMode: false, 441 } 442 }] 443 }; 444 445 $scope.slickCarouselConfig11 = { 446 dots: false, 447 slidesToShow: 3, 448 infinite: true, 449 autoplay: true, 450 autoplaySpeed: 3000, 451 arrows: false, 452 speed: 500, 453 slidesToScroll: 1, 454 responsive: [ 455 { 456 breakpoint: 991, 457 settings: 458 { 459 slidesToShow: 3, 460 slidesToScroll: 1, 461 infinite: true, 462 autoplay: true, 463 } 464 }, 465 { 466 breakpoint: 768, 467 settings: 468 { 469 slidesToShow: 3, 470 slidesToScroll: 1, 471 autoplay: true, 472 variableWidth: false, 473 } 474 }, 475 { 476 breakpoint: 580, 477 settings: 478 { 479 slidesToShow: 2, 480 slidesToScroll: 1, 481 autoplay: true, 482 variableWidth: false, 483 centerMode: false, 484 } 485 }] 486 }; 487 488 $scope.slickCarouselConfig12 = { 489 slidesToShow: 4, 490 slidesToScroll: 1, 491 autoplay: true, 492 autoplaySpeed: 3000, 493 arrows: false, 494 dots: true, 495 infinite: true, 496 responsive: [ 497 { 498 breakpoint: 800, 499 settings: 500 { 501 slidesToShow: 3, 502 slidesToScroll: 1 503 } 504 }, 505 { 506 breakpoint: 520, 507 settings: 508 { 509 slidesToShow: 2, 510 slidesToScroll: 1 511 } 512 }] 513 }; 514 515 $scope.slickCarouselConfig13 = { 516 slidesToShow: 4, 517 slidesToScroll: 1, 518 autoplay: true, 519 autoplaySpeed: 3000, 520 arrows: false, 521 dots: true, 522 infinite: true, 523 responsive: [ 524 { 525 breakpoint: 800, 526 settings: 527 { 528 slidesToShow: 3, 529 slidesToScroll: 1 530 } 531 }, 532 { 533 breakpoint: 520, 534 settings: 535 { 536 slidesToShow: 2, 537 slidesToScroll: 1 538 } 539 }] 540 }; 541 542 self.country=country; 543 /*Express deivery code starts*/ 544 self.express_delivery_url = ""; 545 self.express_delivery_days = 0; 546 self.instagram_url = ""; 547 if(self.country == 'IN') 548 { 549 self.express_delivery_url = "https://www.kirtilals.com/ready-to-ship"; 550 self.express_delivery_days = 5; 551 self.instagram_url = "http://www.instagram.com/kirtilalsonline"; 552 } 553 else 554 { 555 self.express_delivery_url = "https://www.kirtilals.com/express-delivery-products"; 556 self.express_delivery_days = 6; 557 self.instagram_url = "https://www.instagram.com/kirtilalsglobal"; 558 } 559 console.log(self.instagram_url); 560 /*Express delivery code Ends*/ 561 562 self.browsecategory = [ 563 {cate_name:'Bangles', cate_id:'1', cate_imgurl:'/images/Browse_by_Category/BG04975_VD.jpg', cate_alt_name : 'Bangles',cate_product_url : 'diamond-bangles'}, 564 {cate_name:'Pendant', cate_id:'2', cate_imgurl:'/images/Browse_by_Category/PN13480_VD.jpg', cate_alt_name : 'Pendant',cate_product_url : 'diamond-pendant'}, 565 {cate_name:'Earrings', cate_id:'3', cate_imgurl:'/images/Browse_by_Category/ST25305.jpg', cate_alt_name : 'Earrings',cate_product_url : 'diamond-earrings'}, 566 {cate_name:'Bracelets', cate_id:'4', cate_imgurl:'/images/Browse_by_Category/BR03063.jpg', cate_alt_name : 'Bracelets',cate_product_url : 'diamond-bracelet'}, 567 {cate_name:'Necklace', cate_id:'5', cate_imgurl:'/images/Browse_by_Category/NK09268_VD.jpg', cate_alt_name : 'Necklace',cate_product_url : 'diamond-necklace'}, 568 {cate_name:'Nose Pin', cate_id:'6', cate_imgurl:'/images/Browse_by_Category/NP00954.jpg', cate_alt_name : 'Nose Pin',cate_product_url : 'nose-pin'}, 569 {cate_name:'Rings', cate_id:'7', cate_imgurl:'/images/Browse_by_Category/RG16053.jpg', cate_alt_name : 'Rings',cate_product_url : 'diamond-ring'}, 570 {cate_name:'Chain', cate_id:'8', cate_imgurl:'/images/Browse_by_Category/VD_CH00490.jpg', cate_alt_name : 'Chain',cate_product_url : 'diamond-chain'}, 571 ] 572 if(country == 'IN') 573 { 574 self.new_arrival = [ 575 // {arrival_name:'Temple Heritage Gold Necklace with Green & Red Accents', arrival_id:'1', arrival_imgurl:'https://www.kirtilals.com/images/media/products/25958/500x500/temple-heritage-gold-necklace-with-green-and-red-accents-25958-1.png', arrival_alt_name : 'Temple Heritage Gold Necklace with Green & Red Accents',arrival_product_url : 'temple-heritage-gold-necklace-with-green-and-red-accents',style_code : 'GNHZVAA168Z0ZZHAOWXZZ'}, 576 // {arrival_name:'Antique gold necklace with intricate floral motifs and ruby drop', arrival_id:'2', arrival_imgurl:'https://www.kirtilals.com/images/media/products/25957/500x500/antique-gold-necklace-with-intricate-floral-motifs-and-ruby-drop-25957-1.png', arrival_alt_name : 'Antique gold necklace with intricate floral motifs and ruby drop',arrival_product_url : '/antique-gold-necklace-with-intricate-floral-motifs-and-ruby-drop', style_code : 'GNHZC3A001Z0ZZHANWXZZ'}, 577 // {arrival_name:'Exquisite temple gold necklace with divine motif and ornate detailing', arrival_id:'3', arrival_imgurl:'https://www.kirtilals.com/images/media/products/25967/500x500/exquisite-temple-gold-necklace-with-divine-motif-and-ornate-detailing-25967-1.png', arrival_alt_name : 'Exquisite temple gold necklace with divine motif and ornate detailing',arrival_product_url : 'exquisite-temple-gold-necklace-with-divine-motif-and-ornate-detailing', style_code : 'GNSZVAA189Z0ZZHAIWXZZ'}, 578 // {arrival_name:'Gold necklace with twin peacock motif and goddess pendant', arrival_id:'4', arrival_imgurl:'https://www.kirtilals.com/images/media/products/25960/500x500/gold-necklace-with-twin-peacock-motif-and-goddess-pendant-25960-1.png', arrival_alt_name : 'Gold
578necklace with twin peacock motif and goddess pendant',arrival_product_url : 'gold-necklace-with-twin-peacock-motif-and-goddess-pendant', style_code : 'GNSZVAA183Z0ZZHAIWXZZ'}, 579 // {arrival_name:'Floral engraved gold necklace with circular pendant and gemstone highlights', arrival_id:'5', arrival_imgurl:'https://www.kirtilals.com/images/media/products/25961/500x500/floral-engraved-gold-necklace-with-circular-pendant-and-gemstone-highlights-25961-1.png', arrival_alt_name : 'Floral engraved gold necklace with circular pendant and gemstone highlights',arrival_product_url : 'floral-engraved-gold-necklace-with-circular-pendant-and-gemstone-highlights', style_code : 'GNSZVAA184Z0ZZHAIWXZZ'}, 580 // {arrival_name:'Lord Ganesha gold necklace with pearl accents and filigree chain', arrival_id:'6', arrival_imgurl:'https://www.kirtilals.com/images/media/products/25963/500x500/lord-ganesha-gold-necklace-with-pearl-accents-and-filigree-chain-25963-1.png', arrival_alt_name : 'Lord Ganesha gold necklace with pearl accents and filigree chain',arrival_product_url : 'lord-ganesha-gold-necklace-with-pearl-accents-and-filigree-chain', style_code : 'GNSZVAA190Z0ZZHAIWXZZ'}, 581 {arrival_name:'Sculptural Diamond Cuff Bracelet with Tapered Geometric Links', arrival_id:'10', arrival_imgurl:'/images/homepage_redesign/just_in_kk/BR03194_02.png', arrival_alt_name : 'Sculptural Diamond Cuff Bracelet with Tapered Geometric Links',arrival_product_url : 'sculptural-diamond-cuff-bracelet-with-tapered-geometric-links', style_code : 'BR03194_02'}, 582 {arrival_name:'Minimalist Diamond Bracelet with Sleek Vertical Bar', arrival_id:'9', arrival_imgurl:'/images/homepage_redesign/just_in_kk/BR03553_01_1_rose.png', arrival_alt_name : 'Minimalist Diamond Bracelet with Sleek Vertical Bar',arrival_product_url : 'minimalist-diamond-bracelet-with-sleek-vertical-bar', style_code : 'BR03553_01'}, 583 {arrival_name:'Fan Motif Gold Necklace Set with Green Floral Accents', arrival_id:'8', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA137Z0ZZHAGTXZZA00137.png', arrival_alt_name : 'Fan Motif Gold Necklace Set with Green Floral Accents',arrival_product_url : 'fan-motif-gold-necklace-set-with-green-floral-accents', style_code : 'GNSAAPA137Z0ZZHAGTXZZ'}, 584 {arrival_name:'Paisley Medallion Gold Necklace Set with Red Stone Drops', arrival_id:'7', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA142Z0ZZHAGTXZZA00142.png', arrival_alt_name : 'Paisley Medallion Gold Necklace Set with Red Stone Drops',arrival_product_url : 'paisley-medallion-gold-necklace-set-with-red-stone-drops', style_code : 'GNSAAPA142Z0ZZHAGTXZZ'}, 585 {arrival_name:'Paisley Inspired Gold Necklace Set with Red Stone Accents', arrival_id:'6', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA143Z0ZZHAGTXZZA00143.png', arrival_alt_name : 'Paisley Inspired Gold Necklace Set with Red Stone Accents',arrival_product_url : 'paisley-inspired-gold-necklace-set-with-red-stone-accents', style_code : 'GNSAAPA143Z0ZZHAGTXZZ'}, 586 {arrival_name:'Floral Disc Gold Necklace Set with Green Accents', arrival_id:'5', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA144Z0ZZHAGTXZZA00144.png', arrival_alt_name : 'floral-disc-gold-necklace-set-with-green-accents',arrival_product_url : 'floral-disc-gold-necklace-set-with-green-accents', style_code : 'GNSAAPA144Z0ZZHAGTXZZ'}, 587 {arrival_name:'Leaf Motif Gold Necklace Set with Red Stones', arrival_id:'4', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA146Z0ZZHAGTXZZA00146.png', arrival_alt_name : 'leaf-motif-gold-necklace-set-with-red-stones',arrival_product_url : 'leaf-motif-gold-necklace-set-with-red-stones', style_code : 'GNSAAPA146Z0ZZHAGTXZZ'}, 588 {arrival_name:'Trio Leaf Gold Pendant with Looped Vine Motif', arrival_id:'3', arrival_imgurl:'images/homepage_redesign/just_in_kk/GPPZCPA003Z0ZZHZZYCZZA00003.png', arrival_alt_name : 'trio-leaf-gold-pendant-with-looped-vine-motif',arrival_product_url : 'trio-leaf-gold-pendant-with-looped-vine-motif', style_code : 'GPPZCPA003Z0ZZHZZYCZZ'}, 589 {arrival_name:'Floral Teardrop Scroll Gold Pendant', arrival_id:'2', arrival_imgurl:'images/homepage_redesign/just_in_kk/GPPZCPA007Z0ZZHZZYCZZA00007.png', arrival_alt_name : 'floral-teardrop-scroll-gold-pendant',arr
589ival_product_url : 'floral-teardrop-scroll-gold-pendant', style_code : 'GPPZCPA007Z0ZZHZZYCZZ'}, 590 {arrival_name:'Twisted Ribbon Gold Pendant with Floral Accent', arrival_id:'1', arrival_imgurl:'images/homepage_redesign/just_in_kk/GPPZCPA010Z0ZZHZZYCZZA00010.png', arrival_alt_name : 'twisted-ribbon-gold-pendant-with-floral-accent',arrival_product_url : 'twisted-ribbon-gold-pendant-with-floral-accent', style_code : 'GPPZCPA010Z0ZZHZZYCZZ'}, 591 {arrival_name:'Open Floral Gold Ring with Heart Shaped Leaf Motifs', arrival_id:'11', arrival_imgurl:'/images/homepage_redesign/just_in_kk/GRCZCPA003Z0ZZHDQYCZZA00003.png', arrival_alt_name : 'open-floral-gold-ring-with-heart-shaped-leaf-motifs',arrival_product_url : 'open-floral-gold-ring-with-heart-shaped-leaf-motifs', style_code : 'GRCZCPA003Z0ZZHDQYCZZ'}, 592 {arrival_name:'Swirling Oval Gold Ring with Floral Motif', arrival_id:'12', arrival_imgurl:'/images/homepage_redesign/just_in_kk/GRCZCPA011Z0ZZHDQYCZZA00011.png', arrival_alt_name : 'swirling-oval-gold-ring-with-floral-motif',arrival_product_url : 'swirling-oval-gold-ring-with-floral-motif', style_code : 'GRCZCPA011Z0ZZHDQYCZZ'}, 593 {arrival_name:'Statement Diamond Necklace with Green Onyx Centre And Pearls', arrival_id:'13', arrival_imgurl:'/images/homepage_redesign/just_in_kk/NK09889_VD_rose.png', arrival_alt_name : 'statement-diamond-necklace-with-green-onyx-centre-and-pearls',arrival_product_url : 'statement-diamond-necklace-with-green-onyx-centre-and-pearls', style_code : 'NK09889_VD'}, 594 {arrival_name:'Ornate Diamond Necklace with Perched Birds and Green Onyx', arrival_id:'14', arrival_imgurl:'/images/homepage_redesign/just_in_kk/NK10003_VD_rose.png', arrival_alt_name : 'ornate-diamond-necklace-with-perched-birds-and-green-onyx',arrival_product_url : 'ornate-diamond-necklace-with-perched-birds-and-green-onyx', style_code : 'NK10003_VD'}, 595 {arrival_name:'Celestial Diamond Nose Pin with Star and Crescent', arrival_id:'15', arrival_imgurl:'/images/homepage_redesign/just_in_kk/NP00668_rose.png', arrival_alt_name : 'celestial-diamond-nose-pin-with-star-and-crescent',arrival_product_url : 'celestial-diamond-nose-pin-with-star-and-crescent', style_code : 'NP00668'}, 596 {arrival_name:'Heart Shaped Hydro Ruby Pendant With Diamond Halo Frame', arrival_id:'16', arrival_imgurl:'/images/homepage_redesign/just_in_kk/PN14749_1_rose.png', arrival_alt_name : 'heart-shaped-hydro-ruby-pendant-with-diamond-halo-frame',arrival_product_url : 'heart-shaped-hydro-ruby-pendant-with-diamond-halo-frame', style_code : 'PN14749'}, 597 {arrival_name:'Diamond Pendant with Perched Bird Motif and Red Eye', arrival_id:'17', arrival_imgurl:'/images/homepage_redesign/just_in_kk/PN15075_4_rose.png', arrival_alt_name : 'diamond-pendant-with-perched-bird-motif-and-red-eye',arrival_product_url : 'diamond-pendant-with-perched-bird-motif-and-red-eye', style_code : 'PN15075'}, 598 {arrival_name:'Emerald Halo Diamond Ring with Floral Petal Frame', arrival_id:'18', arrival_imgurl:'/images/homepage_redesign/just_in_kk/RG05982_17_1_rose.png', arrival_alt_name : 'emerald-halo-diamond-ring-with-floral-petal-frame',arrival_product_url : 'emerald-halo-diamond-ring-with-floral-petal-frame', style_code : 'RG05982_17'}, 599 {arrival_name:'Letter A Diamond Ring With Pink Sapphire Centre Accent', arrival_id:'19', arrival_imgurl:'/images/homepage_redesign/just_in_kk/RG06403_17_1_rose.png', arrival_alt_name : 'letter-a-diamond-ring-with-pink-sapphire-centre-accent',arrival_product_url : 'letter-a-diamond-ring-with-pink-sapphire-centre-accent', style_code : 'RG06403_17'}, 600 {arrival_name:'Geometric Lattice Diamond Signet Ring', arrival_id:'20', arrival_imgurl:'/images/homepage_redesign/just_in_kk/RG18042_VD_1_rose.png', arrival_alt_name : 'geometric-lattice-diamond-signet-ring',arrival_product_url : 'geometric-lattice-diamond-signet-ring', style_code : 'RG18042_VD'}, 601 {arrival_name:'Lotus Diamond Stud Earrings with Pink Sapphire', arrival_id:'21', arrival_imgurl:'/images/homepage_redesign/just_in_kk/ST02243_16_1_rose.png', arrival_alt_name : 'lotus-diamond-stud-earrings-with-pink-sapphire',arrival_product_url : 'lotus-diamond-stud-earrings-with-pink-sapphire', style_code : 'ST02243_16'}, 602 {arrival_name:'Classic Round Diamond Stud Earrings', arrival_id:'22', arrival_imgurl:'/images/homepage_redesign/just_in_kk/ST06450_25_4_rose.png', arrival_alt_name : 'classic-round-diamond-stud-earrings',arrival_product_url : 'classic-round-diamond-stud-earrings', style_code : 'ST06450_25'}, 603 {arrival_name:'Diamond Halo Stud Earrings with Red Oval Cabochons', arrival_id:'23', arrival_imgurl:'/images/homepage_redesign/just_in_kk/ST26053_1_rose.png', arrival_alt_name : 'diamond-halo-stud-earrings-with-red-oval-cabochons',arrival_product_url : 'diamond-halo-stud-earrings-with-red-oval-cabochons', style_code : 'ST26053'}, 604 {arrival_name:'Butterfly Diamond Nose Pin with Flat Back Closure', arrival_id:'24', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_NP00072_rose.png', arrival_alt_name : 'butterfly-diamond-nose-pin-with-flat-back-closure',arrival_product_url : 'butterfly-diamond-nose-pin-with-flat-back-closure', style_code : 'VD_NP00072'}, 605 {arrival_name:'Concentric Circle Diamond Pendant with Floral Centre', arrival_id:'25', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_PN03686_rose.png', arrival_alt_name : 'concentric-circle-diamond-pendant-with-floral-centre',arrival_product_url : 'concentric-circle-diamond-pendant-with-floral-centre', style_code : 'VD_PN03686'}, 606 {arrival_name:'Teardrop Diamond Pendant with Floral Cluster Centre', arrival_id:'26', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_PN03696_4_rose.png', arrival_alt_name : 'teardrop-diamond-pendant-with-floral-cluster-centre',arrival_product_url : 'teardrop-diamond-pendant-with-floral-cluster-centre', style_code : 'VD_PN03696'}, 607 {arrival_name:'Paisley Diamond Drop Earrings with Openwork Scalloped Dome', arrival_id:'27', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_ST10323_1_rose.png', arrival_alt_name : 'paisley-diamond-drop-earrings-with-openwork-scalloped-dome',arrival_product_url : 'paisley-diamond-drop-earrings-with-openwork-scalloped-dome', style_code : 'VD_ST10323'}, 608 609 ] 610 } 611 else 612 { 613 self.new_arrival = [ 614 // {arrival_name:'Delicate Ring with Pave Diamond Studded Band', arrival_id:'5', arrival_imgurl:'/images/New_Arrivals/RG16059.jpg', arrival_alt_name : 'Delicate Ring with Pave Diamond Studded Band',arrival_product_url : 'delicate-ring-with-pave-diamond-studded-band', style_code : 'RG16059'},
615 // {arrival_name:'Leaf-Inspired Diamond Earrings with Vibrant Teardrop Accent', arrival_id:'4', arrival_imgurl:'/images/New_Arrivals/ST25388.jpg', arrival_alt_name : 'Leaf-Inspired Diamond Earrings with Vibrant Teardrop Accent',arrival_product_url : 'leaf-inspired-diamond-earrings-with-vibrant-teardrop-accent', style_code : 'ST25388'}, 616 // {arrival_name:'Radiant Diamond Pendant With Central Pearl And Sunburst Design', arrival_id:'4', arrival_imgurl:'https://www.kirtilals.com/images/media/products/25994/500x500/square-diamond-studs-with-sculpted-gold-contours-and-layered-detailing-25994-6-R.png', arrival_alt_name : 'Radiant Diamond Pendant With Central Pearl And Sunburst Design',arrival_product_url : 'radiant-diamond-pendant-with-central-pearl-and-sunburst-design', style_code : 'VD_PN03404'}, 617 // {arrival_name:'Bold Diamond Mens Band With Rectangular Cluster', arrival_id:'3', arrival_imgurl:'https://www.kirtilals.com/images/media/products/26000/500x500/curled-diamond-earrings-with-coral-drops-and-artistic-gold-architecture-26000-6-R.png', arrival_alt_name : 'Bold Diamond Mens Band With Rectangular Cluster',arrival_product_url : 'bold-diamond-mens-band-with-rectangular-cluster', style_code : 'VD_RG05552'}, 618 // {arrival_name:'Multi-Row Diamond Band With Elevated Profile And Craftsmanship', arrival_id:'3', arrival_imgurl:'https://www.kirtilals.com/images/media/products/26002/500x500/layered-diamond-pendant-with-cascading-arcs-and-elegant-structured-pattern-26002-6-R.png', arrival_alt_name : 'Multi-Row Diamond Band With Elevated Profile And Craftsmanship',arrival_product_url : 'multi-row-diamond-band-with-elevated-profile-and-craftsmanship', style_code : 'VD_RG05554'}, 619 {arrival_name:'Sculptural Diamond Cuff Bracelet with Tapered Geometric Links', arrival_id:'10', arrival_imgurl:'/images/homepage_redesign/just_in_kk/BR03194_02.png', arrival_alt_name : 'Sculptural Diamond Cuff Bracelet with Tapered Geometric Links',arrival_product_url : 'sculptural-diamond-cuff-bracelet-with-tapered-geometric-links', style_code : 'BR03194_02'}, 620 {arrival_name:'Minimalist Diamond Bracelet with Sleek Vertical Bar', arrival_id:'9', arrival_imgurl:'/images/homepage_redesign/just_in_kk/BR03553_01_1_rose.png', arrival_alt_name : 'Minimalist Diamond Bracelet with Sleek Vertical Bar',arrival_product_url : 'minimalist-diamond-bracelet-with-sleek-vertical-bar', style_code : 'BR03553_01'}, 621 {arrival_name:'Fan Motif Gold Necklace Set with Green Floral Accents', arrival_id:'8', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA137Z0ZZHAGTXZZA00137.png', arrival_alt_name : 'Fan Motif Gold Necklace Set with Green Floral Accents',arrival_product_url : 'fan-motif-gold-necklace-set-with-green-floral-accents', style_code : 'GNSAAPA137Z0ZZHAGTXZZ'}, 622 {arrival_name:'Paisley Medallion Gold Necklace Set with Red Stone Drops', arrival_id:'7', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA142Z0ZZHAGTXZZA00142.png', arrival_alt_name : 'Paisley Medallion Gold Necklace Set with Red Stone Drops',arrival_product_url : 'paisley-medallion-gold-necklace-set-with-red-stone-drops', style_code : 'GNSAAPA142Z0ZZHAGTXZZ'}, 623 {arrival_name:'Paisley Inspired Gold Necklace Set with Red Stone Accents', arrival_id:'6', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA143Z0ZZHAGTXZZA00143.png', arrival_alt_name : 'Paisley Inspired Gold Necklace Set with Red Stone Accents',arrival_product_url : 'paisley-inspired-gold-necklace-set-with-red-stone-accents', style_code : 'GNSAAPA143Z0ZZHAGTXZZ'}, 624 {arrival_name:'Floral Disc Gold Necklace Set with Green Accents', arrival_id:'5', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA144Z0ZZHAGTXZZA00144.png', arrival_alt_name : 'floral-disc-gold-necklace-set-with-green-accents',arrival_product_url : 'floral-disc-gold-necklace-set-with-green-accents', style_code : 'GNSAAPA144Z0ZZHAGTXZZ'}, 625 {arrival_name:'Leaf Motif Gold Necklace Set with Red Stones', arrival_id:'4', arrival_imgurl:'images/homepage_redesign/just_in_kk/GNSAAPA146Z0ZZHAGTXZZA00146.png', arrival_alt_name : 'leaf-motif-gold-necklace-set-with-red-stones',arrival_product_url : 'leaf-motif-gold-necklace-set-with-red-stones', style_code : 'GNSAAPA146Z0ZZHAGTXZZ'}, 626 {arrival_name:'Trio Leaf Gold Pendant with Looped Vine Motif', arrival_id:'3', arrival_imgurl:'images/homepage_redesign/just_in_kk/GPPZCPA003Z0ZZHZZYCZZA00003.png', arrival_alt_name : 'trio-leaf-gold-pendant-with-looped-vine-motif',arrival_product_url : 'trio-leaf-gold-pendant-with-looped-vine-motif', style_code : 'GPPZCPA003Z0ZZHZZYCZZ'}, 627 {arrival_name:'Floral Teardrop Scroll Gold Pendant', arrival_id:'2', arrival_imgurl:'images/homepage_redesign/just_in_kk/GPPZCPA007Z0ZZHZZYCZZA00007.png', arrival_alt_name : 'floral-teardrop-scroll-gold-pendant',arr
627ival_product_url : 'floral-teardrop-scroll-gold-pendant', style_code : 'GPPZCPA007Z0ZZHZZYCZZ'}, 628 {arrival_name:'Twisted Ribbon Gold Pendant with Floral Accent', arrival_id:'1', arrival_imgurl:'images/homepage_redesign/just_in_kk/GPPZCPA010Z0ZZHZZYCZZA00010.png', arrival_alt_name : 'twisted-ribbon-gold-pendant-with-floral-accent',arrival_product_url : 'twisted-ribbon-gold-pendant-with-floral-accent', style_code : 'GPPZCPA010Z0ZZHZZYCZZ'}, 629 {arrival_name:'Open Floral Gold Ring with Heart Shaped Leaf Motifs', arrival_id:'11', arrival_imgurl:'/images/homepage_redesign/just_in_kk/GRCZCPA003Z0ZZHDQYCZZA00003.png', arrival_alt_name : 'open-floral-gold-ring-with-heart-shaped-leaf-motifs',arrival_product_url : 'open-floral-gold-ring-with-heart-shaped-leaf-motifs', style_code : 'GRCZCPA003Z0ZZHDQYCZZ'}, 630 {arrival_name:'Swirling Oval Gold Ring with Floral Motif', arrival_id:'12', arrival_imgurl:'/images/homepage_redesign/just_in_kk/GRCZCPA011Z0ZZHDQYCZZA00011.png', arrival_alt_name : 'swirling-oval-gold-ring-with-floral-motif',arrival_product_url : 'swirling-oval-gold-ring-with-floral-motif', style_code : 'GRCZCPA011Z0ZZHDQYCZZ'}, 631 {arrival_name:'Statement Diamond Necklace with Green Onyx Centre And Pearls', arrival_id:'13', arrival_imgurl:'/images/homepage_redesign/just_in_kk/NK09889_VD_rose.png', arrival_alt_name : 'statement-diamond-necklace-with-green-onyx-centre-and-pearls',arrival_product_url : 'statement-diamond-necklace-with-green-onyx-centre-and-pearls', style_code : 'NK09889_VD'}, 632 {arrival_name:'Ornate Diamond Necklace with Perched Birds and Green Onyx', arrival_id:'14', arrival_imgurl:'/images/homepage_redesign/just_in_kk/NK10003_VD_rose.png', arrival_alt_name : 'ornate-diamond-necklace-with-perched-birds-and-green-onyx',arrival_product_url : 'ornate-diamond-necklace-with-perched-birds-and-green-onyx', style_code : 'NK10003_VD'}, 633 {arrival_name:'Celestial Diamond Nose Pin with Star and Crescent', arrival_id:'15', arrival_imgurl:'/images/homepage_redesign/just_in_kk/NP00668_rose.png', arrival_alt_name : 'celestial-diamond-nose-pin-with-star-and-crescent',arrival_product_url : 'celestial-diamond-nose-pin-with-star-and-crescent', style_code : 'NP00668'}, 634 {arrival_name:'Heart Shaped Hydro Ruby Pendant With Diamond Halo Frame', arrival_id:'16', arrival_imgurl:'/images/homepage_redesign/just_in_kk/PN14749_1_rose.png', arrival_alt_name : 'heart-shaped-hydro-ruby-pendant-with-diamond-halo-frame',arrival_product_url : 'heart-shaped-hydro-ruby-pendant-with-diamond-halo-frame', style_code : 'PN14749'}, 635 {arrival_name:'Diamond Pendant with Perched Bird Motif and Red Eye', arrival_id:'17', arrival_imgurl:'/images/homepage_redesign/just_in_kk/PN15075_4_rose.png', arrival_alt_name : 'diamond-pendant-with-perched-bird-motif-and-red-eye',arrival_product_url : 'diamond-pendant-with-perched-bird-motif-and-red-eye', style_code : 'PN15075'}, 636 {arrival_name:'Emerald Halo Diamond Ring with Floral Petal Frame', arrival_id:'18', arrival_imgurl:'/images/homepage_redesign/just_in_kk/RG05982_17_1_rose.png', arrival_alt_name : 'emerald-halo-diamond-ring-with-floral-petal-frame',arrival_product_url : 'emerald-halo-diamond-ring-with-floral-petal-frame', style_code : 'RG05982_17'}, 637 {arrival_name:'Letter A Diamond Ring With Pink Sapphire Centre Accent', arrival_id:'19', arrival_imgurl:'/images/homepage_redesign/just_in_kk/RG06403_17_1_rose.png', arrival_alt_name : 'letter-a-diamond-ring-with-pink-sapphire-centre-accent',arrival_product_url : 'letter-a-diamond-ring-with-pink-sapphire-centre-accent', style_code : 'RG06403_17'}, 638 {arrival_name:'Geometric Lattice Diamond Signet Ring', arrival_id:'20', arrival_imgurl:'/images/homepage_redesign/just_in_kk/RG18042_VD_1_rose.png', arrival_alt_name : 'geometric-lattice-diamond-signet-ring',arrival_product_url : 'geometric-lattice-diamond-signet-ring', style_code : 'RG18042_VD'}, 639 {arrival_name:'Lotus Diamond Stud Earrings with Pink Sapphire', arrival_id:'21', arrival_imgurl:'/images/homepage_redesign/just_in_kk/ST02243_16_1_rose.png', arrival_alt_name : 'lotus-diamond-stud-earrings-with-pink-sapphire',arrival_product_url : 'lotus-diamond-stud-earrings-with-pink-sapphire', style_code : 'ST02243_16'}, 640 {arrival_name:'Classic Round Diamond Stud Earrings', arrival_id:'22', arrival_imgurl:'/images/homepage_redesign/just_in_kk/ST06450_25_4_rose.png', arrival_alt_name : 'classic-round-diamond-stud-earrings',arrival_product_url : 'classic-round-diamond-stud-earrings', style_code : 'ST06450_25'}, 641 {arrival_name:'Diamond Halo Stud Earrings with Red Oval Cabochons', arrival_id:'23', arrival_imgurl:'/images/homepage_redesign/just_in_kk/ST26053_1_rose.png', arrival_alt_name : 'diamond-halo-stud-earrings-with-red-oval-cabochons',arrival_product_url : 'diamond-halo-stud-earrings-with-red-oval-cabochons', style_code : 'ST26053'}, 642 {arrival_name:'Butterfly Diamond Nose Pin with Flat Back Closure', arrival_id:'24', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_NP00072_rose.png', arrival_alt_name : 'butterfly-diamond-nose-pin-with-flat-back-closure',arrival_product_url : 'butterfly-diamond-nose-pin-with-flat-back-closure', style_code : 'VD_NP00072'}, 643 {arrival_name:'Concentric Circle Diamond Pendant with Floral Centre', arrival_id:'25', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_PN03686_rose.png', arrival_alt_name : 'concentric-circle-diamond-pendant-with-floral-centre',arrival_product_url : 'concentric-circle-diamond-pendant-with-floral-centre', style_code : 'VD_PN03686'}, 644 {arrival_name:'Teardrop Diamond Pendant with Floral Cluster Centre', arrival_id:'26', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_PN03696_4_rose.png', arrival_alt_name : 'teardrop-diamond-pendant-with-floral-cluster-centre',arrival_product_url : 'teardrop-diamond-pendant-with-floral-cluster-centre', style_code : 'VD_PN03696'}, 645 {arrival_name:'Paisley Diamond Drop Earrings with Openwork Scalloped Dome', arrival_id:'27', arrival_imgurl:'/images/homepage_redesign/just_in_kk/VD_ST10323_1_rose.png', arrival_alt_name : 'paisley-diamond-drop-earrings-with-openwork-scalloped-dome',arrival_product_url : 'paisley-diamond-drop-earrings-with-openwork-scalloped-dome', style_code : 'VD_ST10323'}, 646 ] 647 } 648 649 document.getElementById('hpcontent').style.display = 'flex'; 650 $scope.$on('$destroy', function() { 651 document.getElementById('hpcontent').style.display = 'none'; 652 }); 653 654 $scope.slickcarouselconfigloaded = false; 655 $scope.slickConfig1Loaded = true; 656 657 self.getHomePageContent = function() { 658 $http({ 659 method: 'POST', 660 url: '/gethomepagecontent' 661 }).then(function(response) { 662 663 self.category_products_images= response.data.category_products_images; 664 self.new_arrivals=response.data.new_arrivals; 665 self.bottomitems = [ 666 {imgSrc:'/images/homepage/mob-social-1.jpg',simple_prduct_id:'1', link:'https://www.instagram.com/p/CQqsL3vLbWo/?utm_medium=copy_link'}, 667 {imgSrc:'/images/homepage/m_mangalsutra.jpg',simple_prduct_id:'2', link:'https://www.instagram.com/p/CRJZdyEL2G5/?utm_medium=copy_link'}, 668 {imgSrc:'/images/homepage/m_rakshabandhan.jpg',simple_prduct_id:'3', link:'https://www.instagram.com/p/CRdxQ_rLQag/?utm_medium=copy_link'}, 669 {imgSrc:'/images/homepage/mob-social-4.jpg',simple_prduct_id:'4', link:'https://www.instagram.com/p/CRq0htdroFd/?utm_medium=copy_link'}, 670 ] 671 672 673 for (i = 0; i < response.data.carousel_banners.top.length; i++) { 674 675 self.carousel_banners_desktop_top.push({ src: response.data.carousel_banners.top[i].home_page_carousel_banner_desktop_image, alt: response.data.carousel_banners.top[i].home_page_carousel_banner_image_alttext, title: response.data.carousel_banners.top[i].home_page_carousel_banner_title, subtitle: response.data.carousel_banners.top[i].home_page_carousel_banner_subtitle, content: response.data.carousel_banners.top[i].home_page_carousel_banner_text, linktext: response.data.carousel_banners.top[i].home_page_carousel_banner_link_text, href: response.data.carousel_banners.top[i].home_page_carousel_banner_link, country: response.data.carousel_banners.top[i].home_page_carousel_banner_country }); 676 677 } 678 679 for (i = 0; i < response.data.carousel_banners.top.length; i++) { 680 681 self.carousel_banners_mobile_top.push({ src: response.data.carousel_banners.top[i].home_page_carousel_banner_mobile_image, title: response.data.carousel_banners.top[i].home_page_carousel_banner_title, subtitle: response.data.carousel_banners.top[i].home_page_carousel_banner_subtitle, content: response.data.carousel_banners.top[i].home_page_carousel_banner_text, linktext: response.data.carousel_banners.top[i].home_page_carousel_banner_link_text, href: response.data.carousel_banners.top[i].home_page_carousel_banner_link, country: response.data.carousel_banners.top[i].home_page_carousel_banner_country }); 682 683 } 684 685 for (i = 0; i < response.data.carousel_banners.middle.length; i++) { 686 687 self.carousel_banners_desktop_middle.push({ src: response.data.carousel_banners.middle[i].home_page_carousel_banner_desktop_image, alt: response.data.carousel_banners.middle[i].home_page_carousel_banner_image_alttext, title: response.data.carousel_banners.middle[i].home_page_carousel_banner_title, subtitle: response.data.carousel_banners.middle[i].home_page_carousel_banner_subtitle, content: response.data.carousel_banners.middle[i].home_page_carousel_banner_text, linktext: response.data.carousel_banners.middle[i].home_page_carousel_banner_link_text, href: response.data.carousel_banners.middle[i].home_page_carousel_banner_link, country: response.data.carousel_banners.middle[i].home_page_carousel_banner_country }); 688 689 } 690 691 for (i = 0; i < response.data.carousel_banners.middle.length; i++) { 692 693 self.carousel_banners_mobile_middle.push({ src: response.data.carousel_banners.middle[i].home_page_carousel_banner_mobile_image, title: response.data.carousel_banners.middle[i].home_page_carousel_banner_title, subtitle: response.data.carousel_banners.middle[i].home_page_carousel_banner_subtitle, content: response.data.carousel_banners.middle[i].home_page_carousel_banner_text, linktext: response.data.carousel_banners.middle[i].home_page_carousel_banner_link_text, href: response.data.carousel_banners.middle[i].home_page_carousel_banner_link, country: response.data.carousel_banners.middle[i].home_page_carousel_banner_country }); 694 695 } 696 /*for(i=0;i<response.data.carousel_banners.length;i++) 697 { 698 self.carousel_banners_desktop.push({src: response.data.carousel_banners[i].home_page_carousel_banner_desktop_image, alt: response.data.carousel_banners[i].home_page_carousel_banner_image_alttext, title:response.data.carousel_banners[i].home_page_carousel_banner_title, subtitle: response.data.carousel_banners[i].home_page_carousel_banner_subtitle, content: response.data.carousel_banners[i].home_page_carousel_banner_text, linktext: response.data.carousel_banners[i].home_page_carousel_banner_link_text, href: response.data.carousel_banners[i].home_page_carousel_banner_link}); 699 } 700 701 for(i=0;i<response.data.carousel_banners.length;i++) 702 { 703 self.carousel_banners_mobile.push({src: response.data.carousel_banners[i].home_page_carousel_banner_mobile_image, title:response.data.carousel_banners[i].home_page_carousel_banner_title, subtitle: response.data.carousel_banners[i].home_page_carousel_banner_subtitle, content: response.data.carousel_banners[i].home_page_carousel_banner_text, linktext: response.data.carousel_banners[i].home_page_carousel_banner_link_text, href: response.data.carousel_banners[i].home_page_carousel_banner_link}); 704 } 705 */ 706 707 for (i = 0; i < response.data.banners.length; i++) {
708 var fullimagepath = IMAGE_URL + '/media/homepage/banners/' + response.data.banners[i].home_page_banner_image; 709 response.data.banners[i].fullimagepath = fullimagepath; 710 // self.home_page_banners.push(response.data.banners[i]); 711 if (i > 2) { 712 self.home_page_banners_bottom.push(response.data.banners[i]); 713 } else { 714 self.home_page_banners_top.push(response.data.banners[i]); 715 } 716 717 } 718 719 /*$rootScope.ngMeta.title = 'Buy Diamond Jewellery Online in India | 100% Certified Gold and Diamond Jewellery | Kirtilals';*/ 720 $rootScope.ngMeta.title = 'Online Diamond Jewellery Shopping Store in India. Buy Diamond Jewellery Online at Best Price | Kirtilals.com'; 721 /*$rootScope.ngMeta.description = 'Buy Diamond Jewellery Online, Browse Gold and Diamond Jewellery Designs and avail Free Shipping, Money Back Guarantee only at Kirtilal';*/ 722 $rootScope.ngMeta.description = 'Online Diamond Jewellery Shopping in India. All Latest 2020 Collections of Diamond Jewellery at Kirtilals. 100% Certified Diamond Jewellery Over 1500 Designs Free Shipping'; 723 $rootScope.ngMeta.keywords = 'Buy Gold Jewellery Online, Buy Diamond Jewellery Online, Jewellery for Men, Jewellery for Women, Online Jewellery Store,jimikkikammal'; 724 $rootScope.ngMeta.canonical = ""; 725 //self.home_page_banners = response.data.banners; 726 727 $scope.slickcarouselconfigloaded = true; 728 self.showcarousel = true; 729 $("body,html").animate({ scrollTop: 0 }, "slow"); 730 // if (!$window.sessionStorage.shown) { 731 732 $window.sessionStorage.shown = true; 733 734 if ($window.country != 'US') { 735 //if ($window.userstatus == 'LoggedOut') { 736 // $mdDialog.show({ 737 // clickOutsideToClose: false, 738 // locals: { pa: $scope }, 739 // template: '<md-dialog aria-label="Sign In Dialog" class="bg_popup" flex="60" flex-md="50" flex-sm="50" flex-xs="95"><md-dialog-content><promo></promo></md-dialog-content></md-dialog>', 740 // controller: angular.noop, 741 // controllerAs: 'dc', 742 // bindToController: true, 743 // parent: angular.element(document.body) 744 // }); 745 // } 746 } 747 if ($window.country == 'US') { 748 749 // $mdDialog.show({ 750 // clickOutsideToClose: true, 751 // clickInsideToClose: true, 752 // locals: {pa: $scope}, 753 // template: '<md-dialog aria-label="Sign In Dialog" class="usabg_popup"><md-dialog-content><usapromo></usapromo></md-dialog-content></md-dialog>', 754 // controller: angular.noop, 755 // controllerAs: 'dc', 756 // bindToController: true, 757 // parent: angular.element(document.body) 758 // }); 759 } 760 // } 761 }, function(response) {}); 762 763 } 764 765 /*self.autoPriceUpdate = function() { 766 $http({ 767 method: 'GET', 768 url: '/autopriceupdate' 769 }).then(function(response){ 770 alert(1); 771 }, function(response){}); 772 } 773 774 //setInterval(self.autoPriceUpdate(),1000); 775 self.autoPriceUpdate();*/ 776 self.getHomePageContent(); 777 /* Change Active Tab Function Starts */ 778 self.changeActiveTab = function(tab,event) 779 { 780 if(event) 781 { 782 event.preventDefault(); 783 } 784 self.rts_loaded = true; 785 self.active_tab = tab; 786 $scope.slickConfig2Loaded = false; 787 if(self.active_tab > 0) 788 { 789 $http({ 790 method:'POST', 791 url:'/homepage-rts', 792 headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, 793 data: 'active_tab='+ encodeURIComponent(self.active_tab) + '&_token='
793+ encodeURIComponent(CSRF_TOKEN) 794 }).then(function successCallBack(response) 795 { 796 self.rts_loaded = false; 797 if(response.data.success == true) 798 { 799 self.rts_products = response.data.products; 800 $scope.slickConfig2Loaded = true; 801 } 802 }); 803 } 804 805 } 806 self.changeActiveTab(self.active_tab); 807 /* Change Active Tab Function Ends */ 808 self.readyToShipRedirection = function() 809 { 810 window.location.href = self.express_delivery_url; 811 } 812 } 813 ] 814});
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.