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
jQuery.jQueryRandom = 0; | |
jQuery.extend(jQuery.expr[":"], { | |
random: function(a, i, m, r) { | |
if (i == 0) { | |
jQuery.jQueryRandom = Math.floor(Math.random() * r.length); | |
}; | |
return i == jQuery.jQueryRandom; | |
} | |
}); |
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
// overrides grid-unit-base and add position:relative | |
=grid-unit-base(!gutter_width = !ninesixty_gutter_width) | |
:display inline | |
:position relative | |
:float left | |
:margin | |
:left= !gutter_width / 2 | |
:right= !gutter_width / 2 | |
// added a grid-push and grid-pull |
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($) { | |
// displays snowflakes in a giving selector | |
$.fn.snow = function(options) { | |
var opts = $.extend({}, $.fn.snow.defaults, options); | |
// generates a random position | |
function getRandomPosition(width) { | |
return Math.floor(Math.random() * width); |
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 Planner_AuthController extends Zend_Controller_Action { | |
protected $_flashMessenger = null; | |
protected $_form = null; | |
public function init() { | |
$this->_form = new Planner_Form_Login(); | |
$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger'); |
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 Planner_AuthController extends Zend_Controller_Action { | |
protected $_flashMessenger = null; | |
protected $_form = null; | |
public function getForm() { | |
if(null === $this->_form) { | |
$this->_form = new Planner_Form_Login(); |
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 Planner_Form_Login extends Zend_Form { | |
public function init() { | |
$this->setAction('/auth/process/'); | |
$this->setElementFilters(array('StringTrim', 'StripTags')); | |
$this->addElement('text', 'username', array( | |
'label' => 'Username:', |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
<title>test</title> | |
<link rel="stylesheet" href="styles/default.css" type="text/css" media="screen" charset="utf-8"/> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
<title>test</title> | |
<link rel="stylesheet" href="styles/default.css" type="text/css" media="screen" charset="utf-8"/> |
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 Planner_Bootstrap extends Zend_Application_Module_Bootstrap { | |
protected $_moduleName = "Planner"; | |
protected function _initNavigations() { | |
$this->bootstrap('View'); | |
$view = $this->getResource('View'); |
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 Planner_AuthController extends Zend_Rest_Controller { | |
protected $_flashMessenger = null; | |
protected $_form = null; | |
public function getForm() { | |
if(null === $this->_form) { | |
$this->_form = new Planner_Form_Login(); |
OlderNewer