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
/** | |
* Carregamento condicional de css/img conforme a resolução. | |
* | |
* Através de data-*, permite que somente as folhas de estilos (e, | |
* opcionalmente, imagens) que batem com determinada resolução sejam | |
* carregados e entrem em ação. | |
* | |
* Deve-se usar seguindo o modelo: | |
* <link rel="stylesheet" | |
* class="mediaquerydependent" |
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
### User template | |
# Folders | |
bower_components/ | |
.project | |
.nuxt | |
# Compiled source | |
*.class | |
*.com | |
*.dll |
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
/* | |
* Ex: | |
* include("http://mysite.com/bookmarklet.css"); | |
* include("http://mysite.com/bookmarklet.js"); | |
*/ | |
let include = ( src, callback ) => { | |
let ext = src.split( /[\#\?]/ )[ 0 ].split( '.' ).pop().toLowerCase(); | |
let inc; | |
if ( ext === 'css' ) { |
NewerOlder