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
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val() == '') { | |
input.addClass('placeholder'); |
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
# simple capistrano task for wordpress deploy | |
# just replace the content to fit your app path and names | |
# and run cap deploy:setup && cap deploy | |
# you can also run a cap wordpress:upload_config to copy the local config-sample.php to remote shared folder | |
# warning: this recipe don't create the database | |
# APP SETTINGS | |
set :application, "your_app_name" | |
set :domain_name , "yourdomain.com.br" |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>::jquery::</title> | |
<link rel="stylesheet" href="jquery-ui-theme/ui.core.css" type="text/css" /> | |
<link rel="stylesheet" href="jquery-ui-theme/ui.datepicker.css" type="text/css" /> | |
<link rel="stylesheet" href="jquery-ui-theme/humanity/ui.theme.css" type="text/css" /> | |
<style> | |
.ui-button:hover { border: 1px solid #444;cursor:pointer} |
NewerOlder