This file contains 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
const gulp = require('gulp'); | |
const glob = require('glob'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const source = require('vinyl-source-stream'); | |
const buffer = require('vinyl-buffer'); | |
const browserify = require('browserify'); | |
const watchify = require('watchify'); | |
const babel = require('babelify'); | |
function compile(watch) { |
This file contains 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
}); | |
// grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.registerTask('default', ['']); | |
}; |
This file contains 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
/** | |
* @function ajax | |
* @desc IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
* @param {string} url - The URL of the resource being requested | |
* @param {function} callback - Function to execute on successful response | |
* @param {mixed} data - Data to be sent with POST request | |
*/ | |
function ajax(url, callback, data) { | |
try { | |
var xhr = this.XMLHttpRequest || ActiveXObject, |