Your Cart

Oops, your cart is currently empty.

Continue Shopping
AG-FACTOR™ | A daily dose for brighter, youthful appearance
AG-FACTOR™ | A daily dose for brighter, youthful appearance
AG-FACTOR™ | A daily dose for brighter, youthful appearance
AG-FACTOR™ | A daily dose for brighter, youthful appearance
AG-FACTOR™ | A daily dose for brighter, youthful appearance
AG-FACTOR™ | A daily dose for brighter, youthful appearance

AG-FACTORTM

A daily dose of natural skin savior, targeting the root cause of aging and hyperpigmentation from within for a brighter and youthful appearance.

Buy More, Earn More

Earn up to 7% bonus cashback (+USD ) at checkout.

TOTAL

FREE Shipping for order USD 210
1-5 working days
14-Day Return & Refund Service
Return Policy

Beware of Counterfeits.

Brighten Skin Tone

Promotes the production of Pheomelanin (lighter pigment) with potent antioxidant properties for a bright, glowy, and even skin tone.

Erase Age Spots & Pigmentations

Lightens skin discoloration and protects the skin cells from free radical damage and photodamage.

Reduce Fine Lines & Wrinkles

Activates the body's own Collagen production to restore dermal tissue and eliminate signs of aging.

Rebuild Skin Firmness & Elasticity

Promotes the regeneration of skin cells with anti-glycation properties to prevent skin sagging.

Detox Liver For Healthier Complexion

Increases the production of Glutathione (master detoxifier) to reduce inflammation that causes premature aging, skin flares, and dull skin.

Promote Healthier Hair & Nails

Nourishes hair and nails from within with Cysteine Peptide, boosting the synthesis of Beta-Keratin for voluminous hair and stronger nails.

Size / Volume 60 Vegetarian Capsules
Consumption Period For 30-Day
Suitable Users Male and female age 11 years old and above
For Adults 2 capsules a day before bedtime.
For Smokers / Drinkers 4 capsules a day to improve detoxification.
Paired with CERA5™ 2 capsules of CERA5™ before breakfast and 2 capsules of AG-FACTOR™ before bedtime.
Storage Tips

Store in a cool and dry place, avoid direct sunlight.

No refrigeration is required.

Consume as soon as it's opened.

Whey Protein Concentrate (Cysteine Peptide)|Cysteine Peptide derived from Whey Protein Concentrate fuels the body to produce Glutathione and Collagen naturally. Glutathione, known as the 'Master Antioxidant', detoxifies the liver and enhances skin clarity, brightness, and health. Additionally, it fights against the premature aging of dark spots and discoloration by boosting skin immunity. Collagen, on the other hand, improves skin firmness and elasticity, reversing signs of aging for a youthful-looking complexion.

Haematococcus Pluvialis Extract (Green Microalga)|Rich in Astaxanthin, this powerful antioxidant has anti-glycation properties that slow down glucose metabolism, preserve skin's elastic fibers, and give a radiant, youthful complexion. Its optimal skin penetration along with its anti-aging effect protects the skin against UV-induced skin damage, dark spots, and pigmentation.

Dendranthema Morifolium Flower Extract (Chrysanthemum Flower)|Abundant in phytonutrients, the Chrysanthemum flower helps reduce hyperlipidemia (excess fats in the blood) and strengthen skin lipids to protect against free radical damage. Its anti-inflammatory properties soothe the skin and improve skin brightness, reducing the appearance of sagging skin and promoting an even skin tone.

Acerola Cherry Fructus Extract (Malpighia Emarginata)|The vitamin-packed superfruit is rich in vitamins C, A, and B, protects the skin from photodamage and stressors by increasing skin-rejuvenating stimulation. The protection thereby boosts the healing effects of scar tissues and wounds to promote glowing skin and shield against free radical damage.

Others|Vegetable Cellulose, Rice Flour, Magnesium Stearate (Vegetable source), Silica

