Skip to content

Instantly share code, notes, and snippets.

View ahmadalbakri's full-sized avatar

Ahmad Albakri Zabri ahmadalbakri

View GitHub Profile
@ahmadalbakri
ahmadalbakri / gist:4529092
Last active December 11, 2015 02:18
JS : Movideo Code
$(document).ready(function () {
function movideoLoaded(json) {
MOVIDEO.init({
apiKey: mv_api_key,
flashAppAlias: "flashApp",
iosAppAlias: "iPhone"
});
@ahmadalbakri
ahmadalbakri / gist:4528758
Last active December 11, 2015 02:09
CSS : Image Replacement Technique
.ir{
border: 0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent
}
@ahmadalbakri
ahmadalbakri / gist:4528754
Last active December 26, 2015 04:08
HTML : HTML5 Starting Template
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
@ahmadalbakri
ahmadalbakri / gist:4528750
Last active December 11, 2015 02:09
CSS : Clearfix
.clearfix: after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}.clearfix {
display: inline - block;
} /* Hides from IE-mac \*/
* html.clearfix {