-->
`;
const embedded = createRawHtml(rawHtml);
embedded.appendChild(appendScript("https://platform.twitter.com/widgets.js"));
return embedded;
}
function processSingleContentElement(contentElement) {
switch (contentElement.displayType) {
case 'section': return contentElement.elements.map(it => processSingleContentElement(it));
case 'paragraph': return createSimpleTextElement(contentElement.text);
case 'header': return createSimpleTextElement(contentElement.text, 'h' + contentElement.level);
case 'image': return createImage(contentElement);
case 'twitter': return createTwitter(contentElement);
case 'youtube': return createYoutube(contentElement);
default: return createSimpleTextElement(JSON.stringify(contentElement));
}
}
function fillContentIntoElement(createdElement, htmlEl) {
try {
console.log(createdElement, htmlEl);
if (createdElement.length) {
createdElement.forEach(ch => htmlEl.appendChild(ch));
} else {
htmlEl.appendChild(createdElement);
}
} catch (e) {
console.error(e.message);
}
}
function fillContent(contentElementsList, htmlElements) {
const contentElements = Array.from(contentElementsList);
console.log(contentElements);
const lastElementIndex = htmlElements.length - 1;
htmlElements.forEach((htmlEl, index) => {
htmlEl.innerHTML = '';
if(contentElements.length > index) {
if(index === lastElementIndex) {
contentElements.slice(index).forEach(ce => fillContentIntoElement(processSingleContentElement(ce),htmlEl))
} else {
const createdElement = processSingleContentElement(contentElements[index]);
fillContentIntoElement(createdElement, htmlEl);
}
}
});
}
function createSlides(slides) {
const templateWrapper = document.getElementById('slide-template');
const template = templateWrapper.content.querySelector(".slide-template");
return slides.map((it, index) => {
const cloned = template.cloneNode(true);
const contentPlaceholders = cloned.querySelectorAll(".content-placeholder");
fillContent(it.elements, contentPlaceholders)
if (infiniteLayout) {
cloned.querySelectorAll(".adslot").forEach(slot => {
slot.id = slot.id + '_' + index;
});
}
return cloned;
});
}
var slides = [{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"Months ago,\na \"healthy\" relationship with technology looked very different today.\nWe spend a lot more time on our smartphones than ever before as society moves\ntoward more virtual modes of existence. Given the circumstances, it's vital to\nbe lenient with yourself about the amount of time you spend in front of\nscreens, but this does not imply that your attempts to create healthy\ntechnological boundaries should be abandoned.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/71ac8ed8-8bed-4f97-bd05-8c7a0e719d71.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Track your screen time","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/b5043032-3600-4810-b97e-7bbb285d3ab9.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"Many individuals tend to underestimate the\namount of time they spend using electronic devices, so keeping track of your\nscreen time and what it's being used for might be useful. It's clear that\nthe less time you spend gazing at a screen, the better, even if there is no\nsuch thing as a healthy amount of screen time for adults. Straining eyes, hazy\nvision, terrible posture, neck discomfort, and even anxiety and melancholy are\nsigns of spending too much time in front of a screen.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Limit your notifications","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/bbb10034-ea88-4cd2-90c9-2cf5e81995cd.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"Turning\noff notifications is a \"simple but vital\" approach to improve focus\nsince it is difficult to concentrate when your phone is continuously buzzing\nwith notifications from chats or social media apps like Snapchat and Instagram.\nDisabling notifications from social networking applications or anything else\nthat would regularly divert attention from other tasks during the day can be\nvery useful.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Avoid screen time during meals","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/ee613d32-ffda-4819-845e-14c5a2289f3e.jpeg","caption":"Pexels","displayType":"image"},{"elements":[{"text":"You\ncan establish a rule in your household prohibiting the use of electronic\ndevices at the table. Even if you live alone, do follow the same rule. Put it\nin quiet mode to resist temptation. Use this rule when having lunch in front of\nyour computer as well. Make an effort to plan your day so that you can set\naside uninterrupted time to eat.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Track down the triggers that make you consume social media","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/ec8eabce-eb14-4b14-add5-2d0c6ba40caa.jpeg","caption":"Pexels","displayType":"image"},{"elements":[{"text":"Creating\nself-awareness about your usage habits can help manage your digital\nconsumption. Identify the applications that you often use and mark down the\ntriggers that cause you to incline towards them. Reflecting on your emotions\ncan be the first step towards self-awareness. Avoid thoughts like, ‘If I don’t\nrespond to the chat right away, I’ll lose my popularity.’ Reflecting on the\nfeelings behind this thought process can help break the digital addiction. ","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Pick an alternative hobby","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/3b284d72-b0ae-49fc-b340-6f71d4cede8b.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"Invest\nin a challenging new pastime rather than binge-viewing ASMR videos on social\nmedia or watching the Kardashians on E! Make an effort crocheting, solving a\npuzzle, or practicing a new recipe you found on Pinterest. Even more physically\nrewarding than the games on your phone, these hands-on hobbies may be just as\nengaging.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Avoid screen time before sleep","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/14507cf6-a1f0-4779-bed6-59f767e0a29e.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"Part\nof \"sleep hygiene,\" which is essentially about creating the ideal\nsetting to fall asleep, includes keeping your phone out of the bedroom.\n\nSleep\nwill come to you much more quickly if you maintain your bedroom as a cozy area\nand block off thoughts about work emails, how many people liked your most\nrecent Instagram post, and meme alerts.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Remove unnecessary apps","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/a5c44675-0e0d-4599-b2cc-2cc256ff7c21.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"Cleaning\nup your surroundings is one of the best ways to cleanse your mind. It goes\nwithout saying that this involves your house and workspace, but it also has to\ninclude your phone and laptop.\n\nIn\nany case, it's more likely that you look at these than you do at your\nsurroundings. There will almost certainly be a lot of junk on your gadgets that\ncan be erased with the touch of a button.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Filter your feed","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/003c116c-6a9f-44a0-b3c7-ba3f809c33b5.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"While\nit's crucial to keep informed, your mental health may suffer if you regularly\nconsume a lot of distressing news and other taxing material. A little filtering\nmay be helpful in this situation.\n\nAs\nyou browse your social media feeds, pay attention to how you are feeling.\nUnfollow or mute an account or person if the stuff they publish frequently\ntends to make you feel bad. Replace accounts that publish negative content with\nthose that are uplifting. In your attempts to create a social media area that\nbest suits you, don't feel ashamed.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Invest in smart technology","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/3504735b-256b-4e33-8dc0-11da9d3a5e0e.jpeg","caption":"Pexels","displayType":"image"},{"elements":[{"text":"Although\nit may seem counterproductive to purchase more technology in order to utilize\nit less, it is possible. Smart technology has some significant benefits, and\nmany of the available models are really pretty reasonable. With too much screen\ntime being increasingly seen unfavorably, Apple and Google launched Screen Time\nand Digital Wellbeing, respectively, early this year in an obvious effort to\ncounteract the infatuation with all things digital.","level":1,"displayType":"paragraph"}],"displayType":"section"}]}];
var slide_index = parseInt(0);
var slide_json = createSlides(slides);
var initial_slide = slide_index;
var initial_url = location.pathname + location.search;
var base_url = '/tips-to-manage-your-screen-time-for-better-mental-health';
var next_gallery = '/spoiled-pets';
var first_load = true;
var has_scrolled = false;
var title = "Tips To Manage Your Screen Time For Better Mental Health";
var path = base_url
var utm_campaign, utm_subid, utm_source, utm_content, utm_term = 'n/a';
// try {
// var url = new URL(window.location.href);
// utm_campaign = encodeURIComponent(url.searchParams.get("utm_campaign"));
// utm_source = encodeURIComponent(url.searchParams.get("utm_source"));
// utm_content = encodeURIComponent(url.searchParams.get("utm_content"));
// utm_term = encodeURIComponent(url.searchParams.get("utm_term"));
// utm_medium = encodeURIComponent(url.searchParams.get("utm_medium"));
// if (utm_content && utm_campaign){
// var googletag = googletag || {};
// googletag.cmd = googletag.cmd || [];
// googletag.cmd.push(function() {
// googletag.pubads().setTargeting("utm_subid", utm_term);
// googletag.pubads().setTargeting("utm_subid_c", utm_campaign);
// });
// }
// } catch (e) {
// }