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
var Autocomplete = function(element, suggestions) { | |
'use strict'; | |
/** | |
* Variables | |
*/ | |
var container = document.createElement('div'); | |
var list = document.createElement('ul'); | |
var listItems = []; | |
var current = []; |
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 | |
$idMap = []; | |
function json2sql($current, $parent, $json) { | |
global $idMap; | |
$table = ""; | |
$insert = ""; | |
$children = ""; |
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
$.fn.visible = function() { | |
'use strict'; | |
var $window = $(window), | |
windowScrollTop = $window.scrollTop(), | |
windowHeight = $window.height(); | |
return this.filter(function() { | |
var $this = $(this), | |
thisOffsetTop = $this.offset().top, |
NewerOlder