| Total Complexity | 2 |
| Complexity/F | 2 |
| Lines of Code | 12 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | function includeStyle(src, target) { |
||
| 2 | if (typeof target === 'undefined') { |
||
| 3 | // target = document.body; |
||
| 4 | target = document.getElementsByTagName('head')[0]; |
||
| 5 | } |
||
| 6 | |||
| 7 | var link = document.createElement('link'); |
||
| 8 | link.rel = 'stylesheet'; |
||
| 9 | link.type = 'text/css'; |
||
| 10 | link.href = src; |
||
| 11 | target.appendChild(link); |
||
| 12 | } |
||
| 13 |