npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
| var gulp = require('gulp'); | |
| var $ = require('gulp-load-plugins')(); | |
| var browserSync = require('browser-sync').create(); | |
| var sass = require('gulp-sass'); | |
| var reload = browserSync.reload; | |
| var sassPaths = [ | |
| 'bower_components/foundation-sites/scss', | |
| 'bower_components/motion-ui/src' |
| <?php | |
| // in functions.php | |
| add_theme_support( 'post-thumbnails'); | |
| /* | |
| Wordpress crop an image = 5 size. Sizes are given below | |
| thumbnail // Thumbnail (default 150px x 150px max) |
| /** | |
| * Use em or rem font-size in Bootstrap 3 | |
| */ | |
| @font-size-root: 14px; | |
| @font-unit: 0rem; // Pick em or rem here | |
| // Convert all variables to em |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <title>Google Maps Multiple Markers</title> | |
| <script src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
| <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.1.min.js"></script> | |
| </head> | |
| <body> | |
| <div id="map" style="width: 500px; height: 400px;"></div> |
| // easing functions http://goo.gl/5HLl8 | |
| Math.easeInOutQuad = function (t, b, c, d) { | |
| t /= d/2; | |
| if (t < 1) { | |
| return c/2*t*t + b | |
| } | |
| t--; | |
| return -c/2 * (t*(t-2) - 1) + b; | |
| }; |
| /* Contains general scripts that may be used in any page. | |
| * If this file starts to get large it can be split into page-specific files. */ | |
| /* The following code is the Garber-Irish implementation, a way to run relevant JavaScript on page-load | |
| * based on the MVC action that produced the page. It's an unobtrusive approach, which means that the | |
| * code to call the relevant JavaScript functions is all here instead of being hardcoded into the HTML. | |
| * All this code needs from the page is data-controller and data-action attributes on the body tag. | |
| * Since JavaScript is case-sensitive, the controller and action names we use here must be an exact match. | |
| * http://viget.com/inspire/extending-paul-irishs-comprehensive-dom-ready-execution */ |