The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| /* retina | |
| --------- */ | |
| if (window.devicePixelRatio > 1){ | |
| $(".retina").imagesLoaded(function(){ | |
| $(".retina").each(function(){ | |
| var src = $(this).attr("src").replace(".","@2x."); | |
| var h = $(this).height(); | |
| var w = $(this).width(); | |
| $(this).attr("src",src).css({height:h,width:'auto'}); | |
| }); |
| $(document).ready(function(){ | |
| function e(){ | |
| var e=$(window).height(); | |
| $(".banner").css("height",e) | |
| } | |
| e(),$(window).resize(e)}) |
| /* | |
| Wamp => SQL Console => Paste the code belwo | |
| */ | |
| SET PASSWORD FOR root@localhost=PASSWORD(''); |
| <?php | |
| /* | |
| DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED! | |
| */ | |
| ini_set( 'display_errors', 1 ); | |
| error_reporting( E_ALL ); | |
| $from = 'webmaster@example.com'; |
| /*http://good.co/*/ | |
| $(document).ready(function (){ | |
| // If menu item has classname "nav-no-click" then return false | |
| $('li.nav-no-click > a').click( function() { | |
| return false; | |
| }); | |
| $('#features-rotator-row').find('.features-rotator-item').each(function(index, element) { |
| <?php | |
| require_once "phpmailer/class.phpmailer.php"; | |
| //PHPMailer Object | |
| $mail = new PHPMailer; | |
| //From email address and name | |
| $mail->From = "from@yourdomain.com"; | |
| $mail->FromName = "Full Name"; |