`); } else { jQuery('#first_name').val(localStorage.getItem('ck_name')); jQuery('#half-header-firstname').val(localStorage.getItem('ck_name')); jQuery('#last_name').val(localStorage.getItem('ck_last_name')); jQuery('#half-header-lastname').val(localStorage.getItem('ck_last_name')); jQuery('#email_fst').val(localStorage.getItem('ck_email')); jQuery('#half-header-email').val(localStorage.getItem('ck_email')); jQuery('#email').val(localStorage.getItem('ck_email')); } } else { console.log('NOT found'); } // }); function googleLogin(response) { const responsePayload = decodeJwtResponse(response.credential); const now = new Date() setWithExpiry('oneTapExp', now.getTime() + 36000000); jQuery('#first_name').val(responsePayload.name.split(' ')[0]); jQuery('#half-header-firstname').val(responsePayload.name.split(' ')[0]); localStorage.setItem('ck_name', responsePayload.name.split(' ')[0]); jQuery('#last_name').val(responsePayload.family_name); jQuery('#half-header-lastname').val(responsePayload.family_name); localStorage.setItem('ck_last_name', responsePayload.family_name); jQuery('#email_fst').val(responsePayload.email); jQuery('#half-header-email').val(responsePayload.email); jQuery('#email').val(responsePayload.email); localStorage.setItem('ck_email', responsePayload.email); //Trigger the event const currentUrl = document.URL const currentPath = window.location.pathname.replace(/\//g, ""); const currentCategory = document.URL.split("/")[4]; const sourceBlog = "blog"; const categoryName = jQuery('.entry-header .single_category_title').text(); var article = jQuery(".thb-blockgrid") .parent() .find("h2") .text(); if (article == "") { article = jQuery("h1").text(); } var referrer = document.referrer; referrer = referrer.replace("https://", ""); referrer = referrer.replace("http://", ""); referrer = referrer.split('/')[0]; analytics.track("Blog - Sing In With Google Clicked", { time: Date.now(), email: responsePayload.email, firstName: responsePayload.name.split(' ')[0], lastName: responsePayload.family_name, url: currentUrl, article: article, category: categoryName }); } function decodeJwtResponse(token) { var base64Url = token.split('.')[1]; var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/'); var jsonPayload = decodeURIComponent(atob(base64).split('').map(function(c) { return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); }).join('')); return JSON.parse(jsonPayload); } function setWithExpiry(key, val) { localStorage.setItem(key, val) } function getWithExpiry(key) { const itemStr = localStorage.getItem(key) if (!itemStr) { return null } const now = new Date() if (now.getTime() > Number(itemStr)) { localStorage.removeItem(key) return null } return itemStr }
Career Resources Center (2024)
Top Articles
Why Is Golf So Expensive?
Dwelling Occupant Definition | Law Insider
My Base Guide - 20 Of the Best Things to Do in Fort Benning GA
20 Best Things to Do in Fort Benning, GA - Travel Lens
40 Quotes From "The IT Crowd" That Are Brilliantly Funny
Maroons lift the shield after masterclass in historic Women's State of Origin decider
Farmer's Almanac 2 Month Free Forecast
Analysis | We mapped weather forecast accuracy across the U.S. Look up your city.
American Tires Montclair
1133 Nostrand Avenue Brooklyn Ny
Autozone Middlebelt 96
An Admin's Guide to Navigating Audit Logs in Office 365
Latest Posts
The Buzz: Jacksonville ranked No. 1 for 'Most Attractive Men'
The 4 Different Types of Income—Explained
Article information
Author: Moshe Kshlerin
Last Updated:
Views: 5801
Rating: 4.7 / 5 (77 voted)
Reviews: 92% of readers found this page helpful
Author information
Name: Moshe Kshlerin
Birthday: 1994-01-25
Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697
Phone: +2424755286529
Job: District Education Designer
Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling
Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.