Skip to content

Instantly share code, notes, and snippets.

S. Ali Mihandoost AliMD

View GitHub Profile
* {
padding : 0;
margin : 0;
}
menu:after {
content: ' ';
display: block;
width : 0;
height : 0;
body{
background-color: #DDD;
}
.accslide {
width: 600px;
height: 300px;
border: 1px solid black;
margin: 0 auto;
overflow: hidden;
@AliMD
AliMD / jsbin.epadot.html
Last active December 20, 2015 05:28
jQuery Plugin for Select Odd and Even Elements after selected
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div>1</div>
<div>1</div>
@AliMD
AliMD / jsbin.oronic.html
Created July 25, 2013 13:43
Use two jQuery version in one file !
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>
jQuery10 = jQuery;
$.noConflict(); // remove $
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script>
@AliMD
AliMD / HTML_Entities_Convert.js
Last active December 30, 2019 13:39
Easy method for convert HTML Entities with javascript
var esc = document.createElement('textarea');
function escapeHTML(html) {
esc.innerHTML = html;
return esc.innerHTML;
}
function unescapeHTML(html) {
esc.innerHTML = html;
return esc.value;
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<meta charset="utf-8" />
<title>JS Bin</title>
</head>
<body>
@AliMD
AliMD / Wordpress Admin Welcome Notice.md
Last active December 20, 2015 14:19
Wordpress Admin Welcome Notice

Wordpress Admin Welcome Notice

Get current user data

add_action('admin_init', 'get_user_info');
function get_user_info(){
  global $current_user;
  get_currentuserinfo();
}
.tbl{
display: table;
width: 100%;
}
.tblc{
display: table-cell;
}
html,body,.tbl,.tblc{
height: 100%;
vertical-align: middle;
html,body{
padding: 0;
margin: 0;
height: 100%;
}
.box {
position: absolute;
top: 0;
bottom: 0;
left: 0;
.grids > * {
outline: 1px dashed gray;
}
.grids > * > * {
outline: 1px dashed lightblue;
}
.grids > * > * > *{
outline: 1px dashed blue;