dist folder
BIN
dist/cardWorkout/assets/back.png
vendored
Normal file
|
After Width: | Height: | Size: 525 KiB |
BIN
dist/cardWorkout/assets/c01.png
vendored
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
dist/cardWorkout/assets/c02.png
vendored
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
dist/cardWorkout/assets/c03.png
vendored
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
dist/cardWorkout/assets/c04.png
vendored
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
dist/cardWorkout/assets/c05.png
vendored
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
dist/cardWorkout/assets/c06.png
vendored
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
dist/cardWorkout/assets/c07.png
vendored
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
dist/cardWorkout/assets/c08.png
vendored
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
dist/cardWorkout/assets/c09.png
vendored
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
dist/cardWorkout/assets/c10.png
vendored
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
dist/cardWorkout/assets/c11.png
vendored
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
dist/cardWorkout/assets/c12.png
vendored
Normal file
|
After Width: | Height: | Size: 173 KiB |
BIN
dist/cardWorkout/assets/c13.png
vendored
Normal file
|
After Width: | Height: | Size: 171 KiB |
BIN
dist/cardWorkout/assets/d01.png
vendored
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
dist/cardWorkout/assets/d02.png
vendored
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
dist/cardWorkout/assets/d03.png
vendored
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
dist/cardWorkout/assets/d04.png
vendored
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
dist/cardWorkout/assets/d05.png
vendored
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
dist/cardWorkout/assets/d06.png
vendored
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
dist/cardWorkout/assets/d07.png
vendored
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
dist/cardWorkout/assets/d08.png
vendored
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
dist/cardWorkout/assets/d09.png
vendored
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
dist/cardWorkout/assets/d10.png
vendored
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
dist/cardWorkout/assets/d11.png
vendored
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
dist/cardWorkout/assets/d12.png
vendored
Normal file
|
After Width: | Height: | Size: 170 KiB |
BIN
dist/cardWorkout/assets/d13.png
vendored
Normal file
|
After Width: | Height: | Size: 167 KiB |
BIN
dist/cardWorkout/assets/h01.png
vendored
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
dist/cardWorkout/assets/h02.png
vendored
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
dist/cardWorkout/assets/h03.png
vendored
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
dist/cardWorkout/assets/h04.png
vendored
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
dist/cardWorkout/assets/h05.png
vendored
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
dist/cardWorkout/assets/h06.png
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
dist/cardWorkout/assets/h07.png
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
dist/cardWorkout/assets/h08.png
vendored
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
dist/cardWorkout/assets/h09.png
vendored
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
dist/cardWorkout/assets/h10.png
vendored
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
dist/cardWorkout/assets/h11.png
vendored
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
dist/cardWorkout/assets/h12.png
vendored
Normal file
|
After Width: | Height: | Size: 171 KiB |
BIN
dist/cardWorkout/assets/h13.png
vendored
Normal file
|
After Width: | Height: | Size: 170 KiB |
BIN
dist/cardWorkout/assets/s01.png
vendored
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
dist/cardWorkout/assets/s02.png
vendored
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
dist/cardWorkout/assets/s03.png
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
dist/cardWorkout/assets/s04.png
vendored
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
dist/cardWorkout/assets/s05.png
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
dist/cardWorkout/assets/s06.png
vendored
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
dist/cardWorkout/assets/s07.png
vendored
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
dist/cardWorkout/assets/s08.png
vendored
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
dist/cardWorkout/assets/s09.png
vendored
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
dist/cardWorkout/assets/s10.png
vendored
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
dist/cardWorkout/assets/s11.png
vendored
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
dist/cardWorkout/assets/s12.png
vendored
Normal file
|
After Width: | Height: | Size: 171 KiB |
BIN
dist/cardWorkout/assets/s13.png
vendored
Normal file
|
After Width: | Height: | Size: 170 KiB |
BIN
dist/cardWorkout/favicon.ico
vendored
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
28
dist/cardWorkout/index.html
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
||||
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
||||
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
|
||||
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
|
||||
crossorigin="anonymous"></script>
|
||||
<meta charset="utf-8">
|
||||
<title>CardWorkout</title>
|
||||
<base href="/">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
<script src="runtime-es2015.js" type="module"></script><script src="polyfills-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="main-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es5.js" nomodule defer></script></body>
|
||||
|
||||
</html>
|
||||
449
dist/cardWorkout/main-es2015.js
vendored
Normal file
@@ -0,0 +1,449 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
|
||||
|
||||
/***/ "./$$_lazy_route_resource lazy recursive":
|
||||
/*!******************************************************!*\
|
||||
!*** ./$$_lazy_route_resource lazy namespace object ***!
|
||||
\******************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
function webpackEmptyAsyncContext(req) {
|
||||
// Here Promise.resolve().then() is used instead of new Promise() to prevent
|
||||
// uncaught exception popping up in devtools
|
||||
return Promise.resolve().then(function() {
|
||||
var e = new Error("Cannot find module '" + req + "'");
|
||||
e.code = 'MODULE_NOT_FOUND';
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
webpackEmptyAsyncContext.keys = function() { return []; };
|
||||
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
||||
module.exports = webpackEmptyAsyncContext;
|
||||
webpackEmptyAsyncContext.id = "./$$_lazy_route_resource lazy recursive";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/index.js!./src/app/app.component.html":
|
||||
/*!**************************************************************!*\
|
||||
!*** ./node_modules/raw-loader!./src/app/app.component.html ***!
|
||||
\**************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "<main></main>"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/index.js!./src/app/components/card/card.component.html":
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader!./src/app/components/card/card.component.html ***!
|
||||
\*******************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "<!-- <img class=\"margins\" *ngIf=\"!flipped\" (click)=\"flipCard()\" src=\"../../../assets/back.png\" width=\"161\" height=\"225\"> -->\n<img class=\"margins\" src=\"../../../assets/{{fileString}}.png\" width=\"161\" height=\"225\">"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/index.js!./src/app/components/main/main.component.html":
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader!./src/app/components/main/main.component.html ***!
|
||||
\*******************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "<div class=\"container\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n Card Workout!\n </div>\n <div class=\"card-body\">\n <div class=\"form-group\">\n <label for=\"numCards\">Number of cards</label>\n <input type=\"number\" class=\"form-control\" id=\"numCards\" [(ngModel)]=\"numCards\">\n </div>\n <button href=\"#\" class=\"btn btn-primary\" (click)=\"createCards()\">Submit</button>\n <button style=\"margin-left: 1em\" href=\"#\" class=\"btn btn-danger\" (click)=\"resetCards()\">Reset</button>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"workoutDeck && showCards\" class=\"container\">\n <div class=\"row\">\n <!-- Previous card -->\n <div class=\"col\">\n <div class=\"alert alert-danger\" role=\"alert\">\n Previous Card\n </div>\n </div>\n <!-- Current card -->\n <div class=\"col\">\n <div class=\"alert alert-success\" role=\"alert\">\n Current Card\n </div>\n </div>\n <!-- Exercise info -->\n <div class=\"col\">\n <div class=\"alert alert-success\" role=\"alert\">\n Current Exercise\n </div>\n </div>\n </div>\n <div class=\"row\">\n <!-- Previous card -->\n <div class=\"col center\">\n <card *ngIf=\"previousCardNumber > -1\" class=\"\" [number]=\"workoutDeck[previousCardNumber].value\" [suit]=\"workoutDeck[previousCardNumber].suit\"\n (cardEmitter)=\"displayExercise($event)\" (click)=\"decrementCardCounter()\"></card>\n </div>\n <!-- Current card -->\n <div class=\"col center\">\n <card *ngIf=\"currentCardNumber < workoutDeck.length\" class=\"\" [number]=\"workoutDeck[currentCardNumber].value\" \n [suit]=\"workoutDeck[currentCardNumber].suit\" (click)=\"incrementCardCounter()\"></card>\n </div>\n <!-- Exercise info -->\n <div class=\"col center\">\n <div *ngIf=\"exercise && reps\" class=\"card sticky-card\">\n <div class=\"card-body\">\n <h5 class=\"card-title\">{{exercise}}</h5>\n <p class=\"card-text\">{{reps}} reps</p>\n </div>\n </div>\n </div>\n </div>\n</div>"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.component.css":
|
||||
/*!***********************************!*\
|
||||
!*** ./src/app/app.component.css ***!
|
||||
\***********************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuY3NzIn0= */"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.component.ts":
|
||||
/*!**********************************!*\
|
||||
!*** ./src/app/app.component.ts ***!
|
||||
\**********************************/
|
||||
/*! exports provided: AppComponent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
|
||||
|
||||
|
||||
let AppComponent = class AppComponent {
|
||||
constructor() {
|
||||
this.title = 'cardWorkout';
|
||||
}
|
||||
};
|
||||
AppComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-root',
|
||||
template: __webpack_require__(/*! raw-loader!./app.component.html */ "./node_modules/raw-loader/index.js!./src/app/app.component.html"),
|
||||
styles: [__webpack_require__(/*! ./app.component.css */ "./src/app/app.component.css")]
|
||||
})
|
||||
], AppComponent);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.module.ts":
|
||||
/*!*******************************!*\
|
||||
!*** ./src/app/app.module.ts ***!
|
||||
\*******************************/
|
||||
/*! exports provided: AppModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm2015/platform-browser.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm2015/forms.js");
|
||||
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
|
||||
/* harmony import */ var _components_main_main_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/main/main.component */ "./src/app/components/main/main.component.ts");
|
||||
/* harmony import */ var _components_card_card_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/card/card.component */ "./src/app/components/card/card.component.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let AppModule = class AppModule {
|
||||
};
|
||||
AppModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({
|
||||
declarations: [
|
||||
_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"],
|
||||
_components_main_main_component__WEBPACK_IMPORTED_MODULE_5__["MainComponent"],
|
||||
_components_card_card_component__WEBPACK_IMPORTED_MODULE_6__["CardComponent"],
|
||||
],
|
||||
imports: [
|
||||
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["ReactiveFormsModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"]
|
||||
],
|
||||
providers: [],
|
||||
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]]
|
||||
})
|
||||
], AppModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/card/card.component.css":
|
||||
/*!****************************************************!*\
|
||||
!*** ./src/app/components/card/card.component.css ***!
|
||||
\****************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = ".margins {\r\n margin: 12px;\r\n}\r\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9jYXJkL2NhcmQuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLFlBQVk7QUFDaEIiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2NhcmQvY2FyZC5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1hcmdpbnMge1xyXG4gICAgbWFyZ2luOiAxMnB4O1xyXG59Il19 */"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/card/card.component.ts":
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/app/components/card/card.component.ts ***!
|
||||
\***************************************************/
|
||||
/*! exports provided: CardComponent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardComponent", function() { return CardComponent; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
|
||||
|
||||
|
||||
|
||||
let CardComponent = class CardComponent {
|
||||
constructor(changeDetector) {
|
||||
this.changeDetector = changeDetector;
|
||||
this.cardEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
|
||||
}
|
||||
ngOnInit() {
|
||||
console.log(this.number);
|
||||
if (this.number < 10) {
|
||||
this.fileString = this.suit + '0' + this.number;
|
||||
}
|
||||
if (this.number >= 10) {
|
||||
this.fileString = this.suit + this.number;
|
||||
}
|
||||
}
|
||||
ngOnChanges(changes) {
|
||||
//Called before any other lifecycle hook. Use it to inject dependencies, but avoid any serious work here.
|
||||
//Add '${implements OnChanges}' to the class.
|
||||
this.ngOnInit();
|
||||
this.changeDetector.detectChanges();
|
||||
}
|
||||
};
|
||||
CardComponent.ctorParameters = () => [
|
||||
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }
|
||||
];
|
||||
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
|
||||
], CardComponent.prototype, "number", void 0);
|
||||
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
|
||||
], CardComponent.prototype, "suit", void 0);
|
||||
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
|
||||
], CardComponent.prototype, "cardEmitter", void 0);
|
||||
CardComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'card',
|
||||
template: __webpack_require__(/*! raw-loader!./card.component.html */ "./node_modules/raw-loader/index.js!./src/app/components/card/card.component.html"),
|
||||
styles: [__webpack_require__(/*! ./card.component.css */ "./src/app/components/card/card.component.css")]
|
||||
})
|
||||
], CardComponent);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/main/exercises.json":
|
||||
/*!************************************************!*\
|
||||
!*** ./src/app/components/main/exercises.json ***!
|
||||
\************************************************/
|
||||
/*! exports provided: c, d, h, s, default */
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = JSON.parse("{\"c\":[\"Pull Up\",\"Table/Desk Inverted Row\",\"Rear Delt Fly (Dumbbell or Milk Jug\",\"Upright Row (Backpack or Milk Jug)\"],\"d\":[\"Bicep Curl\",\"Skullcrushers (on a table) or Close Grip Pus-Ups\",\"Bicycle Crunch or Reverse Crunch\",\"Standing Calf Raise\"],\"h\":[\"Walking Lunge (Dumbbell or backpack to load)\",\"Bulgarian Split Squat\",\"Single Leg Hip Thrust\",\"Nordic Ham Curl\"],\"s\":[\"Push-Up or Incline Push-Up\",\"Pike Push-Up or Vertical Push-Up\",\"Standing Press (Milk jug or dumbbells)\",\"Milk Jug Lateral Raise or Doorway Lateral Raise (for time)\"]}");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/main/main.component.css":
|
||||
/*!****************************************************!*\
|
||||
!*** ./src/app/components/main/main.component.css ***!
|
||||
\****************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = ".container {\r\n margin-top: 2em;\r\n}\r\n\r\n.alert {\r\n text-align: center;\r\n}\r\n\r\n.center {\r\n display: flex;\r\n justify-content: center; \r\n}\r\n\r\n.sticky-card {\r\n max-height: 50%;\r\n width: 100%;\r\n}\r\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9tYWluL21haW4uY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLGVBQWU7QUFDbkI7O0FBRUE7SUFDSSxrQkFBa0I7QUFDdEI7O0FBRUE7SUFDSSxhQUFhO0lBQ2IsdUJBQXVCO0FBQzNCOztBQUNBO0lBQ0ksZUFBZTtJQUNmLFdBQVc7QUFDZiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbWFpbi9tYWluLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGFpbmVyIHtcclxuICAgIG1hcmdpbi10b3A6IDJlbTtcclxufVxyXG5cclxuLmFsZXJ0IHtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxufVxyXG5cclxuLmNlbnRlciB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7ICAgIFxyXG59XHJcbi5zdGlja3ktY2FyZCB7XHJcbiAgICBtYXgtaGVpZ2h0OiA1MCU7XHJcbiAgICB3aWR0aDogMTAwJTtcclxufSJdfQ== */"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/main/main.component.ts":
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/app/components/main/main.component.ts ***!
|
||||
\***************************************************/
|
||||
/*! exports provided: MainComponent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MainComponent", function() { return MainComponent; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
|
||||
|
||||
|
||||
let MainComponent = class MainComponent {
|
||||
constructor(changeDetector) {
|
||||
this.changeDetector = changeDetector;
|
||||
this.numCards = 20;
|
||||
this.previousCardNumber = -1;
|
||||
this.currentCardNumber = 0;
|
||||
this.defaultCardNumber = 20;
|
||||
this.suits = ['s', 'd', 'c', 'h'];
|
||||
this.values = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13'];
|
||||
this.exercisesJson = __webpack_require__(/*! ./exercises.json */ "./src/app/components/main/exercises.json");
|
||||
this.cCounter = 0;
|
||||
this.dCounter = 0;
|
||||
this.hCounter = 0;
|
||||
this.sCounter = 0;
|
||||
}
|
||||
ngOnInit() {
|
||||
this.deck = this.createDeck();
|
||||
this.shuffleDeck(this.deck);
|
||||
}
|
||||
createCards() {
|
||||
this.showCards = true;
|
||||
this.workoutDeck = this.deck.slice(0, this.numCards);
|
||||
this.displayExercise();
|
||||
}
|
||||
resetCards() {
|
||||
this.showCards = false;
|
||||
this.deck = undefined;
|
||||
this.deck = this.createDeck();
|
||||
this.shuffleDeck(this.deck);
|
||||
this.workoutDeck = this.deck.slice(0, this.numCards);
|
||||
this.showCards = true;
|
||||
this.reps = undefined;
|
||||
this.rest = false;
|
||||
this.exercise = undefined;
|
||||
this.currentCardNumber = 0;
|
||||
this.previousCardNumber = -1;
|
||||
}
|
||||
createDeck() {
|
||||
let deck = new Array();
|
||||
let card;
|
||||
for (let i = 0; i < this.suits.length; i++) {
|
||||
for (let n = 0; n < this.values.length; n++) {
|
||||
card = { value: this.values[n], suit: this.suits[i] };
|
||||
deck.push(card);
|
||||
}
|
||||
}
|
||||
return deck;
|
||||
}
|
||||
shuffleDeck(deck) {
|
||||
let location1;
|
||||
let location2;
|
||||
let temp;
|
||||
for (let i = 0; i < 2000; i++) {
|
||||
location1 = Math.floor((Math.random() * deck.length));
|
||||
location2 = Math.floor((Math.random() * deck.length));
|
||||
temp = deck[location1];
|
||||
deck[location1] = deck[location2];
|
||||
deck[location2] = temp;
|
||||
}
|
||||
}
|
||||
displayExercise() {
|
||||
const currentCard = this.workoutDeck[this.currentCardNumber];
|
||||
console.log(currentCard);
|
||||
if (currentCard.value !== 1) {
|
||||
this.rest = undefined;
|
||||
this.reps = Number(currentCard.value) + 10;
|
||||
if (currentCard.suit === 'c') {
|
||||
this.exercise = this.exercisesJson.c[this.cCounter];
|
||||
this.cCounter += 1;
|
||||
}
|
||||
else if (currentCard.suit === 'd') {
|
||||
this.exercise = this.exercisesJson.d[this.dCounter];
|
||||
this.dCounter += 1;
|
||||
}
|
||||
else if (currentCard.suit === 'h') {
|
||||
this.exercise = this.exercisesJson.h[this.hCounter];
|
||||
this.hCounter += 1;
|
||||
}
|
||||
else if (currentCard.suit === 's') {
|
||||
this.exercise = this.exercisesJson.s[this.sCounter];
|
||||
this.sCounter += 1;
|
||||
}
|
||||
if (this.cCounter > 3) {
|
||||
this.cCounter = 0;
|
||||
}
|
||||
else if (this.dCounter > 3) {
|
||||
this.dCounter = 0;
|
||||
}
|
||||
else if (this.hCounter > 3) {
|
||||
this.hCounter = 0;
|
||||
}
|
||||
else if (this.sCounter > 3) {
|
||||
this.sCounter = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.exercise = undefined;
|
||||
this.reps = undefined;
|
||||
this.rest = true;
|
||||
}
|
||||
}
|
||||
incrementCardCounter() {
|
||||
this.displayExercise();
|
||||
this.currentCardNumber += 1;
|
||||
this.previousCardNumber += 1;
|
||||
}
|
||||
decrementCardCounter() {
|
||||
this.displayExercise();
|
||||
this.currentCardNumber -= 1;
|
||||
this.previousCardNumber -= 1;
|
||||
}
|
||||
};
|
||||
MainComponent.ctorParameters = () => [
|
||||
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }
|
||||
];
|
||||
MainComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'main',
|
||||
template: __webpack_require__(/*! raw-loader!./main.component.html */ "./node_modules/raw-loader/index.js!./src/app/components/main/main.component.html"),
|
||||
styles: [__webpack_require__(/*! ./main.component.css */ "./src/app/components/main/main.component.css")]
|
||||
})
|
||||
], MainComponent);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/environments/environment.ts":
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/environments/environment.ts ***!
|
||||
\*****************************************/
|
||||
/*! exports provided: environment */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
|
||||
// This file can be replaced during build by using the `fileReplacements` array.
|
||||
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
const environment = {
|
||||
production: false
|
||||
};
|
||||
/*
|
||||
* For easier debugging in development mode, you can import the following file
|
||||
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
||||
*
|
||||
* This import should be commented out in production mode because it will have a negative impact
|
||||
* on performance if an error is thrown.
|
||||
*/
|
||||
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/main.ts":
|
||||
/*!*********************!*\
|
||||
!*** ./src/main.ts ***!
|
||||
\*********************/
|
||||
/*! no exports provided */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm2015/platform-browser-dynamic.js");
|
||||
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
|
||||
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) {
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
|
||||
}
|
||||
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
|
||||
.catch(err => console.error(err));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 0:
|
||||
/*!***************************!*\
|
||||
!*** multi ./src/main.ts ***!
|
||||
\***************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! C:\Users\Will\Documents\Coding\cardWorkout\src\main.ts */"./src/main.ts");
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[0,"runtime","vendor"]]]);
|
||||
//# sourceMappingURL=main-es2015.js.map
|
||||
1
dist/cardWorkout/main-es2015.js.map
vendored
Normal file
455
dist/cardWorkout/main-es5.js
vendored
Normal file
@@ -0,0 +1,455 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
|
||||
|
||||
/***/ "./$$_lazy_route_resource lazy recursive":
|
||||
/*!******************************************************!*\
|
||||
!*** ./$$_lazy_route_resource lazy namespace object ***!
|
||||
\******************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
function webpackEmptyAsyncContext(req) {
|
||||
// Here Promise.resolve().then() is used instead of new Promise() to prevent
|
||||
// uncaught exception popping up in devtools
|
||||
return Promise.resolve().then(function() {
|
||||
var e = new Error("Cannot find module '" + req + "'");
|
||||
e.code = 'MODULE_NOT_FOUND';
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
webpackEmptyAsyncContext.keys = function() { return []; };
|
||||
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
||||
module.exports = webpackEmptyAsyncContext;
|
||||
webpackEmptyAsyncContext.id = "./$$_lazy_route_resource lazy recursive";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/index.js!./src/app/app.component.html":
|
||||
/*!**************************************************************!*\
|
||||
!*** ./node_modules/raw-loader!./src/app/app.component.html ***!
|
||||
\**************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "<main></main>"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/index.js!./src/app/components/card/card.component.html":
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader!./src/app/components/card/card.component.html ***!
|
||||
\*******************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "<!-- <img class=\"margins\" *ngIf=\"!flipped\" (click)=\"flipCard()\" src=\"../../../assets/back.png\" width=\"161\" height=\"225\"> -->\n<img class=\"margins\" src=\"../../../assets/{{fileString}}.png\" width=\"161\" height=\"225\">"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/index.js!./src/app/components/main/main.component.html":
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader!./src/app/components/main/main.component.html ***!
|
||||
\*******************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "<div class=\"container\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"card\">\n <div class=\"card-header\">\n Card Workout!\n </div>\n <div class=\"card-body\">\n <div class=\"form-group\">\n <label for=\"numCards\">Number of cards</label>\n <input type=\"number\" class=\"form-control\" id=\"numCards\" [(ngModel)]=\"numCards\">\n </div>\n <button href=\"#\" class=\"btn btn-primary\" (click)=\"createCards()\">Submit</button>\n <button style=\"margin-left: 1em\" href=\"#\" class=\"btn btn-danger\" (click)=\"resetCards()\">Reset</button>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"workoutDeck && showCards\" class=\"container\">\n <div class=\"row\">\n <!-- Previous card -->\n <div class=\"col\">\n <div class=\"alert alert-danger\" role=\"alert\">\n Previous Card\n </div>\n </div>\n <!-- Current card -->\n <div class=\"col\">\n <div class=\"alert alert-success\" role=\"alert\">\n Current Card\n </div>\n </div>\n <!-- Exercise info -->\n <div class=\"col\">\n <div class=\"alert alert-success\" role=\"alert\">\n Current Exercise\n </div>\n </div>\n </div>\n <div class=\"row\">\n <!-- Previous card -->\n <div class=\"col center\">\n <card *ngIf=\"previousCardNumber > -1\" class=\"\" [number]=\"workoutDeck[previousCardNumber].value\" [suit]=\"workoutDeck[previousCardNumber].suit\"\n (cardEmitter)=\"displayExercise($event)\" (click)=\"decrementCardCounter()\"></card>\n </div>\n <!-- Current card -->\n <div class=\"col center\">\n <card *ngIf=\"currentCardNumber < workoutDeck.length\" class=\"\" [number]=\"workoutDeck[currentCardNumber].value\" \n [suit]=\"workoutDeck[currentCardNumber].suit\" (click)=\"incrementCardCounter()\"></card>\n </div>\n <!-- Exercise info -->\n <div class=\"col center\">\n <div *ngIf=\"exercise && reps\" class=\"card sticky-card\">\n <div class=\"card-body\">\n <h5 class=\"card-title\">{{exercise}}</h5>\n <p class=\"card-text\">{{reps}} reps</p>\n </div>\n </div>\n </div>\n </div>\n</div>"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.component.css":
|
||||
/*!***********************************!*\
|
||||
!*** ./src/app/app.component.css ***!
|
||||
\***********************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuY3NzIn0= */"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.component.ts":
|
||||
/*!**********************************!*\
|
||||
!*** ./src/app/app.component.ts ***!
|
||||
\**********************************/
|
||||
/*! exports provided: AppComponent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
||||
|
||||
|
||||
var AppComponent = /** @class */ (function () {
|
||||
function AppComponent() {
|
||||
this.title = 'cardWorkout';
|
||||
}
|
||||
AppComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-root',
|
||||
template: __webpack_require__(/*! raw-loader!./app.component.html */ "./node_modules/raw-loader/index.js!./src/app/app.component.html"),
|
||||
styles: [__webpack_require__(/*! ./app.component.css */ "./src/app/app.component.css")]
|
||||
})
|
||||
], AppComponent);
|
||||
return AppComponent;
|
||||
}());
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.module.ts":
|
||||
/*!*******************************!*\
|
||||
!*** ./src/app/app.module.ts ***!
|
||||
\*******************************/
|
||||
/*! exports provided: AppModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
||||
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
|
||||
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
|
||||
/* harmony import */ var _components_main_main_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/main/main.component */ "./src/app/components/main/main.component.ts");
|
||||
/* harmony import */ var _components_card_card_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/card/card.component */ "./src/app/components/card/card.component.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var AppModule = /** @class */ (function () {
|
||||
function AppModule() {
|
||||
}
|
||||
AppModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({
|
||||
declarations: [
|
||||
_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"],
|
||||
_components_main_main_component__WEBPACK_IMPORTED_MODULE_5__["MainComponent"],
|
||||
_components_card_card_component__WEBPACK_IMPORTED_MODULE_6__["CardComponent"],
|
||||
],
|
||||
imports: [
|
||||
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["ReactiveFormsModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"]
|
||||
],
|
||||
providers: [],
|
||||
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]]
|
||||
})
|
||||
], AppModule);
|
||||
return AppModule;
|
||||
}());
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/card/card.component.css":
|
||||
/*!****************************************************!*\
|
||||
!*** ./src/app/components/card/card.component.css ***!
|
||||
\****************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = ".margins {\r\n margin: 12px;\r\n}\r\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9jYXJkL2NhcmQuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLFlBQVk7QUFDaEIiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2NhcmQvY2FyZC5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1hcmdpbnMge1xyXG4gICAgbWFyZ2luOiAxMnB4O1xyXG59Il19 */"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/card/card.component.ts":
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/app/components/card/card.component.ts ***!
|
||||
\***************************************************/
|
||||
/*! exports provided: CardComponent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardComponent", function() { return CardComponent; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
||||
|
||||
|
||||
|
||||
var CardComponent = /** @class */ (function () {
|
||||
function CardComponent(changeDetector) {
|
||||
this.changeDetector = changeDetector;
|
||||
this.cardEmitter = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
|
||||
}
|
||||
CardComponent.prototype.ngOnInit = function () {
|
||||
console.log(this.number);
|
||||
if (this.number < 10) {
|
||||
this.fileString = this.suit + '0' + this.number;
|
||||
}
|
||||
if (this.number >= 10) {
|
||||
this.fileString = this.suit + this.number;
|
||||
}
|
||||
};
|
||||
CardComponent.prototype.ngOnChanges = function (changes) {
|
||||
//Called before any other lifecycle hook. Use it to inject dependencies, but avoid any serious work here.
|
||||
//Add '${implements OnChanges}' to the class.
|
||||
this.ngOnInit();
|
||||
this.changeDetector.detectChanges();
|
||||
};
|
||||
CardComponent.ctorParameters = function () { return [
|
||||
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }
|
||||
]; };
|
||||
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
|
||||
], CardComponent.prototype, "number", void 0);
|
||||
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
|
||||
], CardComponent.prototype, "suit", void 0);
|
||||
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
|
||||
], CardComponent.prototype, "cardEmitter", void 0);
|
||||
CardComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'card',
|
||||
template: __webpack_require__(/*! raw-loader!./card.component.html */ "./node_modules/raw-loader/index.js!./src/app/components/card/card.component.html"),
|
||||
styles: [__webpack_require__(/*! ./card.component.css */ "./src/app/components/card/card.component.css")]
|
||||
})
|
||||
], CardComponent);
|
||||
return CardComponent;
|
||||
}());
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/main/exercises.json":
|
||||
/*!************************************************!*\
|
||||
!*** ./src/app/components/main/exercises.json ***!
|
||||
\************************************************/
|
||||
/*! exports provided: c, d, h, s, default */
|
||||
/***/ (function(module) {
|
||||
|
||||
module.exports = JSON.parse("{\"c\":[\"Pull Up\",\"Table/Desk Inverted Row\",\"Rear Delt Fly (Dumbbell or Milk Jug\",\"Upright Row (Backpack or Milk Jug)\"],\"d\":[\"Bicep Curl\",\"Skullcrushers (on a table) or Close Grip Pus-Ups\",\"Bicycle Crunch or Reverse Crunch\",\"Standing Calf Raise\"],\"h\":[\"Walking Lunge (Dumbbell or backpack to load)\",\"Bulgarian Split Squat\",\"Single Leg Hip Thrust\",\"Nordic Ham Curl\"],\"s\":[\"Push-Up or Incline Push-Up\",\"Pike Push-Up or Vertical Push-Up\",\"Standing Press (Milk jug or dumbbells)\",\"Milk Jug Lateral Raise or Doorway Lateral Raise (for time)\"]}");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/main/main.component.css":
|
||||
/*!****************************************************!*\
|
||||
!*** ./src/app/components/main/main.component.css ***!
|
||||
\****************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = ".container {\r\n margin-top: 2em;\r\n}\r\n\r\n.alert {\r\n text-align: center;\r\n}\r\n\r\n.center {\r\n display: flex;\r\n justify-content: center; \r\n}\r\n\r\n.sticky-card {\r\n max-height: 50%;\r\n width: 100%;\r\n}\r\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9tYWluL21haW4uY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLGVBQWU7QUFDbkI7O0FBRUE7SUFDSSxrQkFBa0I7QUFDdEI7O0FBRUE7SUFDSSxhQUFhO0lBQ2IsdUJBQXVCO0FBQzNCOztBQUNBO0lBQ0ksZUFBZTtJQUNmLFdBQVc7QUFDZiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbWFpbi9tYWluLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGFpbmVyIHtcclxuICAgIG1hcmdpbi10b3A6IDJlbTtcclxufVxyXG5cclxuLmFsZXJ0IHtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxufVxyXG5cclxuLmNlbnRlciB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7ICAgIFxyXG59XHJcbi5zdGlja3ktY2FyZCB7XHJcbiAgICBtYXgtaGVpZ2h0OiA1MCU7XHJcbiAgICB3aWR0aDogMTAwJTtcclxufSJdfQ== */"
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/components/main/main.component.ts":
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/app/components/main/main.component.ts ***!
|
||||
\***************************************************/
|
||||
/*! exports provided: MainComponent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MainComponent", function() { return MainComponent; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
||||
|
||||
|
||||
var MainComponent = /** @class */ (function () {
|
||||
function MainComponent(changeDetector) {
|
||||
this.changeDetector = changeDetector;
|
||||
this.numCards = 20;
|
||||
this.previousCardNumber = -1;
|
||||
this.currentCardNumber = 0;
|
||||
this.defaultCardNumber = 20;
|
||||
this.suits = ['s', 'd', 'c', 'h'];
|
||||
this.values = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13'];
|
||||
this.exercisesJson = __webpack_require__(/*! ./exercises.json */ "./src/app/components/main/exercises.json");
|
||||
this.cCounter = 0;
|
||||
this.dCounter = 0;
|
||||
this.hCounter = 0;
|
||||
this.sCounter = 0;
|
||||
}
|
||||
MainComponent.prototype.ngOnInit = function () {
|
||||
this.deck = this.createDeck();
|
||||
this.shuffleDeck(this.deck);
|
||||
};
|
||||
MainComponent.prototype.createCards = function () {
|
||||
this.showCards = true;
|
||||
this.workoutDeck = this.deck.slice(0, this.numCards);
|
||||
this.displayExercise();
|
||||
};
|
||||
MainComponent.prototype.resetCards = function () {
|
||||
this.showCards = false;
|
||||
this.deck = undefined;
|
||||
this.deck = this.createDeck();
|
||||
this.shuffleDeck(this.deck);
|
||||
this.workoutDeck = this.deck.slice(0, this.numCards);
|
||||
this.showCards = true;
|
||||
this.reps = undefined;
|
||||
this.rest = false;
|
||||
this.exercise = undefined;
|
||||
this.currentCardNumber = 0;
|
||||
this.previousCardNumber = -1;
|
||||
};
|
||||
MainComponent.prototype.createDeck = function () {
|
||||
var deck = new Array();
|
||||
var card;
|
||||
for (var i = 0; i < this.suits.length; i++) {
|
||||
for (var n = 0; n < this.values.length; n++) {
|
||||
card = { value: this.values[n], suit: this.suits[i] };
|
||||
deck.push(card);
|
||||
}
|
||||
}
|
||||
return deck;
|
||||
};
|
||||
MainComponent.prototype.shuffleDeck = function (deck) {
|
||||
var location1;
|
||||
var location2;
|
||||
var temp;
|
||||
for (var i = 0; i < 2000; i++) {
|
||||
location1 = Math.floor((Math.random() * deck.length));
|
||||
location2 = Math.floor((Math.random() * deck.length));
|
||||
temp = deck[location1];
|
||||
deck[location1] = deck[location2];
|
||||
deck[location2] = temp;
|
||||
}
|
||||
};
|
||||
MainComponent.prototype.displayExercise = function () {
|
||||
var currentCard = this.workoutDeck[this.currentCardNumber];
|
||||
console.log(currentCard);
|
||||
if (currentCard.value !== 1) {
|
||||
this.rest = undefined;
|
||||
this.reps = Number(currentCard.value) + 10;
|
||||
if (currentCard.suit === 'c') {
|
||||
this.exercise = this.exercisesJson.c[this.cCounter];
|
||||
this.cCounter += 1;
|
||||
}
|
||||
else if (currentCard.suit === 'd') {
|
||||
this.exercise = this.exercisesJson.d[this.dCounter];
|
||||
this.dCounter += 1;
|
||||
}
|
||||
else if (currentCard.suit === 'h') {
|
||||
this.exercise = this.exercisesJson.h[this.hCounter];
|
||||
this.hCounter += 1;
|
||||
}
|
||||
else if (currentCard.suit === 's') {
|
||||
this.exercise = this.exercisesJson.s[this.sCounter];
|
||||
this.sCounter += 1;
|
||||
}
|
||||
if (this.cCounter > 3) {
|
||||
this.cCounter = 0;
|
||||
}
|
||||
else if (this.dCounter > 3) {
|
||||
this.dCounter = 0;
|
||||
}
|
||||
else if (this.hCounter > 3) {
|
||||
this.hCounter = 0;
|
||||
}
|
||||
else if (this.sCounter > 3) {
|
||||
this.sCounter = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.exercise = undefined;
|
||||
this.reps = undefined;
|
||||
this.rest = true;
|
||||
}
|
||||
};
|
||||
MainComponent.prototype.incrementCardCounter = function () {
|
||||
this.displayExercise();
|
||||
this.currentCardNumber += 1;
|
||||
this.previousCardNumber += 1;
|
||||
};
|
||||
MainComponent.prototype.decrementCardCounter = function () {
|
||||
this.displayExercise();
|
||||
this.currentCardNumber -= 1;
|
||||
this.previousCardNumber -= 1;
|
||||
};
|
||||
MainComponent.ctorParameters = function () { return [
|
||||
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }
|
||||
]; };
|
||||
MainComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'main',
|
||||
template: __webpack_require__(/*! raw-loader!./main.component.html */ "./node_modules/raw-loader/index.js!./src/app/components/main/main.component.html"),
|
||||
styles: [__webpack_require__(/*! ./main.component.css */ "./src/app/components/main/main.component.css")]
|
||||
})
|
||||
], MainComponent);
|
||||
return MainComponent;
|
||||
}());
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/environments/environment.ts":
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/environments/environment.ts ***!
|
||||
\*****************************************/
|
||||
/*! exports provided: environment */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
|
||||
// This file can be replaced during build by using the `fileReplacements` array.
|
||||
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
var environment = {
|
||||
production: false
|
||||
};
|
||||
/*
|
||||
* For easier debugging in development mode, you can import the following file
|
||||
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
||||
*
|
||||
* This import should be commented out in production mode because it will have a negative impact
|
||||
* on performance if an error is thrown.
|
||||
*/
|
||||
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/main.ts":
|
||||
/*!*********************!*\
|
||||
!*** ./src/main.ts ***!
|
||||
\*********************/
|
||||
/*! no exports provided */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
||||
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js");
|
||||
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
|
||||
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) {
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
|
||||
}
|
||||
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
|
||||
.catch(function (err) { return console.error(err); });
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 0:
|
||||
/*!***************************!*\
|
||||
!*** multi ./src/main.ts ***!
|
||||
\***************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! C:\Users\Will\Documents\Coding\cardWorkout\src\main.ts */"./src/main.ts");
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[0,"runtime","vendor"]]]);
|
||||
//# sourceMappingURL=main-es5.js.map
|
||||
1
dist/cardWorkout/main-es5.js.map
vendored
Normal file
6149
dist/cardWorkout/polyfills-es2015.js
vendored
Normal file
1
dist/cardWorkout/polyfills-es2015.js.map
vendored
Normal file
13086
dist/cardWorkout/polyfills-es5.js
vendored
Normal file
1
dist/cardWorkout/polyfills-es5.js.map
vendored
Normal file
155
dist/cardWorkout/runtime-es2015.js
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
/******/ for(;i < chunkIds.length; i++) {
|
||||
/******/ chunkId = chunkIds[i];
|
||||
/******/ if(installedChunks[chunkId]) {
|
||||
/******/ resolves.push(installedChunks[chunkId][0]);
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ for(moduleId in moreModules) {
|
||||
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
||||
/******/ modules[moduleId] = moreModules[moduleId];
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // add entry modules from loaded chunk to deferred list
|
||||
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
|
||||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ function checkDeferredModules() {
|
||||
/******/ var result;
|
||||
/******/ for(var i = 0; i < deferredModules.length; i++) {
|
||||
/******/ var deferredModule = deferredModules[i];
|
||||
/******/ var fulfilled = true;
|
||||
/******/ for(var j = 1; j < deferredModule.length; j++) {
|
||||
/******/ var depId = deferredModule[j];
|
||||
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
|
||||
/******/ }
|
||||
/******/ if(fulfilled) {
|
||||
/******/ deferredModules.splice(i--, 1);
|
||||
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ return result;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ "runtime": 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ var deferredModules = [];
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/
|
||||
/******/
|
||||
/******/ // run deferred modules from other chunks
|
||||
/******/ checkDeferredModules();
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([]);
|
||||
//# sourceMappingURL=runtime-es2015.js.map
|
||||
1
dist/cardWorkout/runtime-es2015.js.map
vendored
Normal file
155
dist/cardWorkout/runtime-es5.js
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
/******/ for(;i < chunkIds.length; i++) {
|
||||
/******/ chunkId = chunkIds[i];
|
||||
/******/ if(installedChunks[chunkId]) {
|
||||
/******/ resolves.push(installedChunks[chunkId][0]);
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ for(moduleId in moreModules) {
|
||||
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
||||
/******/ modules[moduleId] = moreModules[moduleId];
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // add entry modules from loaded chunk to deferred list
|
||||
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
|
||||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ function checkDeferredModules() {
|
||||
/******/ var result;
|
||||
/******/ for(var i = 0; i < deferredModules.length; i++) {
|
||||
/******/ var deferredModule = deferredModules[i];
|
||||
/******/ var fulfilled = true;
|
||||
/******/ for(var j = 1; j < deferredModule.length; j++) {
|
||||
/******/ var depId = deferredModule[j];
|
||||
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
|
||||
/******/ }
|
||||
/******/ if(fulfilled) {
|
||||
/******/ deferredModules.splice(i--, 1);
|
||||
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ return result;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ "runtime": 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ var deferredModules = [];
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/
|
||||
/******/
|
||||
/******/ // run deferred modules from other chunks
|
||||
/******/ checkDeferredModules();
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([]);
|
||||
//# sourceMappingURL=runtime-es5.js.map
|
||||
1
dist/cardWorkout/runtime-es5.js.map
vendored
Normal file
566
dist/cardWorkout/styles-es2015.js
vendored
Normal file
@@ -0,0 +1,566 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["styles"],{
|
||||
|
||||
/***/ "./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src/index.js?!./src/styles.css":
|
||||
/*!*****************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./src/styles.css ***!
|
||||
\*****************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = [[module.i, "/* You can add global styles to this file, and also import other style files */\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9zdHlsZXMuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDhFQUE4RSIsImZpbGUiOiJzcmMvc3R5bGVzLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIFlvdSBjYW4gYWRkIGdsb2JhbCBzdHlsZXMgdG8gdGhpcyBmaWxlLCBhbmQgYWxzbyBpbXBvcnQgb3RoZXIgc3R5bGUgZmlsZXMgKi9cbiJdfQ== */", '', '']]
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/style-loader/lib/addStyles.js":
|
||||
/*!****************************************************!*\
|
||||
!*** ./node_modules/style-loader/lib/addStyles.js ***!
|
||||
\****************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
|
||||
var stylesInDom = {};
|
||||
|
||||
var memoize = function (fn) {
|
||||
var memo;
|
||||
|
||||
return function () {
|
||||
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
|
||||
return memo;
|
||||
};
|
||||
};
|
||||
|
||||
var isOldIE = memoize(function () {
|
||||
// Test for IE <= 9 as proposed by Browserhacks
|
||||
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
||||
// Tests for existence of standard globals is to allow style-loader
|
||||
// to operate correctly into non-standard environments
|
||||
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
||||
return window && document && document.all && !window.atob;
|
||||
});
|
||||
|
||||
var getTarget = function (target, parent) {
|
||||
if (parent){
|
||||
return parent.querySelector(target);
|
||||
}
|
||||
return document.querySelector(target);
|
||||
};
|
||||
|
||||
var getElement = (function (fn) {
|
||||
var memo = {};
|
||||
|
||||
return function(target, parent) {
|
||||
// If passing function in options, then use it for resolve "head" element.
|
||||
// Useful for Shadow Root style i.e
|
||||
// {
|
||||
// insertInto: function () { return document.querySelector("#foo").shadowRoot }
|
||||
// }
|
||||
if (typeof target === 'function') {
|
||||
return target();
|
||||
}
|
||||
if (typeof memo[target] === "undefined") {
|
||||
var styleTarget = getTarget.call(this, target, parent);
|
||||
// Special case to return head of iframe instead of iframe itself
|
||||
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
||||
try {
|
||||
// This will throw an exception if access to iframe is blocked
|
||||
// due to cross-origin restrictions
|
||||
styleTarget = styleTarget.contentDocument.head;
|
||||
} catch(e) {
|
||||
styleTarget = null;
|
||||
}
|
||||
}
|
||||
memo[target] = styleTarget;
|
||||
}
|
||||
return memo[target]
|
||||
};
|
||||
})();
|
||||
|
||||
var singleton = null;
|
||||
var singletonCounter = 0;
|
||||
var stylesInsertedAtTop = [];
|
||||
|
||||
var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js");
|
||||
|
||||
module.exports = function(list, options) {
|
||||
if (typeof DEBUG !== "undefined" && DEBUG) {
|
||||
if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
|
||||
options.attrs = typeof options.attrs === "object" ? options.attrs : {};
|
||||
|
||||
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
||||
// tags it will allow on a page
|
||||
if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
|
||||
|
||||
// By default, add <style> tags to the <head> element
|
||||
if (!options.insertInto) options.insertInto = "head";
|
||||
|
||||
// By default, add <style> tags to the bottom of the target
|
||||
if (!options.insertAt) options.insertAt = "bottom";
|
||||
|
||||
var styles = listToStyles(list, options);
|
||||
|
||||
addStylesToDom(styles, options);
|
||||
|
||||
return function update (newList) {
|
||||
var mayRemove = [];
|
||||
|
||||
for (var i = 0; i < styles.length; i++) {
|
||||
var item = styles[i];
|
||||
var domStyle = stylesInDom[item.id];
|
||||
|
||||
domStyle.refs--;
|
||||
mayRemove.push(domStyle);
|
||||
}
|
||||
|
||||
if(newList) {
|
||||
var newStyles = listToStyles(newList, options);
|
||||
addStylesToDom(newStyles, options);
|
||||
}
|
||||
|
||||
for (var i = 0; i < mayRemove.length; i++) {
|
||||
var domStyle = mayRemove[i];
|
||||
|
||||
if(domStyle.refs === 0) {
|
||||
for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
|
||||
|
||||
delete stylesInDom[domStyle.id];
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
function addStylesToDom (styles, options) {
|
||||
for (var i = 0; i < styles.length; i++) {
|
||||
var item = styles[i];
|
||||
var domStyle = stylesInDom[item.id];
|
||||
|
||||
if(domStyle) {
|
||||
domStyle.refs++;
|
||||
|
||||
for(var j = 0; j < domStyle.parts.length; j++) {
|
||||
domStyle.parts[j](item.parts[j]);
|
||||
}
|
||||
|
||||
for(; j < item.parts.length; j++) {
|
||||
domStyle.parts.push(addStyle(item.parts[j], options));
|
||||
}
|
||||
} else {
|
||||
var parts = [];
|
||||
|
||||
for(var j = 0; j < item.parts.length; j++) {
|
||||
parts.push(addStyle(item.parts[j], options));
|
||||
}
|
||||
|
||||
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function listToStyles (list, options) {
|
||||
var styles = [];
|
||||
var newStyles = {};
|
||||
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
var item = list[i];
|
||||
var id = options.base ? item[0] + options.base : item[0];
|
||||
var css = item[1];
|
||||
var media = item[2];
|
||||
var sourceMap = item[3];
|
||||
var part = {css: css, media: media, sourceMap: sourceMap};
|
||||
|
||||
if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
|
||||
else newStyles[id].parts.push(part);
|
||||
}
|
||||
|
||||
return styles;
|
||||
}
|
||||
|
||||
function insertStyleElement (options, style) {
|
||||
var target = getElement(options.insertInto)
|
||||
|
||||
if (!target) {
|
||||
throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
||||
}
|
||||
|
||||
var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
|
||||
|
||||
if (options.insertAt === "top") {
|
||||
if (!lastStyleElementInsertedAtTop) {
|
||||
target.insertBefore(style, target.firstChild);
|
||||
} else if (lastStyleElementInsertedAtTop.nextSibling) {
|
||||
target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
|
||||
} else {
|
||||
target.appendChild(style);
|
||||
}
|
||||
stylesInsertedAtTop.push(style);
|
||||
} else if (options.insertAt === "bottom") {
|
||||
target.appendChild(style);
|
||||
} else if (typeof options.insertAt === "object" && options.insertAt.before) {
|
||||
var nextSibling = getElement(options.insertAt.before, target);
|
||||
target.insertBefore(style, nextSibling);
|
||||
} else {
|
||||
throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
|
||||
}
|
||||
}
|
||||
|
||||
function removeStyleElement (style) {
|
||||
if (style.parentNode === null) return false;
|
||||
style.parentNode.removeChild(style);
|
||||
|
||||
var idx = stylesInsertedAtTop.indexOf(style);
|
||||
if(idx >= 0) {
|
||||
stylesInsertedAtTop.splice(idx, 1);
|
||||
}
|
||||
}
|
||||
|
||||
function createStyleElement (options) {
|
||||
var style = document.createElement("style");
|
||||
|
||||
if(options.attrs.type === undefined) {
|
||||
options.attrs.type = "text/css";
|
||||
}
|
||||
|
||||
if(options.attrs.nonce === undefined) {
|
||||
var nonce = getNonce();
|
||||
if (nonce) {
|
||||
options.attrs.nonce = nonce;
|
||||
}
|
||||
}
|
||||
|
||||
addAttrs(style, options.attrs);
|
||||
insertStyleElement(options, style);
|
||||
|
||||
return style;
|
||||
}
|
||||
|
||||
function createLinkElement (options) {
|
||||
var link = document.createElement("link");
|
||||
|
||||
if(options.attrs.type === undefined) {
|
||||
options.attrs.type = "text/css";
|
||||
}
|
||||
options.attrs.rel = "stylesheet";
|
||||
|
||||
addAttrs(link, options.attrs);
|
||||
insertStyleElement(options, link);
|
||||
|
||||
return link;
|
||||
}
|
||||
|
||||
function addAttrs (el, attrs) {
|
||||
Object.keys(attrs).forEach(function (key) {
|
||||
el.setAttribute(key, attrs[key]);
|
||||
});
|
||||
}
|
||||
|
||||
function getNonce() {
|
||||
if (false) {}
|
||||
|
||||
return __webpack_require__.nc;
|
||||
}
|
||||
|
||||
function addStyle (obj, options) {
|
||||
var style, update, remove, result;
|
||||
|
||||
// If a transform function was defined, run it on the css
|
||||
if (options.transform && obj.css) {
|
||||
result = typeof options.transform === 'function'
|
||||
? options.transform(obj.css)
|
||||
: options.transform.default(obj.css);
|
||||
|
||||
if (result) {
|
||||
// If transform returns a value, use that instead of the original css.
|
||||
// This allows running runtime transformations on the css.
|
||||
obj.css = result;
|
||||
} else {
|
||||
// If the transform function returns a falsy value, don't add this css.
|
||||
// This allows conditional loading of css
|
||||
return function() {
|
||||
// noop
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (options.singleton) {
|
||||
var styleIndex = singletonCounter++;
|
||||
|
||||
style = singleton || (singleton = createStyleElement(options));
|
||||
|
||||
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
||||
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
||||
|
||||
} else if (
|
||||
obj.sourceMap &&
|
||||
typeof URL === "function" &&
|
||||
typeof URL.createObjectURL === "function" &&
|
||||
typeof URL.revokeObjectURL === "function" &&
|
||||
typeof Blob === "function" &&
|
||||
typeof btoa === "function"
|
||||
) {
|
||||
style = createLinkElement(options);
|
||||
update = updateLink.bind(null, style, options);
|
||||
remove = function () {
|
||||
removeStyleElement(style);
|
||||
|
||||
if(style.href) URL.revokeObjectURL(style.href);
|
||||
};
|
||||
} else {
|
||||
style = createStyleElement(options);
|
||||
update = applyToTag.bind(null, style);
|
||||
remove = function () {
|
||||
removeStyleElement(style);
|
||||
};
|
||||
}
|
||||
|
||||
update(obj);
|
||||
|
||||
return function updateStyle (newObj) {
|
||||
if (newObj) {
|
||||
if (
|
||||
newObj.css === obj.css &&
|
||||
newObj.media === obj.media &&
|
||||
newObj.sourceMap === obj.sourceMap
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
update(obj = newObj);
|
||||
} else {
|
||||
remove();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var replaceText = (function () {
|
||||
var textStore = [];
|
||||
|
||||
return function (index, replacement) {
|
||||
textStore[index] = replacement;
|
||||
|
||||
return textStore.filter(Boolean).join('\n');
|
||||
};
|
||||
})();
|
||||
|
||||
function applyToSingletonTag (style, index, remove, obj) {
|
||||
var css = remove ? "" : obj.css;
|
||||
|
||||
if (style.styleSheet) {
|
||||
style.styleSheet.cssText = replaceText(index, css);
|
||||
} else {
|
||||
var cssNode = document.createTextNode(css);
|
||||
var childNodes = style.childNodes;
|
||||
|
||||
if (childNodes[index]) style.removeChild(childNodes[index]);
|
||||
|
||||
if (childNodes.length) {
|
||||
style.insertBefore(cssNode, childNodes[index]);
|
||||
} else {
|
||||
style.appendChild(cssNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function applyToTag (style, obj) {
|
||||
var css = obj.css;
|
||||
var media = obj.media;
|
||||
|
||||
if(media) {
|
||||
style.setAttribute("media", media)
|
||||
}
|
||||
|
||||
if(style.styleSheet) {
|
||||
style.styleSheet.cssText = css;
|
||||
} else {
|
||||
while(style.firstChild) {
|
||||
style.removeChild(style.firstChild);
|
||||
}
|
||||
|
||||
style.appendChild(document.createTextNode(css));
|
||||
}
|
||||
}
|
||||
|
||||
function updateLink (link, options, obj) {
|
||||
var css = obj.css;
|
||||
var sourceMap = obj.sourceMap;
|
||||
|
||||
/*
|
||||
If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
|
||||
and there is no publicPath defined then lets turn convertToAbsoluteUrls
|
||||
on by default. Otherwise default to the convertToAbsoluteUrls option
|
||||
directly
|
||||
*/
|
||||
var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
|
||||
|
||||
if (options.convertToAbsoluteUrls || autoFixUrls) {
|
||||
css = fixUrls(css);
|
||||
}
|
||||
|
||||
if (sourceMap) {
|
||||
// http://stackoverflow.com/a/26603875
|
||||
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
|
||||
}
|
||||
|
||||
var blob = new Blob([css], { type: "text/css" });
|
||||
|
||||
var oldSrc = link.href;
|
||||
|
||||
link.href = URL.createObjectURL(blob);
|
||||
|
||||
if(oldSrc) URL.revokeObjectURL(oldSrc);
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/style-loader/lib/urls.js":
|
||||
/*!***********************************************!*\
|
||||
!*** ./node_modules/style-loader/lib/urls.js ***!
|
||||
\***********************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
||||
/**
|
||||
* When source maps are enabled, `style-loader` uses a link element with a data-uri to
|
||||
* embed the css on the page. This breaks all relative urls because now they are relative to a
|
||||
* bundle instead of the current page.
|
||||
*
|
||||
* One solution is to only use full urls, but that may be impossible.
|
||||
*
|
||||
* Instead, this function "fixes" the relative urls to be absolute according to the current page location.
|
||||
*
|
||||
* A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = function (css) {
|
||||
// get current location
|
||||
var location = typeof window !== "undefined" && window.location;
|
||||
|
||||
if (!location) {
|
||||
throw new Error("fixUrls requires window.location");
|
||||
}
|
||||
|
||||
// blank or null?
|
||||
if (!css || typeof css !== "string") {
|
||||
return css;
|
||||
}
|
||||
|
||||
var baseUrl = location.protocol + "//" + location.host;
|
||||
var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
|
||||
|
||||
// convert each url(...)
|
||||
/*
|
||||
This regular expression is just a way to recursively match brackets within
|
||||
a string.
|
||||
|
||||
/url\s*\( = Match on the word "url" with any whitespace after it and then a parens
|
||||
( = Start a capturing group
|
||||
(?: = Start a non-capturing group
|
||||
[^)(] = Match anything that isn't a parentheses
|
||||
| = OR
|
||||
\( = Match a start parentheses
|
||||
(?: = Start another non-capturing groups
|
||||
[^)(]+ = Match anything that isn't a parentheses
|
||||
| = OR
|
||||
\( = Match a start parentheses
|
||||
[^)(]* = Match anything that isn't a parentheses
|
||||
\) = Match a end parentheses
|
||||
) = End Group
|
||||
*\) = Match anything and then a close parens
|
||||
) = Close non-capturing group
|
||||
* = Match anything
|
||||
) = Close capturing group
|
||||
\) = Match a close parens
|
||||
|
||||
/gi = Get all matches, not the first. Be case insensitive.
|
||||
*/
|
||||
var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
|
||||
// strip quotes (if they exist)
|
||||
var unquotedOrigUrl = origUrl
|
||||
.trim()
|
||||
.replace(/^"(.*)"$/, function(o, $1){ return $1; })
|
||||
.replace(/^'(.*)'$/, function(o, $1){ return $1; });
|
||||
|
||||
// already a full url? no change
|
||||
if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
|
||||
return fullMatch;
|
||||
}
|
||||
|
||||
// convert the url to a full url
|
||||
var newUrl;
|
||||
|
||||
if (unquotedOrigUrl.indexOf("//") === 0) {
|
||||
//TODO: should we add protocol?
|
||||
newUrl = unquotedOrigUrl;
|
||||
} else if (unquotedOrigUrl.indexOf("/") === 0) {
|
||||
// path should be relative to the base url
|
||||
newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
|
||||
} else {
|
||||
// path should be relative to current directory
|
||||
newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
|
||||
}
|
||||
|
||||
// send back the fixed url(...)
|
||||
return "url(" + JSON.stringify(newUrl) + ")";
|
||||
});
|
||||
|
||||
// send back the fixed css
|
||||
return fixedCss;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/styles.css":
|
||||
/*!************************!*\
|
||||
!*** ./src/styles.css ***!
|
||||
\************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
|
||||
var content = __webpack_require__(/*! !../node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!../node_modules/postcss-loader/src??embedded!./styles.css */ "./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src/index.js?!./src/styles.css");
|
||||
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
|
||||
var transform;
|
||||
var insertInto;
|
||||
|
||||
|
||||
|
||||
var options = {"hmr":true}
|
||||
|
||||
options.transform = transform
|
||||
options.insertInto = undefined;
|
||||
|
||||
var update = __webpack_require__(/*! ../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
||||
|
||||
if(content.locals) module.exports = content.locals;
|
||||
|
||||
if(false) {}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2:
|
||||
/*!******************************!*\
|
||||
!*** multi ./src/styles.css ***!
|
||||
\******************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! C:\Users\Will\Documents\Coding\cardWorkout\src\styles.css */"./src/styles.css");
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[2,"runtime"]]]);
|
||||
//# sourceMappingURL=styles-es2015.js.map
|
||||
1
dist/cardWorkout/styles-es2015.js.map
vendored
Normal file
566
dist/cardWorkout/styles-es5.js
vendored
Normal file
@@ -0,0 +1,566 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["styles"],{
|
||||
|
||||
/***/ "./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src/index.js?!./src/styles.css":
|
||||
/*!*****************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./src/styles.css ***!
|
||||
\*****************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = [[module.i, "/* You can add global styles to this file, and also import other style files */\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9zdHlsZXMuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDhFQUE4RSIsImZpbGUiOiJzcmMvc3R5bGVzLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIFlvdSBjYW4gYWRkIGdsb2JhbCBzdHlsZXMgdG8gdGhpcyBmaWxlLCBhbmQgYWxzbyBpbXBvcnQgb3RoZXIgc3R5bGUgZmlsZXMgKi9cbiJdfQ== */", '', '']]
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/style-loader/lib/addStyles.js":
|
||||
/*!****************************************************!*\
|
||||
!*** ./node_modules/style-loader/lib/addStyles.js ***!
|
||||
\****************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
|
||||
var stylesInDom = {};
|
||||
|
||||
var memoize = function (fn) {
|
||||
var memo;
|
||||
|
||||
return function () {
|
||||
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
|
||||
return memo;
|
||||
};
|
||||
};
|
||||
|
||||
var isOldIE = memoize(function () {
|
||||
// Test for IE <= 9 as proposed by Browserhacks
|
||||
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
||||
// Tests for existence of standard globals is to allow style-loader
|
||||
// to operate correctly into non-standard environments
|
||||
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
||||
return window && document && document.all && !window.atob;
|
||||
});
|
||||
|
||||
var getTarget = function (target, parent) {
|
||||
if (parent){
|
||||
return parent.querySelector(target);
|
||||
}
|
||||
return document.querySelector(target);
|
||||
};
|
||||
|
||||
var getElement = (function (fn) {
|
||||
var memo = {};
|
||||
|
||||
return function(target, parent) {
|
||||
// If passing function in options, then use it for resolve "head" element.
|
||||
// Useful for Shadow Root style i.e
|
||||
// {
|
||||
// insertInto: function () { return document.querySelector("#foo").shadowRoot }
|
||||
// }
|
||||
if (typeof target === 'function') {
|
||||
return target();
|
||||
}
|
||||
if (typeof memo[target] === "undefined") {
|
||||
var styleTarget = getTarget.call(this, target, parent);
|
||||
// Special case to return head of iframe instead of iframe itself
|
||||
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
||||
try {
|
||||
// This will throw an exception if access to iframe is blocked
|
||||
// due to cross-origin restrictions
|
||||
styleTarget = styleTarget.contentDocument.head;
|
||||
} catch(e) {
|
||||
styleTarget = null;
|
||||
}
|
||||
}
|
||||
memo[target] = styleTarget;
|
||||
}
|
||||
return memo[target]
|
||||
};
|
||||
})();
|
||||
|
||||
var singleton = null;
|
||||
var singletonCounter = 0;
|
||||
var stylesInsertedAtTop = [];
|
||||
|
||||
var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js");
|
||||
|
||||
module.exports = function(list, options) {
|
||||
if (typeof DEBUG !== "undefined" && DEBUG) {
|
||||
if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
|
||||
options.attrs = typeof options.attrs === "object" ? options.attrs : {};
|
||||
|
||||
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
||||
// tags it will allow on a page
|
||||
if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
|
||||
|
||||
// By default, add <style> tags to the <head> element
|
||||
if (!options.insertInto) options.insertInto = "head";
|
||||
|
||||
// By default, add <style> tags to the bottom of the target
|
||||
if (!options.insertAt) options.insertAt = "bottom";
|
||||
|
||||
var styles = listToStyles(list, options);
|
||||
|
||||
addStylesToDom(styles, options);
|
||||
|
||||
return function update (newList) {
|
||||
var mayRemove = [];
|
||||
|
||||
for (var i = 0; i < styles.length; i++) {
|
||||
var item = styles[i];
|
||||
var domStyle = stylesInDom[item.id];
|
||||
|
||||
domStyle.refs--;
|
||||
mayRemove.push(domStyle);
|
||||
}
|
||||
|
||||
if(newList) {
|
||||
var newStyles = listToStyles(newList, options);
|
||||
addStylesToDom(newStyles, options);
|
||||
}
|
||||
|
||||
for (var i = 0; i < mayRemove.length; i++) {
|
||||
var domStyle = mayRemove[i];
|
||||
|
||||
if(domStyle.refs === 0) {
|
||||
for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
|
||||
|
||||
delete stylesInDom[domStyle.id];
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
function addStylesToDom (styles, options) {
|
||||
for (var i = 0; i < styles.length; i++) {
|
||||
var item = styles[i];
|
||||
var domStyle = stylesInDom[item.id];
|
||||
|
||||
if(domStyle) {
|
||||
domStyle.refs++;
|
||||
|
||||
for(var j = 0; j < domStyle.parts.length; j++) {
|
||||
domStyle.parts[j](item.parts[j]);
|
||||
}
|
||||
|
||||
for(; j < item.parts.length; j++) {
|
||||
domStyle.parts.push(addStyle(item.parts[j], options));
|
||||
}
|
||||
} else {
|
||||
var parts = [];
|
||||
|
||||
for(var j = 0; j < item.parts.length; j++) {
|
||||
parts.push(addStyle(item.parts[j], options));
|
||||
}
|
||||
|
||||
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function listToStyles (list, options) {
|
||||
var styles = [];
|
||||
var newStyles = {};
|
||||
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
var item = list[i];
|
||||
var id = options.base ? item[0] + options.base : item[0];
|
||||
var css = item[1];
|
||||
var media = item[2];
|
||||
var sourceMap = item[3];
|
||||
var part = {css: css, media: media, sourceMap: sourceMap};
|
||||
|
||||
if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
|
||||
else newStyles[id].parts.push(part);
|
||||
}
|
||||
|
||||
return styles;
|
||||
}
|
||||
|
||||
function insertStyleElement (options, style) {
|
||||
var target = getElement(options.insertInto)
|
||||
|
||||
if (!target) {
|
||||
throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
||||
}
|
||||
|
||||
var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
|
||||
|
||||
if (options.insertAt === "top") {
|
||||
if (!lastStyleElementInsertedAtTop) {
|
||||
target.insertBefore(style, target.firstChild);
|
||||
} else if (lastStyleElementInsertedAtTop.nextSibling) {
|
||||
target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
|
||||
} else {
|
||||
target.appendChild(style);
|
||||
}
|
||||
stylesInsertedAtTop.push(style);
|
||||
} else if (options.insertAt === "bottom") {
|
||||
target.appendChild(style);
|
||||
} else if (typeof options.insertAt === "object" && options.insertAt.before) {
|
||||
var nextSibling = getElement(options.insertAt.before, target);
|
||||
target.insertBefore(style, nextSibling);
|
||||
} else {
|
||||
throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
|
||||
}
|
||||
}
|
||||
|
||||
function removeStyleElement (style) {
|
||||
if (style.parentNode === null) return false;
|
||||
style.parentNode.removeChild(style);
|
||||
|
||||
var idx = stylesInsertedAtTop.indexOf(style);
|
||||
if(idx >= 0) {
|
||||
stylesInsertedAtTop.splice(idx, 1);
|
||||
}
|
||||
}
|
||||
|
||||
function createStyleElement (options) {
|
||||
var style = document.createElement("style");
|
||||
|
||||
if(options.attrs.type === undefined) {
|
||||
options.attrs.type = "text/css";
|
||||
}
|
||||
|
||||
if(options.attrs.nonce === undefined) {
|
||||
var nonce = getNonce();
|
||||
if (nonce) {
|
||||
options.attrs.nonce = nonce;
|
||||
}
|
||||
}
|
||||
|
||||
addAttrs(style, options.attrs);
|
||||
insertStyleElement(options, style);
|
||||
|
||||
return style;
|
||||
}
|
||||
|
||||
function createLinkElement (options) {
|
||||
var link = document.createElement("link");
|
||||
|
||||
if(options.attrs.type === undefined) {
|
||||
options.attrs.type = "text/css";
|
||||
}
|
||||
options.attrs.rel = "stylesheet";
|
||||
|
||||
addAttrs(link, options.attrs);
|
||||
insertStyleElement(options, link);
|
||||
|
||||
return link;
|
||||
}
|
||||
|
||||
function addAttrs (el, attrs) {
|
||||
Object.keys(attrs).forEach(function (key) {
|
||||
el.setAttribute(key, attrs[key]);
|
||||
});
|
||||
}
|
||||
|
||||
function getNonce() {
|
||||
if (false) {}
|
||||
|
||||
return __webpack_require__.nc;
|
||||
}
|
||||
|
||||
function addStyle (obj, options) {
|
||||
var style, update, remove, result;
|
||||
|
||||
// If a transform function was defined, run it on the css
|
||||
if (options.transform && obj.css) {
|
||||
result = typeof options.transform === 'function'
|
||||
? options.transform(obj.css)
|
||||
: options.transform.default(obj.css);
|
||||
|
||||
if (result) {
|
||||
// If transform returns a value, use that instead of the original css.
|
||||
// This allows running runtime transformations on the css.
|
||||
obj.css = result;
|
||||
} else {
|
||||
// If the transform function returns a falsy value, don't add this css.
|
||||
// This allows conditional loading of css
|
||||
return function() {
|
||||
// noop
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (options.singleton) {
|
||||
var styleIndex = singletonCounter++;
|
||||
|
||||
style = singleton || (singleton = createStyleElement(options));
|
||||
|
||||
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
||||
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
||||
|
||||
} else if (
|
||||
obj.sourceMap &&
|
||||
typeof URL === "function" &&
|
||||
typeof URL.createObjectURL === "function" &&
|
||||
typeof URL.revokeObjectURL === "function" &&
|
||||
typeof Blob === "function" &&
|
||||
typeof btoa === "function"
|
||||
) {
|
||||
style = createLinkElement(options);
|
||||
update = updateLink.bind(null, style, options);
|
||||
remove = function () {
|
||||
removeStyleElement(style);
|
||||
|
||||
if(style.href) URL.revokeObjectURL(style.href);
|
||||
};
|
||||
} else {
|
||||
style = createStyleElement(options);
|
||||
update = applyToTag.bind(null, style);
|
||||
remove = function () {
|
||||
removeStyleElement(style);
|
||||
};
|
||||
}
|
||||
|
||||
update(obj);
|
||||
|
||||
return function updateStyle (newObj) {
|
||||
if (newObj) {
|
||||
if (
|
||||
newObj.css === obj.css &&
|
||||
newObj.media === obj.media &&
|
||||
newObj.sourceMap === obj.sourceMap
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
update(obj = newObj);
|
||||
} else {
|
||||
remove();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var replaceText = (function () {
|
||||
var textStore = [];
|
||||
|
||||
return function (index, replacement) {
|
||||
textStore[index] = replacement;
|
||||
|
||||
return textStore.filter(Boolean).join('\n');
|
||||
};
|
||||
})();
|
||||
|
||||
function applyToSingletonTag (style, index, remove, obj) {
|
||||
var css = remove ? "" : obj.css;
|
||||
|
||||
if (style.styleSheet) {
|
||||
style.styleSheet.cssText = replaceText(index, css);
|
||||
} else {
|
||||
var cssNode = document.createTextNode(css);
|
||||
var childNodes = style.childNodes;
|
||||
|
||||
if (childNodes[index]) style.removeChild(childNodes[index]);
|
||||
|
||||
if (childNodes.length) {
|
||||
style.insertBefore(cssNode, childNodes[index]);
|
||||
} else {
|
||||
style.appendChild(cssNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function applyToTag (style, obj) {
|
||||
var css = obj.css;
|
||||
var media = obj.media;
|
||||
|
||||
if(media) {
|
||||
style.setAttribute("media", media)
|
||||
}
|
||||
|
||||
if(style.styleSheet) {
|
||||
style.styleSheet.cssText = css;
|
||||
} else {
|
||||
while(style.firstChild) {
|
||||
style.removeChild(style.firstChild);
|
||||
}
|
||||
|
||||
style.appendChild(document.createTextNode(css));
|
||||
}
|
||||
}
|
||||
|
||||
function updateLink (link, options, obj) {
|
||||
var css = obj.css;
|
||||
var sourceMap = obj.sourceMap;
|
||||
|
||||
/*
|
||||
If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
|
||||
and there is no publicPath defined then lets turn convertToAbsoluteUrls
|
||||
on by default. Otherwise default to the convertToAbsoluteUrls option
|
||||
directly
|
||||
*/
|
||||
var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
|
||||
|
||||
if (options.convertToAbsoluteUrls || autoFixUrls) {
|
||||
css = fixUrls(css);
|
||||
}
|
||||
|
||||
if (sourceMap) {
|
||||
// http://stackoverflow.com/a/26603875
|
||||
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
|
||||
}
|
||||
|
||||
var blob = new Blob([css], { type: "text/css" });
|
||||
|
||||
var oldSrc = link.href;
|
||||
|
||||
link.href = URL.createObjectURL(blob);
|
||||
|
||||
if(oldSrc) URL.revokeObjectURL(oldSrc);
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/style-loader/lib/urls.js":
|
||||
/*!***********************************************!*\
|
||||
!*** ./node_modules/style-loader/lib/urls.js ***!
|
||||
\***********************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
|
||||
/**
|
||||
* When source maps are enabled, `style-loader` uses a link element with a data-uri to
|
||||
* embed the css on the page. This breaks all relative urls because now they are relative to a
|
||||
* bundle instead of the current page.
|
||||
*
|
||||
* One solution is to only use full urls, but that may be impossible.
|
||||
*
|
||||
* Instead, this function "fixes" the relative urls to be absolute according to the current page location.
|
||||
*
|
||||
* A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = function (css) {
|
||||
// get current location
|
||||
var location = typeof window !== "undefined" && window.location;
|
||||
|
||||
if (!location) {
|
||||
throw new Error("fixUrls requires window.location");
|
||||
}
|
||||
|
||||
// blank or null?
|
||||
if (!css || typeof css !== "string") {
|
||||
return css;
|
||||
}
|
||||
|
||||
var baseUrl = location.protocol + "//" + location.host;
|
||||
var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
|
||||
|
||||
// convert each url(...)
|
||||
/*
|
||||
This regular expression is just a way to recursively match brackets within
|
||||
a string.
|
||||
|
||||
/url\s*\( = Match on the word "url" with any whitespace after it and then a parens
|
||||
( = Start a capturing group
|
||||
(?: = Start a non-capturing group
|
||||
[^)(] = Match anything that isn't a parentheses
|
||||
| = OR
|
||||
\( = Match a start parentheses
|
||||
(?: = Start another non-capturing groups
|
||||
[^)(]+ = Match anything that isn't a parentheses
|
||||
| = OR
|
||||
\( = Match a start parentheses
|
||||
[^)(]* = Match anything that isn't a parentheses
|
||||
\) = Match a end parentheses
|
||||
) = End Group
|
||||
*\) = Match anything and then a close parens
|
||||
) = Close non-capturing group
|
||||
* = Match anything
|
||||
) = Close capturing group
|
||||
\) = Match a close parens
|
||||
|
||||
/gi = Get all matches, not the first. Be case insensitive.
|
||||
*/
|
||||
var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
|
||||
// strip quotes (if they exist)
|
||||
var unquotedOrigUrl = origUrl
|
||||
.trim()
|
||||
.replace(/^"(.*)"$/, function(o, $1){ return $1; })
|
||||
.replace(/^'(.*)'$/, function(o, $1){ return $1; });
|
||||
|
||||
// already a full url? no change
|
||||
if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
|
||||
return fullMatch;
|
||||
}
|
||||
|
||||
// convert the url to a full url
|
||||
var newUrl;
|
||||
|
||||
if (unquotedOrigUrl.indexOf("//") === 0) {
|
||||
//TODO: should we add protocol?
|
||||
newUrl = unquotedOrigUrl;
|
||||
} else if (unquotedOrigUrl.indexOf("/") === 0) {
|
||||
// path should be relative to the base url
|
||||
newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
|
||||
} else {
|
||||
// path should be relative to current directory
|
||||
newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
|
||||
}
|
||||
|
||||
// send back the fixed url(...)
|
||||
return "url(" + JSON.stringify(newUrl) + ")";
|
||||
});
|
||||
|
||||
// send back the fixed css
|
||||
return fixedCss;
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/styles.css":
|
||||
/*!************************!*\
|
||||
!*** ./src/styles.css ***!
|
||||
\************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
|
||||
var content = __webpack_require__(/*! !../node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!../node_modules/postcss-loader/src??embedded!./styles.css */ "./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src/index.js?!./src/styles.css");
|
||||
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
|
||||
var transform;
|
||||
var insertInto;
|
||||
|
||||
|
||||
|
||||
var options = {"hmr":true}
|
||||
|
||||
options.transform = transform
|
||||
options.insertInto = undefined;
|
||||
|
||||
var update = __webpack_require__(/*! ../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
||||
|
||||
if(content.locals) module.exports = content.locals;
|
||||
|
||||
if(false) {}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2:
|
||||
/*!******************************!*\
|
||||
!*** multi ./src/styles.css ***!
|
||||
\******************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! C:\Users\Will\Documents\Coding\cardWorkout\src\styles.css */"./src/styles.css");
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[2,"runtime"]]]);
|
||||
//# sourceMappingURL=styles-es5.js.map
|
||||