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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Credit Card Numbers Normalization Example</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var creditCardNumber = '00000000 00000000'; |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Credit Card Numbers Normalization Example</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// var creditCardNumber = '00000000 00000000'; |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Credit Card Numbers Normalization Example</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// var creditCardNumber = '00000000 00000000'; |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Credit Card Numbers Normalization Example</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function isValidNumber(number) { |
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
<a href="#" data-metainfo='{"key":"val"}'>test</a> | |
<a href="#" data-metainfo="N/A">test</a> |
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
Grumpy wizards make toxic brew for the evil queen and jack | |
------------------^ |
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
Grumpy wizards make toxic brew for the evil queen and jack | |
_^ |
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
Grumpy wizards make toxic brew for the evil queen and jack | |
-----------------------------------------------^ |
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
Carbon Fields use Underscore template engine. Each field has a `template` method that prints the underscore template code. | |
``` | |
class Carbon_Field_Example extends Carbon_Field { | |
// Base template | |
function template() { | |
?> | |
<input id="{{{ id }}}" type="text" name="{{{ name }}}" value="{{ value }}" class="regular-text example-field" /> | |
<span>This is an example field. </span> | |
<?php |
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
$(replace_placeholders); | |
function replace_placeholders() { | |
var browser_supports_placeholder; | |
if (typeof Modernizr != "undefined") { | |
placeholder_support = Modernizr.input.placeholder | |
} else { | |
placeholder_support = !!("placeholder" in (document.createElement('input'))); | |
} | |
if (browser_supports_placeholder) { return; } |