Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title></title>
- <link rel="stylesheet" id="styleSwitch" href="" />
- <script type="text/javascript">
- function getStyle(){
- var theStyleLink = document.getElementById('styleSwitch');
- if (window.innerWidth < 810){
- theStyleLink.setAttribute("href", "small-window.css");
- }
- else {
- theStyleLink.setAttribute("href", "large-window.css");
- }
- }
- </script>
- </head>
- <body onload="getStyle();">
- </body>
- </html>
Add Comment
Please, Sign In to add comment