Your Cart

Oops, your cart is currently empty.

Continue Shopping

Store. Just a click away to your favourite essentials.

Products Image
AG-FACTOR
A daily dose for brighter, youthful appearance
USD 97
Products Image
PRAVENTAC
An intelligent solution for acne and scars
USD 80
Products Image
CelloFIT
The body-shaping expert that trims excess visceral fat
USD 138
Products Image
VOFINA
Powerful 83 bil pro+prebiotics for optimal vaginal health
USD 60
Products Image
CERA5
The hydration hero that locks skin moisture from head to toe
USD 97
Products Image
lolvita
A hormonal balancer to relieve menopause symptoms
USD 100
Products Image
Spry
The mobility hero for joints, muscles, and bone health
USD 105
Products Image
SuperFIT
An effective slimming solution for a healthy weight loss
USD 150
Products Image
SuperFIT Satiety
An appetite controller to stop cravings and hunger pangs
USD 50
Products Image
SuperFIT Block
Natural calorie blocker that blocks carbs and fat absorption
USD 50
Products Image
SuperFIT Flush
The cellulite and water retention removal expert
USD 50
Products Image
Herasito
A natural hormone balancer to relieve PCOS symptoms
USD 82
Products Image
Hecules
The complete hormonal enhancer to boost men's health
USD 103
Products Image
MOIIVA
Potent Pre+Probiotics for gut and immune health
USD 46
Products Image
AURA7
A solution that restores emotional and mental well-being holistically
USD 100
Products Image
Alcalis
A natural solution that targets the root cause of high uric acid and gout
USD 85
Products Image
MealOne
A plant-based meal replacement with complete nutrients
USD 45
Products Image
UltraPeptide
The most luxurious Collagen skin-regeneration serum
USD 89
Products Image
UltraMoist
The multi-action moisturizer for a hydrated glow
USD 86
Products Image
UltraShield
The full spectrum water-based daily sunscreen
USD 69
Products Image
AcneMinus
Dual-action spot cream to heal acne and scars
USD 50
Products Image
ComeMinus
Anti-comedone serum that clears black and whiteheads
USD 54
Products Image
XeroMinus
Intensive hydration gel that calms and renews skin
USD 58
Products Image
Calming Gel Cleanser
Gentle pH-friendly daily cleanser
USD 31
Products Image
Hydrating Toner Mist
Most refreshing toner to soothe the skin
USD 29

Curated Care for
Your Wellness.

Products Image
Flawless Twins
Ultimate pair to combat acne, heal scars, and brighten skin
USD 177
Products Image
Anti-Aging Duo
The duo for glowing radiance and hydration
USD 194
Products Image
The Hydration Kit
The moisture-restoring combo for plump, hydrated skin
USD 183
Products Image
Age Defense Duo
Restore youthful complexion and combat aging
USD 186
Products Image
Hormonal Bliss Couple
Rebalance hormones for mid-aged him & her
USD 203
Products Image
Menopause Body Sculptors
The body-firming duo for women above 40s
USD 238
Products Image
The Acne-Prone Kit
The kit to fight acne from the inside and out
USD 242
Products Image
The UltraTRIO Kit
The complete essential skincare trio
USD 244
Products Image
The Ultimate Fit Experts
Complete body-shaping expert combo
USD 288
Products Image
The Complete Skincare Travel Kit
Glow on-the-go with travel sized skin essentials
USD 76

Explore & Gift.

Products Image
SuperFIT Trial Pack
A sample pack to kickstart your weight loss journey
Limited to 1 per customer
USD 4
Products Image
MOIIVA Trial Pack
A sample pack of the gut-immune support
Limited to 1 per customer
USD 4
Products Image
Calming Gel Cleanser Trial
Travel-friendly gentle daily cleanser
Limited to 1 per customer
USD 10
Products Image
Hydrating Toner Mist Trial
Travel-friendly soothing daily toner
Limited to 1 per customer
USD 10
Products Image
Minus Mini-Kit 3
The complete acne care series for clear skin
USD 56
Products Image
E-Gift Card
Pamper someone special with the gift of luxury wellness
USD 45
' + '
' + '{1} ' + '{2}
' + '
' + '
' + '
' + '' + '' }); } } /* Reload items in cart content ---------------------------------------------------------------------------- */ function reload_items_in_cart(pAction, pKey, pCode, pQty) { pQty = (pQty==null || pQty==undefined || pQty=='') ? 1 : pQty; $.ajax({ type: 'GET', url: 'https://www.onecare.store/home2024/ajax_get_cart_items.php?uRequestMode=ajax', dataType: 'html', success: function(html) { if( html.trim()=='' ) { var tl = new TimelineLite(); tl.to( $('.cart-control'),.5,{autoAlpha:0} ); tl.set( $('.cart-control.if-items'),{className:'+=hidden'} ); tl.set( $('.cart-control.if-empty'),{className:'-=hidden'} ); tl.to( $('.cart-control.if-empty'),.5,{autoAlpha:1,immediateRender:false} ); tl.to( $('html body'),.5,{scrollTop:0},'-=.5' ); } else { // animation-start { var tl = new TimelineLite(); tl.to($('.card-items-in-cart .card-body'),.5,{opacity:0}); tl.to($('.card-items-in-cart .card-body'),.5,{height:0}); $('.card-items-in-cart .card-body').html( html ); tl.set($('.card-items-in-cart .card-body'),{height:'auto'}); tl.from($('.card-items-in-cart .card-body'),.5,{height:0,immediateRender:false}); tl.to($('.card-items-in-cart .card-body'),.5,{opacity:1}); // } animation-end // re-initialize event listener-start { $('.selectpicker').selectpicker('mobile'); $('.prod-selector').bind('change',function(){ update_order( 'add', $(this).attr('data-key'), $(this).find('option:selected').val()); }); // } re-initialize event listener-end } update_order(pAction, pKey, pCode, pQty); }, error: function(jqXHR) { info_modal('Request failed',jqXHR.responseText); } }); } /* Reload items in cart content ---------------------------------------------------------------------------- */ function reload_recommended_packages() { } /* Pre-update order - before update_order is called ---------------------------------------------------------------------------- */ function pre_update_order(pAction, pKey, pCode, pQty) { var preOrderList = {}; pQty = (pQty==null || pQty==undefined || pQty=='') ? 1 : pQty; if(orderList) for( i in orderList ) { if( !orderList[i].qty ) { orderList[i] = {"cod":orderList[i],"qty":1}; } } update_add_cart_button( pAction, pKey, pCode, pQty ); setCookie('orderList', JSON.stringify(orderList), 1); update_cart_counter( orderList ); // if( JSON.stringify(preOrderList)!=JSON.stringify(orderList) ) update_estimate_discount_total( orderList ); } /* convert voucher ---------------------------------------------------------------------------- */ var frmConvertVoucher = $('#frmConvertVoucher'); var frmConvertVoucherNotification = $('#frmConvertVoucher-notification'); function convert_voucher(action) { content = '
'; url = '//www.onecare.store/voucher/ajax_ps_voucher_dt.php'; data = frmConvertVoucher.serialize(); $.ajax({ type: 'POST', url: url, data: data, dataType: 'json', async: true, beforeSend: function() { frmConvertVoucherNotification.html(content); }, success: function(json) { if( json.error && json.error.length>0 ) { content = '
 ' + json.error.join('
 ') + '
'; frmConvertVoucherNotification.html(content); } else if( json.success ) { content = '
 ' + json.success + '
