Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
<?php | |
/* | |
*This library will be used for speeding up website using defer loading of javascript & Css | |
*Made in pure javascript | |
async - javascript will be executed while loading the page. | |
defer - javascript will be executed after loading the page. | |
*/ | |
//To include in Header files | |
$deferJs = "h1:{src:'/javascript/shop_general.js',async:1},h2:{src:'http://www.google-analytics.com/ga.js',async:1}"; |
//following script ussed to get data from td of Jquery Datatable. | |
$('#table tbody').on( 'click', 'td', function () { | |
var data = table.cell(this).data(); //td element data | |
var column = table.cell( this ).index().column; //column index | |
var row = table.row( this ).index(); // Row index | |
var rowid = $(this).closest('tr').attr('id'); //Get Row Id | |
var columnvisible = table.cell( this ).index().columnVisible //visble column index | |
} ); |
<a href="#0" class="cd-nav-trigger"><span></span></a> | |
<style> | |
.cd-nav-trigger span, .cd-nav-trigger span::before, .cd-nav-trigger span::after { | |
/* hamburger icon in CSS */ | |
position: absolute; | |
height: 3px; | |
width: 24px; | |
background: #ffffff; | |
} | |
.cd-nav-trigger span::before { |
<div class=" icon icon-like-off" style="width:50px;height:50px;"> | |
</div> | |
<div class=" icon icon-like-on" style="width:50px;height:50px;"> | |
</div> | |
<div class=" icon icon-friend-off" style="width:50px;height:50px;"> | |
</div> | |
<div class=" icon icon-friend-on" style="width:50px;height:50px;"> |
function isValidDate(date) | |
{ | |
var matches = /^(\d{1,2})[-\/](\d{1,2})[-\/](\d{4})$/.exec(date); | |
if (matches == null) return false; | |
var d = matches[1]; | |
var m = matches[2] - 1; | |
var y = matches[3]; | |
var composedDate = new Date(y, m, d); | |
return composedDate.getDate() == d && | |
composedDate.getMonth() == m && |
<?php | |
class storage | |
{ | |
protected $data; | |
public function __construct($data) | |
{ | |
$this->data = $data; | |
} | |
<html> | |
<head> | |
<title>Side by Side Element</title> | |
<style> | |
/*---------White space: no wrap Method---------*/ | |
.parent { | |
white-space: nowrap; | |
width: 400px; | |
} |
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
<?php | |
function weekrange($year, $i = 0) | |
{ | |
$week = sprintf("%02d", $i); | |
$dto = new DateTime(); | |
$dto->setISODate($year, $week); | |
$year2 = $dto->format('Y'); | |
if ($year2 < $year) $st = '01-'; | |
else $st = $dto->format('d') . "-"; | |
$dto->modify('+6 days'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content="Short example on using indexedDB with jquery mobile - last updated: May 2012"> | |
<meta name="author" content="Ido Green"> | |
<title>IndexedDB with JQM</title> |