#Contents
- Site Conventions
- Special tags
- Database Management
- Sass and Compass
- Installation
- DB config
- DB import
- Local Virtual Host
| // everyone's new favorite closure pattern: | |
| (function(window,document,undefined){ ... })(this,this.document); | |
| // when minified: | |
| (function(w,d,u){ ... })(this,this.document); | |
| // which means all uses of window/document/undefined inside the closure | |
| // will be single-lettered, so big gains in minification. | |
| // it also will speed up scope chain traversal a tiny tiny little bit. |
| /* JS carousel instantiated as - | |
| function newsTickerAnimation(activeID, stagedObj, callback) { | |
| var activeObj = $(activeID); | |
| activeObj.animate({ | |
| left: '-=100px', | |
| opacity: 0 | |
| }, 250, function() { | |
| $(this).css({ |
| {% extends "scores/base.html" %} | |
| {% block body_class %} glossary {% endblock %} | |
| {% block content %} | |
| <dl> | |
| {% for term in terms %} | |
| <dt> | |
| {{term.name}} |
| <?php | |
| $states = array( | |
| "MD" => array("title" => "Maryland", "cities" => array()), | |
| "VA" => array("title" => "Virginia", "cities" => array()), | |
| "NC" => array("title" => "North Carolina", "cities" => array()), | |
| "NJ" => array("title" => "New Jersey", "cities" => array()), | |
| "DC" => array("title" => "Washington DC", "cities" => array()) | |
| ); | |
| ?> |
| <?php | |
| // TODO: REFACTOR CRAZY ASS QUERIES | |
| $plugin_info = array( | |
| 'pi_name' => 'Property Info', | |
| 'pi_version' => '1.0', | |
| 'pi_author' => 'Blake Walters', | |
| 'pi_description' => 'Returns general info about a property', | |
| 'pi_usage' => Property_info::usage() |
| <?php | |
| $plugin_info = array( | |
| 'pi_name' => 'Property Info', | |
| 'pi_version' => '1.0', | |
| 'pi_author' => 'Blake Walters, Viget Labs', | |
| 'pi_description' => 'Returns general info about a property', | |
| 'pi_usage' => Property_info::usage() | |
| ); |
| var PA = PA || {}; | |
| PA.homevideo = { | |
| init: function() { | |
| this.getDom(); | |
| this.setupPlayer(); | |
| this.bindControls(); | |
| this.bindReady(); | |
| }, |
| window.PA = window.PA || {}; | |
| PA.homeslider = { | |
| init: function() { | |
| this.setDom('#panels'); | |
| this.setOptions(); | |
| this.setActive(0); | |
| this.bindNav(); | |
| this.startCycle(); | |
| this.bindGestures(); |
| window.PA = window.PA || {}; | |
| PA.locator = { | |
| sampleJson: [{"first_name":"Vance","last_name":"Nitzsche","degrees":null,"credential":"Award Winner","medical_school":'Mizzou',"primary_specialty":"Internal Medicine","secondary_specialty":null,"residency":"Johns Hopkins","practice":{"name":"Laudantiumearum","phone_number":null,"office_hours":null,"external_url":null,"address":{"city":"Boulder","lat":null,"long":null,"state":"CO","street":"1539 Pearl","zip_code":"80302"}}},{"first_name":"Vance","last_name":"Nitzsche","degrees":null,"credential":"Award Winner","medical_school":'Mizzou',"primary_specialty":"Internal Medicine","secondary_specialty":null,"residency":"Johns Hopkins","practice":{"name":"Laudantiumearum","phone_number":null,"office_hours":null,"external_url":null,"address":{"city":"Boulder","lat":null,"long":null,"state":"CO","street":"4930 Meredith","zip_code":"80303"}}}], | |
| emptyJson: [], | |
| resultsPoints: [], | |
| // main search function, fires on submit |
#Contents