https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css
<link rel="https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css">
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
{ | |
"countries": [ | |
{ | |
"country": "Afghanistan", | |
"states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"] | |
}, | |
{ | |
"country": "Albania", | |
"states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"] | |
}, |
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
$value = 0.29; | |
$getval = substr($value, -1); | |
$var = substr($value, -2, 1) + 1; | |
if ($getval <= 2) { | |
$final = substr_replace($value, 0, -1); | |
} elseif ($getval >= 3 && $getval <= 7) { | |
$final = substr_replace($value, 5, -1); | |
} elseif ($getval >= 8 && $getval <= 9) { | |
$notyet = substr_replace($value, 0, -1); |
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
// MyKad | |
$this->myKad = "010203-04-1234"; | |
$this->myKad = str_replace(['-', ' '], '', $this->myKad); | |
if (!is_numeric($this->myKad)) { | |
return "not valid mykad no"; | |
} elseif (strlen($this->myKad) != 12) { | |
return "mykad no should contains 12 digits"; | |
} |
Been planning and saving up to finally ship the perfect autocomplete control with all the makings? This here is the best one north of the intergallactic boundary. It looks up values from a list as the user starts typing. The nice thing is that it looks up 'Starts With' as well as 'Contains' ...which I believe is sweet in some applications. Enjoy and share | Sander
A Pen by Sander (Sandroid) on CodePen.
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
<div class="container"> | |
<h2>Select2 Test</h2> | |
<p>Fluid responsiveness and momentum scrolling on the results drop down </p> | |
<select class="select2" name="country"> | |
<optgroup label=" "> | |
<option value="AU" selected> Australia </option> | |
<option value="BR"> Brazil (Brasil) </option> |
Pen is a demonstration of use color picker to change the background color and text color of the element and also about vertical and horizontal centered.
A Pen by Jakub Turský on CodePen.
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
1. Ctrl-F / Cmd-F to open find. | |
2. Paste your string. | |
3. Alt-Enter to select all of the instances of the string on the page. | |
4. Ctrl-L / Cmd-L to broaden the selection to the entire line of each instance on the page. | |
5. Ctrl-Shift-K / Cmd-Shift-K / Delete / Backspace to remove those lines. |
NewerOlder