'; frmConvertVoucherNotification.html(content); frmConvertVoucher.attr('style','opacity:0;display:none;'); } }, error: function(jqXHR, textStatus, errorThrown) { alert(jqXHR.responseText); } }); } var wdtFeedback = $('#wdtFeedback'); var frmFeedback = $('#frmFeedback'); var frmFeedbackNotification = $('#frmFeedback-notification'); function update_feedback(section) { if( typeof section == 'undefined' ) { wdtFeedback = $('#wdtFeedback'); frmFeedback = $('#frmFeedback'); frmFeedbackNotification = $('#frmFeedback-notification'); } else { wdtFeedback = $('#wdtFeedback-' + section); frmFeedback = $('#frmFeedback-' + section); frmFeedbackNotification = $('#frmFeedback-notification-' + section); } frmFeedback.find('#optFeedbackDomain').addClass('hide'); if( frmFeedback.find('#optFeedbackType').val()==1 ) // product { frmFeedback.find('#optFeedbackDomain').removeClass('hide'); } } /* send feedback ---------------------------------------------------------------------------- */ function send_feedback(section) { // console.log( section ) if( typeof section == 'undefined' ) { wdtFeedback = $('#wdtFeedback'); frmFeedback = $('#frmFeedback'); frmFeedbackNotification = $('#frmFeedback-notification'); } else { wdtFeedback = $('#wdtFeedback-' + section); frmFeedback = $('#frmFeedback-' + section); frmFeedbackNotification = $('#frmFeedback-notification-' + section); } content = '
'; url = 'https://www.onecare.store/home/ajax_ps_feedback_add.php'; data = new FormData(frmFeedback[0]);//frmFeedback.serialize(); $.ajax({ type: 'POST', enctype: 'multipart/form-data', processData: false, contentType: false, cache: false, url: url, data: data, dataType: 'json', success: function(json) { if( json.error ) { content = ''; if( section=='modal' ) { setTimeout(function(){ wdtFeedback .find('.error-wrapper') .html('
'+content+'
'); }, 1000); } else { info_modal('There were errors in your feedback submission:',content); } // frmFeedbackNotification.html(content); } else if( json.success ) { clear_form_elements(frmFeedback); if( section=='modal' ) { var $infoModal = $('#info-modal'); $infoModal.find('.modal-header h4').html( json.success.title ); $infoModal.find('.modal-body').html( '

' + json.success.content + '

