220103-160529.png
function read_Cookie_val(name) { const value = '; '+document.cookie; const parts = value.split('; '+name+'='); if (parts.length === 2) return parts.pop().split(';').shift(); } $(function(){ let loginsignupWidget = $('[data-component-loginsignup]'); if (read_Cookie_val('app_u_token')) { loginsignupWidget.find('.loginWidg').hide(); loginsignupWidget.find('.signupWidg').hide(); loginsignupWidget.find('.dashboardWidg').show(); loginsignupWidget.find('.logoutWidg').show(); }else{ loginsignupWidget.find('.dashboardWidg').hide(); loginsignupWidget.find('.logoutWidg').hide(); loginsignupWidget.find('.loginWidg').show(); loginsignupWidget.find('.signupWidg').show(); } });

Motivations

blog Object
Hi I am Ari lopatin
Categories
    category Object
Recent Posts
blog Object

Blog Updates