Serving Size: 2 capsules
Serving Per Container: 60 capsules
Amount Per Serving % Daily Value
Whey Protein Concentrate [Standardized to 76-78% of protein contents (Providing 228mg protein)] 300 mg⁺
Haematococcus Pluvialis Extract (Green Microalga)[High antioxidant activities, which are rich in astaxanthin, carotenoids, protein, lutein, and essential fatty acids] 100 mg⁺
Dendranthema Morifolium Flower Extract (Chrysanthemum Flower)[Rich in phytonutrients including; flavonoids, phenolic acids, and lignans] 40 mg⁺
Acerola Cherry Fructus Extract (Malpighia Emarginata)[Providing 2% ascorbic acid; rich in phytonutrients (carotenoids, phenolics, flavonoids, and anthocyanins)] 40 mg⁺
⁺Daily value not established Net Weight: 30 gm
HALAL Approved International Halal Council approved. View Certificate
Lab Test Pass product safety testing against the safety marks. View Certificate
Suitable for Vegetarian Contain key ingredients derived from dairy and plants.
Others • Clinically Proven Ingredients • Gluten-Free • Lactose-Free • Sodium-Free • Hormone-Free • No Artificial Preservative, Coloring And Additive • Manufactured in a GMP-Certified Facility

Protect your well-being by choosing authentic Onecare products. Learn more.

A closer look at AG-FACTOR™

End of content

No more pages to load

Natural

Vegetarian

Lactose-Free

No Antibiotic

Non-GMO

Made Tracable

IMPORTANT NOTICE

Choose Authentic
AG-FACTOR™

Beware of counterfeits

From digestive to immune health, MOIIVA™ is the ultimate shield that combines the power of 3-in-1 to provide nutrients more than just probiotics alone.

95% resemblance
to the real AG-FACTOR™

Harmful metals found:

Mercury

Lead

Cadmium

Arsenic

Clinical lab tests done have shown high
levels of dangerous substances that are
extremely harmful for the human body’s
consumption.

Consuming counterfeit AG-FACTOR
from any other sellers poses long-term
harmful risks including: adverse health
conditions, fatal side effects, and life-
threatening issues.

Disclaimer:

*We highly advise customers to purchase from
Onecare official stores to ensure genuine authenticity.

*Onecare does not take responsibility for any side
effects or health consequences caused by counterfeit
products of Onecare.

Voices of OnecareFans

Discover inspiring stories shared by our community

By Products:

