javascript - How to set up a var to link different stylesheets based on data entered in the var -


I want to draw a different style sheet based on manually recorded Var, how can I do this? varDivision = "" // Total number of sets in your league varTeams = "" // Enter the total number of teams in your league if 1 Link to Division 5 teams If this is 1 stylesheet "URL", then 1 Division 6 teams link to this stylesheet "url", if 2 divisions 10 teams link this stylesheet "url", if 3 divisions of 12 teams If the stylesheet links to "URL" then "url"

and shortly I can list every possibility ...

you & lt; Link / & gt; ; & lt; Head / & gt; element in section

  $ ('head') .Find ('* [Data-Dynamic CSS = "True"]'). Remove () .append ($ ('$' and 'links rel = "stylesheet" type = "text / css" data-dynamic css = "right" />') .attr ('href', 'your stylesheet Url '));    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -