Created
January 18, 2016 08:13
-
-
Save nick1m/681dcdcdf183c567a560 to your computer and use it in GitHub Desktop.
добавляем таблицу стилей CSS на JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Определяем устройство | |
// Создаем ссылку на CSS | |
var cssLink = document.createElement("link"); | |
cssLink.setAttribute("type", "text/css"); | |
cssLink.setAttribute("rel", "stylesheet"); | |
cssLink.setAttribute("href", "css/mobile.css"); | |
document.head.appendChild(cssLink); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment