Skip to content

Commit

Permalink
writing link into head with url-based css file
Browse files Browse the repository at this point in the history
  • Loading branch information
bencallahan committed Jul 2, 2012
1 parent fe4440a commit ffb6fdd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions responsive-retrofit.js
@@ -1,2 +1,4 @@
alert(document.location.hostname);

var cssLink = document.createElement('link');
cssLink.setAttribute('rel', 'stylesheet');
cssLink.setAttribute('href', "https://raw.github.com/sparkbox/Responsive-Retrofitting/master/" + document.location.hostname + ".css");
document.head.appendChild(cssLink);

0 comments on commit ffb6fdd

Please sign in to comment.