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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
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
$(".logo").click(function(e) { | |
e.preventDefault(); | |
$('html, body').animate({ | |
scrollTop: $("#home").offset().top | |
}, 1000); | |
}); |
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() { | |
$("div.portfolio__item").hide(); | |
$("div.portfolio__item.espmjr").slideDown(); | |
$("a.espmjr").parent().attr('id', 'ativado'); | |
$('.clientes > li > a').each(function() { | |
$(this).css('display', 'block'); | |
$(this).show(0).on('click', function(e) { | |
e.preventDefault(); | |
$classe = $(this).attr('class'); | |
$('ul.clientes > li').attr('id', ''); |
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
$('form.contato__form').on('submit', function() { | |
var that = $(this), | |
url = that.attr('action'), | |
type = that.attr('method'), | |
data = {}; | |
that.find('[name]').each(function(index, value) { | |
var that = $(this), | |
name = that.attr('name'), | |
value = that.val(); |
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
Visibility.onVisible(function(){ | |
var header = $('header'), | |
home = $('.home'), | |
homeH1 = $('.home h1'), | |
homeBlockquote = $('.home blockquote'), | |
homeButton = $('.home .origamid-button'), | |
mainH2 = $('main h2'), | |
child1 = $('main ul li.origami:nth-child(1)'), | |
child2 = $('main ul li.origami:nth-child(2)'), |
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
$(document).ready(function() { | |
$('.main__ideal').waypoint(function() { | |
$('.main__ideal ul li').each(function(d){ | |
$(this).delay(d * 150).fadeTo('slow', 1); | |
}); | |
}, | |
{ | |
offset: '80%' | |
}); | |
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 | |
/* | |
* Resize images dynamically using wp built in functions | |
* Victor Teixeira | |
* | |
* php 5.2+ | |
* | |
* Exemplo de uso: | |
* | |
* <?php |
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() { | |
$('dd').hide(); | |
$('dt').each(function() { | |
$(this).show(0).on('click', function(e) { | |
e.preventDefault(); | |
$(this).toggleClass('active'); | |
$(this).next('dd').slideToggle(); | |
}); | |
}); | |
}); |
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() { | |
$(".projetos__lista-img > li:first-child > a").addClass("active"); | |
$(".projetos__lista-img > li > a").hover(function(e) { | |
$(this).parent().parent().find("li > a").removeClass("active"); | |
e.preventDefault(); | |
$(this).addClass("active"); | |
var linkImagem = $(this).attr("href"); | |
var $imagemFinal = $(this).parent().parent().parent().parent(); | |
$($imagemFinal).find(".projetos__img img").attr("src",linkImagem); | |
}); |
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
$(document).scroll(function() { | |
if( $(this).scrollTop() > 100 ) { | |
$(".header-fixed").addClass("header-small"); | |
} else if( $(this).scrollTop() < 100 ) { | |
$(".header-fixed").removeClass("header-small"); | |
} | |
}); |
OlderNewer