/    Sign up×
Community /Pin to ProfileBookmark

help with "making choices"

Hey everyone,

I think i need to be here with this question, although i’m not sure.

I have created an intranet, at startup there’s a screen to choose between persons A and persons B.
The difference between the two is that one little file (a text-file which i include) is a little different (an url in that file).

At this moment i have duplicated ALL files with the exception of this file.

What i would like is that, when at startup the choice is made between A and B, my site automatically uses textfile1 or textfile2

I’m just getting started on javascript, so could anyone help me with this?
I think i need to use ‘if’-statements, but i need the site to ‘remember’ which choice was made at startup.

Thanks in advance for your help! (or for pointing me in the right direction if i’m in the wrong forum?)

PS: the intranet is placed on an IIS-server, so i could also use asp, if that’s easier.

Thanks again,
Dimar

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @dimarsmulders spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...