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
loadTemplate: function(file,callback){ | |
var that = this; | |
var partial = false; | |
if (file.indexOf('partial') !== -1) { | |
partial = true; | |
}; | |
$.post('templates/'+file+'.tpl',function(e){ | |
var s = document.createElement('script'); | |
s.setAttribute('id',file); |
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
if (!site || typeof(site) !== 'object') { | |
var site = {}; | |
}; | |
site.validate = { | |
init: function(){ | |
// bind all buttons to form validation and submission | |
this.bindSubmits(false); | |
if ($('form[fact]').length == 1) { | |
$('form[fact] input:visible:first').focus(); |
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
//This is a port of Ken Perlin's "Improved Noise" | |
// http://mrl.nyu.edu/~perlin/noise/ | |
// Originally from http://therandomuniverse.blogspot.com/2007/01/perlin-noise-your-new-best-friend.html | |
// but the site appears to be down, so here is a mirror of it | |
class Perlin { | |
var $p, $permutation, $seed; | |
var $_default_size = 64; |
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 | |
/** | |
* | |
* CI / MySQL Closure Table Model | |
* | |
* @link http://www.slideshare.net/billkarwin/models-for-hierarchical-data | |
* @TODO improve | |
* | |
* sql schema: |
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
/* | |
* jsTree 1.0-rc3 | |
* http://jstree.com/ | |
* | |
* Copyright (c) 2010 Ivan Bozhanov (vakata.com) | |
* | |
* Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.gnu.org/licenses/gpl.html | |
* |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow) no-repeat ; | |
min-height: 100%; | |
font-family: "Lato"; | |
} | |
h1 { |
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
/** | |
* CSS callouts | |
*/ | |
#frame { | |
width: 300px; | |
padding: 12px; | |
margin: 0 auto; | |
margin-top: 12px; | |
border: 1px solid #ccc; | |
font-size: 14px; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow) no-repeat ; | |
min-height: 100%; | |
font-family: "Lato"; | |
} | |
h1 { |
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 Acl extends CI_Model | |
{ | |
protected $actions = 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
body { | |
width: 580px; | |
margin: 0 auto; | |
font-family: sans-serif; | |
font-size: 12px; | |
color: #666; | |
} | |
.fan { | |
position: relative; | |
width: 120px; |
OlderNewer