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
<?php | |
/** | |
* Example Application | |
* @package Example-application | |
*/ | |
require('../libs/Smarty.class.php'); | |
$smarty = new Smarty; |
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
<form> | |
<input id="name_input" type="text" value="First Name"/> | |
</form> |
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
$(function(){ | |
$('#name_input').focus(function(){ | |
$('#name_input').val(''); | |
}); | |
}); |
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
$(function(){ | |
//this makes the default value of an input disappear when you focus on the input text field. | |
//default values reappear when input is unfocused under the condition that value="". | |
var smart_input = function( input_id, default_value){ | |
$(input_id).focus(function(){ | |
if($(input_id).val() === default_value){ | |
$(this).val(''); | |
$(input_id).focusout(function(){ | |
if($(this).val() === ''){ | |
$(this).val(default_value); |
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
$(function(){ | |
//this makes the default value of an input disappear when you focus on the input text field. | |
//default values reappear when input is unfocused under the condition that value="". | |
var smart_input = function( input_id, default_value){ | |
$(input_id).focus(function(){ | |
if($(input_id).val() === default_value){ | |
$(this).val(''); | |
$(input_id).focusout(function(){ | |
if($(this).val() === ''){ | |
$(this).val(default_value); |
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
<form> | |
<input id="working_name" type="text" value="First Name"/> | |
</form> |
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
php -r "$(curl -fsSL http://getsparks.org/go-sparks)" |
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
cd my_code_igniter_project |
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
$ php tools/spark help |
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”> | |
window.location = ‘http://protestsopa.org/‘; | |
</script> |