This shows how to make fun checkboxes using Font Awesome and basic 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
<select name="countryCodeAlpha2" class="countryCodeAlpha2"> | |
<option value ="null">Choose a Country</option> | |
<option value ="AF">Afghanistan</option> | |
<option value ="AX">Åland</option> | |
<option value ="AL">Albania</option> | |
<option value ="DZ">Algeria</option> | |
<option value ="AS">American Samoa</option> | |
<option value ="AD">Andorra</option> | |
<option value ="AO">Angola</option> | |
<option value ="AI">Anguilla</option> |
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 Base64 = { | |
// private property | |
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
// public method for encoding | |
encode : function (input) { | |
var output = ""; | |
var chr1, chr2, chr3, enc1, enc2, enc3, enc4; | |
var i = 0; |
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
<div class="effect3" style="margin:20px;"> | |
<img class="effect3" src="http://0777.ir/img/lndl.png" | |
original-src="http://pearlsquirrel.com/profilethumbnails/$thumbnail" | |
width="180" height="180" alt="PearlSquirrel"/> | |
</div> |
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 country = $('.countryCodeAlpha2'); | |
var x = country.val(); | |
console.log(x); | |
VS | |
var country = $('.countryCodeAlpha2').val; | |
console.log(country); |
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
$.ajax({ | |
type: 'GET', | |
url: reportsUrl, | |
beforeSend : function(xhr) { | |
var base64 = Base64.encode(username + ":" + password); | |
xhr.setRequestHeader("Authorization", "Basic " + base64); | |
}, | |
contentType: 'plain/text', | |
xhrFields: { | |
withCredentials: true |
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 | |
$name = $_POST['feedback-name']; | |
$email = $_POST['feedback-email']; | |
$message = $_POST['feedback-box']; | |
$to = 'ericc@qpme.com'; | |
$subject = 'QPME Feedback From Customer Terminal'; | |
$headers = 'From: website@qpme.com' . "\r\n" . | |
'Reply-To: webmaster@qpme.com' . "\r\n" . |
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> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<form action="db-insert.php" method="post"> | |
<label for="firstName">First Name:</label> | |
<input id="firstName" name="firstName" value="" /> | |
<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
function make_base_auth(user, pass) { | |
var tok = user + ':' + pass; | |
var hash = Base64.encode(tok); | |
return "Basic " + hash; | |
} | |
function api_call(){ | |
var xhr; | |
// code for IE 10, Firefox, Chrome, Opera, Safari | |
if (window.XMLHttpRequest){ |
NewerOlder