This file contains 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
// Require the table modules | |
var scrollableTableView = require('scrollableTableView').scrollableTableView; | |
var scrollableTable = require('scrollableTable').scrollableTable; | |
// Container View (so we can fit multiple table on one page) | |
var tblView = new scrollableTableView(); | |
// Create Some tables | |
var tbl = new scrollableTable(); | |
var tbl2 = new scrollableTable(); |
This file contains 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 | |
Class Example_Lib { | |
/** | |
* Internal cache helper | |
* Caches internal method results in memory | |
* | |
* @param string $func function to call | |
* @param array $args arguments for the callback function |
This file contains 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 | |
class Hcount { | |
private static $CI; | |
private static $CFG = array(); | |
private static $DEFAULTS = array( | |
'timeout' => 2419200, // 4 * 7 * 24 * 3600 (1 month) | |
//Hits counter table | |
'tbl_hit_count' => array( |
This file contains 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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Navigation Plugin | |
* | |
* @author PyroCMS Dev Team | |
* @package PyroCMS\Core\Modules\Navigation\Plugins | |
*/ | |
class Plugin_Navigation extends Plugin | |
{ | |
/** |
This file contains 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
/** | |
* Forms | |
*/ | |
form | |
{ | |
margin: 0; | |
} | |
form p, label {display:block;} | |
form ul | |
{ |
This file contains 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 to_slug($str, $replace=array(), $delimiter='_', $maxLength=200) | |
{ | |
if(!empty($replace)) | |
{ | |
$str = str_replace((array)$replace, ' ', $str); | |
} | |
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str); | |
$clean = preg_replace("%[^-/+|\w ]%", '', $clean); | |
$clean = strtolower(trim(substr($clean, 0, $maxLength), $delimiter)); |
This file contains 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
<input type="text" name="title" value="" id="title"> | |
<input type="text" name="slug" value="" id="slug"> | |
<script>$(function(){ $("#title").c_slugify({slug: "#slug", type: "_"}) });</script> |
This file contains 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 aCache = new ajaxCache({pk: "folder_id", prefix: "folder"); | |
$('#folder_sel').change(function() { | |
var folder_id = $(this).val(); | |
aCache.post(href_val, {'folder_id': folder_id}, function(data) { | |
//code | |
}); | |
}) |
This file contains 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.linenumbers = function() { | |
return this.each(function() { | |
var $block = $(this); | |
if ( $block.parent().is("pre") ) | |
{ | |
$block.unwrap(); |
OlderNewer