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 lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="robots" content="noodp, noydir" /> | |
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
<link rel="canonical" href="http://mysite.com/" /> | |
<link rel="stylesheet" href="http://mysite.com/style.css" type="text/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
var main = function(){ | |
var btn = $('.btn'); | |
btn.on('click', function(){ | |
var post = $('.status-box'); | |
post.val(); | |
$('<li>').text(post).prependTo('.posts'); | |
$('.status-box').val(''); | |
$('.counter').text('140'); |
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 main = function(){ | |
var dropdownToggle = $('.dropdown-toggle'); | |
// Event Handler | |
dropdownToggle.on('click', function(){ | |
$('.dropdown-menu').toggle(); | |
}); | |
// Event Handler | |
$('.arrow-prev').click(function(){ |
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 loadMore = function() { | |
var size_li = $(".nth").size(), | |
btnLoadMore = $('#loadMore'); | |
btnLoadMore.on('click', function () { | |
$('.nth').show(); | |
}); | |
} |
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
// Call the action | |
remove_action('init', 'wp_admin_bar_init'); | |
function my_function_admin_bar(){ | |
return false; | |
} | |
add_filter( 'show_admin_bar' , 'my_function_admin_bar'); |
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 | |
*/ | |
background: #FFa215; | |
background: linear-gradient( #FFa215, #d78100); | |
min-height:100%; | |
background: #FFa215; | |
}; | |
background: #FFa215 |
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
add_filter('upload_mimes', 'custom_upload_mimes'); | |
function custom_upload_mimes ( $existing_mimes=array() ) { | |
// add the file extension to the array | |
$existing_mimes['svg'] = 'mime/type'; | |
// call the modified list of extensions |
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
maskTelefone: function() { | |
$( "#telefone" ).mask( "(99) 9999-9999?9" ).live('focusout', function (event) { | |
var target, phone, element; | |
target = (event.currentTarget) ? event.currentTarget : event.srcElement; | |
phone = target.value.replace(/\D/g, ''); | |
element = $(target); | |
element.unmask(); |
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
/* | |
Funcao que marca o video que esta | |
sendo assistido como uma mascara | |
de "Assistindo agora" | |
*/ | |
$(function() { | |
var thumb = $('.video-item a'); | |
var mask = $( '.video-item a .mask' ).hide(); |
OlderNewer