قالب وردپرس درنا توس
Home / Best Lists / Top 5 Healthiest New Year Resolutions

Top 5 Healthiest New Year Resolutions



Finding ways to improve your health and motivation to implement a plan is challenging. New Year's resolutions, which are about getting well, are difficult to keep. Finding the healthiest New Year's resolutions can be difficult. However, some resolutions have a significant positive impact on your wellbeing if you can focus on their payouts and integrate them into your lifestyle.

Here are the top 5 resolutions for the healthiest new year:

5.) Less alcoholic drinks

  Healthiest resolutions for the new year wine "width =" 2790 "height =" 4000

alcohol consumption Driving and other activities are dangerous, but alcohol can have harmful health effects even in a controlled environment. Excessive drinking, which is defined differently for each person, is associated with strokes, high blood pressure, depression, memory loss and even certain types of cancer. If you want to focus on the healthiest New Year's resolutions you can make, reducing your alcohol intake in the New Year can help you avoid these and other health problems.

If you are trying to restrict drinking, you have to be around to change. For example, avoid parties that might tempt you or don't go out with your friends on weekends. Instead of going to a bar with friends, invite them to dinner, where you can be in control. Replacing drinking alcohol with an activity that is more productive than tennis or running is difficult to achieve.

The final step is to avoid an all-or-nothing thought pattern. You try to develop a new behavior pattern. It is a new routine for your brain. Accept that slips will happen and that you cannot ignore them. Use the setback as a lesson instead.

4.) Reduce stress

  Avoiding stress can be a healthy New Year's solution. "Width =" 4592 "height =" 3448

Stress has numerous health effects, including negative effects on mental and emotional health. Finding stress management strategies that work for you is one of the healthiest resolutions for the new year. Take enough time to get enough sleep to seek help at work or at home when the chores are overwhelming, and do your best not to do more than you can do on your schedule. It may take some time to get used to a slower lifestyle, but reducing stress creates the conditions for a healthier future.

Try to avoid caffeine, alcohol, and nicotine in the New Year. Why? Well, consuming these products in bulk will reduce stress first. However, over time, they will start to increase stress because they are stimulants. If you can, try swapping your coffee in the morning and your beer in the evening with water, herbal teas, and natural fruit juice. These items keep you hydrated and help your body cope better with stress.

Also integrate relaxation techniques into your everyday life. There are many stress-reducing techniques out there, but you need to find out which ones work best for you. There are various apps that are designed for meditation. This leads to more positive thinking and a reduction in daily stress factors.

3.) Setting a fitness goal

  Healthiest New Year's resolutions Fitness goal "width =" 3960 "height =" 2228

Fitness is another important aspect of a healthy lifestyle. Set a fitness goal as part of your New Year's care. If you are not used to a lot of physical activity, set yourself a daily exercise goal. If you are already active, make it your goal to perform a specific task, such as: B. run a 5 km race or take part in team sports by the end of the year. Different sports and activities have different effects on your body. Some help you build muscle and boost metabolism, while others burn fat and improve your overall cardiovascular health.

To begin with, try to find your ideal training plan. Not everyone is structured the same way. Some people LOVE walking, others find yoga more beneficial, and some love lifting weights. To stick to a plan, you have to stumble across a training method that you enjoy and that works best for you. We have developed some methods that you can use to train every day.

At the beginning of the new year, plan different training routines for the first week or two. After you've finished the first two weeks of the new year, you'll see what you like best. If you need to continue experimenting, go ahead! After experimenting, you will see what you like best and what is most effective for the rest of the year! If you ever feel bored by mid-year, change it a little. Listen to your body

2.) Manage your diet

  Healthiest New Year's resolutions diet "width =" 4500 "height =" 3867

New Year's resolutions can be a reaction to unhealthy eating during the holidays. Dieting is also an opportunity to improve your overall health. When you think about the healthiest New Year's resolutions, avoid foods that contain trans fats and monitor your diet to avoid weight gain. Limit salt, sugar and fats and replace them with nutritious foods, including plenty of vegetables and fruits. Weight loss not only improves your appearance, but also reduces the risk of heart disease, diabetes and joint pain.

Try to gradually reduce your sugar intake. You need to gradually reduce the sugar, as this may U. is very complex. Add more vegetables when eating! It's a great way to include more greens in your diet. Mix some green in smoothies or add some green to your scrambled eggs. Every little bit helps you to eat healthier for the new year.

