Compass developed using only HTML and CSS3 (no images)
A Pen by Raphael Fabeni on CodePen.
| .nav, .pagination, .carousel, .panel-title a { cursor: pointer; } | |
| .ng-isolate-scope > .nav-tabs { | |
| border-bottom: 0; | |
| } | |
| .tab-content > .tab-pane, | |
| .pill-content > .pill-pane { | |
| display: none; |
| function isDate(dateArg) { | |
| var t = (dateArg instanceof Date) ? dateArg : (new Date(dateArg)); | |
| return !isNaN(t.valueOf()); | |
| } | |
| function isValidRange(minDate, maxDate) { | |
| return (new Date(minDate) <= new Date(maxDate)); | |
| } |
| /*Get All Dates in given month and year in php by CJ Ramki (http://cj-ramki.blogspot.in)*/ | |
| function get_dates($month,$year){ | |
| $numbers = array('1','2','3','4','5','6','7','8','9'); | |
| $datesArray = array(); | |
| $num_of_days = date('t',mktime (0,0,0,$month,1,$year)); | |
| for( $i=1; $i<= $num_of_days; $i++) { | |
| if(in_array($i,$numbers)) $i = '0'.$i; | |
| //complete date in Y-m-d format |
Compass developed using only HTML and CSS3 (no images)
A Pen by Raphael Fabeni on CodePen.
| function countryList() { | |
| return array('Afghanistan' => 'Afghanistan', | |
| 'Albania' => 'Albania', | |
| 'Algeria' => 'Algeria', | |
| 'Andorra' => 'Andorra', | |
| 'Angola' => 'Angola', | |
| 'Antigua & Deps' => 'Antigua & Deps', | |
| 'Argentina' => 'Argentina', | |
| 'Armenia' => 'Armenia', | |
| 'Australia' => 'Australia', |
| function time_zone(){ | |
| return array('Kwajalein' => '(GMT-12:00) International Date Line West', | |
| 'Pacific/Midway' => '(GMT-11:00) Midway Island', | |
| 'Pacific/Samoa' => '(GMT-11:00) Samoa', | |
| 'Pacific/Honolulu' => '(GMT-10:00) Hawaii', | |
| 'America/Anchorage' => '(GMT-09:00) Alaska', | |
| 'America/Los_Angeles' => '(GMT-08:00) Pacific Time (US & Canada)', | |
| 'America/Tijuana' => '(GMT-08:00) Tijuana, Baja California', | |
| 'America/Denver' => '(GMT-07:00) Mountain Time (US & Canada)', | |
| 'America/Chihuahua' => '(GMT-07:00) Chihuahua', |
| <!--Here is the HTML code--> | |
| <div class="parent"> | |
| <div class="child">1</div> | |
| <div class="child">2</div> | |
| <div class="child">3</div> | |
| <div class="child">4</div> | |
| <div class="child">5</div> | |
| </div> | |
| <input type="button" id="btn" value="Show DESC"> |
| /*! | |
| * classie - class helper functions | |
| * from bonzo https://github.com/ded/bonzo | |
| * | |
| * classie.has( elem, 'my-class' ) -> true/false | |
| * classie.add( elem, 'my-new-class' ) | |
| * classie.remove( elem, 'my-unwanted-class' ) | |
| */ | |
| /*jshint browser: true, strict: true, undef: true */ |