Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
| (function($){ | |
| $(function(){ | |
| var $form = $('#search'), // Search form | |
| $target = $('#results'), // Results container | |
| rp = 'search/ajax-results'; // Template for results only | |
| // Function to execute on success | |
| var success = function(data, status, xhr) { | |
| $target.html(data); | |
| }; |
I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
| // Include Color Thief Script | |
| // https://github.com/lokesh/color-thief | |
| function colorChange(){ | |
| //Be sure to include <img id="coverImage" src="" alt=""/> | |
| var $myImage = $("#coverImage"); | |
| var colorThief = new ColorThief(); | |
| //Grabs 8 swatch color palette from image and sets quality to 5 (0 =slow, 10=default/fast) | |
| var cp = colorThief.getPalette($myImage[0], 8, 5); |