<div class="ad-med-carousel">
<div class="ad-med-carousel-inner">
<div class="ad-med-curousel-item " data-ref='image1'>
<div class="ad-med-image" >
<img data-ref='srcimage1' src="" alt="" srcset="">
</div>
<div class="ad-med-car-info" data-ref='car-info1'>
Rich Mortons Glen
Burnie Lincoln Mercury
1
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
#!/bin/env node | |
var restify = require('restify'); | |
var port = process.env.NODE_PORT || 8081; | |
var ip = '127.0.0.1'; | |
//create servers | |
var server = restify.createServer(); | |
//create the handlers. | |
server.use(restify.CORS()); | |
server.use(restify.bodyParser({ mapParams: false })); |
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
'use strict'; | |
var q = require('q'); | |
var mock = require('./mock/inventoryMock.js'); | |
function findInventory (id) { | |
var promise = q.defer(); | |
if(id){ | |
var filter = mock.InventoryMock.inventory.filter( | |
function(item){ | |
return item.guid === id; |
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
'use strict'; | |
function InventoryMock() { | |
this.inventory = []; | |
} | |
exports.InventoryMock = new InventoryMock(); |
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 saveInventory = function(req, res) { | |
var body = req.body | |
console.log(body); | |
} | |
server.post('/inventory/:id', saveInventory); |
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
beforeEach(module(function($provide) { | |
angular.module('bento.modern', []); | |
angular.module('pascalprecht.translate', []) | |
.provider('$translate', function() { | |
var url = ''; | |
function useStaticFilesLoader(_url) { | |
url = _url; | |
} |
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 () { | |
'use strict'; | |
angular.module('ls2FrontEnd') | |
.factory('authTokenFactory', AuthToken); | |
AuthToken.$inject = ['$window', '$cookies']; | |
function AuthToken ($window, $cookies) { | |
var store = $window.sessionStorage; | |
var key = 'auth-token'; | |
var factory = { | |
getToken: getToken, |
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 () { | |
'use strict'; | |
angular.module('ls2FrontEnd') | |
.factory('USDLongTokenInterceptor', USDLongTokenInterceptor); | |
USDLongTokenInterceptor.$inject = ['authTokenFactory','$rootScope','$q']; | |
function USDLongTokenInterceptor (authTokenFactory, $rootScope, $q) { | |
var meaningOfLife = 42; | |
var factory = { | |
request: request, | |
// requestError: requestError, |
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 nextEvent(target,name) { | |
return new Promise(resolve => { | |
target.addEventListener(name, resolve, {once:true}); | |
}); | |
} |
OlderNewer