Products Image
PRAVENTAC
An intelligent solution for acne and scars
USD 80
Products Image
CERA5
The hydration hero that locks skin moisture from head to toe
USD 97
Products Image
MONIVITA
True NAD+ Bioactivation to repair cells and delay aging
USD 235
Products Image
UltraPeptide
The most luxurious Collagen skin-regeneration serum
USD 89
' + '
' + '{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://img.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 = '//img.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://img.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 = "//img.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://img.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://img.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://img.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 = '//img.onecare.store/home2024/'; } }, 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://img.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://img.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 var controllerOnLeave=new ScrollMagic.Controller({globalSceneOptions:{triggerHook:'onLeave'}}); // init controller var controllerOnEnter=new ScrollMagic.Controller({globalSceneOptions:{triggerHook:'onEnter'}}); // reference for main items var slider=$('#slider'); // reference for thumbnail items var thumbnailSlider=$('#thumbnailSlider'); //transition time in ms var duration=500; // carousel function for main slider new Swiper('#slider', { loop:true, autoHeight:true, spaceBetween:0, simulateTouch:true, grabCursor:true, lazy:true, // Lazy loading of images effect:'fade', pagination:{ el:'.swiper-pagination', // Custom dots container clickable:true, // Make dots clickable }, autoplay:{ delay:5000, //Updated on 20250801 - fong disableOnInteraction:false, }, breakpoints:{ 0:{ slidesPerView:1 } }, on:{ slideChange:function() { //On change of main item to trigger thumbnail item //Updated on 20211102 // $('.item').removeClass('center'); // $('#item-'+ e.item.index ).addClass('center'); } } }); $('[data-bs-toggle="tooltip"]').tooltip(); ///. Updated 20250117 Wong Jun Jie - Subscription var trigger='.section-btn-fixed-btm .btn-add-to-cart'; var closeBtm='-5em'; var showBtm='1em'; // build scene var scene1=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-7', duration:'0%' }) .setTween(trigger, 1, {bottom:closeBtm}) // trigger a TweenMax.to tween //.addIndicators({name:'2 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); var scene2=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-7', duration:'0%' }) .setTween(trigger, 1, {bottom:showBtm}) // trigger a TweenMax.to tween //.addIndicators({name:'2 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnLeave); // End 20250117 Wong Jun Jie - Subscription //if page onload found selected $('.section-btn-fixed-btm .btn-add-to-cart').on('click',function(){ $('.section-order-now .summary-wrapper .btn-add-to-cart').trigger('click'); }); $('.navbar-btn.btn-add-to-cart').on('click',function(){ $('.section-order-now .summary-wrapper .btn-add-to-cart').trigger('click'); });//Updated on 20220222 $('.section-order-now .list-item').on('click', function(e){ $('.outofstock-control').addClass('hide'); if( $(this).hasClass('out-of-stock')===false ) { // set counter let _hidChooseCount=$('input[name=hidChooseCount]').val(); $('input[name=hidChooseCount]').val( ++_hidChooseCount ); $('.outofstock-control.if-available').removeClass('hide'); $('.section-order-now .list-item').removeClass('selected'); $(this).addClass('selected'); if( parseInt( $('input[name=hidChooseCount]').val() )>1 ) { // $([document.documentElement, document.body]).animate({scrollTop:$('.section-order-now .list-beauty-bundles .list-title').offset().top - 100}, 700); } // Updated on 20221021 - fong if(true !=true) { if( parseInt( $('input[name=hidChooseCount]').val() )>1 ) { // $([document.documentElement, document.body]).animate({scrollTop:$('.section-order-now .list-beauty-bundles .list-title').offset().top - 100}, 700); } $('.section-order-now .summary-wrapper .item-dprice').html( $(this).data('dprice') ); $('.section-order-now input[name=hidItemDPrice]').val($(this).data('dprice')); } else { var itemSave=parseFloat( $(this).data('normal-price') - $(this).data('discount-price') ); var itemPoint= Math.round( $(this).data('discount-price') * 2 ); if( false==true ) { // Updated on 20241219 Jun Jie - Subscription $('.section-order-now .sub-price-wrapper .item-dprice').html( $(this).data('currency')+' '+ (parseFloat($(this).data('sales-price')).toFixed(2)) ); // End 20241219 Jun Jie - Subscription // Updated on 20241105 - fong $('.section-order-now .summary-wrapper .item-dprice').html( $(this).data('currency')+' '+ (parseFloat($(this).data('sales-price')).toFixed(2) * parseInt($('input[name=txtProdQty]').val())).toFixed(2) ); } else { $('.section-order-now .summary-wrapper .item-dprice').html( $(this).data('currency')+' '+ (parseFloat($(this).data('sales-price')).toFixed(2) * parseInt($('input[name=txtProdQty]').val())).toFixed(2) ); // Updated on 20241219 Jun Jie - Subscription $('.section-order-now .sub-price-wrapper .item-dprice').html( $(this).data('currency')+' '+ (parseFloat($(this).data('sales-price')).toFixed(2)) ); // End 20250228 Jun Jie - Subscription } $('.section-order-now input[name=hidItemDPrice]').val( (parseFloat($(this).data('sales-price')).toFixed(2) * parseInt($('input[name=txtProdQty]').val())).toFixed(2) ); // Updated on 20221025 - fong if( $(this).data('code')=='00000243' ) { itemSave=$(this).data('discount-price'); } $('.section-order-now .summary-wrapper .item-save span').html( itemSave.toFixed(2) ); $('.section-order-now .summary-wrapper .item-point span').html( itemPoint ); } $('.section-order-now .summary-wrapper .item-fullname').html( $(this).data('name') ); $('.section-order-now .summary .row').removeClass('disabled'); //Updated on 20211101 $('.section-order-now .summary-wrapper .btn-add-to-cart').data('key', $(this).data('key')); $('.section-order-now .summary-wrapper .btn-add-to-cart').data('code', $(this).data('code')); $('.section-order-now .summary-wrapper .btn-add-to-cart').data('content_ids', $(this).data('content_ids')); $('.section-order-now .summary-wrapper .btn-add-to-cart').data('content_name', $(this).data('content_name')); $('.section-order-now .summary-wrapper .btn-add-to-cart').data('value', $(this).data('value')); $('.section-order-now .summary-wrapper .btn-add-to-cart').removeAttr('disabled'); get_cback_details('frmItemPrice'); // Updated on 20250103 Jun Jie - Subscription // End on 20250103 Jun Jie - Subscription } else { $('.outofstock-control').addClass('hide') $('.outofstock-control.if-outofstock').removeClass('hide'); } }) $('.section-order-now .list-item.selected').trigger('click'); $('.section-order-now .summary-wrapper .btn-add-to-cart').on('click',function(){ var _qlimit=parseInt($(this).attr('data-qlimit-qty')); key =$(this).data('key'); code=$(this).data('code'); qty =(orderList[key] && orderList[key].qty && orderList[key].cod==code) ? (parseInt(orderList[key].qty) + parseInt($('input[name=txtProdQty]').val()) ) :( ($('input[name=txtProdQty]').val())? parseInt($('input[name=txtProdQty]').val()) :1 ); 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:'buy', 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:'1756344074'}); 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' }); } // Updated on 20241223 Jun Jie - Subscription // End on 20241223 Jun Jie - Subscription // 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 ); }); // Updated on 20241121 Jun Jie - Subscription // End 20241121 Jun Jie - Subscription $('.quantity-selector-action-more').on('click', function() { var input=$('input[name=txtProdQty]'); var currentValue=parseInt(input.val()); var max=parseInt(input.attr('max')); var step=parseInt(input.attr('step')) || 1; if (isNaN(currentValue)) currentValue=0; if (currentValue < max || isNaN(max)) { input.val(currentValue + step); } $('.quantity-selector-action-less').prop('disabled', false); cal_price(); get_cback_details('frmItemPrice'); }); $('.quantity-selector-action-less').on('click', function() { var input=$('input[name=txtProdQty]'); var currentValue=parseInt(input.val()); var min=parseInt(input.attr('min')); var step=parseInt(input.attr('step')) || 1; if (isNaN(currentValue)) currentValue=1; if (currentValue > min || isNaN(min)) { input.val(currentValue - step); } if( (currentValue - step)==1 ) { $(this).prop('disabled', true); } else { $(this).prop('disabled', false); } cal_price(); get_cback_details('frmItemPrice'); }); $('input[name=txtProdQty]').on('change',function(){ if( $(this).val() < 1 ) { $(this).val('1'); } cal_price(); get_cback_details('frmItemPrice'); }); $('input[name=txtProdQty]').on('keydown', function(event) { validateInput(event); }); $('input[name=txtProdQty]').on('paste', function(event) { handlePaste(event); }); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-1', duration:'50%' }) .setTween('#trigger-section-order-now-1 .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'1 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-2', duration:'50%' }) .setTween('#trigger-section-order-now-2 .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'2 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-3', duration:'50%' }) .setTween('#trigger-section-order-now-3 .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'3 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-4', duration:'50%' }) .setTween('#trigger-section-order-now-4 .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'4 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-5', duration:'50%' }) .setTween('#trigger-section-order-now-5 .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'5 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-6', duration:'50%' }) .setTween('#trigger-section-order-now-6 .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'6 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#trigger-section-order-now-7', duration:'50%' }) .setTween('#trigger-section-order-now-7 .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'7 (duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); // build scene var scene=new ScrollMagic.Scene({ triggerElement:'#prod-metadata', duration:'50%' }) .setTween('#prod-metadata .float-up-fast', 1, {opacity:1,transform:'translate(0,0)'}) // trigger a TweenMax.to tween //.addIndicators({name:'(duration:50%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); let varMealOptLoaded=false; xgrid=$('.section-grid-card .grid').imagesLoaded( function() { // init Masonry after all images have loaded xgrid.masonry({ itemSelector:'.grid-item', columnWidth:'.grid-sizer', gutter:'.gutter-sizer', percentPosition:true, stagger:30, // nicer reveal transition visibleStyle:{ transform:'translateY(0)', opacity:1 }, hiddenStyle:{ transform:'translateY(100px)', opacity:0 } }); }); // get Masonry instance var msnry=xgrid.data('masonry'); xgrid.infiniteScroll({ path:function() { if( !xgrid_infiniteScroll_end ) { return 'https://img.onecare.store/home2024/ajax_get_buy_card.php?hash=9b292544c8bf59807991f35181489c16&slug=agfactor&page='+ this.pageIndex; } }, scrollThreshold:100, // load response as flat text responseType:'text', outlayer:msnry, status:'.page-load-status', history:false, }); xgrid.on( 'last.infiniteScroll', function( event, body, path ) { // console.log(`Last page hit on `); }); xgrid.on( 'load.infiniteScroll', function( event, response ) { if( !xgrid_infiniteScroll_end ) { response=response.trim(); if( response=='false' || response==false ) { xgrid_infiniteScroll_end=true; xgrid.infiniteScroll('destroy'); } else { // convert HTML string into elements var items=$( response ); // append item elements items.imagesLoaded( function() { xgrid.infiniteScroll( 'appendItems', items ) .masonry( 'appended', items ).masonry(); }) } } }); let swiperTesti; xgrid.on( 'layoutComplete', function() { // video modal $('.video-modal-launcher').on('click', function(e){ $('#modal-video-loader').attr('src', $(this).data( 'src' )); }); // $('.owl-carousel.ag-testimonial-carousel').owlCarousel({ // loop:true, // margin:0, // dots:true, // nav:false, // singleItem:true, // autoplay:true, // autoplayTimeout:3000, // lazyLoad:true, // responsive:{ // 0:{ // items:1 // } // } // }); new Swiper('.ag-testimonial-swiper', { loop:true, spaceBetween:0, simulateTouch:true, grabCursor:true, autoplay:{ delay:3000, // Equivalent to autoplayTimeout }, speed:500, // Equivalent to smartSpeed lazy:true, // Lazy loading of images pagination:{ el:'.swiper-pagination', clickable:true, }, breakpoints:{ 0:{ slidesPerView:1 } } }); //smart r liposome video var endogenousBeauty=document.getElementById('endogenous-beauty-vid'); if( endogenousBeauty ) { endogenousBeauty.pause(); var scene=new ScrollMagic.Scene({ triggerElement:'#endogenous-beauty-vid', duration:'100%' }) .on('enter', function(e) { endogenousBeauty.play(); }) .on('leave', function(e) { var playPromise=endogenousBeauty.play(); if (playPromise !==undefined) { playPromise.then(_=> { // Automatic playback started! // Show playing UI. // We can now safely pause video... endogenousBeauty.pause(); }).catch(error=> { // Auto-play was prevented // Show paused UI. }); } }) //.addIndicators({name:'vid (duration:100%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); } //smart r liposome video var smartRLiposome=document.getElementById('smart-r-liposome-vid'); if( smartRLiposome ) { smartRLiposome.pause(); var scene=new ScrollMagic.Scene({ triggerElement:'#smart-r-liposome-vid', duration:'100%' }) .on('enter', function(e) { smartRLiposome.play(); }) .on('leave', function(e) { var playPromise=smartRLiposome.play(); if (playPromise !==undefined) { playPromise.then(_=> { // Automatic playback started! // Show playing UI. // We can now safely pause video... smartRLiposome.pause(); }).catch(error=> { // Auto-play was prevented // Show paused UI. }); } }) //.addIndicators({name:'vid (duration:100%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); } var agfactorSistersAdwardVid=document.getElementById('agfactor-sisters-adward-vid'); if( agfactorSistersAdwardVid ) { agfactorSistersAdwardVid.pause(); var scene=new ScrollMagic.Scene({ triggerElement:'#agfactor-sisters-adward-vid', duration:'100%' }) .on('enter', function(e) { agfactorSistersAdwardVid.play(); }) .on('leave', function(e) { var playPromise=agfactorSistersAdwardVid.play(); if (playPromise !==undefined) { playPromise.then(_=> { // Automatic playback started! // Show playing UI. // We can now safely pause video... agfactorSistersAdwardVid.pause(); }).catch(error=> { // Auto-play was prevented // Show paused UI. }); } }) //.addIndicators({name:'vid (duration:100%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); } var agfactorSilverKrisVid=document.getElementById('agfactor-sliverkris-vid'); if( agfactorSilverKrisVid ) { agfactorSilverKrisVid.pause(); var scene=new ScrollMagic.Scene({ triggerElement:'#agfactor-sliverkris-vid', duration:'100%' }) .on('enter', function(e) { agfactorSilverKrisVid.play(); }) .on('leave', function(e) { var playPromise=agfactorSilverKrisVid.play(); if (playPromise !==undefined) { playPromise.then(_=> { // Automatic playback started! // Show playing UI. // We can now safely pause video... agfactorSilverKrisVid.pause(); }).catch(error=> { // Auto-play was prevented // Show paused UI. }); } }) //.addIndicators({name:'vid (duration:100%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); } var loveTestiVid=document.getElementById('love-testimonial-vid'); if( loveTestiVid ) { loveTestiVid.pause(); var scene=new ScrollMagic.Scene({ triggerElement:'#love-testimonial-vid', duration:'100%' }) .on('enter', function(e) { loveTestiVid.play(); }) .on('leave', function(e) { var playPromise=loveTestiVid.play(); if (playPromise !==undefined) { playPromise.then(_=> { // Automatic playback started! // Show playing UI. // We can now safely pause video... loveTestiVid.pause(); }).catch(error=> { // Auto-play was prevented // Show paused UI. }); } }) //.addIndicators({name:'vid (duration:100%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); } var innovationVid=document.getElementById('innovation-vid'); if( innovationVid ) { innovationVid.pause(); var scene=new ScrollMagic.Scene({ triggerElement:'#innovation-vid', duration:'100%' }) .on('enter', function(e) { innovationVid.play(); }) .on('leave', function(e) { var playPromise=innovationVid.play(); if (playPromise !==undefined) { playPromise.then(_=> { // Automatic playback started! // Show playing UI. // We can now safely pause video... innovationVid.pause(); }).catch(error=> { // Auto-play was prevented // Show paused UI. }); } }) //.addIndicators({name:'vid (duration:100%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); } var detoxVid=document.getElementById('detox-vid'); if( detoxVid ) { detoxVid.pause(); var scene=new ScrollMagic.Scene({ triggerElement:'#detox-vid', duration:'100%' }) .on('enter', function(e) { detoxVid.play(); }) .on('leave', function(e) { var playPromise=detoxVid.play(); if (playPromise !==undefined) { playPromise.then(_=> { // Automatic playback started! // Show playing UI. // We can now safely pause video... detoxVid.pause(); }).catch(error=> { // Auto-play was prevented // Show paused UI. }); } }) //.addIndicators({name:'vid (duration:100%)'}) // add indicators (requires plugin) .addTo(controllerOnEnter); } }); function handleDeviceChange(e) { $('.section-grid-card .grid').masonry('layout'); setTimeout(function(){ $('.section-grid-card .grid').masonry('layout'); }, 1000); } window.addEventListener('resize', handleDeviceChange); filter_search(); $('.btn-cancel, .btn-filter, .btn-search').on('click',function(){ $('#collapseFilters').collapse('hide'); }); $('.btn-apply-filter').on('click',function(){ $('#collapseFilters').collapse('hide'); var values=[]; $('.section-voices-ocfans .chkFilterGroup:checked').each(function() { values.push($(this).val()); }); var valuesString=values.join(','); if( '1'==1 ) { filter_search(); } else { window.location.href='http://img.onecare.store/home2024/inc_ocfans_list.php?uFilter='+valuesString; } }); $('.btn-search').on('click',function(){ var vTxtKey=$('input[name=txtKeyword]').val(); var vHidKey=$('input[name=hidKeyword]').val(); if(vHidKey !='') { vHidKey +=',' + vTxtKey; } else { vHidKey=vTxtKey; } $('input[name=hidKeyword]').val( vHidKey ); get_filter(); $('input[name=txtKeyword]').val(''); }); $('.filter-group').on('click',function(e){ if($(this).is(':checked')){ $(this).parent().addClass('active'); get_filter(); } else { $(this).parent().removeClass('active'); get_filter(); } }); $('.btn-clear').on('click',function(){ $('.filter-group').prop('checked',false); $('.filter-group').parent().removeClass('active'); $('input[name=hidKeyword]').val(''); get_filter(); }); // $('.owl-carousel.learn-more-carousel').owlCarousel({ // loop:false, // margin:15, // nav:false, // dots:false, // responsive:{ // 0:{ // items:1 // }, // 768:{ // items:4 // } // }, // onInitialize :function(event){ // $('.learn-more-carousel').parents().removeClass('d-none'); // } // }); new Swiper('.learn-more-swiper', { loop:false, spaceBetween:15, simulateTouch:true, grabCursor:true, breakpoints:{ 0:{ slidesPerView:1 }, 768:{ slidesPerView:4 } }, on:{ init:function() { $('.learn-more-swiper').parents().removeClass('d-none'); } } }); $('.prod-list .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:'buy', 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:'1756344074'}); 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://img.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 ); }); $('#modal-video .close').on('click',function(){ $('#modal-video .embed-responsive').html(''); }); // 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://img.onecare.store/utility/timthumb-v2.php?w=50&src=https://img.onecare.store/lib/img/flag/'+code+'.png)'}); $('#mdlChooseLanguage .currency-code').text( currencyCode ); $.ajax({ url: 'https://img.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('