This file contains hidden or 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 style="clear:both;position: relative;padding-bottom: 56.25%;padding-top: 35px;height: 0;overflow: hidden;"> | |
| <div style="padding-top: 56.25%;"> | |
| <iframe allowfullscreen="" frameborder="0" gesture="media" src="https://www.youtube.com/embed/puDp6xo74Pg" style="position: absolute;top:0;left: 0;width: 100%;height: 100%;"></iframe> | |
| </div> | |
| </div> |
This file contains hidden or 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
| #for use with shared files (e.g. config files) | |
| after "deploy:update_code" do | |
| run "ln -s #{shared_path}/environment.rb #{release_path}/config" | |
| run "ln -s #{shared_path}/database.yml #{release_path}/config" | |
| run "ln -s #{shared_path}/facebooker.yml #{release_path}/config" | |
| run "chown bluesky:psaserv /var/www/vhosts/blueskywebapps.com/subdomains/cookie/httpdocs" | |
| end | |
| after "deploy:symlink" do | |
| run "chown -R bluesky:psacln /var/www/vhosts/blueskywebapps.com/subdomains/cookie/httpdocs/current" |
This file contains hidden or 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
| def self.results(page, id) | |
| conditions = ["category_id = ?", id] | |
| paginate :page => page, | |
| :per_page => 20, | |
| :joins => :category, | |
| :conditions => conditions | |
| end |
This file contains hidden or 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
| git config --global color.status auto | |
| git config --global color.diff auto git config --global color.diff auto | |
| git config --global color.branch auto |
This file contains hidden or 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
| src="<?php echo $this->baseurl ?>/swf/blah.swf" |
This file contains hidden or 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 | |
| $id = JRequest::getVar( 'id', 0 ); | |
| $content = JTable::getInstance('content'); | |
| $content->load($id); | |
| $cat_id = $content->catid; | |
| $category = JTable::getInstance('category'); | |
| $category->load($cat_id); | |
| $category_title = $category->title; |
This file contains hidden or 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
| $(document).ready(function() { | |
| // Preload all rollovers | |
| $("#tabs img").each(function() { | |
| // Set the original src | |
| rollsrc = $(this).attr("src"); | |
| rollON = rollsrc.replace(/.jpg$/ig,"2.jpg"); | |
| $("<img>").attr("src", rollON); | |
| }); | |
| // Navigation rollovers |
This file contains hidden or 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
| //contact-form validation | |
| $("form#contact-form").validate({ | |
| errorPlacement: function(error, element) { | |
| //appends error message to the p tag of the form field | |
| error.appendTo( element.parent("p") ); | |
| } | |
| }); |
This file contains hidden or 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 id="map"></div> | |
| <div id="controls"> | |
| <p class="legend"><strong>Toggle a Checkbox to Show Map Points</strong></p> | |
| <ul> | |
| <li><input type="checkbox" id="layer1" onClick="boxclick(this, layer1);"/><label> Layer 1 </label></li> | |
| <li><input type="checkbox" id="layer2" onClick="boxclick(this, layer2);"/><label> Layer 2 </label></li> | |
| <li><input type="checkbox" id="layer3" onClick="boxclick(this, layer3);"/><label> Layer 3</a></label></li> |
This file contains hidden or 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 id="map"></div> | |
| <script type="text/javascript"> | |
| // Create a base icon | |
| var baseIcon = new GIcon(); | |
| baseIcon.image = "images/red_marker.png"; | |
| baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; | |
| baseIcon.iconSize = new GSize(20, 34); | |
| baseIcon.shadowSize = new GSize(37, 34); | |
| baseIcon.iconAnchor = new GPoint(9, 34); |
NewerOlder