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
| <script type="text/javascript"> | |
| $('#one-click').click(function() { | |
| $('.two') | |
| .fadeOut(1000, function() { | |
| $('.one') | |
| .fadeIn(1000); | |
| }); | |
| }); | |
| $('#two-click').click(function() { |
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 echo date("Y"); ?> |
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
| //CSS - .commercial:hidden; | |
| //to begin with. I can't say this degrades so well, but hopefully no one will ever know. | |
| //Basically trying to implement on one page what should be done on two, but couldn't get anyone to bite | |
| //on just doing one page, for some reason. | |
| //One page - Residential, and another Commercial. Swaps the two with a nice fade. | |
| <script type="text/javascript"> | |
| $('.buttons a').first().addClass('active'); | |
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
| /* | |
| Should you stumble across this, I found it here- http://drupal.org/node/15958#comment-47684 | |
| # | |
| # Apache/PHP/Drupal settings: | |
| # | |
| # Protect files and directories from prying eyes. |
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="image-wrapper"><img src="<?php bloginfo ('url'); ?>/images/<?php | |
| $str = the_title_attribute('echo=0'); | |
| $str = strtolower($str); | |
| echo $str; ?>.jpg" /></div> | |
| <!--this is the convoluted way that you have to wrap a wordpress function in order to get it to output the proper value for strtolower to operate on--> |
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
| validates_format_of :email, | |
| :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, | |
| :message => 'email must be valid' |
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
| <%= t = Time.now | |
| t.strftime("%Y") %> |
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
| <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" | |
| codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1000" | |
| height="298"> | |
| <param name="movie" value="FILENAME.swf"> | |
| <param name="quality" value="high"> | |
| <embed src="FILENAME.swf" quality="high" | |
| pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" | |
| height="298"></embed> | |
| </object> |
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 | |
| // Quite far from bombproof, this script tries to shorten | |
| // the task of fixing UPPERCASE WEBSITE COPY. | |
| // It can only split sentences by periods at this time. | |
| // Oh, and remove the period at the end of the last sentence. | |
| $str = "MANY POTENTIAL CLIENTS LOOK TO OUR NETWORK OF ATTORNEY FOR HELP DURING THESE TROUBLING TIMES. INCREASE YOUR FIRMS BANKRUPTCY FILINGS BE WORKING WITH MOTIVATED CLIENTS LOOKING FOR ANSWERS THAT ONLY YOU CAN PROVIDE"; | |
| $str = strtolower($str); | |
| $array = explode(".", $str); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Demo: CSS drop-shadows without images – Nicolas Gallagher</title> | |
| <meta name="description" content="Using CSS pseudo-elements, box-shadows, and transforms to create drop-shadow effects without images from semantic HTML"> | |
| <link rel="canonical" href="/css-drop-shadows-without-images/demo/"> | |
| <style> | |
| body { |
OlderNewer