If you like to eat out but want to cut out unhealthy foods, start by preparing meals. Take time every Sunday to prepare your favorite dishes and prepare for the upcoming week. A menu at the beginning of the week can help you save money, eat better, and save time. This is a positive way to manage your diet as there are no restrictions!

Is your diet still not working? Read more about the five surprising reasons why a diet may not work. We were shocked.

1.) Quit smoking

  Quit smoking as a healthy solution "width =" 6982 "height =" 4624

Quit smoking is one of the best and healthiest resolutions for New Year, that you can meet. Smoking is associated with heart disease, lung disease and cancer. Smoking also damages the health of the skin, reduces your sense of taste and damages your fellow human beings through passive smoking. Aids such as nicotine patches and gums can help you finally overcome this habit. This gives your body the opportunity to naturally repair the damage caused by smoking.

After you know the healthiest resolutions for the New Year, you should make an effort to change your life with these healthy improvements.

Next>

Training routines (which are anything but a kick-start for your heart health) <img class = "table-cell middle check-img no-pin" src = "https: // www. top5.com/wp-content/uploads/2018/03/heart_health-150×150.jpg "alt =" Training routines (which are anything but a kick-start for your heart health) [19659036] var clickOutHandler = function () {
! Function (f, b, e, v, n, t, s)
{if (f.fbq) return; n = f.fbq = function () {n.callMethod?
n.callMethod.apply (n, arguments): n.queue.push (arguments)};
if (! f._fbq) f._fbq = n; n.push = n; n.loaded =! 0; n.version = & # 39; 2.0 & # 39 ;;
n.queue = []; t = b.createElement (e); t.async =! 0;
t.src = v; s = b.getElementsByTagName (e) [0];
s.parentNode.insertBefore (t, s)} (window, document, & # 39; script & # 39 ;,
& # 39; https: //connect.facebook.net/en_US/fbevents.js&#39);
fbq (& # 39; init & # 39 ;, & # 39; 155838155208561 & # 39;);
fbq (& # 39; trackCustom & # 39 ;, & # 39; KWco & # 39;);
};

} catch (s) {} };

