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
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 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
<?php | |
function shuffle_assoc($list) { | |
if (!is_array($list)) return $list; | |
$keys = array_keys($list); | |
shuffle($keys); | |
$random = array(); | |
foreach ($keys as $key) | |
$random[$key] = $list[$key]; | |
return $random; |
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
// 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; |
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
function properXML($str){ | |
//return iconv("UTF-8", "ISO-8859-1//TRANSLIT", preg_replace("/&/", "and", html_entity_decode(strip_tags($str), ENT_COMPAT, 'UTF-8'))); | |
return utf8_encode(preg_replace("/&/", "and", html_entity_decode(strip_tags($str), ENT_COMPAT, 'UTF-8'))); | |
} |
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
#element:before { | |
content: ""; | |
position: absolute; | |
width: 0; | |
height: 0; | |
border-left: 16px solid transparent; | |
border-right: 16px solid transparent; | |
border-bottom: 16px solid #fff; | |
top: -15px; | |
left: 27px; |
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
#element { | |
position: absolute; | |
top: 102px; | |
background: #fff; | |
opacity: 0; | |
visibility: hidden; | |
transition-property: top,opacity; | |
transition-duration: 0.4s; | |
transition-timing-function: ease-in-out; | |
-webkit-transition-property: top,opacity; |
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
#element { | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; | |
filter: alpha(opacity=30); | |
-moz-opacity: 0.3; | |
-khtml-opacity: 0.3; | |
opacity: 0.3; | |
} |
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="contact-map"> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&language=nl"></script> | |
<script type="text/javascript">// <![CDATA[ | |
function initialize() { | |
var myLatlng = new google.maps.LatLng(51.2074746, 3.2263338000000203); | |
var mapOptions = { | |
zoom: 16, | |
center: myLatlng, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
} |
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
(function( $ ) { | |
$.fn.pluginSkeleton = function ( options ) { | |
var settings = $.extend({ | |
option1: "bones", | |
option2: "skull" | |
}, options ); | |
return this.each(function() { |
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
jQuery(document).ready(function () { | |
var $ = jQuery; | |
$('.clearfocus').each(function( index ) { | |
if ($(this).attr('type') == 'password') { | |
var fakeInput = $('<input type="text" />'); | |
fakeInput.val($(this).val()).addClass('input-text').addClass('passclearfocus'); | |
$(this).after(fakeInput); | |
$(this).hide(); |
OlderNewer