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
.demoUiError { | |
font-size: 0.9em; | |
position: relative; | |
margin: 10px 10px 15px 10px; | |
width: 293px; | |
color: white; | |
font-family: "Helvetica Neue", Helvetica,Arial,sans-sarif; | |
} | |
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
<div class="demoUiError" | |
dojoAttachEvent="onmouseover:_hoverOver,onmouseout:_hoverOut,onclick:close"> | |
<p> | |
${message} | |
</p> | |
<div class="footer"></div> | |
</div> |
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
<!-- Dojo Config --> | |
<script type="text/javascript"> | |
// Since we're using CDN resources, we have to define any local | |
// module paths first | |
var djConfig = { | |
// parseOnLoad: true, // Look for dojo events/hooks | |
// isDebug: true, // Enable debugging | |
baseUrl: "/static/js/", // Base path for all modules | |
modulePaths: { | |
demo: "demo" // Path to "demo" namespace |
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($) { | |
$.extend($.expr[':'],{ | |
inView: function(a) { | |
var st = (document.documentElement.scrollTop || document.body.scrollTop), | |
ot = $(a).offset().top, | |
wh = (window.innerHeight && window.innerHeight < $(window).height()) ? window.innerHeight : $(window).height(); | |
return ot > st && ($(a).height() + ot) < (st + wh); | |
} | |
}); |
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
/* | |
Script: DOM.js | |
Class: DOM | |
Allows for the building of a DOM node-tree via an array. You can | |
assign any attribute, events, styles, and even content with this class. | |
Author: | |
Eric Clemmons |
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
/* | |
Author: Eric Clemmons | |
Library: jQuery 1.3.2 | |
When visiting "http://www.netflix.com/TastePreferences?lnkctr=wnph_sc_tst", I found myself | |
Clicking each "Click for example" link to better select my preference. | |
So, this script simply replaces that link with the first THREE suggested movie images. | |
Just Copy-Paste into Firebug & Run! | |
*/ |
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 | |
/** | |
* GetMessages | |
* | |
* @author Eric Clemmons (eric@smarterspam.com) | |
* @category Zend | |
* @package Zend_View | |
* @subpackage Helper | |
* |
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
-- @last = the very last response | |
SELECT @last:=UNIX_TIMESTAMP(response_date) FROM responses GROUP BY response_date DESC LIMIT 1; | |
-- @diff = how much time has passed since the last response | |
SELECT @diff:=(UNIX_TIMESTAMP() - @last); | |
-- Add the date difference to all responses to chronologically bring them up to date | |
UPDATE responses SET response_date=FROM_UNIXTIME(UNIX_TIMESTAMP(response_date) + @diff); |
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
public function persistData($namespace = 'My_Super_Awesome_Form') | |
{ | |
if (null === $this->_session) { | |
$this->_session = new Zend_Session_Namespace($namespace); | |
} | |
if ($this->_session->values) { | |
$this->populate($this->_session->values); | |
} | |
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 Forms_Log_Writer_Backlog extends \Zend_Log_Writer_Mail | |
{ | |
/** | |
* Array of all events sent to writer, unfiltered. | |
* | |
* @var array | |
*/ |