jQuery(document).ready(function () {
jQuery(‘div#gfl-homesort-price-toggle’).click(function () {
jQuery(‘.sortby-head li.opened’).not(jQuery(this)).removeClass(‘opened’);
jQuery(this).toggleClass(‘opened’);
jQuery(this).parent().children(‘.gf-sortby-price-wrap.sort-container’).toggle();
});
jQuery(‘div#gfl-homesort-currency-toggle’).click(function () {
jQuery(‘.sortby-head li.opened’).not(jQuery(this)).removeClass(‘opened’);
jQuery(this).toggleClass(‘opened’);
jQuery(‘#gfl-homesort-currency-container.sort-container’).toggle();
});
});
.gfl-widget-share-panel {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 9999999999;
background-color: rgba(249, 249, 249, 0.91);
text-align: center;
padding: 20px;
display: none;
overflow: scroll;
}
.gfl-widget-share-panel-wrap {
color: #464646;
position: relative;
max-width: 960px;
margin: 0 auto;
top: 50%;
transform: translate(0, -50%);
text-align: left;
padding-left: 300px;
background-color: #fff;
border-radius: 11px;
overflow: hidden;
box-sizing: border-box;
font-family: “Lato”, sans-serif;
box-shadow: -1px 3px 30px 0px rgba(68, 68, 68, 0.25);
}
.widget-share-panel-thumb {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 300px;
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
}
.gfl-widget-share-panel-close {
position: absolute;
right: 15px;
top: 0;
cursor: pointer;
font-weight: 400;
color: #a7a7ab;
font-size: 26px;
line-height: 1;
padding: 15px;
z-index: 3;
}
.widget-share-panel-content {
padding: 20px;
position: relative;
min-height: 340px;
}
.widget-share-panel-title {
font-weight: 900;
margin: 0 auto 5px;
font-size: 26px;
padding: 0 30px;
position: relative;
}
.widget-share-actions {
margin: 30px auto 0;
text-align: left;
position: relative;
}
.widget-share-action {
display: inline-block;
position: relative;
margin: 20px 30px 20px;
font-weight: 700;
width: 90px;
text-align: center;
cursor: pointer;
text-decoration: none;
font-size: 18px;
color: inherit;
}
.widget-share-action:before {
content: “”;
display: block;
width: 40px;
height: 40px;
border-radius: 100%;
margin: 0 auto 4px;
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/archives/sprite_social_share.png”);
background-size: auto 42px;
background-repeat: no-repeat;
background-position: 0 50%;
}
.widget-share-action.fb:before {
background-position: -472px 50%;
}
.widget-share-action.tw:before {
background-position: -84px 50%;
}
.widget-share-action.pin:before {
background-position: -239px 50%;
}
.widget-share-action.li:before {
background-position: -317px 50%;
}
.widget-share-action.flipb:before {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/archives/share_flipb.png”);
background-size: cover;
background-position: 50% 50%;
}
.widget-share-action.mail:before {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/archives/share_email.png”);
background-size: cover;
background-position: 50% 50%;
}
.widget-share-action:hover {
opacity: 0.8;
}
/* Media Queries */
@media screen and (max-width: 960px) {
.gfl-widget-share-panel-wrap {
padding: 0;
max-width: 600px;
}
.widget-share-panel-thumb {
display: none;
}
.widget-share-panel-content {
text-align: center;
}
.widget-share-actions {
text-align: center;
}
}
@media screen and (max-width: 640px) {
.widget-share-action {
margin: 20px 15px;
}
}
@media screen and (max-width: 365px) {
.widget-share-action {
margin: 15px 10px;
}
}
jQuery(document).ready(function() {
});
Best workout gadgets and accessories for your morning run
You love going for a run first thing in the morning. It clears your mind and gets you energized for the day. But what if you had a way (or a few) to get more out of your jogs? To help you maximize time in your sneakers, we’ve rounded up our best workout gadgets and accessories for your morning run. Check it out and see how you can make your favorite part of the day even better.
.gfl-home-ads.inline {
text-align: center;
margin: 20px auto 20px;
}
If you’ve been jogging by yourself, you know the benefit of having smart technology to track your workout. It could be a health-tracking wristband or even your own wearable thermostat. With the best gadgets by your side, you can make your morning run even more productive.
Related: The ultimate fitness gadget guide for your home gym
Today’s roundup highlights 11 pieces of amazing workout gear that can truly enhance your morning jog. And if you tend to do other forms of exercise than jogging, you can use these gadgets to make all your workout hours count.
Amazon Halo Health and Wellness Band
Get all the stats you need about your run with the Amazon Halo Health and Wellness Band. This smart band tracks your health data, including your body fat, calories burned, sleep patterns, and more. It even creates a 3D model of your body and can detect if your voice sounds negative or energetic.
-
- Amazon Halo Health and Wellness Band on a Wrist
-
-
Withings ScanWatch Wearable Heart Monitor
Another of our best workout gadgets and accessories for morning runs is the Withings ScanWatch Wearable Heart Monitor. This gadget scans your heart all the time and can recognize if your heart beats irregularly or experiences atrial fibrillation. It’s just the tracker you want to have after a serious sprint.
Withings ScanWatch Wearable Heart Monitor on a Wrist
Fitbit Sense Advanced Health Smartwatch
Monitor your heart, stress, and overall health with the Fitbit Sense Advanced Health Smartwatch. This wearable has a biosensor core and an EDA sensor to help you track your heart rate and cope with stress. There’s even an ECG app that lets you see if your heartbeat is normal.
Under Armour Sportsmask Face Cover
Reduce your chances of catching a virus with the Under Armour Sportsmask Face Cover. This face mask has an antimicrobial treatment on its interior. What’s more, the smooth outer shell is water-resistant, so you can wear it in the rain.
Under Armour Sportsmask Face Cover on a Man
Flow 2 by Plume Labs Portable Air Pollution Sensor
Measure the air quality before you run with the Flow 2 by Plume Labs Portable Air Pollution Sensor. This handy gadget straps on to almost anything and measures the air’s particulate matter, nitrous oxide, and VOCs.
Flow 2 by Plume Labs Portable Air Pollution Sensor on a White Background
KidRunner NexGen High-Performance Jogging Stroller
Let your kids nap while you run with the KidRunner NexGen High-Performance Jogging Stroller. This jogging stroller keeps visual contact between parent and child, which gives you both more time together. The 2021 edition includes a folding cockpit with storage, an all-weather cover, and the BIKE and SKI conversion pods.
Embr Wave Wearable Personal Thermostat
Stay as cool (or as warm) as you want with the Embr Wave Wearable Personal Thermostat, another great item on our list of best workout gadgets and accessories for your morning run. With the press of a button, this wearable cools provides warmth or coolness for immediate relief.
-
- Embr Wave Wearable Personal Thermostat on a Wrist
-
-
EQUA Smart Water Bottle
Know how hydrated you are with the EQUA Smart Water Bottle. With its motion sensor tech, this smart water bottle glows to let you know just when you should take a sip. It also gives you a personalized plan for how much water you should drink each day.
-
- EQUA Smart Water Bottle on a Table
-
-
Scosche Rhythm+ Armband Heart Rate Monitor
A high-quality heart rate monitor, the Scosche Rhythm+ Armband Heart Rate Monitor is comfortable to wear and more accurate than others with its Perform Tek biometric sensor. It’s been proven to provide accurate data, even while you’re running.
-
- Scosche Rhythm+ Armband Heart Rate Monitor on a Man’s Arm
-
-
Milestone Pod Running Tracker
Understand your physical strength with the Milestone Pod Running Tracker. This is one of our best workout gadgets and accessories for your morning run that clips on to your shoes and records your foot strike, cadence, leg swing, stride length, and rate of impact.
Milestone Pod Running Tracker on a Running Shoe
Bose Sport Earbuds
Get lifelike sound while you run with the Bose Sport Earbuds. Their high-efficiency drivers deliver impressive sound and won’t fall out while you’re exercising since they come with three sizes of StayHear Max tips.
-
- Bose Sport Earbuds Workout Earphones in a Man’s Ear
-
-
So are you ready to make your morning run even more enjoyable? We’re sure these best workout gadgets and accessories for your morning run can help. Let us know your favorites, or if you’re currently using any of these products, in the comments.
Want more tech news, reviews, and guides from Gadget Flow? Follow us on Google News, Feedly, and Flipboard. If you use Flipboard, you should definitely check out our Curated Stories. We publish three new stories every day, so make sure to follow us to stay updated!
The Gadget Flow Daily Digest highlights and explores the latest in
tech trends to keep you informed. Want it straight to your inbox?
Subscribe ➜
Lauren has been writing and editing since 2008. She loves working with text and helping writers find their voice. When she’s not typing away at her computer, she cooks and travels with her husband and two daughters.
.gfl-home-ads {
text-align: center;
margin: 0 auto 20px;
}
.gfl-footer-wrap {
background-color: #fff;
border-top: 1px solid #f5f5f5;
color: rgba(105, 108, 123, 0.78);
font-family: “Lato”, sans-serif;
text-align: center;
padding: 30px 0;
}
.gfl-footer-wrap.hidden {
display: none;
}
.gfl-footer {
max-width: 800px;
margin: 0 auto;
text-align: left;
padding: 20px;
}
.gfl-footer-content {
padding: 0 40px;
}
.gfl-footer-links {
display: inline-block;
width: 100%;
}
.gfl-footer-links-section {
float: left;
width: 25%;
padding: 0 20px 0 0;
box-sizing: border-box;
}
.gfl-footer-links-section:last-of-type {
padding: 0;
}
.gfl-footer-links-subheading {
font-weight: 900;
margin: 0 0 10px;
color: #444;
font-size: 16px;
}
.gfl-footer-link-item {
display: block;
text-decoration: none;
color: #66676d;
margin: 0 0 7px;
font-size: 16px;
line-height: 1.4;
}
.gfl-footer-share-item {
margin: 0 10px 8px 0;
width: 30px;
height: 30px;
display: inline-block;
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/footer_social_icons.png”);
background-size: auto 30px;
background-repeat: no-repeat;
background-position: 0 0;
opacity: 0.9;
}
.gfl-footer-links-section a.gfl-footer-share-item:hover {
opacity: 1;
}
.gfl-footer-share-item.fb {
background-position: 0 0;
}
.gfl-footer-share-item.ins {
background-position: -72px 0;
}
.gfl-footer-share-item.pin {
background-position: -108px 0;
}
.gfl-footer-share-item.tu {
background-position: -128px 0;
}
.gfl-footer-share-item.tw {
background-position: -36px 0;
}
.gfl-footer-share-item.gp {
background-position: -144px 0;
}
.gfl-footer-share-item.fbm {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/messenger.png”);
}
.gfl-footer-share-item.rss {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/RSS.png”);
}
#gfl-footer-top-wrap {
color: inherit;
font-style: normal;
margin: 0 auto;
max-width: 820px;
padding: 19px 0 0;
text-align: left;
}
.footer-widget-title {
border-bottom: 1px solid #e0e0e0;
display: block;
color: #444;
font-weight: 900;
margin: 0 auto;
padding-bottom: 10px;
text-align: left;
}
#gfl-footer-top-wrap ul {
display: block;
margin: 25px auto;
text-align: left;
vertical-align: top;
}
.gfl-footer-featured {
background-position: 0 center;
background-repeat: no-repeat;
background-size: auto 98%;
display: inline-block;
height: 20px;
margin: 5px 29px 5px 0;
padding: 0;
vertical-align: top;
}
.gfl-footer-featured:last-of-type {
margin-right: 0;
}
.gfl-footer-featured a {
display: block;
height: 100%;
}
#gfl-footer-featured-1 {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/featuredfooter/1.png”);
width: 131px;
height: 27px;
}
#gfl-footer-featured-2 {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/featuredfooter/2.png”);
width: 64px;
}
#gfl-footer-featured-3 {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/featuredfooter/3new.png”);
background-position: 0 0px;
width: 78px;
}
#gfl-footer-featured-4 {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/featuredfooter/4.png”);
background-position: 0 0;
width: 55px;
display: inline-block;
}
#gfl-footer-featured-5 {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/featuredfooter/huffp.png”);
background-position: 0 0;
width: 159px;
display: inline-block;
margin-right: 0;
margin-left: 20px;
}
#gfl-footer-featured-6 {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/featuredfooter/inc.png”);
background-position: 0 0;
width: 56px;
display: inline-block;
margin-right: 0;
margin-left: 20px;
height: 21px !important;
}
.gfl-footer-legend {
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
padding: 20px 0;
margin: 30px auto 0;
}
.gfl-footer-legend-logo {
display: inline-block;
width: 138px;
height: 30px;
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/logo_footer.png”);
background-repeat: no-repeat;
background-position: 0 50%;
background-size: contain;
margin: 0px 30px 0 0;
}
.gfl-footer-legend-loc {
font-size: 14px;
float: right;
margin: 0;
color: #3c3d42;
}
.gfl-footer-legend-loc a {
display: block;
}
.gfl-footer-legend-loc a.dark {
display: none;
}
.gfl-footer-legend-loc img {
height: 34px;
}
.gfl-footer-legend-links {
display: inline-block;
margin: 6px 0 0;
line-height: 1.1;
font-size: 16px;
}
.gfl-footer-legend-link {
text-decoration: none;
color: #3c3d42;
font-size: 16px;
display: inline-block;
margin: 0 10px 0 0;
}
.gfl-footer-featured span {
display: none;
}
.gfl-footer-links-section.social.mobile {
display: none;
}
.gfl-footer-app {
display: block;
background-size: contain;
background-repeat: no-repeat;
background-position: 50% 50%;
width: 122px;
margin: 0 0 10px;
height: 36px;
}
.gfl-footer-app.android {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/footer_androidapp.png”);
}
.gfl-footer-app.ios {
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/footer_iosapp.png”);
}
.gfl-ll-bimg {
background-image: none !important;
}
.youtube-div {
padding-bottom: calc(100%/(16/9));
background-size: 100% auto;
background-color: #000;
background-repeat: no-repeat;
background-position: 50%;
position: relative;
cursor: pointer;
}
.youtube-div iframe {
display: block;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
}
.youtube-div .yt-play {
width: 70px;
height: 46px;
background-color: #212121;
z-index: 1;
opacity: .8;
border-radius: 14%;
transition: all .2s cubic-bezier(0,0,.2,1);
}
.youtube-div .yt-play:before {
content: ”;
border-style: solid;
border-width: 11px 0 11px 19px;
border-color: transparent transparent transparent #fff;
}
.youtube-div:hover .yt-play {
background-color: red;
opacity: 1;
}
.youtube-div .yt-play, .youtube-div .yt-play:before {
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%,-50%,0);
}
/* Media Queries */
@media screen and (max-width:840px) {
#gfl-footer-top-wrap ul {
text-align: left;
margin-bottom: 0;
}
.gfl-footer-featured {
margin: 7px 13px 0 !important;
}
#gfl-footer-featured-3 {
margin-left: 0 !important;
}
}
@media screen and (max-width:768px) {
.gfl-footer-links-section:not(.social) {
float: none;
width: auto;
margin: 0 auto 30px;
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/footer_arrow.png”);
background-position: calc(100% – 4px) 8px;
background-repeat: no-repeat;
background-size: 13px auto;
transition: 1s all;
}
.gfl-footer-link-item {
display: none;
line-height: 1.6;
}
.opened .gfl-footer-link-item {
display: block;
}
.gfl-footer-links-section.social {
float: none;
width: auto;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
padding: 20px 0;
margin: 40px 0 0;
}
.footer-widget-title {
width: auto;
margin: 0 auto 30px;
background-image: url(“https://thegadgetflow.com/wp-content/themes/gadgetflow-next/images/footer/footer_arrow.png”);
background-position: calc(100% – 4px) 8px;
background-repeat: no-repeat;
background-size: 13px auto;
transition: 1s all;
border: 0 none;
padding: 0;
}
.gfl-footer-legend {
border: 0 none;
text-align: center;
}
.gfl-footer-legend-logo {
width: 20px;
background-size: auto 100%;
margin: 1px 10px -1px 0;
}
.gfl-footer-legend-loc {
float: none;
display: block;
text-align: center;
margin: 20px auto 0;
}
#gfl-footer-top-wrap ul {
text-align: left;
margin: -20px auto 20px;
display: none;
}
.gfl-footer-featured {
background: none !important;
width: auto !important;
height: auto !important;
display: block !important;
margin: 0 0 7px !important;
}
.gfl-footer-featured a {
text-decoration: none;
color: #66676d;
}
.gfl-footer-featured span {
display: block;
}
#gfl-footer-top-wrap {
padding: 0;
}
.gfl-footer-links-section.social.desktop {
display: none;
}
.gfl-footer-links-section.social.mobile {
display: block;
}
.gfl-footer-app {
display: none;
}
}
@media screen and (max-width:550px) {
}
@media screen and (max-width:460px) {
.gfl-footer-content {
padding: 0;
}
.gfl-footer-legend {
text-align: left;
margin: 0 auto;
}
.gfl-footer-legend-logo {
display: none;
margin: 1px 10px -1px 0;
}
.gfl-footer-legend-loc {
margin-right: 10px;
text-align: left;
margin-top: 25px;
}
.gfl-footer-legend-links {
display: block;
padding: 0;
margin: 10px 0 0;
line-height: 1.8;
}
.gfl-footer-share-item {
margin-bottom: 0;
}
}
@media screen and (max-width:320px) {
.gfl-footer-share-item.rss {
display: none;
}
}
/* <![CDATA[ */
var wlSettings = {“ajaxUrl”:”https://thegadgetflow.com/wp-admin/admin-ajax.php”,”apiUrl”:”https://thegadgetflow.com/wl-api/”,”jsonld_url”:”https://thegadgetflow.com/wp-json/wordlift/v1/jsonld/”,”postId”:”440399″,”jsonld_enabled”:””};
/* ]]> */
( ‘fetch’ in window ) || document.write( ‘’ );( document.contains ) || document.write( ‘’ );( window.DOMRect ) || document.write( ‘’ );( window.URL && window.URL.prototype && window.URLSearchParams ) || document.write( ‘’ );( window.FormData && window.FormData.prototype.keys ) || document.write( ‘’ );( Element.prototype.matches && Element.prototype.closest ) || document.write( ‘’ );
/* <![CDATA[ */
var _wlCloudSettings = {“selector”:”a.wl-entity-page-link”,”url”:”https://thegadgetflow.com/wp-json/wordlift/v1/jsonld”};
/* ]]> */
“use strict”;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++)}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError(“Cannot call a class as a function”)}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:”_checkPassiveOption”,value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener(“test”,null,options),window.removeEventListener(“test”,null,options)}catch(err){self.passiveSupported=!1}}},{key:”initRequestIdleCallback”,value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:”isDataSaverModeOn”,value:function(){return”connection”in navigator&&!0===navigator.connection.saveData}},{key:”supportsLinkPrefetch”,value:function(){var elem=document.createElement(“link”);return elem.relList&&elem.relList.supports&&elem.relList.supports(“prefetch”)&&window.IntersectionObserver&&”isIntersecting”in IntersectionObserverEntry.prototype}},{key:”isSlowConnection”,value:function()}]),RocketBrowserCompatibilityChecker}();
“use strict”;var _createClass=function(){function i(e,t){for(var r=0;r<t.length;r++)}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}var RocketLazyLoadScripts=function(){function r(e,t){_classCallCheck(this,r),this.attrName=”data-rocketlazyloadscript”,this.browser=t,this.options=this.browser.options,this.triggerEvents=e,this.userEventListener=this.triggerListener.bind(this)}return _createClass(r,[{key:”init”,value:function(){this._addEventListener(this)}},{key:”reset”,value:function(){this._removeEventListener(this)}},{key:”_addEventListener”,value:function(t){this.triggerEvents.forEach(function(e){return window.addEventListener(e,t.userEventListener,t.options)})}},{key:”_removeEventListener”,value:function(t){this.triggerEvents.forEach(function(e){return window.removeEventListener(e,t.userEventListener,t.options)})}},{key:”_loadScriptSrc”,value:function(){var r=this;document.querySelectorAll(“script[“+this.attrName+”]”).forEach(function(e){var t=e.getAttribute(r.attrName);e.setAttribute(“src”,t),e.removeAttribute(r.attrName)}),this.reset()}},{key:”triggerListener”,value:function(){this._loadScriptSrc(),this._removeEventListener(this)}}],[{key:”run”,value:function(){if(RocketBrowserCompatibilityChecker){new r([“keydown”,”mouseover”,”touchmove”,”touchstart”],new RocketBrowserCompatibilityChecker({passive:!0})).init()}}}]),r}();RocketLazyLoadScripts.run();
jQuery(document).ready(function() {
gfl_catid = “”;
gfl_page = 1;
gfl_sortby = “”;
gfl_pricefrom = “”;
gfl_priceto = “”;
gfl_inf_loops = 6;
gfl_inf_cache_prefix = “1601484101”;
gfl_inf_where = “bsi”;
gfl_inf_user = “guest”;
gfl_inf_squery = “”;
gfl_inf_wl_user = “”;
gfl_single_id = “440399”;
if (typeof(gfl_page) === “undefined” ) {
gfl_page = 2;
}
if ( typeof(gfl_catid) === “undefined” ) {
gfl_catid = “”;
}
gfl_inf_container = “.gfl-blog-content”;
});
/* <![CDATA[ */
var _wpUtilSettings = {“ajax”:{“url”:”/wp-admin/admin-ajax.php”}};
/* ]]> */
(function (undefined) {var _targetWindow =”prefer-popup”;
window.NSLPopup = function (url, title, w, h) {
var userAgent = navigator.userAgent,
mobile = function ()
/Android/i.test(userAgent) ,
screenX = window.screenX !== undefined ? window.screenX : window.screenLeft,
screenY = window.screenY !== undefined ? window.screenY : window.screenTop,
outerWidth = window.outerWidth !== undefined ? window.outerWidth : document.documentElement.clientWidth,
outerHeight = window.outerHeight !== undefined ? window.outerHeight : document.documentElement.clientHeight – 22,
targetWidth = mobile() ? null : w,
targetHeight = mobile() ? null : h,
V = screenX < 0 ? window.screen.width + screenX : screenX,
left = parseInt(V + (outerWidth – targetWidth) / 2, 10),
right = parseInt(screenY + (outerHeight – targetHeight) / 2.5, 10),
features = [];
if (targetWidth !== null) {
features.push(‘width=’ + targetWidth);
}
if (targetHeight !== null) {
features.push(‘height=’ + targetHeight);
}
features.push(‘left=’ + left);
features.push(‘top=’ + right);
features.push(‘scrollbars=1’);
var newWindow = window.open(url, title, features.join(‘,’));
if (window.focus) {
newWindow.focus();
}
return newWindow;
};
var isWebView = null;
function checkWebView() {
if (isWebView === null) {
function _detectOS(ua) {
if (/Android/.test(ua)) {
return “Android”;
} else if (/iPhone|iPad|iPod/.test(ua)) {
return “iOS”;
} else if (/Windows/.test(ua)) {
return “Windows”;
} else if (/Mac OS X/.test(ua)) {
return “Mac”;
} else if (/CrOS/.test(ua)) {
return “Chrome OS”;
} else if (/Firefox/.test(ua)) {
return “Firefox OS”;
}
return “”;
}
function _detectBrowser(ua) {
var android = /Android/.test(ua);
if (/CriOS/.test(ua)) {
return “Chrome for iOS”;
} else if (/Edge/.test(ua)) {
return “Edge”;
} else if (android && /Silk//.test(ua)) {
return “Silk”;
} else if (/Chrome/.test(ua)) {
return “Chrome”;
} else if (/Firefox/.test(ua)) {
return “Firefox”;
} else if (android) {
return “AOSP”;
} else if (/MSIE|Trident/.test(ua)) {
return “IE”;
} else if (/Safari//.test(ua)) {
return “Safari”;
} else if (/AppleWebKit/.test(ua)) {
return “WebKit”;
}
return “”;
}
function _detectBrowserVersion(ua, browser) {
if (browser === “Chrome for iOS”) {
return _getVersion(ua, “CriOS/”);
} else if (browser === “Edge”) {
return _getVersion(ua, “Edge/”);
} else if (browser === “Chrome”) {
return _getVersion(ua, “Chrome/”);
} else if (browser === “Firefox”) {
return _getVersion(ua, “Firefox/”);
} else if (browser === “Silk”) {
return _getVersion(ua, “Silk/”);
} else if (browser === “AOSP”) {
return _getVersion(ua, “Version/”);
} else if (browser === “IE”) {
return /IEMobile/.test(ua) ? _getVersion(ua, “IEMobile/”) :
/MSIE/.test(ua) ? _getVersion(ua, “MSIE “)
:
_getVersion(ua, “rv:”);
} else if (browser === “Safari”) {
return _getVersion(ua, “Version/”);
} else if (browser === “WebKit”) {
return _getVersion(ua, “WebKit/”);
}
return “0.0.0”;
}
function _getVersion(ua, token) {
try {
return _normalizeSemverString(ua.split(token)[1].trim().split(/[^w.]/)[0]);
} catch (o_O) {
}
return “0.0.0”;
}
function _normalizeSemverString(version)
function _isWebView(ua, os, browser, version, options) {
switch (os + browser) {
case “iOSSafari”:
return false;
case “iOSWebKit”:
return _isWebView_iOS(options);
case “AndroidAOSP”:
return false;
case “AndroidChrome”:
return parseFloat(version) >= 42 ? /; wv/.test(ua) : /d{2}.0.0/.test(version) ? true : _isWebView_Android(options);
}
return false;
}
function _isWebView_iOS(options) {
var document = (window[“document”] || {});
if (“WEB_VIEW” in options) {
return options[“WEB_VIEW”];
}
return !(“fullscreenEnabled” in document || “webkitFullscreenEnabled” in document || false);
}
function _isWebView_Android(options) {
if (“WEB_VIEW” in options) {
return options[“WEB_VIEW”];
}
return !(“requestFileSystem” in window || “webkitRequestFileSystem” in window || false);
}
var options = {};
var nav = window.navigator || {};
var ua = nav.userAgent || “”;
var os = _detectOS(ua);
var browser = _detectBrowser(ua);
var browserVersion = _detectBrowserVersion(ua, browser);
isWebView = _isWebView(ua, os, browser, browserVersion, options);
}
return isWebView;
}
window._nsl.push(function ($) {
window.nslRedirect = function (url) {
$(‘
’).appendTo(‘body’);
window.location = url;
};
var targetWindow = _targetWindow || ‘prefer-popup’,
lastPopup = false;
$(document.body).on(‘click’, ‘a[data-plugin=”nsl”][data-action=”connect”],a[data-plugin=”nsl”][data-action=”link”]’, function (e) {
if (lastPopup && !lastPopup.closed) {
e.preventDefault();
lastPopup.focus();
} else {
var $target = $(this),
href = $target.attr(‘href’),
success = false;
if (href.indexOf(‘?’) !== -1) {
href += ‘&’;
} else {
href += ‘?’;
}
var redirectTo = $target.data(‘redirect’);
if (redirectTo === ‘current’) {
href += ‘redirect=’ + encodeURIComponent(window.location.href) + ‘&’;
} else if (redirectTo && redirectTo !== ”) {
href += ‘redirect=’ + encodeURIComponent(redirectTo) + ‘&’;
}
if (targetWindow !== ‘prefer-same-window’ && checkWebView()) {
targetWindow = ‘prefer-same-window’;
}
if (targetWindow === ‘prefer-popup’) {
lastPopup = NSLPopup(href + ‘display=popup’, ‘nsl-social-connect’, $target.data(‘popupwidth’), $target.data(‘popupheight’));
if (lastPopup) {
success = true;
e.preventDefault();
}
} else if (targetWindow === ‘prefer-new-tab’) {
var newTab = window.open(href + ‘display=popup’, ‘_blank’);
if (newTab) {
if (window.focus) {
newTab.focus();
}
success = true;
e.preventDefault();
}
}
if (!success) {
window.location = href;
e.preventDefault();
}
}
});
var googleLoginButton = $(‘a[data-plugin=”nsl”][data-provider=”google”]’);
if (googleLoginButton.length && checkWebView()) {
googleLoginButton.remove();
}
});})();
function gfl_footer_bindings() {
jQuery(‘.gfl-footer-links-section, .footer-widget-title.asseen’).unbind();
if (jQuery(window).width() <= 768) {
jQuery(‘.gfl-footer-links-section’).not(‘.social’).on(“click”, function () {
jQuery(this).toggleClass(‘opened’);
});
jQuery(‘.footer-widget-title.asseen’).on(“click”, function () {
jQuery(‘#gfl-footer-top-wrap ul.footer-widget-asseen.footer-widget-asseen’).slideToggle();
});
}
}
jQuery(document).ready(function () {
var gflbody = jQuery(‘#gfl-body’);
/* Menu */
if (jQuery(window).scrollTop() >= 150) {
jQuery(‘#gfl-menu-desktop’).addClass(‘fixed’);
} else {
jQuery(‘#gfl-menu-desktop’).removeClass(‘fixed’);
}
jQuery(window).bind(‘scroll’, function () {
if (jQuery(window).scrollTop() > 150) {
jQuery(‘#gfl-menu-desktop’).addClass(‘fixed’);
} else {
jQuery(‘#gfl-menu-desktop’).removeClass(‘fixed’);
}
});
jQuery(‘.gfl-menu-mobile-toggle’).click(function () {
jQuery(this).toggleClass(“is-active”);
jQuery(‘#gfl-menu-mobile-contents’).slideToggle();
});
jQuery(‘.gfl-menu-mobile-user-icon’).on(“click”, function (e) {
e.stopPropagation();
jQuery(‘.gfl-menu-mobile-user-menu’).fadeToggle();
});
jQuery(‘.gfl-menu-mobile-user-menu’).on(“click”, function (e) {
e.stopPropagation();
});
jQuery(‘.searchbar-mobile’).on(“click”, function (e) {
e.stopPropagation();
jQuery(this).toggleClass(‘closed’);
if (!jQuery(this).hasClass(‘closed’)) {
jQuery(‘.searchbar-mobile form input.mobtext’).focus();
}
});
jQuery(‘.searchbar-mobile form’).on(“click”, function (e) {
e.stopPropagation();
});
jQuery(‘body’).on(“click”, function () {
jQuery(‘.searchbar-mobile’).addClass(‘closed’);
jQuery(‘.gfl-menu-mobile-user-menu’).fadeOut();
});
jQuery(‘.gfl-mobile-menu-section-heading.expandable’).on(“click”, function () {
jQuery(this).parent().toggleClass(‘expanded’);
});
if (gflbody.hasClass(‘has-swiper’)) {
var trendingmobm = new Swiper(‘.trending-mobile.swiper-container’, {
slidesPerView: ‘auto’,
spaceBetween: 0,
grabCursor: true,
on: {
slideChange: function () {
jQuery(‘.gfl-menu-subitems’).hide();
}
}
});
}
/* Footer */
gfl_footer_bindings();
jQuery(window).on(“resize”, function () {
gfl_footer_bindings();
});
jQuery(“html”).on(“mousemove.gflc touchmove.gflc”, function () {
jQuery(‘.gfl-ll-bimg’).removeClass(‘gfl-ll-bimg’);
jQuery(this).off(‘.gflc’);
});
/* Single only */
if (gflbody.hasClass(‘single’)) {
if (gfl_gdpr_accepted === “yes”) {
var infoclosedsingle = jQuery.cookie(‘infoclosedsingle’);
if (typeof (infoclosedsingle) == ‘undefined’) {
infoclosedsingle = 0;
}
if (infoclosedsingle !== 1) {
if (document.referrer == null || document.referrer.indexOf(window.location.hostname) < 0) {
jQuery(‘.gf-single-guest-notification’).fadeIn();
}
infoclosedsingle = 1;
jQuery.cookie(‘infoclosedsingle’, infoclosedsingle, {
path: ‘/’,
expires: 30
});
}
jQuery(‘.gf-single-guest-notification-toggle’).click(function () {
jQuery(‘.gf-single-guest-notification’).hide();
});
}
}
/* Updates */
jQuery.ajax({
data: {
action: “gfl_get_updates_widget”
},
global: false,
type: “POST”,
url: “/wp-admin/admin-ajax.php”,
success: function (data) {
jQuery(‘.gfl-widget-updates-wrap’).html(data);
var seemoreel = jQuery(‘.gfl-widget-updates-seemore’);
var gfl_updates_action = seemoreel.attr(‘data-upaction’);
var gfl_updates_upids = seemoreel.attr(‘data-upids’);
var gfl_updates_unread = seemoreel.attr(‘data-unread’);
var update_count_el = jQuery(‘.gfl-widget-updates-trigger’);
if (gfl_updates_unread === “0”) {
update_count_el.addClass(’empty’);
} else {
update_count_el.removeClass(’empty’);
}
jQuery(‘.gfl-widget-updates-trigger-count’).html(gfl_updates_unread);
update_count_el.one(“click”, function () {
if (gfl_updates_unread > 0) {
if (gfl_updates_action === “user”) {
jQuery.ajax({
data: {
action: “gfl_updates_set_read_list”,
update_ids: gfl_updates_upids
},
global: false,
type: “POST”,
url: “/wp-admin/admin-ajax.php”,
success: function (data) {
gfl_updates_unread = “0”;
},
error: function (data) {
}
});
} else {
if (gfl_gdpr_accepted === “yes”) {
jQuery.cookie(‘gfl_last_updates_read’, gfl_updates_upids, {
path: ‘/’,
expires: 30 // expires after ten days
});
gfl_updates_unread = 0;
}
}
update_count_el.addClass(’empty’);
update_count_el.find(‘.gfl-widget-updates-trigger-count’).html(“0”);
}
});
update_count_el.on(“click”, function () {
jQuery(‘.gf-sortbar-search, #gf-user-menu-sort, #gf-homesort, .gf-categories-menu-wrap, .gfl-more-sub-sb’).hide();
jQuery(this).parent().find(‘.gfl-widget-updates-content’).fadeToggle();
});
},
error: function (data) {
}
});
});
gfl_comments_mentionlist = ”;