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
.info-icon { | |
display: inline-block; | |
position: relative; | |
width: 16px; | |
height: 16px; | |
margin-bottom: .5em; | |
} | |
.info-icon-button { | |
font-family: serif; |
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
#area { | |
position: relative; | |
} | |
.popup { | |
position: fixed; | |
width: 100%; | |
height: 100%; | |
top: 0; | |
left: 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
.meter ul.markers { | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
text-align: justify; | |
height: 1em; | |
line-height: 1em; | |
} | |
.meter ul.markers:after { |
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
#selector { | |
background-image: url(./path/relative/to/cssfile/to/image.png); | |
background-size: cover; | |
} | |
.ie #selector { | |
background-image: none; | |
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/path/relative/to/document/or/absolute/path/to/image.png',sizingMethod='scale'); | |
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/path/relative/to/document/or/absolute/path/to/image.png',sizingMethod='scale')"; | |
} |
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
.youtube-thumb { | |
height: 100px; | |
line-height: 100px; | |
background: #fff; | |
position: relative; | |
} | |
.youtube-thumb:before { | |
content: " "; | |
display: block; |
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 scrollVal = 0; | |
setInterval(function () { | |
scrollVal += 3; | |
jQuery('body').scrollTop(scrollVal); | |
},17); |
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
$originalDate = "2010-03-21"; | |
$newDate = date("d-m-Y", strtotime($originalDate)); |
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
li { | |
display: -moz-inline-stack; /* Firefox 2 */ | |
display: inline-block; | |
zoom: 1; /* IE hack to trigger hasLayout */ | |
*display: inline; /* IE hack to achieve inline-block behavior */ | |
} |
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
// sort an array of objects on the values of certain properties | |
// Usage: $obj_list = object_property_sort($obj_list, "title ASC"); | |
function object_property_sort($obj_arr, $order_by) { | |
$sort = explode(" ", $order_by); | |
$property = $sort[0]; | |
$dir = ($sort[1] == "ASC") ? SORT_ASC : SORT_DESC; | |
$sort_on_arr = array(); | |
foreach($obj_arr as $key => $object) | |
$to_sort_arr[(string)$key] = $object->$property; |
OlderNewer