This file contains hidden or 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(config) { | |
| var _ = require('lodash'); | |
| var express = require('express'); | |
| var router = express.Router(); | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| var pagespeed = require('../pagespeed'); | |
| __dirname = __dirname.replace('routes',''); |
This file contains hidden or 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
| angular.module('starter', ['ionic', 'starter.controllers']) | |
| .run(function($ionicPlatform) { | |
| $ionicPlatform.ready(function($cordovaStatusbar) { | |
| $cordovaStatusbar.overlaysWebView(true); | |
| // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard for form inputs) | |
| if (window.cordova && window.cordova.plugins.Keyboard) { | |
| cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
| } |
This file contains hidden or 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 loadPrices = function(url) { | |
| var popularHotels = document.querySelectorAll('.flex-card'); | |
| $.get(url, function(data) { | |
| var hotels = data; | |
| var map = {}; | |
| var foundHotels = []; | |
| _.each(popularHotels, function(hotel, index) { | |
| var id = hotel.dataset.hotel; |
This file contains hidden or 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 loadPrices = function(url) { | |
| var popularHotels = document.querySelectorAll('.flex-card'); | |
| $.get(url, function(data) { | |
| var hotels = data; | |
| var map = {}; | |
| var foundHotels = []; | |
| _.each(popularHotels, function(hotel, index) { | |
| var id = hotel.dataset.hotel; |
This file contains hidden or 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(config) { | |
| var _ = require('lodash'); | |
| var express = require('express'); | |
| var router = express.Router(); | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| var publicDir = __dirname + './public' |
This file contains hidden or 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 regions = { | |
| { | |
| title: "Cancun", | |
| id: "d179995, | |
| fullTitle: "Cancun, Quintana Roo", | |
| descriptionTitle: "Step back in time", | |
| descriptionBlurb: "Famed for its ancient origins as much as its current-day bustle, Cancun's Mayan Ruins take in striking architecture, spectacular art, and culturally diverse structures. Between the 1980s and the present, Cancun has transformed itself from a jungle village into a diverse holiday resort comprising ancient relics and sandy beaches, and providing a haven for water sports fanatics and beach holidaymakers alike leaving you with many options of things to do in Cancun while you are enjoying your vacation. Buttressing south-east Mexico's coastline, this part of the Yucatan Peninsula contrasts Caribbean-facing luxury hotels in Cancun with bars and restaurants overlooking the romantic Nichupte Lagoon. Stay at all inclusive hotels, pick a Cancun resort, or stay at one of the hotels on the beach where locals are ready to pamper you. Book y |
This file contains hidden or 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 app = angular.module('myApp', []).config(function($interpolateProvider){ | |
| // $interpolateProvider.startSymbol('{[{').endSymbol('}]}'); | |
| }); | |
| app.controller('AppController', ['$scope', function($scope) { | |
| $scope.timeline = [ | |
| { | |
| date: '' | |
| personName: '' | |
| profileUrl: '' |
This file contains hidden or 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 express = require('express'); | |
| var router = express.Router(); | |
| var db = require('../db'); | |
| var fs = require('fs'); | |
| var staff = require('../controllers/staff/index.js'); | |
| var user = db.users[0]; | |
| router.get('/', function(req, res, next) { |