Blame view
app/scripts/services/tshirt.js
5.17 KB
422e7837d
|
1 2 3 4 5 6 7 |
define(['app'], function (app) { 'use strict'; app.factory('$t_shirt', function ($http, $rootScope) { var DATA = [ { info: { |
3ca9f7356
|
8 |
name: 'T-Shirt 1', |
422e7837d
|
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
description: '', price: '', gender: '', image: '' }, place_design: {}, color: [ { name: 'color: 2E GRAY', code: '#d0d0cd', img: { front: 'images/t-shirt/1/gray/front.png', back: 'images/t-shirt/1/gray/back.png' }, }, { name: 'color: 00 BLACK', code: '#23282e', img: { front: 'images/t-shirt/1/black/front.png', back: 'images/t-shirt/1/black/back.png' }, }, { name: 'color: 3B ORANGE', code: '#e2583b', img: { front: 'images/t-shirt/1/orange/front.png', back: 'images/t-shirt/1/orange/back.png' }, } ] |
3ca9f7356
|
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
}, { info: { name: 'T-Shirt 2', description: '', price: '', gender: '', image: '' }, place_design: {}, color: [ { name: 'color:03 GRAY', code: '#b2b4b2', img: { front: 'images/t-shirt/2/gray/front.png', back: 'images/t-shirt/2/gray/back.png' }, }, { name: 'color:08 DARK GRAY', code: '#37383d', img: { front: 'images/t-shirt/2/darkgray/front.png', back: 'images/t-shirt/2/darkgray/back.png' }, }, { name: 'color:09 BLACK', code: '#292929', img: { front: 'images/t-shirt/2/black/front.png', back: 'images/t-shirt/2/black/back.png' }, }, { name: 'color:12 PINK', code: '#ca6965', img: { front: 'images/t-shirt/2/pink/front.png', back: 'images/t-shirt/2/pink/back.png' }, }, { name: 'color:18 WINE', code: '#661e2e', img: { front: 'images/t-shirt/2/wine/front.png', back: 'images/t-shirt/2/wine/back.png' }, }, { name: 'color:26 ORANGE', code: '#bf6037', img: { front: 'images/t-shirt/2/orange/front.png', back: 'images/t-shirt/2/orange/back.png' }, }, { name: 'color:57 OLIVE', code: '#4c442e', img: { front: 'images/t-shirt/2/olive/front.png', back: 'images/t-shirt/2/olive/back.png' }, }, { name: 'color:58 DARK GREEN', code: '#204344', img: { front: 'images/t-shirt/2/darkgreen/front.png', back: 'images/t-shirt/2/darkgreen/back.png' }, }, { name: 'color:69 NAVY', code: '#2a2d3c', img: { front: 'images/t-shirt/2/navi/front.png', back: 'images/t-shirt/2/navi/back.png' }, } ] } ]; |
422e7837d
|
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
return { getTShirtColor : function(key) { if (typeof DATA[key] == 'undefined'){ return []; } return DATA[key]['color']; }, getAll: function(){ return DATA; }, getList: function(category){ if (typeof DATA[category] == 'undefined'){ return []; } return DATA[category]; } }; }); }); |