FireFBevent () function {

! Function (f, b, e, v, n, t, s) {if (f.fbq) return; n = f.fbq = function ()

{N.callMethod? n.callMethod.apply (n, arguments): n.queue.push (arguments)} ; if (! f._fbq) f._fbq = n; n.push = n; n.loaded =! 0; n.version = & # 39; 2.0 & # 39 ;; n.queue = []; t = b.createElement (e); t.async =! 0; t.src = v; s = b.getElementsByTagName (e) [0]; s.parentNode.insertBefore (t, s)} (window, document, & # 39; script & # 39 ;, & # 39; https: //connect.facebook.net/en_US/fbevents.js&#39); fbq (& # 39; init & # 39 ;, & # 39; 155838155208561 & # 39;); fbq (& # 39; trackSingleCustom & # 39 ;, & # 39; 155838155208561 & # 39 ;, & # 39; KWco & # 39;);

}

$ (& # 39; # container & # 39;). on (& # 39; click & # 39 ;, & # 39; a [href*="amazon"] a [rel="noopener"] a [href*="amzn.to"] & # 39 ;, function (e) { fireFBevent (); }); var activePage = 1;

/ * FACEBOOK-AFFILIATE-TRACKING * /

$ (& # 39; a.aff-link & # 39;). each (function () {

$ (this) .click (clickOutHandler)

});

var pinterestButtons = function () {

$ (& # 39;. Entry content>. Content block> img,. Entry content> *> img,. Entry content. Content block img,. Entry content a> img & # 39;). each (function (i) {

var $ this = $ (this), url = $ this.attr (& # 39; src & # 39;);

if ($ this.hasClass (& # 39; pinned & # 39;)! = true && $ this.hasClass (& # 39; no-pin & # 39;)! = true && $ this.hasClass (& # 39; ntvAdChoicesImg & # 39;)! = True && $ this.hasClass (& # 39; affiliate -widget-img & # 39;)! = True && url.indexOf (& # 39; nextstory & # 39;) == -1 && url.indexOf (& # 39; SHOP-NOW & # 39;) == -1 && url.indexOf (& # 39; ntv.io & # 39;) == -1 && document.URL.indexOf (& # 39; Participant recommendation & # 39;) == -1) {

$ this.wrap (& # 39; & # 39;); $ (& # 39;. Image-wrap - & # 39; + i) .append (& # 39; 19659033] & # 39;); $ this.addClass (& # 39; pinned & # 39;). data (& # 39; pin-do & # 39;);

$ (& # 39;. Image-wrap - & # 39; + i + & # 39; .pinterest-button & # 39;). click (function () { $ .getScript ("// assets.pinterest.com/js/pinit_main.js", function () { PinUtils.build (); PinUtils.pinAny (); }); });

}

});

if (window.slideshowview == true && window.articlePage> 1) { var href = $ (& # 39 ;. content-next-page-link a & # 39;). attr (& # 39; href & # 39;); $ (& # 39;. Image-wrap-0 & # 39;). append (& # 39; Next> & # 39;) }

}

var queryStrings = getParams (window.location.href), appendString = & # 39; & # 39 ;;

Object.keys (queryStrings) .forEach (function (index) {

if (index == & # 39; utm_source & # 39;) { appendString + = & # 39; & s1 = & # 39; + queryStrings [index]; } otherwise if (index == & # 39; utm_medium & # 39;) { appendString + = & # 39; & s2 = & # 39; + queryStrings [index]; } else if (index == & # 39; utm_content & # 39;) { appendString + = & # 39; & s3 = & # 39; + queryStrings [index]; } else if (index == & # 39; utm_campaign & # 39;) { appendString + = & # 39; & s4 = & # 39; + queryStrings [index]; }

});

$ (& # 39; a & # 39;). each (function (i) {

var $ this = $ (this), $ href = $ this.attr (& # 39; href & # 39;), tempString = appendString;

To attempt {

if ($ href.indexOf (& # 39; greenwebbs.com & # 39;)> - 1) {

if ($ href.indexOf (& # 39; & s1 = & # 39;)> - 1) { $ href = $ href.replace (& # 39; & s1 = & # 39 ;, & # 39; & # 39;); } if ($ href.indexOf (& # 39; & s2 = & # 39;)> - 1) { $ href = $ href.replace (& # 39; & s2 = & # 39 ;, & # 39; & # 39;); } if ($ href.indexOf (& # 39; & s3 = & # 39;)> - 1) { $ href = $ href.replace (& # 39; & s3 = & # 39 ;, & # 39; & # 39;); } if ($ href.indexOf (& # 39; & s4 = & # 39;)> - 1) { $ href = $ href.replace (& # 39; & s4 = & # 39 ;, & # 39; & # 39;); }

if ($ href.indexOf (& # 39;? & # 39;)> - 1) { $ href + = appendString; } otherwise { tempString = appendString.replace (& # 39; && # 39 ;, & # 39;? & # 39;); $ href + = tempString; }

$ this.attr (& # 39; href & # 39 ;, $ href);

}

} Catch (s) { //console.log($this); //console.log(e); }

});

setTimeout (function () {

// If there is a cookie for the gclid if (getCookie ("gclid")) { // Fill it in the required links gclidLinkPop (); }

}, 2500);

$ (& # 39 ;. bookmark-this & # 39;). click (function (e) { var bookmarkURL = window.location.href; var bookmarkTitle = document.title;

if (& # 39; addToHomescreen & # 39; in the window && addToHomescreen.isCompatible) { // Mobile browser addToHomescreen ({autostart: false, startDelay: 0}). show (true); } else if (window.sidebar && window.sidebar.addPanel) { // Firefox <= 22 window.sidebar.addPanel (bookmarkTitle, bookmarkURL, & # 39; & # 39;); } else if ((window.sidebar && /Firefox/i.test(navigator.userAgent)) || (window.opera && window.print)) { // Firefox 23+ and Opera <=14 $(this).attr({ href: bookmarkURL, title: bookmarkTitle, rel: 'sidebar' }).off(e); return true; } else if (window.external && ('AddFavorite' in window.external)) { // IE Favorites window.external.AddFavorite(bookmarkURL, bookmarkTitle); } else { // Other browsers (mainly WebKit & Blink - Safari, Chrome, Opera 15+) alert('Press ' + (/Mac/i.test(navigator.platform) ? 'Cmd' : 'Ctrl') + '+D to bookmark this page.'); } return false; }); $('.review-rail-pi').click(function(e){ e.preventDefault(); $.getScript("//assets.pinterest.com/js/pinit_main.js", function() { PinUtils.build(); PinUtils.pinAny(); }); }); $('.ad-disclosure > span & # 39;). Hover ( Function(){ $ (& # 39 ;. ad-disclosure-content & # 39;). addClass (& # 39; show & # 39;); }, Function(){ $ (& # 39 ;. ad-disclosure-content & # 39;). removeClass (& # 39; show & # 39;); } );

$ (& # 39;. Nav-hamburger & # 39;). click (function (s) {

/ * Hamburg menu * /

e.preventDefault (); $ (& # 39 ;. nav-search-box, .nav-search & # 39;). removeClass (& # 39; active & # 39;); $ (& # 39;. Nav-hamburger> button & # 39;). toggleClass (& # 39; is active & # 39;); $ (& # 39 ;. nav-menu & # 39;). toggleClass (& # 39; expand & # 39;);

})

$ (& # 39 ;. single a.maxbutton & # 39;). click (function (e) {

e.preventDefault ();

To attempt {

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Article - MaxButton & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) { console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39 ;. review-tab & # 39;). hover (function () { var $ this = $ (this); }, function () { var $ this = $ (this); });

$ (& # 39; reviews-main & # 39;). on (& # 39; click & # 39 ;, & # 39; .review-tab & # 39 ;, function (s) {

var $ this = $ (this);

$ (& # 39 ;. review-tab & # 39;). removeClass (& # 39; active & # 39;);

$ this.addClass (& # 39; active & # 39;);

var category_id = $ this.data (& # 39; categoryid & # 39;); $ (& # 39 ;. review-main & # 39;). hide ();

if (category_id == & # 39; all & # 39;) { $ (& # 39 ;. review-main & # 39;). show (); } otherwise { $ (& # 39 ;. review-main.category - & # 39; + category_id) .show (); }

});

$ (& # 39 ;. review-tabs & # 39;). css (& # 39; display & # 39 ;, & # 39; table & # 39;);

/ * Partner Events - Home * /

$ (& # 39; a.home-more-reviews & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Homepage-More Reviews Button & # 39 ;, href); setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) { console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39 ;. home a.featured-product & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Homepage-Top Expert Reviews Card & # 39 ;, href); setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39 ;. home .featured-product-left a & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt { sendGAEvent ("Affiliates", "Homepage-Top Expert Reviews Author", href); setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39 ;. home .featured-review & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Homepage Category Card & # 39 ;, href); setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

/ * Partner Events - Check Taxonomy Page - Bio * /

$ (& # 39; a.product-title & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Organic-Title & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39; a.more-reviews-top & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt { sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Organic-More Reviews Top & # 39 ;, href); setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) { console.log (e); setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39; a.product-logo-wrap & # 39;). click (function (e) { e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt { sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Organic-Image & # 39 ;, href); setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) { console.log (e); setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39 ;. shop-now a & # 39;). click (function (s) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Organic-Button & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39; a.readmore & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Organic-Read Reviews & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39; a.post-below-reviews & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Organic-Bottom Recirc & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39;. Top-review-details a & # 39;). click (function (e) {

e.preventDefault ();

var $ this = $ (this), href = $ this.attr (& # 39; href & # 39;), newTab = $ this.attr (& # 39; target & # 39;), product = $ this.data (& # 39; product & # 39;), pageUrl = location.protocol + & # 39; // & # 39; + location.host + location.pathname;

To attempt {

sendGAEvent (& # 39; Affiliate-Click & # 39 ;, & # 39; Reviews-Title - & # 39; + product, pageUrl);

fbq (& # 39; trackCustom & # 39 ;, & # 39; Aff Click & # 39 ;, { href: href, Product: product, pageUrl: location.protocol + & # 39; // & # 39; + location.host + location.pathname });

setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. top-review-wrapper-left> a & # 39;). click (function (e) {

e.preventDefault ();

var $ this = $ (this), href = $ this.attr (& # 39; href & # 39;), newTab = $ this.attr (& # 39; target & # 39;), product = $ this.data (& # 39; product & # 39;), pageUrl = location.protocol + & # 39; // & # 39; + location.host + location.pathname;

To attempt {

fbq (& # 39; trackCustom & # 39 ;, & # 39; Aff Click & # 39 ;, { href: href, Product: product, pageUrl: location.protocol + & # 39; // & # 39; + location.host + location.pathname });

sendGAEvent (& # 39; Affiliate-Click & # 39 ;, & # 39; Reviews-Thumbnail - & # 39; + product, pageUrl);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. top-review-wrapper a.read-review & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent ("Affiliates", "Reviews-Paid-Read Review Link", href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. top-review-wrapper a.shop-now & # 39;). click (function (e) {

e.preventDefault ();

var $ this = $ (this), href = $ this.attr (& # 39; href & # 39;), newTab = $ this.attr (& # 39; target & # 39;), product = $ this.data (& # 39; product & # 39;), pageUrl = location.protocol + & # 39; // & # 39; + location.host + location.pathname;

To attempt {

sendGAEvent (& # 39; Affiliate-Click & # 39 ;, & # 39; Reviews-Button - & # 39; + product, pageUrl);

fbq (& # 39; trackCustom & # 39 ;, & # 39; Aff Click & # 39 ;, { href: href, Product: product, pageUrl: location.protocol + & # 39; // & # 39; + location.host + location.pathname });

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. rail-review-details a & # 39;). click (function (e) {

e.preventDefault ();

var $ this = $ (this), href = $ this.attr (& # 39; href & # 39;), newTab = $ this.attr (& # 39; target & # 39;), product = $ this.data (& # 39; product & # 39;), pageUrl = location.protocol + & # 39; // & # 39; + location.host + location.pathname;

To attempt {

sendGAEvent (& # 39; Affiliate-Click & # 39 ;, & # 39; Reviews-Rail-Title - & # 39; + product, pageUrl);

fbq (& # 39; trackCustom & # 39 ;, & # 39; Aff Click & # 39 ;, { href: href, Product: product, pageUrl: location.protocol + & # 39; // & # 39; + location.host + location.pathname });

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

}

});

$ (& # 39 ;. reviews-description a & # 39;). click (function (e) {

e.preventDefault ();

var $ this = $ (this), href = $ this.attr (& # 39; href & # 39;), newTab = $ this.attr (& # 39; target & # 39;), pageUrl = location.protocol + & # 39; // & # 39; + location.host + location.pathname, Product;

$ (& # 39;. Top-review-details a & # 39;). each (function (i) {

var $ a = $ (this), $ href = $ a.attr (& # 39; href & # 39;);

if ($ href == href) { Product = $ a.data (& # 39; product & # 39;); return wrong; }

});

To attempt {

sendGAEvent (& # 39; Partner Click & # 39 ;, & # 39; Reviews-Text-Link - & # 39; + Product, pageUrl);

fbq (& # 39; trackCustom & # 39 ;, & # 39; Aff Click & # 39 ;, { href: href, Product: product, pageUrl: location.protocol + & # 39; // & # 39; + location.host + location.pathname });

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39; a.rail-review-rating & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Paid-Rail-Stars & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. rail-review-bottom-right a.read-review & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Review-Paid-Rail-Read-Review-Link & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. rail-review-bottom-right a.shop-now & # 39;). click (function (e) {

e.preventDefault ();

var $ this = $ (this), href = $ this.attr (& # 39; href & # 39;), newTab = $ this.attr (& # 39; target & # 39;), product = $ this.data (& # 39; product & # 39;), pageUrl = location.protocol + & # 39; // & # 39; + location.host + location.pathname;

To attempt {

sendGAEvent (& # 39; Affiliate-Click & # 39 ;, & # 39; Reviews-Rail-Shop Now Button - & # 39; + product, pageUrl);

fbq (& # 39; trackCustom & # 39 ;, & # 39; Aff Click & # 39 ;, { href: href, Product: product, pageUrl: location.protocol + & # 39; // & # 39; + location.host + location.pathname });

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500); }

});

$ (& # 39 ;. product-wrapper-wrap a.more-link-top & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Review Page - More link top right & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. product-wrapper-wrap a.rank-view-more & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Review Page - View More Rank & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. product-wrapper-wrap a.aff-product-buynow & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Review Page - Buy Now Button & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. product-sidebar a & # 39;). click (function (e) {

e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = $ (this) .attr (& # 39; target & # 39;);

To attempt {

sendGAEvent ("Affiliates", "Review Page - Sidebar Recirc", href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

/ * End affiliate events * /

$ (& # 39 ;. entry-content & # 39;). on (& # 39; click & # 39 ;, & # 39 ;. begin-slideshow-after & # 39 ;, function (s) { e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = false;

To attempt {

sendGAEvent (& # 39; Begin Slideshow & # 39 ;, & # 39; Begin Slideshow - Lower & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

} Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. entry-content & # 39;). on (& # 39; click & # 39 ;, & # 39; .begin-slideshow-image & # 39 ;, function (s) { e.preventDefault ();

var href = $ (this) .attr (& # 39; href & # 39;), newTab = false;

To attempt {

sendGAEvent (& # 39; Start Slideshow & # 39 ;, & # 39; Start Slideshow - Image & # 39 ;, href);

setTimeout (function () { openInNewTab (href, newTab); }, 500); } Catch (s) {

console.log (e);

setTimeout (function () { openInNewTab (href, newTab); }, 500);

}

});

$ (& # 39 ;. nav-search & # 39;). click (function (s) {

/ * nav search * /

e.preventDefault ();

$ (& # 39;. Nav-hamburger> button & # 39;). removeClass (& # 39; is active & # 39;); $ (& # 39 ;. nav-menu & # 39;). removeClass (& # 39; expand & # 39;); $ (& # 39 ;. nav-search-box, .nav-search & # 39;). toggleClass (& # 39; active & # 39;);

if ($ (& # 39;. gsc-search-box & # 39;). css (& # 39; display & # 39;) == & # 39; none & # 39;) { $ (& # 39 ;. gsc-search-box & # 39;). show (); }

$ (& # 39 ;. nav-search-box .gsc-input & # 39;). focus ();

})

$ (& # 39 ;. Write-a-Review a & # 39;). Click (function (s) { e.preventDefault (); $ ("html, body"). animate ({scrollTop: $ (& # 39 ;. reviews-wrapper & # 39;). offset (). top}, 1000); sendGAEvent ("Affiliates", "Review Page - Write A Review Button", "Write A Review Button"); });

/ * Search field widget * /

$ (& # 39 ;. featured-search-input & # 39;). on (& # 39; input & # 39 ;, function (s) {

e.preventDefault (); $ (& # 39 ;. search-category & # 39;). removeClass (& # 39; show & # 39;); var val = $ (& # 39 ;. featured-search-input & # 39;). val (). toLowerCase ();

if (val == & # 39; & # 39;) {

$ (& # 39 ;. search-category & # 39;). each (function (i) { var $ this = $ (this); if ($ this.hasClass (& # 39; featured & # 39;)) { $ (this) .addClass (& # 39; show & # 39;); } });

} otherwise {

var i = 1; $ (& # 39 ;. search-category & # 39;). each (function () { var text = $ (this) .html (). toLowerCase (); if (text.indexOf (val)> -1) { if (i <10) { $ (this) .addClass (& # 39; show & # 39;); } i ++; } });

}

})

$ (& # 39 ;. Featured search input & # 39;). Key press (function (s) { if (e.which == 13) { var val = $ (& # 39 ;. featured-search-input & # 39;). val (); $ (& # 39 ;. nav-search-box .gsc-input & # 39;). focus (); $ (& # 39 ;. nav-search-box .gsc-input & # 39;). val (val); $ (& # 39 ;. nav-search-box & # 39;). addClass (& # 39; overlay & # 39;); $ (& # 39 ;. gsc-search-button & # 39;). click (); return wrong; } });

$ (& # 39 ;. rev-desc-read-more & # 39;). click (function (s) {

e.preventDefault ();

var $ reviews = $ (& # 39 ;. reviews-description & # 39;), $ readmore = $ (& # 39 ;. rev-desc-read-more & # 39;);

$ reviews.toggleClass (& # 39; expand & # 39;);

if ($ readmore.html () == & # 39; Read more & # 39;) { $ readmore.html (& # 39; Read Less & # 39;); } otherwise { $ readmore.html (& # 39; Read More & # 39;); $ ("html, body"). animate ({scrollTop: 0}, 500); }

sendGAEvent (& # 39; Affiliates & # 39 ;, & # 39; Reviews-Organic & # 39;, & # 39; Read More Button & # 39;);

});

$ (& # 39;. Reviews-Wrap. Product Extract p, .aff-Product Summary p & # 39;). Filter (function () { return this.innerHTML == & # 39; & # 39 ;; }).remove();

// Remove empty

tags $ (& # 39 ;. entry-content p & # 39;). each (function () { var $ this = $ (this); if ($ this.html (). replace (/ s | / g, & # 39; & # 39;) .length == 0) $ this.remove (); });

// Remove shortcodes on the next page that are in

tags $ (& # 39 ;. entry-content h2 .content-next-page-link & # 39;). detach (). appendTo (& # 39 ;. entry-content & # 39;);

// Attempt to remove old & # 39; Next Story & # 39; buttons var removeNextStory = function () { $ (& # 39 ;. entry-content a & # 39;). each (function () { var $ this = $ (this); if ($ this.html (). indexOf (& # 39; nextstory & # 39;)> - 1) { $ this.remove (); } });

$ (& # 39 ;. entry-content img & # 39;). each (function () { var $ this = $ (this); if ($ this.attr (& # 39; src & # 39;). indexOf (& # 39; nextstory & # 39;)> - 1) { $ this.remove (); } });

}

$ (& # 39 ;. nav-share-fb & # 39;). click (function (s) { e.preventDefault (); window.open ($ (this) .attr (& # 39; href & # 39;), & # 39; fbShareWindow & # 39 ;, & # 39; height = 450, width = 550, top = & # 39; + ( $ (window) .height () / 2 - 275) + & # 39 ;, left = & # 39; + ($ (window) .width () / 2 - 225) + & # 39 ;, toolbar = 0, Position = 0, menu bar = 0, directories = 0, scroll bars = 0)); return wrong; });

if ($ (& # 39 ;. next-post-link & # 39;). length> 0 && window.dualsidebar! = true) { $ (& # 39; head & # 39;). append (& # 39;

& # 39;) }

$ (window) .scroll (function () {

/ * START SCROLL * /

var st = $ (window) .scrollTop ();

if (window.slideshowview! = true && window.slideshowview2! = true && window.width> 767) {

if (st> 200 && window.navScrolled! = true) { $ (&#39;. navbar&#39;). addClass (&#39;fixed&#39;); setTimeout (function () {$ (&#39;. navbar&#39;). addClass (&#39;visible&#39;)}, 300); window.navScrolled = true; window.navScrolled2 = false; }

if (st < 80 && window.navScrolled2 != true) { $('.navbar').removeClass('visible') $('.navbar').removeClass('fixed'); window.navScrolled = false; window.navScrolled2 = true; } } if (window.home) { if (window.width > 1023) {

var windowHeight = $ (window) .height (); var sectionHeight = $ (&#39;. home-featured-articles&#39;). height () - (windowHeight-381); if (st> sectionHeight) { $ (&#39;. home-featured-right&#39;). addClass (&#39;nostick&#39;). css (&#39;height&#39;, windowHeight) } sonst { $ (&#39;. home-featured-right&#39;). removeClass (&#39;nostick&#39;). css (&#39;height&#39;, &#39;100%&#39;); }

} sonst {

$ (&#39;. home-featured-right&#39;). removeClass (&#39;nostick&#39;). css (&#39;height&#39;, &#39;450px&#39;);

}

}

/ * END SCROLL * /

})

$ (window) .resize (function () {

/ * START RESIZE * /

if (window.home) {

var st = $ (window) .scrollTop (); window.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

if (window.width> 1023) {

var windowHeight = $ (window) .height (); var sectionHeight = $ (&#39;. home-featured-articles&#39;). height () - (windowHeight-381); if (st> sectionHeight) { $ (&#39;. home-featured-right&#39;). addClass (&#39;nostick&#39;). css (&#39;height&#39;, windowHeight) } sonst { $ (&#39;. home-featured-right&#39;). removeClass (&#39;nostick&#39;). css (&#39;height&#39;, &#39;100%&#39;); }

} sonst {

$ (&#39;. home-featured-right&#39;). removeClass (&#39;nostick&#39;). css (&#39;height&#39;, &#39;450px&#39;);

}

}

/ * END RESIZE * /

});

if (window.home) {

var st = $ (window) .scrollTop (); window.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

if (window.width> 1023) {

var windowHeight = $ (window) .height (); var sectionHeight = $ (&#39;. home-featured-articles&#39;). height () - (windowHeight-381); if (st> sectionHeight) { $ (&#39;. home-featured-right&#39;). addClass (&#39;nostick&#39;). css (&#39;height&#39;, windowHeight) } sonst { $ (&#39;. home-featured-right&#39;). removeClass (&#39;nostick&#39;). css (&#39;height&#39;, &#39;100%&#39;); }

} sonst {

$ (&#39;. home-featured-right&#39;). removeClass (&#39;nostick&#39;). css (&#39;height&#39;, &#39;450px&#39;);

}

}

});
Source link