- Instale o Ruby >
$ sudo apt-get install ruby-full
- Instale o SASS >
$ sudo su -c "gem install sass"
- Instale o Compass ->
$ sudo gem install compass
This file contains 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
//You can use it for make an event like: "Click out of element and remove a class (for example)." | |
// Você pode usar isso para fazer um evento como: "Clique fora do elemento e remova uma class (por exempo)." | |
$(document).mouseup(function (e) | |
{ | |
var container = $("YOUR ELEMENT"); | |
if (!container.is(e.target) // if the target of the click isn't the container... | |
&& container.has(e.target).length === 0) // ... nor a descendant of the container | |
{ |
This file contains 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
//Mascara dos campos de telefone com Jquery Mask | |
//Mask for phone fields with Jquery Mask | |
jQuery(function($){ | |
$(".campoTelefone").mask("(99) 9999-9999", { placeholder: ' ' } ); | |
$(".campoCelular").mask( "(99) 9999-9999?9", { placeholder: ' ' } ); | |
}); |
This file contains 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
<?php | |
$args = array( | |
'post_type' => 'page', | |
'post_parent' => 96, | |
'post_status' => 'publish', | |
'orderby' => 'title', | |
'order' => 'ASC' | |
); |
This file contains 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
::-webkit-input-placeholder { | |
color: red; | |
} | |
:-moz-placeholder { /* Firefox 18- */ | |
color: red; | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: red; |
This file contains 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
UPDATE wp_options SET option_value = replace(option_value, 'http://url-antiga.com.br', 'http://url-nova.com.br') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
SET SQL_SAFE_UPDATES=0; | |
UPDATE wp_posts SET guid = replace(guid, 'http://url-antiga.com.br','http://url-nova.com.br'); | |
SET SQL_SAFE_UPDATES=0; | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://url-antiga.com.br', 'http://url-nova.com.br'); |
This file contains 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
(function (window, document, undefined) { | |
'use strict'; | |
// Initialize the media query | |
var mediaQuery = window.matchMedia('(min-width: 560px)'); | |
// Add a listen event | |
mediaQuery.addListener(doSomething); | |
// Function to do something with the media query |
This file contains 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
<?php if ( is_user_logged_in() ) : ?> | |
// Aqui vai o conteúdo | |
<?php endif; ?> | |
// https://codex.wordpress.org/Function_Reference/is_user_logged_in |
This file contains 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
<!-- Video Model: Desktop --> | |
<div class="video-full"> | |
<div class="video-fechado" data-rel="V5vY6XXmo_8"> | |
<div class="video"> | |
<span class="imgPreVideo"> | |
<img width="750" height="464" src="http://img.youtube.com/vi/V5vY6XXmo_8/maxresdefault.jpg" class="img-responsive colorbox-55 wp-post-image" alt="Cursos"> <i class="play uf-videos-portal"></i> | |
<span class="clearfix"></span> | |
</span> | |
<div class="embed-responsive embed-responsive-16by9"></div> | |
</div> |
OlderNewer