/    Sign up×
Community /Pin to ProfileBookmark

Javascript for css based on platform

I’ve tried using an “if” javascript code snippet to write a link to the proper css based on platform. However, it does not seem to write in the head, you just see the code and the CSS is not utilized. Any pointers?

The external js file is attached.

Thanks in advance.

[upl-file uuid=1983e54a-7bd3-436e-871d-8a4dcde0c4ff size=339B]css.zip[/upl-file]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@cushybabyauthorJun 20.2003 — The css, external js, and web files are all in the same directory. If you'd like, here it is online:

[URL=http://www.localscout.com/tb/tcg/index2.htm][/URL]
×

Success!

Help @cushybaby 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,
)...