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
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script> | |
// Registra o evento blur do campo "cep", ou seja, quando o usuário sair do campo "cep" faremos a consulta dos dados | |
$("#cep").focusout(function(){ | |
// Para fazer a consulta, removemos tudo o que não é número do valor informado pelo usuário | |
var cep = this.value.replace(/[^0-9]/, ""); | |
// Validação do CEP; caso o CEP não possua 8 números, então cancela a consulta | |
if(cep.length!=8){ |
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
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=places"></script> | |
<script> | |
// This example displays an address form, using the autocomplete feature | |
// of the Google Places API to help users fill in the information. | |
var placeSearch, autocomplete; | |
var componentForm = { | |
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
/*! | |
* jQuery CPF/CNPJ Validator Plugin v1.1.0 | |
* Developed by: Guilherme Gomes ([email protected]) | |
* Date: 2014-10-06 | |
*/ | |
(function ($) { | |
var type = null; |
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
<div class="span4 "> | |
<a href="https://www.facebook.com/dialog/feed?app_id=709801695705291&display=popup&redirect_uri=http://ekriven.com&link=<?php echo $urlsite; ?>" target="_blank" class=" btn btn-large btn-primary " type="button"> Compartilhe no Facebook</a> | |
</div> | |
<div class="span4"> | |
<a href="https://twitter.com/intent/[email protected]:+Leia+você+também+no+link+-+<?php echo $urlsite; ?>"target="_blank" class="btn btn-large btn-info ">Compartilhe no Twtter</a> | |
</div> | |
<div class="span4"> | |
<a href="https://plus.google.com/share?url=<?php echo $urlsite; ?>" target="_blank" class="btn-danger btn btn-large ">Compartilhe no G+</a> | |
</div> |
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
<div> | |
<a target="_blank" href="http://www.facebook.com/sharer.php?&u=http://oceanoliterario.com<?php echo $cck->getLink('tituloci'); ?>" title="Compartilhar link no Facebook"> <img src="images/facebook22.png" /> </a> | |
<a target="_blank" href="https://plus.google.com/share?url=http://oceanoliterario.com<?php echo $cck->getLink('tituloci'); ?>" title="Compartilhar link no Google+"> <img src="images/google_plus22.png" /> </a> | |
<a target="_blank" href="https://twitter.com/intent/tweet?text=Gostei+de+uma+frase+do+@OceanoLiterário:+Veja+você+também+em+-+http://oceanoliterario.com<?php echo $cck->getLink('tituloci'); ?>" title="Compartilhar link no Twitter"> <img src="images/twitter22.png" /></a> |
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
<script src="mask.js"></script> //chamar o arquivo de mascara para CPF e CNPJ, baixar este > https://gist.github.com/Uriel29/c5d398029393027f72a7 | |
<script src="jquery.cpf.js"></script> // arquivo Js baixe aqui > https://gist.github.com/Uriel29/5b61d7419915da22cefd | |
<script type="text/javascript"> | |
//para validar CPF e CNPJ no mesmo campo use em validate: 'cpfcnpj' | |
jQuery(document).ready(function () { | |
jQuery('#IddoSeuCampoCPF').cpfcnpj({ | |
mask: true, |
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
/** | |
* jquery.mask.js | |
* @version: v1.11.4 | |
* @author: Igor Escobar | |
* | |
* Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com | |
* | |
* Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com | |
* | |
* The MIT License (http://www.opensource.org/licenses/mit-license.php) |
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
<div class="tabbable"> | |
<ul class="nav nav-tabs"> | |
<li class="active"><a href="#pane1" data-toggle="tab">Meus textos</a></li> | |
<li><a href="#pane2" data-toggle="tab">Meus favoritos</a></li> | |
<li><a href="#pane3" data-toggle="tab"></a></li> | |
<li><a href="#pane4" data-toggle="tab"></a></li> | |
</ul> | |
<div class="tab-content"> | |
<div id="pane1" class="tab-pane active"> |
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
//deixar caixa alta em um campo do seblod. | |
//basta colar isso em Custom Attributes do seu campo. | |
onkeyup="javascript:this.value=this.value.toUpperCase();" | |
onkeyup="javascript:this.value=this.value.toLowerCase();" |