I have application which on start lets you pick - if are you contributor or user. After that I want always load the starting page for a contributor or the user. I know you c
You must use
localStorage
to save data if user pick contributor or user button after first start. Simple use jQuery script:
And call this same script but for user:
So on next html page control if user is previously press "user" or "contributor".
$(document).ready(function() {
if (localStorage.getItem("user") === null) {
//user is null
} else {
document.location.href = "userIndex.html"
}
if (localStorage.getItem("contributor") === null) {
//contributor is null
} else {
document.location.href = "contributorIndex.html"
}
});
Good luck!