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
export const validateVin = value => { | |
if (value.length !== 17) return false | |
let chars = 'ABCDEFGHJKLMNPRSTUVWXYZ0123456789' | |
let nValue = new Array( | |
1, | |
2, | |
3, | |
4, | |
5, |
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
[ | |
"Alberta", | |
"British Columbia", | |
"Manitoba", | |
"New Brunswick", | |
"Newfoundland and Labrador", | |
"Northwest Territories", | |
"Nova Scotia", | |
"Nunavut", | |
"Ontario", |
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 polka = require('polka') | |
module.exports = polka() | |
.get('/', (req, res) => { | |
res.end('this is the api') | |
}) |
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 express = require('express') | |
const router = express.Router() | |
router.get('/', (req, res) => { | |
res.status(200).json({message: 'hello from api'}) | |
}) | |
module.exports = router |
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
Carolina LTV'ers | |
Great North East Travelers | |
Dixie Leisure Travelers | |
Southwest LTV Roadrunners | |
Leisurely Great Lakers | |
Heartland LTV'ers | |
Blue Ridge Leisures | |
Flamingles | |
Texoma Travelers | |
Midwest LTVers |
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
app.use((req, res, next) => { | |
res.header('Access-Control-Allow-Origin', '*') | |
res.header('Access-Control-Allow-Methods', 'GET,OPTIONS') | |
res.header('Access-Control-Allow-Headers', 'content-Type, X-Requested-With') | |
next() | |
}) |
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
app.use((req, res, next) => { | |
res.header('Access-Control-Allow-Origin', '*') | |
res.header('Access-Control-Allow-Methods', 'GET,OPTIONS') | |
res.header('Access-Control-Allow-Headers', 'content-Type, X-Requested-With') | |
next() | |
}) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$(document).ready(function() { | |
$('nav ul li').click(function(e) { // when clicking on the first level li | |
$('nav ul li div').removeClass('menu-is-visible'); // first remove the visible class any child div | |
$(this).children('div').addClass('menu-is-visible'); // then add the visible class to the current child div | |
}); | |
}); |
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
var gulp = require('gulp'), | |
uglify = require('gulp-uglify'), | |
watch = require('gulp-watch'), | |
notify = require('gulp-notify'), | |
browserSync = require('browser-sync').create() | |
sass = require('gulp-sass'), | |
neat = require('node-neat').includePaths; | |
var paths = { | |
scripts: ['_src/js/**/*.js', '!dist/js/**/*.js'], |
NewerOlder