rodude123
a5f17a70ed
All checks were successful
🚀 Deploy website on push / 🎉 Deploy (push) Successful in 21s
Signed-off-by: rodude123 <rodude123@gmail.com>
1 line
30 KiB
JavaScript
1 line
30 KiB
JavaScript
const scrollLimit=150;function goToURL(t){let e=t.split("/");if("accepted"===localStorage.getItem("cookiePopup")&&document.querySelector("#cookiePopup").classList.add("hidden"),"/blog"!==t&&"blog"!==t)if("post"!==e[2]){if("category"===e[2])return e[3]?void loadPostsByCategory(e[e.length-1]):void loadAllCategories().catch((t=>console.log(t)));if("search"===e[2]&&e[3])loadSearchResults(e[e.length-1]);else{if("policy"===e[2]){if("privacy"===e[3])return void loadPrivacyPolicy();if("cookie"===e[3])return void loadCookiePolicy()}"unsubscribe"===e[2]&&e[3]?unsubscribe(e[e.length-1]):show404()}}else loadIndividualPost(e[e.length-1]).catch((t=>console.log(t)));else loadHomeContent()}function submitNewsletter(){fetch(`/api/blog/newsletter/${document.querySelector("#email").value}`,{method:"POST",headers:{"Content-Type":"application/json"}}).then((t=>t.json().then((e=>(document.querySelector("#newsletterMessage").classList.remove("hidden"),e.message.includes("exists")?(document.querySelector("#newsletterMessage").classList.add("error"),document.querySelector("#newsletterMessage").classList.remove("success"),void(document.querySelector("#newsletterMessage div").innerHTML='You"ve already signed up you silly goose!')):t.ok?(document.querySelector("#newsletterMessage div").innerHTML=e.message,void document.querySelector("#newsletterMessage").classList.add("success")):(document.querySelector("#newsletterMessage").classList.add("error"),document.querySelector("#newsletterMessage").classList.remove("success"),void(document.querySelector("#newsletterMessage div").innerHTML=e.error)))))))}function unsubscribe(t){fetch(`/api/blog/newsletter/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json"}}).then((t=>t.json().then((t=>{document.querySelector("#main").innerHTML="";let e=document.createElement("section");e.classList.add("unsubscribe"),e.id="unsubscribe";let n=document.createElement("div");n.classList.add("centered"),n.innerHTML=`\n\t\t\t<h1>Unsubscribe</h1>\n\t\t\t<p>${t.message}</p>\n \t<a href="/blog/" class="btn btnPrimary">See all blog posts</a>\n\t\t`,e.appendChild(n),document.querySelector("#main").appendChild(e)}))))}function createFormattedDate(t){return new Date(t).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})}function createLargePost(t){let e=document.createElement("div");e.classList.add("outerContent");let n=document.createElement("img");n.className="banner",n.src=t.headerImg.replaceAll("%2F","/"),n.alt=t.title,e.appendChild(n);let o=document.createElement("div");o.classList.add("content");let a=document.createElement("div");a.classList.add("postContent");let i="";t.categories.split(", ").forEach((e=>{i+=`<a href="/blog/category/${e}" class="link">${e}</a>`,t.categories.split(", ").length>1&&(i+=", ")})),i.endsWith(", ")&&(i=i.substring(0,i.length-2));let s=createFormattedDate(t.dateModified);return a.innerHTML=`\n <h2>${t.title}</h2>\n <h3>Last updated: ${s} | ${i}</h3>\n <p>${t.abstract}</p>\n <a href="/blog/post/${t.title}" class="btn btnPrimary">See Post</a>\n `,o.appendChild(a),e.appendChild(o),e}function loadHomeContent(){fetch("/api/blog/post").then((t=>t.json().then((t=>{for(let e=0;e<t.length;e++){if(1===t[e].featured){let n=document.createElement("section");n.classList.add("largePost"),n.id="featuredPost";let o=document.createElement("h1");o.innerHTML="featured post",n.appendChild(o);let a=createLargePost(t[e]);n.appendChild(a),document.querySelector("#main").appendChild(n)}if(1===e){let n=document.createElement("section");n.classList.add("largePost"),n.id="latestPost";let o=document.createElement("h1");o.innerHTML="latest post",n.appendChild(o);let a=createLargePost(t[e]);n.appendChild(a),document.querySelector("#main").appendChild(n)}}}))))}async function getLatestAndFeaturedPosts(){return[await fetch("/api/blog/post/latest").then((t=>t.json())),await fetch("/api/blog/post/featured").then((t=>t.json()))]}function csvToArray(t){let e="",n=[""],o=0,a=!0,i=null;for(i of t)'"'===i?(a&&i===e&&(n[o]+=i),a=!a):","===i&&a?i=n[++o]="":"\n"===i&&a?("\r"===e&&(row[o]=row[o].slice(0,-1)),n=n[++r]=[i=""],o=0):n[o]+=i,e=i;return n}async function getCategories(){let t=await fetch("/api/blog/categories").then((t=>t.json())),e=[];return t.forEach((t=>e=e.concat(csvToArray(t.categories.replace(/\s*,\s*/g,","))))),[...new Set(e)]}function createCategories(t){let e="";return t.forEach((t=>e+=`<a href="/blog/category/${t}" class="link">${t}</a>`)),e}function createButtonCategories(t){let e="";return t.forEach((t=>t.forEach((t=>e+=`<a href="/blog/category/${t}" class="btn btnOutline">${t}</a>`)))),e}async function createSideContent(){let t=await getLatestAndFeaturedPosts(),e=t[0],n=t[1],o=createCategories(await getCategories()),a=document.createElement("aside");return a.classList.add("sideContent"),a.innerHTML=`\n <div class="authorInfo">\n <div class="picture">\n <img src="/imgs/profile.jpg"\n alt="My professional picture taken in brighton near \n north street at night wearing a beige jacket and checkered shirt"\n class="profile">\n <p>Rohit Pai</p>\n </div>\n \n <a href="https://linkedin.com/in/rohitpai98">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2 16h-2v-6h2v6zm-1-6.891c-.607 0-1.1-.496-1.1-1.109 0-.612.492-1.109 1.1-1.109s1.1.497 1.1 1.109c0 .613-.493 1.109-1.1 1.109zm8 6.891h-1.998v-2.861c0-1.881-2.002-1.722-2.002 0v2.861h-2v-6h2v1.093c.872-1.616 4-1.736 4 1.548v3.359z"/>\n </svg>\n </a>\n \n <a href="mailto:rohit@rohitpai.co.uk">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13.718 10.528c0 .792-.268 1.829-.684 2.642-1.009 1.98-3.063 1.967-3.063-.14 0-.786.27-1.799.687-2.58 1.021-1.925 3.06-1.624 3.06.078zm10.282 1.472c0 6.627-5.373 12-12 12s-12-5.373-12-12 5.373-12 12-12 12 5.373 12 12zm-5-1.194c0-3.246-2.631-5.601-6.256-5.601-4.967 0-7.744 3.149-7.744 7.073 0 3.672 2.467 6.517 7.024 6.517 2.52 0 4.124-.726 5.122-1.288l-.687-.991c-1.022.593-2.251 1.136-4.256 1.136-3.429 0-5.733-2.199-5.733-5.473 0-5.714 6.401-6.758 9.214-5.071 2.624 1.642 2.524 5.578.582 7.083-1.034.826-2.199.799-1.821-.756 0 0 1.212-4.489 1.354-4.975h-1.364l-.271.952c-.278-.785-.943-1.295-1.911-1.295-2.018 0-3.722 2.19-3.722 4.783 0 1.73.913 2.804 2.38 2.804 1.283 0 1.95-.726 2.364-1.373-.3 2.898 5.725 1.557 5.725-3.525z"/>\n </svg>\n </a>\n \n <a href="https://gitea.rohitpai.co.uk/rodude123">\n <svg xmlns="http://www.w3.org/2000/svg"\n x="0px" y="0px" viewBox="0 0 1024 1024"\n style="enable-background:new -1 0 1024 1024;" xml:space="preserve">\n <style type="text/css">.st1 {fill: #FFFFFF;}</style>\n <g id="Guides"></g>\n <g id="Icon"><circle class="st0" cx="512" cy="512" r="512"/>\n <g><path class="st1" d="M762.2,350.3c-100.9,5.3-160.7,8-212,8.5v114.1l-16-7.9l-0.1-106.1c-58.9,0-110.7-3.1-209.1-8.6 c-12.3-0.1-29.5-2.4-47.9-2.5c-47.1-0.1-110.2,33.5-106.7,118C175.8,597.6,296,609.9,344,610.9c5.3,24.7,61.8,110.1,103.6,114.6 H631C740.9,717.3,823.3,351.7,762.2,350.3z M216.2,467.6c-4.7-36.6,11.8-74.8,73.2-73.2C296.1,462,307,501.5,329,561.9 C272.8,554.5,225,536.2,216.2,467.6z M631.8,551.1l-51.3,105.6c-6.5,13.4-22.7,19-36.2,12.5l-105.6-51.3 c-13.4-6.5-19-22.7-12.5-36.2l51.3-105.6c6.5-13.4,22.7-19,36.2-12.5l105.6,51.3C632.7,521.5,638.3,537.7,631.8,551.1z"/>\n <path class="st1"\n d="M555,609.9c0.1-0.2,0.2-0.3,0.2-0.5c17.2-35.2,24.3-49.8,19.8-62.4c-3.9-11.1-15.5-16.6-36.7-26.6 c-0.8-0.4-1.7-0.8-2.5-1.2c0.2-2.3-0.1-4.7-1-7c-0.8-2.3-2.1-4.3-3.7-6l13.6-27.8l-11.9-5.8L519.1,501c-2,0-4.1,0.3-6.2,1 c-8.9,3.2-13.5,13-10.3,21.9c0.7,1.9,1.7,3.5,2.8,5l-23.6,48.4c-1.9,0-3.8,0.3-5.7,1c-8.9,3.2-13.5,13-10.3,21.9 c3.2,8.9,13,13.5,21.9,10.3c8.9-3.2,13.5-13,10.3-21.9c-0.9-2.5-2.3-4.6-4-6.3l23-47.2c2.5,0.2,5,0,7.5-0.9 c2.1-0.8,3.9-1.9,5.5-3.3c0.9,0.4,1.9,0.9,2.7,1.3c17.4,8.2,27.9,13.2,30,19.1c2.6,7.5-5.1,23.4-19.3,52.3 c-0.1,0.2-0.2,0.5-0.4,0.7c-2.2-0.1-4.4,0.2-6.5,1c-8.9,3.2-13.5,13-10.3,21.9c3.2,8.9,13,13.5,21.9,10.3 c8.9-3.2,13.5-13,10.3-21.9C557.8,613.6,556.5,611.6,555,609.9z"/>\n </g>\n </g>\n </svg>\n </a>\n \n <h3>Avid Full Stack Dev | Uni of Notts Grad | Amateur Blogger</h3>\n </div>\n <div class="otherPosts">\n <h2>latest post</h2>\n <h3>${e.title}</h3>\n <p>${e.abstract}</p>\n <a href="/blog/post/${e.title}" class="btn btnPrimary boxShadowIn boxShadowOut">See Post</a>\n </div>\n <div class="otherPosts">\n <h2>featured post</h2>\n <h3>${n.title}</h3>\n <p>${n.abstract}</p>\n <a href="/blog/post/${n.title}" class="btn btnPrimary boxShadowIn boxShadowOut">See Post</a>\n </div>\n <div class="newsletter">\n \t<h3>Sign up to the newsletter to never miss a new post!</h3>\n \t<div id="newsletterForm" class="form">\n \t\t<div class="formControl">\n \t\t\t<label for="email">Email</label>\n \t\t\t<input type="email" id="email" name="email" placeholder="Email" required>\n \t\t</div>\n \t\t<div class="success hidden" id="newsletterMessage">\n\t\t\t\t\t\t\t\t\t\t<button class="close" type="button" onclick="this.parentElement.classList.toggle('hidden')">×</button>\n\t\t\t\t\t\t\t\t\t\t<div></div>\n\t\t\t\t\t\t\t\t\t</div>\n\n \t\t<input type="submit" value="Sign Up" onclick="submitNewsletter()">\n \t</div>\n </div>\n <div class="feeds">\n\t\t\t\t\t\t\t\t<h2>feeds</h2>\n\t\t\t\t\t\t\t\t<div class="icons">\n\t\t\t\t\t\t\t\t\t<a href="https://rohitpai.co.uk/api/blog/feed/rss" class="btn btnPrimary" title="RSS"><i class="fa-solid fa-rss"></i></a>\n\t\t\t\t\t\t\t\t\t<a href="https://rohitpai.co.uk/api/blog/feed/atom" class="btn btnPrimary" title="Atom"><img class="atom" src="/blog/imgs/atomFeed.svg" alt="Atom"></a>\n\t\t\t\t\t\t\t\t\t<a href="https://rohitpai.co.uk/api/blog/feed/json" class="btn btnPrimary" title="JSON"><img class="json" src="/blog/imgs/jsonFeed.svg" alt="JSON"></a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n <div class="categories">\n <h2>categories</h2>\n ${o}\n </div>\n \n `,a}function createMetaTag(t,e,n){let o=document.querySelector(`meta[name="${t}"], meta[property="${t}"]`);if(!o){let o=document.createElement("meta");return o.setAttribute(t.includes("name")?"name":"property",t),o.setAttribute(e,n),void document.head.appendChild(o)}o.setAttribute(e,n)}function insertMetaTags(t){document.querySelector("meta[name='description']").setAttribute("content",t.abstract),createMetaTag("twitter:title","content",t.title),createMetaTag("twitter:description","content",t.abstract),createMetaTag("twitter:image","content",t.headerImg),createMetaTag("og:title","content",t.title),createMetaTag("og:description","content",t.abstract),createMetaTag("og:image","content",t.headerImg),createMetaTag("og:url","content",window.location.href),createMetaTag("og:type","content","blog"),createMetaTag("og:site_name","content",'Rohit Pai"s Blog'),createMetaTag("og:locale","content","en_GB");let e=document.querySelector("meta[name='keywords']"),n=e.getAttribute("content");n+=`, ${t.keywords}`,e.setAttribute("content",n)}async function loadIndividualPost(t){document.title="Rohit Pai - "+decodeURI(t),await fetch(`/api/blog/post/${t}`).then((async e=>{e.ok?await e.json().then((async e=>{insertMetaTags(e);let n=document.createElement("section");n.classList.add("post"),n.id="individualPost";let o=document.createElement("div");o.classList.add("mainContent");let a=document.createElement("article"),i=e.headerImg.replaceAll("%2F","/");a.innerHTML=`\n <h1>${e.title}</h1>\n <div class="byLine">\n <h3>Published: ${createFormattedDate(e.dateCreated)} | Last updated: ${createFormattedDate(e.dateModified)}</h3>\n <h3>${createButtonCategories([csvToArray(e.categories.replace(/\s*,\s*/g,","))])}</h3>\n <div class="sharethis-inline-share-buttons" data-url="https://rohitpai.co.uk/blog/post/${t}"\n \tdata-title="${e.title}" data-description="${e.abstract}"\n \tdata-image="https://rohitpai.co.uk/${i}" data-username="@rohitpai123"></div>\n </div>\n <div class="cover" style="background-image: url('${i}')"></div>\n ${e.body}\n `;let s=document.createElement("section");s.classList.add("comments"),s.innerHTML='<h2>Comments</h2>\n <div id="disqus_thread"></div>\n ',o.appendChild(a),o.appendChild(s);let r=await createSideContent();n.appendChild(o),n.appendChild(r),document.querySelector("#main").appendChild(n);var c,l;c=document,(l=c.createElement("script")).src="https://rohitpaiportfolio.disqus.com/embed.js",l.setAttribute("data-timestamp",+new Date),c.body.appendChild(l)})):show404()}))}async function loadAllCategories(){document.title="Rohit Pai - Categories";let t=await getCategories(),e=document.querySelector("#main"),n=document.createElement("section");n.classList.add("categories"),n.id="allCategories";let o=document.createElement("h1");o.innerHTML="Categories",e.appendChild(o);for(let e of t){let t=document.createElement("div");t.classList.add("btnContainer");let o=document.createElement("a");o.classList.add("btn"),o.classList.add("btnPrimary"),o.innerHTML=e,o.href=`/blog/category/${e}`,t.appendChild(o),n.appendChild(t)}e.appendChild(n)}function loadPostsByCategory(t){document.title="Rohit Pai - "+decodeURI(t),fetch(`/api/blog/categories/${t}`).then((e=>e.json().then((e=>{let n=document.querySelector("#main"),o=document.createElement("section");o.classList.add("catPosts"),o.id="postsByCategory";let a=document.createElement("h1");a.innerHTML=decodeURI(t),n.appendChild(a);for(let t=0;t<e.length;t++){let n=document.createElement("section");n.classList.add("largePost"),t<e.length-1&&n.classList.add("categoryPost"),n.id=`lp-${t+1}`;let a=createLargePost(e[t]);n.appendChild(a),o.appendChild(n)}n.appendChild(o)}))))}function loadSearchResults(t){document.title="Rohit Pai - Search Results for "+decodeURI(t),fetch(`/api/blog/search/${t}`).then((t=>t.json().then((t=>{let e=document.querySelector("#main"),n=document.createElement("section");n.classList.add("catPosts"),n.id="searchResults";let o=document.createElement("h1");o.innerHTML="Search Results",e.appendChild(o);for(let e=0;e<t.length;e++){let o=document.createElement("section");o.classList.add("largePost"),e<t.length-1&&o.classList.add("categoryPost");let a=createLargePost(t[e]);o.appendChild(a),n.appendChild(o)}e.appendChild(n)}))))}function loadPrivacyPolicy(){document.querySelector("#main").innerHTML='\n\t\t<div class="policy">\n\t\t\t<h2>Privacy Policy</h2>\n\t\t\t<p>Last Updated: Nov 12, 2023</p>\n\t\t\t<p>\n\t\t\t\tThank you for visiting the Privacy Policy of Rohit Pai"s Blog. This Privacy Policy explains how I, Rohit Pai, collect, use, and share information about you (“you”, “yours” or “user”) when you access or use my website (“Services”). You are responsible for any third-party data you provid\'e or share through the Services and confirm that you have the third partys consent to provide such data to me.\n\t\t\t</p>\n\t\t\t<br>\n\n\t\t\t<h3>Sources of Information and Tracking Technologies</h3>\n\t\t\t<p>\n\t\t\t\tI collect information that you directly provide to me, such as when you submit a form or send me a message with your information. I may also receive information about you from my partners, including but not limited to distribution partners, data services, and marketing firms. I may combine this information with other information I collect from or about you. In these cases, my Privacy Policy governs the handling of the combined information. I and my partners may collect the information noted in this privacy policy using cookies, web beacons, pixels, and other similar technologies. These technologies are used for authentication, to store your preferences or progress, for analytics, and for advertising and analytics. Cookies are small text files stored on your computer. You can set your browser to reject cookies altogether, to reject my cookies in particular, or to delete cookies. However, this may cause some or all of my Services not to function on your computer or device.\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<h3>How I Use Your Information</h3>\n\t\t\t<p>\n\t\t\t\tI use information I collect about you to provide, maintain, and improve my Services and other interactions I have with you. For example, I use the information collected to:\n\t\t\t</p>\n\t\t\t<ul>\n\t\t\t\t<li>Facilitate and improve your online experience;</li>\n\t\t\t\t<li>Provide and deliver products and services, perform authentication, process transactions and returns, and send you related information, including confirmations, receipts, invoices, customer experience surveys, and product or Services-related notices;</li>\n\t\t\t\t<li>Process and deliver promotions;</li>\n\t\t\t\t<li>Respond to your comments and questions and provide customer service;</li>\n\t\t\t\t<li>If you have indicated to me that you wish to receive notifications or promotional messages;</li>\n\t\t\t\t<li>Detect, investigate and prevent fraudulent transactions and other illegal activities and protect my rights and property and others;</li>\n\t\t\t\t<li>Comply with my legal and financial obligations;</li>\n\t\t\t\t<li>Monitor and analyze trends, usage, and activities;</li>\n\t\t\t\t<li>Provide and allow my partners to provide advertising and marketing targeted toward your interests.</li>\n\t\t\t</ul>\n\t\t\t<br>\n\t\t\t<h3>How I May Share Information</h3>\n\t\t\t<p>\n\t\t\t\tI may share your Personal Information in the following situations:\n\t\t\t</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>Third Party Services Providers.</em></strong>\n\t\t\t\t\tI may share data with service providers, vendors, contractors, or agents who complete transactions or perform services on my behalf, such as those that assist me with my business and internal operations like shipping and delivery, payment processing, fraud prevention, customer service, gift cards, experiences, personalization, marketing, and advertising;\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>Change in Business.</em></strong>\n\t\t\t\t\tI may share data in connection with a corporate business transaction, such as a merger or acquisition of all or a portion of my business to another company, joint venture, corporate reorganization, insolvency or bankruptcy, financing or sale of company assets;\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>To Comply with Law.</em></strong>\n\t\t\t\t\tI may share data to facilitate legal process from lawful requests by public authorities, including to meet national security or law enforcement demands as permitted by law.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>With Your Consent.</em></strong>\n\t\t\t\t\tI may share data with third parties when I have your consent.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>With Advertising and Analytics Partners.</em></strong>\n\t\t\t\t\tSee the section entitled “Advertising and Analytics” below.\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<br>\n\t\t\t<h3>Advertising and Analytics</h3>\n\t\t\t<p>\n\t\t\t\tI use advertising and analytics technologies to better understand your online activity on my Services to provide personalized products and services that may interest you. I may allow third-party companies, including ad networks, to serve advertisements, provide other advertising services, and/or collect certain information when you visit my website. Third-party companies may use pseudonymized personal data (e.g., click stream information, browser type, time and date, subject of advertisements clicked or scrolled over) during your visit to this website in order to provide advertisements about goods and services likely to be of interest to you, on this website and others. To learn more about Interest-Based Advertising or to opt-out of this type of advertising, you can visit <a href="http://optout.aboutads.info/?c=2&lang=EN">AboutAds.info/choices</a> or <a href="http://optout.networkadvertising.org/?c=1">www.networkadvertising.org/choices</a>. Some third-party companies may also use non-cookie technologies, such as statistical IDs. Please keep in mind that your web browser may not permit you to block the use of these non-cookie technologies, and those browser settings that block cookies may have no effect on such techniques. If the third-party company uses the non-cookie technologies for interest-based advertising, you can opt out at <a href="http://optout.networkadvertising.org/?c=1">www.networkadvertising.org/choices</a>. Please note the industry opt out only applies to use for interest-based advertising and may not apply to use for analytics or attribution. Some websites have “do not track” features that allow you to tell a website not to track you. These features are not all uniform. I do not currently respond to those signals.\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<h3>Data Security</h3>\n\t\t\t<p>\n\t\t\t\tI implement commercially reasonable security measures designed to protect your information. Despite my best efforts, however, no security measures are completely impenetrable.\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<h3>Data Retention</h3>\n\t\t\t<p>\n\t\t\t\tI store the information I collect about you for as long as necessary for the purpose(s) for which I collected it or for other legitimate business purposes, including to meet my legal, regulatory, or other compliance obligations.\n\t\t\t</p>\n\t\t\t<br>\n\n\t\t\t<h3>EU Privacy Rights</h3>\n\n\t\t\t<p>Individuals located in certain countries, including the European Economic Area (EEA) and the United Kingdom, have certain statutory rights under the General Data Protection Regulation (GDPR) in relation to their personal data.</p>\n\t\t\t<p>To the extent information I collect is associated with an identified or identifiable natural person and is protected as personal data under GDPR, it is referred to in this Privacy Policy as “Personal Data”.</p>\n\t\t\t<p>\n\t\t\t\t<strong><em>Data Subject Access Requests</em></strong>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\tSubject to any exemptions provided by law, you may have the right to request:\n\t\t\t</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\ta copy of the Personal Data I hold about you;\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tto correct the Personal Data I hold about you;\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tto delete your Account or Personal Data;\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tto object to processing of your Personal Data for certain purposes;\n\t\t\t\t</li>\n\t\t\t</ul>\n\n\t\t\t<p>\n\t\t\t\tTo access your privacy rights, send me an email at rohit@rohitpai.co.uk.\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\tI will generally process requests within one month. I may need to request specific information from you to help me confirm your identity and/or the jurisdiction in which you reside. If your request is complicated or if you have made a large number of requests, it may take me longer. I will let you know if I need longer than one month to respond.\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<strong><em>Legal Bases For Processing Personal Data</em></strong>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\tI may process your Personal Data under applicable data protection law on the following legal grounds:\n\t\t\t</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>Contractual Necessity:</em></strong>\n\t\t\t\t\tI may process your Personal Data to enter into or perform a contract with you.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>Consent:</em></strong>\n\t\t\t\t\twhere you have provided consent to process your Personal Data. You may withdraw your consent at any time.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<strong><em>Legitimate interest:</em></strong>\n\t\t\t\t\tI process your Personal Data to provide my Services to you such as to provide my online user experience, communicate with you, provide customer service, market, analyze and improve my business, and to protect my Services.\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<br>\n\t\t\t<h3>Age Limitations</h3>\n\t\t\t<p>\n\t\t\t\tMy Service is intended for adults ages 18 years and above. I do not knowingly collect personally identifiable information from children. If you are a parent or legal guardian and think your child under 13 has given me information, please email or write to me at the address listed at the end of this Privacy Policy. Please mark your inquiries “COPPA Information Request.”\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<h3>Changes to this Privacy Policy</h3>\n\t\t\t<p>\n\t\t\t\tRohit Pai may change this Privacy Policy from time to time. I encourage you to visit this page to stay informed. If the changes are material, I may provide you additional notice to your email address or through my Services. Your continued use of the Services indicates your acceptance of the modified Privacy Policy.\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<h3>Newsletters</h3>\n\t\t\t<p>\n\t\t\t\tYou can opt in to receive my marketing emails and/or newsletters by below. I may still send you transactional messages, which include Services-related communications and responses to your questions.\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<h3>Storage of Information in the United States</h3>\n\t\t\t<p>\n\t\t\t\tInformation I maintain may be stored both within and outside of the United States. If you live outside of the United States, you understand and agree that I may transfer your information to the United States, and that U.S. laws may not afford the same level of protection as those in your country.\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<h3>Contact Me</h3>\n\t\t\t<p>\n\t\t\t\tIf you have questions, comments, or concerns about this Privacy Policy, you may contact me at:\n\t\t\t</p>\n\t\t\t<a href="https://rohitpai.co.uk/#contact" class="link">Contact</a>\n\t\t\t<a href="mailto:rohit@rohitpai.co.uk" class="link">rohit@rohitpai.co.uk</a>\n\t\t</div>\n\t\t'}function loadCookiePolicy(){document.querySelector("#main").innerHTML='\n\t\t<div class="policy">\n\t\t\t<h3>Cookies Policy</h3>\n\t\t\t<p>I only use functional cookies for the blog which includes PHP Session ID, disqus. a cookie to disable the cookie popup, and maybe share this. I think that these are functional cookies, if you don\'t, you\'re welcome to exit the site or tell me by emailing me through the email address below, or the contact form on the contact section of my main website.</p>\n\t\t\t<br>\n\t\t\t<a href="mailto:rohit@rohitpai.co.uk" class="link">rohit@rohitpai.co.uk</a>\n\t\t\t<br>\n\t\t\t<a href="https://rohitpai.co.uk/#contact" class="link">contact</a>\n\t\t</div>\n\t'}function show404(){document.querySelector("#main").innerHTML='\n <div class="errorFof">\n <div class="centered">\n <h1>Blog post, Category or page not found</h1>\n <a href="/blog/" class="btn btnPrimary">See all blog posts</a>\n </div>\n </div> \n '}document.addEventListener("DOMContentLoaded",(()=>{goToURL(window.location.pathname)})),window.addEventListener("popstate",(t=>{goToURL(window.history.state)})),window.onscroll=()=>{document.body.scrollTop>=150||document.documentElement.scrollTop>=150?document.querySelector("nav").classList.add("scrolled"):document.querySelector("nav").classList.remove("scrolled")},document.querySelector("#searchBtn").addEventListener("click",(t=>{let e=document.querySelector("#searchField").value;e.length>0&&(window.history.pushState(null,null,`/blog/search/${e}`),document.querySelector("#searchField").value="",document.querySelector("#main").innerHTML="",goToURL(`/blog/search/${e}`))})),document.querySelector("#searchField").addEventListener("keyup",(t=>{"Enter"===t.key&&document.querySelector("#searchBtn").click()})),document.querySelector("#cookieAccept").addEventListener("click",(t=>{document.querySelector("#cookiePopup").classList.add("hidden"),localStorage.setItem("cookiePopup","accepted")})); |