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 isHidden(el) { | |
return (el.offsetParent === null) | |
} | |
interval = (function(){ | |
return setInterval(function(){ | |
try { | |
var acceptVideoButton = document.querySelector('.toast.extended [data-click="acceptWithVideo"]'); | |
if(acceptVideoButton && !isHidden(acceptVideoButton)){ | |
console.log('call incoming! triggering click!'); | |
acceptVideoButton.click(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Undo</title> | |
</head> | |
<body> | |
<label> | |
Nome e sobrenome | |
<input type="text" id="firstName"> | |
<input type="text" id="lastName"> |
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 ( $ ) { | |
$.fn.greenify = function( options ) { | |
// This is the easiest way to have default options. | |
var settings = $.extend({ | |
// These are the defaults. | |
color: "#556b2f", | |
backgroundColor: "white" | |
}, options ); | |
// Greenify the collection based on the settings variable. | |
return this.css({ |
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
<input type="text" class=".search-input"> | |
<ul class="to-search"> | |
<li>Apples</li> | |
<li>Penguins</li> | |
<li>Turtles</li> | |
</ul> | |
<script type="text/javascript"> | |
$(function(){ | |
$('.search-input').filterGun({ |
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
@mixin create-anim($name) { | |
@-moz-keyframes #{$name} { @content; }; | |
@-webkit-keyframes #{$name} { @content; }; | |
@-ms-keyframes #{$name} { @content; }; | |
@-o-keyframes #{$name} { @content; }; | |
@keyframes #{$name} { @content; }; | |
} |
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
re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | |
re.test($('.reset-password.front input')); |
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 | |
$nome = $_POST['nome']; | |
$email = $_POST['email']; | |
$telefone = $_POST['telefone']; | |
$mensagem = $_POST['mensagem']; | |
$to = "[email protected]"; | |
$subject = "Assunto do E-mail"; | |
$message = "Nome: ".$nome."<br/>"; | |
$message .= "Email: ".$email."<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
var sanfona_speed = 200; | |
$(document).on('click', '[name=sanfona],[data-name=sanfona]', function(e){ | |
e.preventDefault(); | |
item_parent = $(this).parent(); | |
item_content = $(this).siblings('[data-sanfona]') ? $(this).siblings('[data-sanfona]') : $(this).find('[data-sanfona]'); | |
if(item_content && item_content.outerHeight() == 0){ | |
height = item_content[0].scrollHeight; | |
// Terminada a animação, seta o height:auto para que as sublistas não sejam escondidas pela altura definida da possível sanfona pai. | |
item_content.animate({ height: height }, sanfona_speed, function(){ | |
item_content.css('height', 'auto'); |
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
coffee --watch --compile --output src/ lib/ //Primeiro o final, depois a origem do .coffee |
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
#produto-preview, .thumb { | |
display:inline-block; | |
vertical-align:top; | |
-moz-box-sizing: border-box; | |
-o-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
#produto-preview img { width: 100%; } /* Todas as imagens ajustam às boxes */ |
NewerOlder