' ); setTimeout(function(){ wdtFeedback.modal('hide'); $infoModal.modal('show'); }, 1000); } else { // frmFeedbackNotification.html(''); closeDialog( divNotificationDialog ); closeDialog( divLoadingDialog ); info_modal(json.success.title,json.success.content); } } }, error: function(jqXHR, textStatus, errorThrown) { alert(jqXHR.responseText) } }); } function change_country(country,language) { if(country != "") { var _url = "//www.onecare.store/ajax/ajax_set_country.php?uRedirect=0&uCountry=" + country; if( language.length > 0 ) _url += '&uLang=' + language; $.ajax({ url: _url, dataType: 'text', xhrFields: { withCredentials: true }, crossDomain: true, success: function(data) { if(data == "true") { var curUrl = document.location.href; var urldata, location; if( curUrl ) urldata = curUrl.split('?'); if( urldata ) { location = urldata[0]; //location += ( (urldata[1]) ? '?'+urldata[1]+'&' : '?' ) + 'uCountry=' + country; var params = new URLSearchParams(window.location.search); if( params.has('uCountry') ) params.set('uCountry',country); else params.append('uCountry',country); location += '?' + params.toString(); } else location = 'https://www.onecare.store'; if( language!=null && language!='' && language!='en' && !$.isNumeric(language) ) window.location = location + "#googtrans(en|"+ language +")"; else window.location = location; } else if(data == "false") { // SET country failed } } }); } } /* login ---------------------------------------------------------------------------- */ var wdtLogin = $('#wdtLogin-modal'); function login( frm ) { frm = (frm==undefined||frm=='') ? 'login-form' : frm; var frmLogin = $('#' + frm); var content = '
'; var uri = (frm=='frmLogin-modal') ? '?uOauth=member&uOrderMethod=' + $('input[name=radOrderMethod]:checked').val() : '?type=member'; var url = 'https://www.onecare.store/home2019/ajax_ps_login.php' + uri; var data = frmLogin.serialize(); $.ajax({ type: 'POST', url: url, data: data, dataType: 'json', async: true, beforeSend: function() { content = '
We are processing your request. Please be patient.
'; }, success: function(json) { if( json.error && json.error.length > 0 ) { content = ''; if( frm=='frmLogin-modal' ) { setTimeout(function(){ wdtLogin .modal('loading') .find('.modal-body') .append('
'+content+'
'); }, 1000); } else { info_modal( 'There were errors in your request:', content ); // reset captcha turnstile.reset(); } } else if( json.success ) { if( frm=='frmLogin-modal' ) { if( '' == '1' ) { window.location = json.location; } else { window.location.reload(); } } else { closeDialog( divNotificationDialog ); closeDialog( divLoadingDialog ); if( frm == 'frmLoginDialog' ) { var newURL = location.href; var search = location.search.split('&'); newURL = '//' + location.host + location.pathname; newURL += '?uCountry=' + json.response.country; if( search.length > 0 ) for( i=0;i'; var url = 'https://www.onecare.store/home/ajax_ps_logout.php'; if( FB && FB.getAccessToken()!='null' && FB.getAccessToken()!=null ) FB.logout(function(response) { /* user is now logged out */ }); $.ajax({ type: 'POST', url: url, dataType: 'json', async: true, beforeSend: function() { content = '
We are processing your request. Please be patient.
'; info_modal('Processing request',content); }, success: function(json) { if( json.success ) { window.location = '//www.onecare.store/home2024/family.php?uPage=login'; //Updated on 20230919 - fong } }, error: function(jqXHR, textStatus, errorThrown) { info_modal( 'There were errors in your request:', jqXHR.responseText ); } }); } /* my account ---------------------------------------------------------------------------- */ function redirect_url( url ) { window.location = url; } /* facebook functions ---------------------------------------------------------------------------- */ function login_fb() { // console.log('login_fb'); FB.login(function (response) { console.log('response',response); if (response.authResponse) { // connected get_fb_me() } else { // cancelled } }, {scope: 'public_profile,email'}); } function get_fb_me() { // console.log('get_fb_me'); FB.api('/me',{fields:'email,id,name,location,gender,last_name,first_name,locale,timezone,link,verified,birthday'}, function (response) { var access_token = FB.getAuthResponse()['accessToken']; response.access_token = access_token; submit_fb_login( response ); }); } function submit_fb_login( response ) { // console.log('submit_fb_login'); var content = '
'; var url = 'https://www.onecare.store/home2019/ajax_ps_login.php?type=fb'; var data = decodeURIComponent($.param(response)); // frmLogin.serialize(); $.ajax({ type: 'POST', url: url, data: data, dataType: 'json', async: true, beforeSend: function() { title = 'Processing request'; content = '
We are processing your request. Please be patient.
'; info_modal( title, content ); }, success: function(json) { if( json.error && json.error.length > 0 ) { content = ''; title = ''; info_modal( title, content ); } else if( json.success ) { info_modal( 'Facebook Signup Success', 'Welcome back, ' + json.response.username + '!' ); if( $.inArray(location.pathname.split('/').pop(),['login.php','signup.php','order_success.php']) !== -1 ) { window.location = 'https://www.onecare.store/family?uPage=userlogin&uCountry=' + json.response.country; return; } var newURL = location.href; var search = location.search.split('&'); newURL = 'https://' + location.host; newURL += ( location.pathname=='/order_success.php' || location.pathname=='/login.php' ) ? '/home/member.php' : location.pathname; newURL += '?uCountry=' + json.response.country + '&uPage=user'; if( search.length > 0 ) for( i=0;i=totalHeight) { if (scrolling > lastScrollTop) { // Scrolling down navbar.addClass('navbar-hidden').removeClass('navbar-fixed'); } else { if( $('.section-nav .offcanvas').hasClass('show') ) { } else { // Scrolling up navbar.removeClass('navbar-hidden').addClass('navbar-fixed'); } } } else if (scrolling < announcementHeight) { navbar.removeClass('navbar-hidden navbar-fixed'); } lastScrollTop=scrolling; }); // init controller let controllerOnLeave =new ScrollMagic.Controller({globalSceneOptions:{triggerHook:'onLeave'}}); // 0 let controllerOnCenter =new ScrollMagic.Controller({globalSceneOptions:{triggerHook:'onCenter'}}); // 0.5 let controllerOnEnter =new ScrollMagic.Controller({globalSceneOptions:{triggerHook:'onEnter'}}); // 1 let controllerOnFirstQuarter=new ScrollMagic.Controller({globalSceneOptions:{triggerHook:0.25}}); let controllerOnThirdQuater =new ScrollMagic.Controller({globalSceneOptions:{triggerHook:0.75}}); let controllerOnSixtyFive =new ScrollMagic.Controller({globalSceneOptions:{triggerHook:0.65}}); var swiper=new Swiper('.swiper-onecare-store-wrapper', { spaceBetween:0, // Space between slides in pixels autoplay:{ delay:5000, // Equivalent to autoplayTimeout }, speed:500, // Equivalent to smartSpeed lazy:true, // Lazy loading of images pagination:{ el:'.swiper-pagination', clickable:true, type:'bullets', }, simulateTouch:true,// Enable drag on desktop grabCursor:true, // Grab cursor when dragging breakpoints:{ 0:{ slidesPerView:1, // Show 1 slides on small screens }, } }); var swiper=new Swiper('.swiper-onecare-store-wrapper', { spaceBetween:0, // Space between slides in pixels autoplay:{ delay:5000, // Equivalent to autoplayTimeout }, speed:500, // Equivalent to smartSpeed lazy:true, // Lazy loading of images pagination:{ el:'.swiper-pagination', clickable:true, type:'bullets', }, simulateTouch:true,// Enable drag on desktop grabCursor:true, // Grab cursor when dragging breakpoints:{ 0:{ slidesPerView:1, // Show 1 slides on small screens }, } }); const concTagContainer=$('.tag-container'); const concShowMoreBtn=$('#showMoreTags'); const concTagElement=concTagContainer.find('.tag'); const concTagGap=3; let concExpanded=false; function updateMaxHeight() { if(concExpanded) return; // Calculate height for 3 rows dynamically let concTagHeight=concTagElement.outerHeight(true); // Get the height of one tag // Set the max-height for 3 rows concTagContainer.css('max-height', ((concTagHeight * 3) + concTagGap) + 'px'); concTagContainer.find('.tag').show(); // hiding tags that are outside of the 3 rows const concTags=concTagContainer.children('.tag:not(#showMoreTags)'); let concLastVisibleTagIndex=-1; let concHideTags=[]; concTags.each(function (index) { if ($(this).offset().top >=concTagElement.offset().top + (concTagHeight * 3) - concTagGap) { concHideTags.push($(this)); } else { concLastVisibleTagIndex=index; } }); // Hide tags using loop $.each(concHideTags, function(index, tag) { tag.hide(); }); // Ensure concShowMoreBtn is always the last tag at row 3 const lastVisibleTag=concTags.eq(concLastVisibleTagIndex); if (lastVisibleTag.length) { const lastVisibleTagOffset=lastVisibleTag.offset(); const showMoreBtnOffset=concShowMoreBtn.offset(); if ( (showMoreBtnOffset.top - 10) > lastVisibleTagOffset.top) { // If Show More button is on a new row, hide the last visible tag lastVisibleTag.hide(); } } } // Initial setup updateMaxHeight(); // Toggle Show More/Less functionality concShowMoreBtn.on('click', function () { if (concTagContainer.css('max-height')==='none') { concExpanded=false; $(this).removeClass('fico-arrow-up-3').addClass('fico-arrow-down-3'); updateMaxHeight(); // Reapply 3 rows height } else { $(this).removeClass('fico-arrow-down-3').addClass('fico-arrow-up-3'); concTagContainer.css('max-height', 'none'); // Expand fully concTagContainer.find('.tag').fadeIn(500).show(); concExpanded=true; } }); let concTimeout; const concDelay=250; // Adjust this value to change throttle time function onResize() { // Clear the timeout if it has already been set. // This will ensure that the callback is only executed after // the user has stopped resizing for the specified delay. clearTimeout(concTimeout); // Set a new timeout concTimeout=setTimeout(function() { // Your resize handling code here console.log('Window resized. New dimensions:', window.innerWidth, 'x', window.innerHeight); updateMaxHeight(); }, concDelay); } // Event listener to handle window resize $(window).on('resize', onResize); $('.section-slide .expand-wrapper').on('click',function(){ if( $(this).hasClass('active') ) { $(this).removeClass('active'); } else { $(this).addClass('active'); } if( $('.d-control').hasClass('d-none') ) { $('.d-control').removeClass('d-none d-md-block'); } else { $('.d-control').addClass('d-none d-md-block'); } }); handleFilterChange(); $('.filter').on('click', function(event){ handleFilterChange(event.target); }); $('.section-store-result .btn-addtocart').on('click',function(){ var _qlimit=parseInt($(this).attr('data-qlimit-qty')); if( $(this).hasClass('outofstock')===false ) { var action=$(this).hasClass('active') ? 'remove' :'add'; key=$(this).data('key'); code=$(this).data('code'); qty=(orderList[key] && orderList[key].qty && orderList[key].cod==code) ? (parseInt(orderList[key].qty) + 1) :1; if( action=='add' ) { var _content_ids=$(this).data('content_ids').split('.'); var _contents=[]; for(i=0;i<_content_ids.length;++i) { _contents[_content_ids[i]]=1; } var _data={ content_ids:_content_ids, content_name:$(this).data('content_name'), content_category:'store', content_type:'product', num_items:_content_ids.length, contents:_contents, value:$(this).data('value'), currency:'MYR' }; // Fb Traking if( fbq ) fbq('track', 'AddToCart', _data, {eventID:'1736340463'}); if( fbcapi ) fbcapi('AddToCart', _data); // TT Tracking if( typeof ttq=='object' && typeof ttq.track=='function' ) ttq.track('AddToCart'); // Google Tracking if( typeof gtag==='function' ) { // google analytic gtag('event','button',{ 'event_category':'click', 'event_label':'addtocart' }); } } // check qlimit if( qty > _qlimit ) { qty=_qlimit; info_modal('Purchase Limit','This item is limited to one quantity only and can only be purchased with non-trial items from Onecare store.'); } else { setOrderList( key, code, qty ); setCookie('orderList', JSON.stringify(orderList), 1); update_cart_counter( orderList ); update_estimate_discount_total( orderList ); } reload_mini_cart_items( key, code, qty ); } }); $('#nav-contact-connect-video > li > a').on('click',function(e){ if( $('#' + $(this).attr('aria-controls')).hasClass('in')===true ) return false $('.section-nav-contact-connect-video .tab-content .tab-body').removeClass('in'); $('.section-nav-contact-connect-video .tab-content .tab-parent a[aria-controls='+ $(this).attr('aria-controls') +']').trigger('click'); $(this).parent().addClass('active'); }); $('.section-nav-contact-connect-video .tab-content .tab-body').on('show.bs.collapse',function(e){ $('#nav-contact-connect-video > li').removeClass('active'); $('#nav-contact-connect-video > li > a[aria-controls='+ $(this).attr('id') +']').parent().addClass('active'); }); $('.section-nav-contact-connect-video .tab-content .tab-body').on('hide.bs.collapse',function(e){ $('#nav-contact-connect-video > li').removeClass('active'); }); if( typeof(enquire)=='object' ) { enquire.register('screen and (min-width:768px)', function() { $('.section-nav-contact-connect-video .tab-content .tab-body').removeClass('in'); $('#' + $('#nav-contact-connect-video > li.active a').attr('aria-controls') ).addClass('in') }); } $('.collapse-btn > a').on('click',function(e){ if( $(this).parent('.collapse').hasClass('.in')===true ) $(this).addClass('expanded'); else $(this).removeClass('expanded'); }); // Prevent vertical scrolling while dragging the carousel var touchStartY=0; $('.owl-carousel').on('touchstart', function(e) { touchStartY=e.originalEvent.touches[0].clientY; // Get the initial Y position of the touch $('body').css('overflow', 'hidden'); // Disable scrolling on the body (Y-axis) }); $('.owl-carousel').on('touchend', function(e) { $('body').css('overflow', 'auto'); // Re-enable scrolling on the body (Y-axis) }); $('.owl-carousel').on('touchmove', function(e) { var touchMoveY=e.originalEvent.touches[0].clientY; var touchDifferenceY=Math.abs(touchMoveY - touchStartY); // Allow only small Y-axis movements, assume it's vertical scrolling if the difference is too large if (touchDifferenceY > 10) { $('body').css('overflow', 'auto'); // Re-enable scrolling if vertical scrolling is intended } }); $('.section-footer .btn-newsletter-signup').on('click',function(){ $.ajax({ type:'POST', url:'https://www.onecare.store/home2019/ajax_ps_click_log.php', data:'link=newsletter.php' + '&location=footer', dataType:'json', beforeSend:function() {}, success:function(json) { info_modal('Coming Soon! Stay Tuned!','We\'re working hard to make this function available. Please stay tuned!'); }, error:function(jqXHR, textStatus, errorThrown) { info_modal('Coming Soon! Stay Tuned!','We\'re working hard to make this function available. Please stay tuned!'); } }); }); $('#txtSubEmail').on('keyup', function(e) { if (e.keyCode===13) { email_subscribe('frmSubscribe'); } }); $('.chat-expand').on('click',function(){ chat_widget(this); }); $('.login-modal').on('shown.bs.modal', function () { turnstile.reset(); }); $('.btn-show-pwd').on('click', function() { var input=$(this).siblings('input'); var currentType=input.attr('type'); // Clone the input element with the new type var newType=currentType==='password' ? 'text' :'password'; var newInput=input.clone().attr('type', newType); // Replace the old input with the new one input.replaceWith(newInput); }); $(window).on('load', function() { setTimeout( function(){ $('#modal-new-customer').modal('show'); },5000 ); }); // add event listener to input & textarea to toggle label on/off $('input, textarea').on('keyup change',function(){ if( $(this).val().length > 0 ) { $(this).parent().find('.label-control').addClass('label-on'); } else { $(this).parent().find('.label-control').removeClass('label-on'); } }); $('select').on('change',function(){ if( $(this).val().length > 0 ) { $(this).parent().parent().find('.label-control').addClass('label-on'); } else { $(this).parent().parent().find('.label-control').removeClass('label-on'); } }); $('#optFeedbackType').on('hidden.bs.select', function (e) { $(this).trigger('change'); }); $('#mdlChooseLanguage select[name=optChangeCountry]').off('change'); $('#mdlChooseLanguage select[name=optChangeCountry]').on('change',function(){ country = $(this).find('option:selected').val(); code = $(this).find('option:selected').attr('data-code'); currencyCode = $(this).find('option:selected').attr('data-currency-code'); countryCode = $(this).find('option:selected').attr('data-value'); $('#mdlChooseLanguage .country-flag .img').css({'background-image':'url(https://www.onecare.store/utility/timthumb-v2.php?w=50&src=https://www.onecare.store/lib/img/flag/'+code+'.png)'}); $('#mdlChooseLanguage .currency-code').text( currencyCode ); $.ajax({ url: 'https://www.onecare.store/home2024/ajax_language_opt.php?uRedirect=0', data: 'uCountry=' + $(this).find('option:selected').val() + '&uLangDef=' + $(this).find('option:selected').attr('data-lang-def'), beforeSend: function() { $('#mdlChooseLanguage .language-group-list').html('
loading...
'); }, dataType: 'html', success: function(html) { $('#mdlChooseLanguage .language-group-list').html( html ); }, error: function(jqXHR) { $('#mdlChooseLanguage .language-group-list').html( '
' ); } }); }); // $(function() { // $(this).bind("contextmenu", function(e) { // e.preventDefault(); // }); // }) // Chrome if( $.browser && $.browser.chrome ) { $('.section-products *:not(span,p)').each(function(){ var bgimg = null; if (this.currentStyle) bgimg = this.currentStyle['backgroundImage']; else if (window.getComputedStyle) bgimg = document.defaultView.getComputedStyle(this,null).getPropertyValue('background-image'); bgimg = bgimg.replace(/^url\((.*?)\)$/, '$1'); if(bgimg!='none') $(this).css('background-image','none').attr('data-bg',bgimg); }); } $.lazyLoadXT.autoInit = false; $("img.lazy,[data-bg],[data-src],[role=lazyloadxt]").lazyLoadXT(); if( $.browser && $.browser.chrome ) $(".section-products").lazyLoadXT(); if( $('[rel=popover]').length > 0 ) $('[rel=popover]').popover(); $('.popover-custom-content').each(function(){ var content = $(this).find('.popover-content').html(); $(this).popover({'placement':'bottom','content':content}); }); // remove padding-top for first section-title $('.sidebar-container .section-title:first').addClass('padT0'); // scroll to contact form $('.scroll-to-contact').bind('click',function(){ TweenLite.to( $('html, body'), 1, {scrollTop:$('#wdtContact').offset().top - $('#header').height(),ease:Cubic.easeOut} ); }); function hideAllTabContent(){ $(this).addClass('hidden') } function showThisTabContent(){ $(this).removeClass('hidden'); } if( $("a[rel^='prettyPhoto']").length > 0 ) $("a[rel^='prettyPhoto']").prettyPhoto(); if( $("a[rel^='tooltip']").length > 0 ) $("*[rel^='tooltip']").tooltip(); if( $(".select2").length > 0 ) $(".select2").select2(); if( $('ads-notifier').length > 0 ) { // ads-notifier { $('#ads-notifier-agfactor').addClass('hidden'); $('#ads-notifier-praventac').addClass('hidden'); var strAdsNotId = null; $(strAdsNotId).removeClass('hidden'); function maximize_ads_notifier() { if( $(strAdsNotId + ' .ads-notifier').css('right') != '0px' ) { TweenLite.to($(strAdsNotId + ' .ads-notifier'),.5,{scaleX:1, scaleY:1,autoAlpha:1,right:0,bottom:0}); $(strAdsNotId + ' .ads-notifier a').css('left','0px'); } } function minimize_ads_notifier() { if( $(strAdsNotId + ' .ads-notifier').css('right') == '0px' ) { TweenLite.to($(strAdsNotId + ' .ads-notifier'),.5,{scaleX:.5, scaleY:.5,autoAlpha:1,right:-235,bottom:-25}); $(strAdsNotId + ' .ads-notifier a').css('left','100px'); } } function popup_ads_notifier_desc() { $(strAdsNotId + ' .ads-notifier').popover('destroy'); if( $(strAdsNotId + ' .ads-notifier').css('right') != '0px' ) { var title = $(strAdsNotId + ' .ads-notifier .header').html(), content = $(strAdsNotId + ' .ads-notifier .body').html().replace(' ',''); content = content.replace(' '); $(strAdsNotId + ' .ads-notifier').popover({ 'html': true, 'placement': 'left', 'trigger': 'hover', 'title': title, 'content': content + '
[Click to Expand]' }); $(strAdsNotId + ' .ads-notifier').on('shown.bs.popover', function () { var top = $(strAdsNotId + '').parent().find('.popover').css('top'); top = top.replace('px'); top = parseInt(top) - 40; $(strAdsNotId + '').parent().find('.popover').css({'top':top}); $(strAdsNotId + '').parent().find('.popover-content').css({'white-space':'pre-wrap'}); }); $(strAdsNotId + ' .ads-notifier').popover('show'); } } $(strAdsNotId + ' .ads-notifier').bind('mouseover',function(){ popup_ads_notifier_desc(); }); $(strAdsNotId + ' .ads-notifier .overlay-image').bind('click',function(){ maximize_ads_notifier(); }); $(strAdsNotId + ' .ads-notifier .close').bind('click',function(){ minimize_ads_notifier(); }); minimize_ads_notifier(); setTimeout(function(){ maximize_ads_notifier(); setTimeout(function(){ minimize_ads_notifier(); },8000); },5000); } // } end // Cross-Browser HTML5 Placeholder Text if(!Modernizr.input.placeholder){ $('[placeholder]').focus(function() { var input = $(this); if (input.val() == input.attr('placeholder')) { input.val(''); input.removeClass('placeholder'); } }).blur(function() { var input = $(this); if (input.val() == '' || input.val() == input.attr('placeholder')) { input.addClass('placeholder'); input.val(input.attr('placeholder')); } }).blur(); $('[placeholder]').parents('form').submit(function() { $(this).find('[placeholder]').each(function() { var input = $(this); if (input.val() == input.attr('placeholder')) { input.val(''); } }) }); } // Set datepiker setting $.datepicker.setDefaults( $.datepicker.regional[ "" ] ); // Cross-Browser CCS3 Seletor $('select').each(function() { if( !$(this).hasClass('nowrap') ) $(this).wrap('