webpackJsonp([9],{
/***/ 108:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ExplorerPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__wordet_wordet__ = __webpack_require__(82);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the ExplorerPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var ExplorerPage = (function () {
function ExplorerPage(navCtrl, http, navParams) {
this.navCtrl = navCtrl;
this.http = http;
this.navParams = navParams;
this.items = [];
this.type = this.navParams.get('param');
// console.log(this.type);
switch (this.type) {
case 'more':
this.more();
break;
case 'random':
this.randomfunc();
break;
case 'wordofday':
this.jumpWordofday();
break;
}
}
ExplorerPage.prototype.randomfunc = function () {
var _this = this;
this.http.get("http://test.code2pass.com/wordsapp/randomword.php").subscribe(function (data) {
var a = JSON.parse(data['_body']);
_this.word = a[0]['Word'];
_this.meaning = a[0]['Meaning1'];
_this.ss = a[0]['SampleSentence1'];
_this.title = "Random Word";
document.getElementById('titlebar').style.backgroundColor = '#FFB2BB';
});
};
ExplorerPage.prototype.jumpWordofday = function () {
var _this = this;
this.http.get("http://test.code2pass.com/wordsapp/wordofday.php").subscribe(function (data) {
var a = JSON.parse(data['_body']);
_this.wordofday = a[0]['Word'];
_this.meaning = a[0]['Meaning1'];
_this.ss = a[0]['SampleSentence1'];
_this.title = "Word of the day";
// console.log(this.content);
document.getElementById('titlebar').style.backgroundColor = '#E6EE9C';
// document.getElementsByTagName('ion-navbar').
});
};
ExplorerPage.prototype.more = function () {
var _this = this;
this.http.get("http://test.code2pass.com/wordsapp/mostsearch.php").subscribe(function (data) {
var a = JSON.parse(data['_body']);
_this.items = a;
_this.title = "Most searched words";
document.getElementById('titlebar').style.backgroundColor = '#F8E71C';
});
};
ExplorerPage.prototype.viewEntry = function (param) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__wordet_wordet__["a" /* WordetPage */], param);
};
return ExplorerPage;
}());
ExplorerPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-explorer',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/explorer/explorer.html"*/'\n\n \n {{title}}\n \n\n\n\n\n\n \n
\n {{word}}
\n Meaning
\n {{meaning}}
\n Example
\n {{ss}}
\n \n
\n\n \n
Word of the Day!
\n
\n {{wordofday}}
\n Meaning
\n {{meaning}}
\n Example
\n {{ss}}
\n \n
\n\n\n\n\n\n {{item.Word}}\n {{item.hits}}\n\n\n\n\n\n\n\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/explorer/explorer.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */]])
], ExplorerPage);
//# sourceMappingURL=explorer.js.map
/***/ }),
/***/ 109:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IndexwordPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(85);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__wordet_wordet__ = __webpack_require__(82);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the IndexwordPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var IndexwordPage = (function () {
function IndexwordPage(navCtrl, http, LoadingController) {
this.navCtrl = navCtrl;
this.http = http;
this.LoadingController = LoadingController;
this.load();
}
IndexwordPage.prototype.getItem = function (ev) {
// Reset items back to all of the items
// this.load();
// console.log(ev.target.value);
// set val to the value of the ev target
var val = ev.target.value;
console.log(val);
this.in();
if (val && val.trim() != '') {
// console.log(this.posts)
this.items = this.items.filter(function (item) {
return (item['Word'].toLowerCase().indexOf(val.toLowerCase()) > -1);
});
}
// if the value is an empty string don't filter the items
};
IndexwordPage.prototype.in = function () {
this.items = this.posts;
};
IndexwordPage.prototype.ionViewWillEnter = function () {
// this.load();
};
IndexwordPage.prototype.load = function () {
var _this = this;
var loading = this.LoadingController.create({
content: 'Please wait while we load the word!',
enableBackdropDismiss: false
});
loading.present();
this.http.get('http://test.code2pass.com/wordsapp/words.php')
.subscribe(function (data) {
// console.log(data['_body']);
_this.posts = JSON.parse(data['_body']);
_this.in();
loading.dismiss();
});
};
IndexwordPage.prototype.viewEntry = function (param) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__wordet_wordet__["a" /* WordetPage */], param);
console.log(param);
};
IndexwordPage.prototype.back = function () {
this.navCtrl.pop();
};
return IndexwordPage;
}());
IndexwordPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-indexword',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/indexword/indexword.html"*/'\n\n\n\n\n\n \n WordsApp : Word List\n
\n\n \n \n {{ item.Word }}
\n \n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/indexword/indexword.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */],
__WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */],
__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* LoadingController */]])
], IndexwordPage);
//# sourceMappingURL=indexword.js.map
/***/ }),
/***/ 110:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SavewordsPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_sqlite__ = __webpack_require__(41);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the SavewordsPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var SavewordsPage = (function () {
function SavewordsPage(navCtrl, navParams, toastCtrl, sqlite) {
this.navCtrl = navCtrl;
this.navParams = navParams;
this.toastCtrl = toastCtrl;
this.sqlite = sqlite;
this.wordName = this.navParams.get("word");
this.saveDetails();
}
SavewordsPage.prototype.saveDetails = function () {
var _this = this;
this.sqlite.create({
name: "word.db",
location: 'default'
}).then(function (db) {
db.executeSql("select * from word where word = ?", [_this.wordName]).then(function (data1) {
for (var i = 0; i < data1.rows.length; i++) {
_this.word = data1.rows.item(i).word;
_this.meaning = data1.rows.item(i).meaning;
_this.sentence = data1.rows.item(i).sentence;
}
}).catch(function (err) { return alert(err); });
}).catch(function (err) { return alert(err); });
};
return SavewordsPage;
}());
SavewordsPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-savewords',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/savewords/savewords.html"*/'\n\n\n \n WordsApp: Bookmarked words!\n \n\n\n\n\n\n\n {{word}}\n
\n\n {{meaning}}\n
\n\n {{sentence}}\n
\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/savewords/savewords.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["l" /* ToastController */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_sqlite__["a" /* SQLite */]])
], SavewordsPage);
//# sourceMappingURL=savewords.js.map
/***/ }),
/***/ 111:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WordsgroupPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__list_list__ = __webpack_require__(167);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the WordsgroupPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var WordsgroupPage = (function () {
function WordsgroupPage(navCtrl, navParams, http, LoadingController) {
this.navCtrl = navCtrl;
this.navParams = navParams;
this.http = http;
this.LoadingController = LoadingController;
this.items = [];
var a = this.navParams.get('record');
this.selectedItem = a['record1'];
}
WordsgroupPage.prototype.meaning = function () {
var _this = this;
var loading = this.LoadingController.create({
content: 'Please wait while we load the word!',
enableBackdropDismiss: false
});
loading.present();
var url = 'http://test.code2pass.com/wordsapp/wordslist.php', body = "&wordingroup=" + this.selectedItem, type = "application/x-www-form-urlencoded;charset=utf-8", headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["a" /* Headers */]({ 'Content-Type': type }), options = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["d" /* RequestOptions */]({ headers: headers });
this.http.post(url, body, options).subscribe(function (data) {
console.log(data['_body']);
var a = JSON.parse(data['_body']);
_this.items = a;
// console.log(JSON.stringify(this.items) + "in WordsGroup");
loading.dismiss();
});
};
WordsgroupPage.prototype.viewEntry = function (param) {
var items = this.items;
var record = {
record1: param,
item: items
};
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__list_list__["a" /* ListPage */], { record: record });
// console.log(param);
// console.log(JSON.stringify(this.items))
};
WordsgroupPage.prototype.ionViewDidLoad = function () {
this.meaning();
};
WordsgroupPage.prototype.back = function () {
this.navCtrl.pop();
};
return WordsgroupPage;
}());
WordsgroupPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-wordsgroup',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/wordsgroup/wordsgroup.html"*/'\n\n\n\n \n {{selectedItem}}\n
\n\n\n\n \n {{ item.Word }}
\n {{item.Meaning1}}
\n \n \n\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/wordsgroup/wordsgroup.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* LoadingController */]])
], WordsgroupPage);
//# sourceMappingURL=wordsgroup.js.map
/***/ }),
/***/ 112:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GroupnamelistPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__wordsgroup_wordsgroup__ = __webpack_require__(111);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the GroupnamelistPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var GroupnamelistPage = (function () {
function GroupnamelistPage(navCtrl, navParams, http, LoadingController) {
this.navCtrl = navCtrl;
this.navParams = navParams;
this.http = http;
this.LoadingController = LoadingController;
this.items = [];
var a = this.navParams.get('record');
this.selectedItem = a['record1'];
}
GroupnamelistPage.prototype.meaning = function () {
var _this = this;
var loading = this.LoadingController.create({
content: 'Please wait while we load the word!',
enableBackdropDismiss: false
});
loading.present();
var url = 'http://test.code2pass.com/wordsapp/groupname.php', body = "&supergroupname=" + this.selectedItem, type = "application/x-www-form-urlencoded;charset=utf-8", headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["a" /* Headers */]({ 'Content-Type': type }), options = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["d" /* RequestOptions */]({ headers: headers });
this.http.post(url, body, options).subscribe(function (data) {
console.log(data['_body']);
var a = JSON.parse(data['_body']);
_this.items = a;
loading.dismiss();
});
};
GroupnamelistPage.prototype.ionViewDidLoad = function () {
this.meaning();
};
GroupnamelistPage.prototype.viewEntry = function (param) {
var record = {
record1: param
};
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__wordsgroup_wordsgroup__["a" /* WordsgroupPage */], { record: record });
// console.log(param);
};
GroupnamelistPage.prototype.back = function () {
this.navCtrl.pop();
};
return GroupnamelistPage;
}());
GroupnamelistPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-groupnamelist',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/groupnamelist/groupnamelist.html"*/'\n \n\n\n\n \n \n {{selectedItem}}\n
\n\n Please select a sub-group to start practicing words for your GRE
\n\n\n\n\n \n {{ item.GroupName }}
\n \n\n \n \n \n\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/groupnamelist/groupnamelist.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* LoadingController */]])
], GroupnamelistPage);
//# sourceMappingURL=groupnamelist.js.map
/***/ }),
/***/ 113:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SidebarsPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__savewordlist_savewordlist__ = __webpack_require__(53);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_app_rate__ = __webpack_require__(168);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_in_app_browser__ = __webpack_require__(169);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the SidebarsPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var SidebarsPage = (function () {
function SidebarsPage(navCtrl, navParams, alertCtrl, appRate, iab) {
this.navCtrl = navCtrl;
this.navParams = navParams;
this.alertCtrl = alertCtrl;
this.appRate = appRate;
this.iab = iab;
}
SidebarsPage.prototype.view = function () {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__savewordlist_savewordlist__["a" /* SavewordlistPage */]);
};
SidebarsPage.prototype.HowToAlert = function () {
var alert = this.alertCtrl.create({
title: 'How to use WordsApp',
subTitle: 'WordsApp is filtered in groups and sub groups of words which will guide users in learning words of similar types together.\n User can also start a random word learn through our “explorer” tab. \n The app also shows most searched words on app and views of each group to guide user understand what others are concentrating on. Happy learning!',
buttons: ['Okay!']
});
alert.present();
};
SidebarsPage.prototype.aboutUs = function () {
var alert = this.alertCtrl.create({
title: 'About us!',
subTitle: 'The developers have no name. Okay kidding, WordsApp has been developed by Mukul Pathak and Yashwanth Korla. write a mail to us at mu@mukulpathak.com',
buttons: ['Okay!']
});
alert.present();
};
SidebarsPage.prototype.greFree = function () {
var _this = this;
var confirm = this.alertCtrl.create({
title: 'Visit wordsapp.code2pass.com',
message: 'You can now learn on web by visiting www.wordsapp.code2pass.com from your MAC/PC browsers!',
buttons: [
{
text: 'Cool!',
handler: function () {
console.log('Disagree clicked');
}
},
{
text: 'Open!',
handler: function () {
var browser = _this.iab.create('https://www.code2pass.com/wordsapp', '_self', { location: 'no' });
}
}
]
});
confirm.present();
};
SidebarsPage.prototype.rateFive = function () {
this.appRate.preferences.storeAppURL = {
ios: '1271219341',
android: 'https://play.google.com/store/apps/details?id=wordsapp.mukul.code2pass',
};
this.appRate.promptForRating(true);
// or, override the whole preferences object
this.appRate.preferences = {
usesUntilPrompt: 3,
storeAppURL: {
ios: '1271219341',
android: 'https://play.google.com/store/apps/details?id=wordsapp.mukul.code2pass',
}
};
this.appRate.promptForRating(false);
};
SidebarsPage.prototype.insta = function () {
var _this = this;
// let confirm = this.alertCtrl.create({
// title: 'Learn on Instagram!',
// message: 'Do you want to follow "@wordsapp_" on instagram?',
// buttons: [
// {
// text: 'Maybe later',
// handler: () => {
// console.log('Disagree clicked');
// }
// },
// {
// text: 'Follow @wordsapp_',
// handler: () => {
// const browser = this.iab.create('https://www.instagram.com/wordsapp_/','_self',{location:'no'});
// }
// }
// ]
// });
// confirm.present();
// }
var alert = this.alertCtrl.create({
title: ' Learn on Instagram',
message: 'Follow (@wordsapp_) on instagram for your daily dose of words!',
buttons: [
{
text: 'Cancel',
handler: function (data) {
console.log('Disagree clicked');
}
},
{
text: 'Follow on Instagram',
// role: '',
handler: function (data) {
var browser = _this.iab.create('https://www.instagram.com/wordsapp_/', '_self', { location: 'no' });
}
}
]
});
alert.present();
};
return SidebarsPage;
}());
SidebarsPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-sidebars',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/sidebars/sidebars.html"*/'\n \n \n WordsApp\n
\n \n\n \n Bookmarks
\n \n \n\n\n \n How to use?
\n \n\n \n \n\n \n About Us
\n \n \n\n \n Rate us 5 stars!
\n \n \n\n \n Try WordsApp Web
\n \n \n\n \n Learn on Instagram (@wordsapp_)
\n \n \n\n\n\n\n
\n
\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/sidebars/sidebars.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_app_rate__["a" /* AppRate */], __WEBPACK_IMPORTED_MODULE_4__ionic_native_in_app_browser__["a" /* InAppBrowser */]])
], SidebarsPage);
//# sourceMappingURL=sidebars.js.map
/***/ }),
/***/ 123:
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
return new Promise(function(resolve, reject) { reject(new Error("Cannot find module '" + req + "'.")); });
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = 123;
/***/ }),
/***/ 165:
/***/ (function(module, exports, __webpack_require__) {
var map = {
"../pages/explorer/explorer.module": [
280,
8
],
"../pages/groupnamelist/groupnamelist.module": [
285,
7
],
"../pages/groups/groups.module": [
286,
6
],
"../pages/indexword/indexword.module": [
281,
5
],
"../pages/savewordlist/savewordlist.module": [
283,
4
],
"../pages/savewords/savewords.module": [
282,
3
],
"../pages/sidebars/sidebars.module": [
287,
2
],
"../pages/tabs/tabs.module": [
288,
1
],
"../pages/wordsgroup/wordsgroup.module": [
284,
0
]
};
function webpackAsyncContext(req) {
var ids = map[req];
if(!ids)
return Promise.reject(new Error("Cannot find module '" + req + "'."));
return __webpack_require__.e(ids[1]).then(function() {
return __webpack_require__(ids[0]);
});
};
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
return Object.keys(map);
};
module.exports = webpackAsyncContext;
webpackAsyncContext.id = 165;
/***/ }),
/***/ 167:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ListPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_sqlite__ = __webpack_require__(41);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_text_to_speech__ = __webpack_require__(84);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ListPage = (function () {
// wordofday:any;
function ListPage(navCtrl, navParams, http, sqlite, toastCtrl, LoadingController, tts) {
this.navCtrl = navCtrl;
this.navParams = navParams;
this.http = http;
this.sqlite = sqlite;
this.toastCtrl = toastCtrl;
this.LoadingController = LoadingController;
this.tts = tts;
this.word = [];
var a = this.navParams.get('record');
// this.selectedItem = this.navParams.get("record");
this.selectedItem = a['record1'];
console.log(this.selectedItem);
this.meaning(this.selectedItem);
this.nextbut = a['item'];
// console.log(this.next[0]);
// console.log(this.selectedItem);
this.bword = false;
}
;
ListPage.prototype.meaning = function (a) {
var _this = this;
var loading = this.LoadingController.create({
content: 'Please wait while we load the word!',
enableBackdropDismiss: false
});
loading.present();
var url = 'http://test.code2pass.com/wordsapp/meaning.php', body = "&meaning=" + a, type = "application/x-www-form-urlencoded; charset=utf-8", headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["a" /* Headers */]({ 'Content-Type': type }), options = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["d" /* RequestOptions */]({ headers: headers });
this.http.post(url, body, options).subscribe(function (data) {
// console.log(data['_body']);
var a = JSON.parse(data['_body']);
_this.wordMeaning1 = a[0]['Meaning1'];
// console.log(this.wordMeaning1);
_this.wordMeaning2 = a[0]['Meaning2'];
_this.wordMeaning3 = a[0]['Meaning3'];
_this.ss1 = a[0]['SampleSentence1'];
_this.ss2 = a[0]['SampleSentence2'];
_this.ss3 = a[0]['SampleSentence3'];
_this.pos = a[0]['PartofSpeech'];
_this.root = a[0]['Root'];
_this.Synonyms = a[0]['Synonyms'];
_this.Antonyms = a[0]['Antonyms'];
_this.UsageTips = (a[0]['UsageTips']).replace(/
/g, '').replace(/<\/p>/g, '\n');
_this.Mnemonics = (a[0]['Mnemonics']);
_this.Pronunciation = a[0]['PronunciationText'];
// console.log(this.wordMeaning);
loading.dismiss();
});
};
ListPage.prototype.next = function () {
var a = this.nextbut;
// console.log(a.length);
for (var i = 0; i < a.length; i++) {
// console.log(a[i]['Word']);
this.word.push(a[i]['Word']);
// console.log(word);
}
var count = this.word.indexOf(this.selectedItem) + 1;
var next = this.word[count];
console.log(next);
this.selectedItem = next;
this.meaning(next);
// this.meaning(a);
};
// backword(){
// let a = this.nextbut;
// // console.log(a.length);
// for(let i=0;i {
// let a =JSON.parse(data['_body']);
// this.selectedItem = a[0]['Word'];
this.tts.speak(this.selectedItem)
.then(function () { return console.log('Success'); })
.catch(function (reason) { return console.log(reason); });
// });
};
ListPage.prototype.saveWord = function () {
var _this = this;
console.log(this.selectedItem + this.wordMeaning1 + this.ss1);
this.sqlite.create({
name: 'word.db',
location: 'default'
}).then(function (db) {
db.executeSql("create table if not exists word(word varchar(500) unique,meaning varchar(500),sentence varchar(500))", {}).then(function (res) {
}).catch(function (err) { return alert(err); });
db.executeSql('insert into word(word,meaning,sentence) values(?,?,?)', [_this.selectedItem, _this.wordMeaning1, _this.ss1]).then(function (res) {
var toast = _this.toastCtrl.create({
message: 'Word successfully bookmarked!',
duration: 3000,
position: 'top'
});
toast.onDidDismiss(function () {
console.log('Dismissed toast');
});
toast.present();
// alert("Word successfully bookmarked!");
}).catch(function (err) {
alert("Data cannot be added");
});
});
};
ListPage.prototype.back = function () {
this.navCtrl.pop();
};
return ListPage;
}());
ListPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-list',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/list/list.html"*/'\n\n\n\n \n\n \n WordsApp\n \n
\n\n\n\n
\n \n {{selectedItem}} | \n \n | \n
\n \n {{Pronunciation}} | \n {{pos}} | \n
\n \n
\n \n \n\n\n\n \n
\n \n\n\n\n\n \n \n\n\n
\n
Meaning :
\n {{wordMeaning1}}\n
\n
\n {{wordMeaning2}}\n
\n\n\n\n
\n {{wordMeaning3}}\n
\n\n
Sample Sentence :
\n\n
\n {{ss1}}\n
\n
\n {{ss2}}\n
\n
\n {{ss3}}\n
\n\n
\n
Synonyms :
\n {{Synonyms}}\n
\n\n\n
\n
Antonyms :
\n {{Antonyms}}\n
\n\n\n
\n
How to use :
\n
{{UsageTips}}
\n
\n\n\n
\n
Mnemonics :
\n
{{Mnemonics}}
\n
\n\n\n
\n
Root :
\n\n {{Root}}\n
\n
\n\n\n\n\n\n\n \n\n \n '/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/list/list.html"*/
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_sqlite__["a" /* SQLite */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["l" /* ToastController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* LoadingController */], __WEBPACK_IMPORTED_MODULE_4__ionic_native_text_to_speech__["a" /* TextToSpeech */]])
], ListPage);
//# sourceMappingURL=list.js.map
/***/ }),
/***/ 211:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__groups_groups__ = __webpack_require__(54);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__home_home__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__sidebars_sidebars__ = __webpack_require__(113);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_network__ = __webpack_require__(170);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_native_status_bar__ = __webpack_require__(86);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the TabsPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var TabsPage = (function () {
function TabsPage(navCtrl, statusBar, navParams, network) {
// this.statusBar.overlaysWebView(true);
var _this = this;
this.navCtrl = navCtrl;
this.statusBar = statusBar;
this.navParams = navParams;
this.network = network;
this.tab1Root = __WEBPACK_IMPORTED_MODULE_2__groups_groups__["a" /* GroupsPage */];
this.tab2Root = __WEBPACK_IMPORTED_MODULE_3__home_home__["a" /* HomePage */];
this.tab3Root = __WEBPACK_IMPORTED_MODULE_4__sidebars_sidebars__["a" /* SidebarsPage */];
// // set status bar to white
// this.statusBar.backgroundColorByHexString('#343434');
var disconnectSubscription = this.network.onDisconnect().subscribe(function () {
alert('No network found. Please connect to a network to use WordsApp.');
});
// stop disconnect watch
// disconnectSubscription.unsubscribe();
var connectSubscription = this.network.onConnect().subscribe(function () {
console.log('network connected!');
// We just got a connection but we need to wait briefly
// before we determine the connection type. Might need to wait.
// prior to doing any api requests as well.
setTimeout(function () {
if (_this.network.type === 'wifi') {
alert('we have a connection!');
}
}, 3000);
});
// stop connect watch
// connectSubscription.unsubscribe();
}
return TabsPage;
}());
TabsPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-tabs',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/tabs/tabs.html"*/'\n\n\n \n \n \n\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/tabs/tabs.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_6__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_5__ionic_native_network__["a" /* Network */]])
], TabsPage);
//# sourceMappingURL=tabs.js.map
/***/ }),
/***/ 212:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(213);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(230);
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
//# sourceMappingURL=main.js.map
/***/ }),
/***/ 230:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(26);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_component__ = __webpack_require__(279);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_list_list__ = __webpack_require__(167);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_wordsgroup_wordsgroup__ = __webpack_require__(111);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_groupnamelist_groupnamelist__ = __webpack_require__(112);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_groups_groups__ = __webpack_require__(54);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_indexword_indexword__ = __webpack_require__(109);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_tabs_tabs__ = __webpack_require__(211);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_explorer_explorer__ = __webpack_require__(108);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_wordet_wordet__ = __webpack_require__(82);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_sidebars_sidebars__ = __webpack_require__(113);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__pages_savewords_savewords__ = __webpack_require__(110);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__pages_savewordlist_savewordlist__ = __webpack_require__(53);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__ionic_native_status_bar__ = __webpack_require__(86);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__ionic_native_splash_screen__ = __webpack_require__(210);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__ionic_native_sqlite__ = __webpack_require__(41);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__ionic_native_app_rate__ = __webpack_require__(168);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__ionic_native_text_to_speech__ = __webpack_require__(84);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__ionic_native_network__ = __webpack_require__(170);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__ionic_native_in_app_browser__ = __webpack_require__(169);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var AppModule = (function () {
function AppModule() {
}
return AppModule;
}());
AppModule = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["L" /* NgModule */])({
declarations: [
__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */],
__WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */],
__WEBPACK_IMPORTED_MODULE_5__pages_list_list__["a" /* ListPage */],
__WEBPACK_IMPORTED_MODULE_8__pages_groups_groups__["a" /* GroupsPage */],
__WEBPACK_IMPORTED_MODULE_7__pages_groupnamelist_groupnamelist__["a" /* GroupnamelistPage */],
__WEBPACK_IMPORTED_MODULE_6__pages_wordsgroup_wordsgroup__["a" /* WordsgroupPage */],
__WEBPACK_IMPORTED_MODULE_9__pages_indexword_indexword__["a" /* IndexwordPage */],
__WEBPACK_IMPORTED_MODULE_10__pages_tabs_tabs__["a" /* TabsPage */],
__WEBPACK_IMPORTED_MODULE_11__pages_explorer_explorer__["a" /* ExplorerPage */],
__WEBPACK_IMPORTED_MODULE_12__pages_wordet_wordet__["a" /* WordetPage */],
__WEBPACK_IMPORTED_MODULE_15__pages_savewordlist_savewordlist__["a" /* SavewordlistPage */],
__WEBPACK_IMPORTED_MODULE_14__pages_savewords_savewords__["a" /* SavewordsPage */],
__WEBPACK_IMPORTED_MODULE_13__pages_sidebars_sidebars__["a" /* SidebarsPage */]
],
imports: [
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
__WEBPACK_IMPORTED_MODULE_16__angular_http__["c" /* HttpModule */],
__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["d" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */], {}, {
links: [
{ loadChildren: '../pages/explorer/explorer.module#ExplorerPageModule', name: 'ExplorerPage', segment: 'explorer', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/indexword/indexword.module#IndexwordPageModule', name: 'IndexwordPage', segment: 'indexword', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/savewords/savewords.module#SavewordsPageModule', name: 'SavewordsPage', segment: 'savewords', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/savewordlist/savewordlist.module#SavewordlistPageModule', name: 'SavewordlistPage', segment: 'savewordlist', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/wordsgroup/wordsgroup.module#WordsgroupPageModule', name: 'WordsgroupPage', segment: 'wordsgroup', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/groupnamelist/groupnamelist.module#GroupnamelistPageModule', name: 'GroupnamelistPage', segment: 'groupnamelist', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/groups/groups.module#GroupsPageModule', name: 'GroupsPage', segment: 'groups', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/sidebars/sidebars.module#SidebarsPageModule', name: 'SidebarsPage', segment: 'sidebars', priority: 'low', defaultHistory: [] },
{ loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] }
]
})
],
bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicApp */]],
entryComponents: [
__WEBPACK_IMPORTED_MODULE_3__app_component__["a" /* MyApp */],
__WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */],
__WEBPACK_IMPORTED_MODULE_5__pages_list_list__["a" /* ListPage */],
__WEBPACK_IMPORTED_MODULE_8__pages_groups_groups__["a" /* GroupsPage */],
__WEBPACK_IMPORTED_MODULE_7__pages_groupnamelist_groupnamelist__["a" /* GroupnamelistPage */],
__WEBPACK_IMPORTED_MODULE_6__pages_wordsgroup_wordsgroup__["a" /* WordsgroupPage */],
__WEBPACK_IMPORTED_MODULE_9__pages_indexword_indexword__["a" /* IndexwordPage */],
__WEBPACK_IMPORTED_MODULE_10__pages_tabs_tabs__["a" /* TabsPage */],
__WEBPACK_IMPORTED_MODULE_11__pages_explorer_explorer__["a" /* ExplorerPage */],
__WEBPACK_IMPORTED_MODULE_12__pages_wordet_wordet__["a" /* WordetPage */],
__WEBPACK_IMPORTED_MODULE_15__pages_savewordlist_savewordlist__["a" /* SavewordlistPage */],
__WEBPACK_IMPORTED_MODULE_14__pages_savewords_savewords__["a" /* SavewordsPage */],
__WEBPACK_IMPORTED_MODULE_13__pages_sidebars_sidebars__["a" /* SidebarsPage */]
],
providers: [
__WEBPACK_IMPORTED_MODULE_17__ionic_native_status_bar__["a" /* StatusBar */],
__WEBPACK_IMPORTED_MODULE_18__ionic_native_splash_screen__["a" /* SplashScreen */],
__WEBPACK_IMPORTED_MODULE_23__ionic_native_in_app_browser__["a" /* InAppBrowser */],
__WEBPACK_IMPORTED_MODULE_19__ionic_native_sqlite__["a" /* SQLite */],
__WEBPACK_IMPORTED_MODULE_20__ionic_native_app_rate__["a" /* AppRate */],
__WEBPACK_IMPORTED_MODULE_22__ionic_native_network__["a" /* Network */],
__WEBPACK_IMPORTED_MODULE_21__ionic_native_text_to_speech__["a" /* TextToSpeech */],
{ provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["v" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicErrorHandler */] }
]
})
], AppModule);
//# sourceMappingURL=app.module.js.map
/***/ }),
/***/ 279:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(86);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(210);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(48);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var MyApp = (function () {
function MyApp(platform, statusBar, splashScreen) {
// this.statusBar.backgroundColorByHexString('#ffffff');
var _this = this;
this.platform = platform;
this.statusBar = statusBar;
this.splashScreen = splashScreen;
this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */];
// used for an example of ngFor and navigation
this.platform.ready().then(function () {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
_this.statusBar.show();
_this.splashScreen.hide();
});
}
MyApp.prototype.openPage = function (page) {
// Reset the content nav to have just this page
// we wouldn't want the back button to show in this scenario
this.nav.setRoot(page.component);
};
return MyApp;
}());
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_13" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Nav */]),
__metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Nav */])
], MyApp.prototype, "nav", void 0);
MyApp = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/app/app.html"*/'\n\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/app/app.html"*/
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["k" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
], MyApp);
//# sourceMappingURL=app.component.js.map
/***/ }),
/***/ 48:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(85);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__explorer_explorer__ = __webpack_require__(108);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__indexword_indexword__ = __webpack_require__(109);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__savewordlist_savewordlist__ = __webpack_require__(53);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__groups_groups__ = __webpack_require__(54);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var HomePage = (function () {
function HomePage(navCtrl, http, alertCtrl) {
this.navCtrl = navCtrl;
this.http = http;
this.alertCtrl = alertCtrl;
this.items = [];
}
HomePage.prototype.ionViewWillEnter = function () {
// this.randomword();
// this.wordday();
// this.mostsearch();
};
// wordday()
// {
// this.http.get('http://test.code2pass.com/wordsapp/wordday.php')
// // .map(res => res.json())
// .subscribe(data =>
// {
// this.items = JSON.parse(data['_body']);
// });
// }
// randomword()
// {
// this.http.get('http://test.code2pass.com/wordsapp/randomword.php')
// // .map(res => res.json())
// .subscribe(data =>
// {
// this.items = JSON.parse(data['_body']);
// });
// }
// mostsearch(){
// this.http.get('http://test.code2pass.com/wordsapp/mostsearch.php')
// // .map(res => res.json())
// .subscribe(data =>
// {
// this.items = JSON.parse(data['_body']);
// });
// }
// load()
// {
// this.http.get('http://test.code2pass.com/wordsapp/words.php')
// // .map(res => res.json())
// .subscribe(data =>
// {
// this.items = JSON.parse(data['_body']);
// });
// }
HomePage.prototype.viewEntry = function (param) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__explorer_explorer__["a" /* ExplorerPage */], param);
console.log(param);
};
HomePage.prototype.viewList = function (param) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_5__indexword_indexword__["a" /* IndexwordPage */], param);
};
HomePage.prototype.jumpRandomword = function (param) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__explorer_explorer__["a" /* ExplorerPage */], { param: param });
};
HomePage.prototype.jumpWordofday = function (param) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__explorer_explorer__["a" /* ExplorerPage */], { param: param });
};
HomePage.prototype.bookmarkview = function (param) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_6__savewordlist_savewordlist__["a" /* SavewordlistPage */], { param: param });
};
HomePage.prototype.greFree = function () {
var alert = this.alertCtrl.create({
title: 'Free GRE test kits!',
subTitle: 'Hold on! Free GRE question sets for both verbal and quantative sections are coming soon on WordsApp. Keep visiting this place for further update.',
buttons: ['Okay!']
});
alert.present();
};
HomePage.prototype.GroupsPage1 = function () {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_7__groups_groups__["a" /* GroupsPage */]);
};
HomePage.prototype.swipeEvent = function (e) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_7__groups_groups__["a" /* GroupsPage */]);
};
return HomePage;
}());
HomePage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-home',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/home/home.html"*/'\n \n \n\n\n\n\n\n \n\n\n \n Learn GRE Words!\n
\n\n\n \n \n \n
\n
\n
Learn Words In Groups
\n
\n \n \n\n\n \n \n \n
\n\n
Most Searched Words
\n
\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n\n \n\n \n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/home/home.html"*/
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */],
__WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */]])
], HomePage);
//# sourceMappingURL=home.js.map
/***/ }),
/***/ 53:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SavewordlistPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_sqlite__ = __webpack_require__(41);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__savewords_savewords__ = __webpack_require__(110);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
* Generated class for the SavewordlistPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var SavewordlistPage = (function () {
function SavewordlistPage(navCtrl, navParams, sqlite, toastCtrl) {
var _this = this;
this.navCtrl = navCtrl;
this.navParams = navParams;
this.sqlite = sqlite;
this.toastCtrl = toastCtrl;
this.items = [];
this.sqlite.create({
name: 'word.db',
location: 'default'
})
.then(function (db) {
db.executeSql("select word from word", []).then(function (res) {
_this.items = [];
if (res.rows.length > 0) {
for (var i = 0; i < res.rows.length; i++) {
_this.items.push({ word: res.rows.item(i).word });
}
// alert("Data is retrieved");
}
else {
var toast = _this.toastCtrl.create({
message: "0 results",
duration: 3000
});
toast.present();
}
}).catch(function (err) {
alert("Bookmark words to fetch here when needed!");
});
});
}
SavewordlistPage.prototype.saveDetails = function (word) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__savewords_savewords__["a" /* SavewordsPage */], { word: word });
};
SavewordlistPage.prototype.delete = function (item) {
var _this = this;
this.sqlite.create({
name: 'word.db',
location: 'default'
}).then(function (db) {
db.executeSql("delete from word where word = ?", [item.word]).then(function (data) {
var index = _this.items.indexOf(item);
if (index > -1) {
_this.items.splice(index, 1);
}
var toast = _this.toastCtrl.create({
message: 'Word successfully removed from bookmark!',
duration: 3000,
position: 'top'
});
toast.onDidDismiss(function () {
console.log('Dismissed toast');
});
toast.present();
});
});
};
SavewordlistPage.prototype.message = function (message) {
var toast = this.toastCtrl.create({
message: message,
duration: 2000,
position: 'bottom'
});
toast.present();
};
return SavewordlistPage;
}());
SavewordlistPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-savewordlist',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/savewordlist/savewordlist.html"*/'\n\n \n \n Bookmarked words list!\n \n\n\n\n\n\n\n \n {{item.word}}\n \n \n\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/savewordlist/savewordlist.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_sqlite__["a" /* SQLite */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["l" /* ToastController */]])
], SavewordlistPage);
//# sourceMappingURL=savewordlist.js.map
/***/ }),
/***/ 54:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GroupsPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(85);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__groupnamelist_groupnamelist__ = __webpack_require__(112);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__home_home__ = __webpack_require__(48);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
// import { Storage } from '@ionic/storage';
/**
* Generated class for the GroupsPage page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
var GroupsPage = (function () {
function GroupsPage(navCtrl, navParams, http, LoadingController) {
this.navCtrl = navCtrl;
this.navParams = navParams;
this.http = http;
this.LoadingController = LoadingController;
this.items = [];
}
GroupsPage.prototype.ionViewDidLoad = function () {
var _this = this;
this.http.get('http://test.code2pass.com/wordsapp/hitsgroup.php')
.subscribe(function (data) {
// console.log(data['_body']);s
var a = JSON.parse(data['_body']);
console.log(a);
_this.appearance = a[0]['HitsGroup'];
_this.personal = a[1]['HitsGroup'];
_this.emotions = a[2]['HitsGroup'];
_this.interaction = a[3]['HitsGroup'];
_this.human = a[4]['HitsGroup'];
_this.getting = a[5]['HitsGroup'];
_this.talk = a[6]['HitsGroup'];
_this.culture = a[7]['HitsGroup'];
_this.law = a[8]['HitsGroup'];
_this.war = a[9]['HitsGroup'];
_this.nature = a[10]['HitsGroup'];
_this.phenomena = a[11]['HitsGroup'];
});
};
GroupsPage.prototype.ionViewWillEnter = function () {
// this.load();
// this.loadgrp();
};
// load()
// {
// this.http.get('http://test.code2pass.com/wordsapp/grouplist.php')
// // .map(res => res.json())
// .subscribe(data =>
// {
// this.items = JSON.parse(data['_body']);
// });
// }
// load()
// {
// let loading = this.LoadingController.create({
// content: 'Loading WordsApp',
// enableBackdropDismiss: false
// });
// loading.present();
// this.http.get('http://test.code2pass.com/wordsapp/hitsgroup.php')
// // .map(res => res.json())
// .subscribe(data =>
// {
// console.log(data['_body']);
// let a = JSON.parse(data['_body']);
// this.items = a.HitsGroup;
// console.log(this.items);
// loading.dismiss();
// });
// }
GroupsPage.prototype.viewEntry = function (param) {
var record = {
record1: param
};
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__groupnamelist_groupnamelist__["a" /* GroupnamelistPage */], { record: record });
console.log(param);
var url = 'http://test.code2pass.com/wordsapp/newhitsgroup.php', body = '&SuperGroupName=' + param, type = "application/x-www-form-urlencoded;charset=utf-8", headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["a" /* Headers */]({ 'Content-Type': type }), options = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["d" /* RequestOptions */]({ headers: headers });
this.http.post(url, body, options).subscribe(function (data1) {
// console.log(data1['_body']);
});
};
GroupsPage.prototype.swipeEvent = function (e) {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_5__home_home__["a" /* HomePage */], {}, { animate: true, direction: 'forward' });
};
GroupsPage.prototype.doRefresh = function (refresher) {
this.ionViewDidLoad();
console.log('Begin async operation', refresher);
setTimeout(function () {
console.log('Async operation has ended');
refresher.complete();
}, 2000);
};
GroupsPage.prototype.homePages = function () {
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_5__home_home__["a" /* HomePage */], {}, { animate: true, direction: 'forward' });
};
return GroupsPage;
}());
GroupsPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPage */])(),
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-groups',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/groups/groups.html"*/'\n\n\n\n\n\n\n\n \n Home \n\n
\n Learn Words In Groups \n\n \n\n \n\n\n\n\n \n\n \n \n \n \n\n \n \n \n \n Appearance and people
\n {{appearance}} people read this
\n \n \n\n \n \n \n Personal qualities
\n {{personal}} people read this
\n \n \n \n \n \n Emotions and state of mind
\n {{emotions}} people read this
\n \n \n \n \n \n \n Interaction and relationship
\n {{interaction}} people read this
\n \n \n \n \n \n Human action
\n {{human}} people read this
\n \n \n \n \n \n Getting into situation!
\n {{getting}} people read this
\n \n \n \n \n \n \n Talk, talk, talk!
\n {{talk}} people read this
\n \n \n\n \n \n \n \n Culture talk!
\n {{culture}} people read this
\n \n \n \n \n \n \n Law, government and business
\n {{law}} people read this
\n \n \n \n \n \n \n War and medical related terms
\n {{war}} people read this
\n \n\n \n\n \n \n Nature and time
\n {{nature}} people read this
\n \n\n \n \n \n Phenomena and objects
\n {{phenomena}} people read this
\n \n \n \n \n \n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/groups/groups.html"*/,
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* LoadingController */]])
], GroupsPage);
//# sourceMappingURL=groups.js.map
/***/ }),
/***/ 82:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WordetPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_http__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_sqlite__ = __webpack_require__(41);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_text_to_speech__ = __webpack_require__(84);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var WordetPage = (function () {
function WordetPage(navCtrl, navParams, http, sqlite, toastCtrl, LoadingController, tts) {
this.navCtrl = navCtrl;
this.navParams = navParams;
this.http = http;
this.sqlite = sqlite;
this.toastCtrl = toastCtrl;
this.LoadingController = LoadingController;
this.tts = tts;
this.word = [];
var a = this.navParams.get('record');
this.selectedItem = this.navParams.get("record");
// this.selectedItem = a['record1'];
// console.log(this.selectedItem);
this.meaning(this.selectedItem);
// this.nextbut = a['item'];
// console.log(this.next[0]);
// console.log(this.selectedItem);
this.condition = false;
this.bword = false;
}
;
WordetPage.prototype.meaning = function (a) {
var _this = this;
var loading = this.LoadingController.create({
content: 'Please wait while we load the word!',
enableBackdropDismiss: false
});
loading.present();
var url = 'http://test.code2pass.com/wordsapp/meaning.php', body = "&meaning=" + a, type = "application/x-www-form-urlencoded; charset=utf-8", headers = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["a" /* Headers */]({ 'Content-Type': type }), options = new __WEBPACK_IMPORTED_MODULE_2__angular_http__["d" /* RequestOptions */]({ headers: headers });
this.http.post(url, body, options).subscribe(function (data) {
console.log(data['_body']);
var a = JSON.parse(data['_body']);
_this.wordMeaning1 = a[0]['Meaning1'];
// console.log(this.wordMeaning1);
_this.wordMeaning2 = a[0]['Meaning2'];
_this.wordMeaning3 = a[0]['Meaning3'];
_this.ss1 = a[0]['SampleSentence1'];
_this.ss2 = a[0]['SampleSentence2'];
_this.ss3 = a[0]['SampleSentence3'];
_this.pos = a[0]['PartofSpeech'];
_this.root = a[0]['Root'];
_this.Synonyms = a[0]['Synonyms'];
_this.Antonyms = a[0]['Antonyms'];
_this.UsageTips = (a[0]['UsageTips']).replace(//g, '').replace(/<\/p>/g, '\n');
_this.Mnemonics = (a[0]['Mnemonics']);
_this.Pronunciation = a[0]['PronunciationText'];
// console.log(this.wordMeaning);
loading.dismiss();
});
};
WordetPage.prototype.saveWord = function () {
var _this = this;
console.log(this.selectedItem + this.wordMeaning1 + this.ss1);
this.sqlite.create({
name: 'word.db',
location: 'default'
}).then(function (db) {
db.executeSql("create table if not exists word(word varchar(500),meaning varchar(500),sentence varchar(500))", {}).then(function (res) {
}).catch(function (err) { return alert(err); });
db.executeSql('insert into word(word,meaning,sentence) values(?,?,?)', [_this.selectedItem, _this.wordMeaning1, _this.ss1]).then(function (res) {
var toast = _this.toastCtrl.create({
message: 'Word successfully bookmarked!',
duration: 3000,
position: 'top'
});
toast.onDidDismiss(function () {
console.log('Dismissed toast');
});
toast.present();
}).catch(function (err) {
alert("Data cannot be added");
});
});
};
WordetPage.prototype.ionViewDidLoad = function () {
// this.meaning()
};
// toggleDetails(){
// this.condition=true;
// }
WordetPage.prototype.back = function () {
this.navCtrl.pop();
};
WordetPage.prototype.AudioPro = function () {
// this.http.get("http://test.code2pass.com/wordsapp/meaning.php").subscribe((data) => {
// let a =JSON.parse(data['_body']);
// this.selectedItem = a[0]['Word'];
this.tts.speak(this.selectedItem)
.then(function () { return console.log('Success'); })
.catch(function (reason) { return console.log(reason); });
// });
};
return WordetPage;
}());
WordetPage = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'page-wordet',template:/*ion-inline-start:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/wordet/wordet.html"*/'\n\n\n\n \n\n \n WordsApp\n
\n\n\n\n \n\n
\n \n {{selectedItem}} | \n \n | \n
\n \n {{Pronunciation}} | \n {{pos}} | \n
\n \n
\n\n
\n\n \n\n
\n
Meaning :
\n {{wordMeaning1}}\n
\n
\n {{wordMeaning2}}\n
\n\n\n\n
\n {{wordMeaning3}}\n
\n\n
Sample Sentence :
\n\n
\n {{ss1}}\n
\n
\n {{ss2}}\n
\n
\n {{ss3}}\n
\n\n
\n
Synonyms :
\n {{Synonyms}}\n
\n\n\n
\n
Antonyms :
\n {{Antonyms}}\n
\n\n\n
\n
How to use :
\n
{{UsageTips}}
\n
\n\n\n
\n
Mnemonics :
\n
{{Mnemonics}}
\n
\n\n\n
\n
Root :
\n\n {{Root}}\n
\n
\n\n\n\n\n\n'/*ion-inline-end:"/Users/pathakmk/Documents/ionicworkshop/Wordo/src/pages/wordet/wordet.html"*/
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__angular_http__["b" /* Http */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_sqlite__["a" /* SQLite */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["l" /* ToastController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* LoadingController */], __WEBPACK_IMPORTED_MODULE_4__ionic_native_text_to_speech__["a" /* TextToSpeech */]])
], WordetPage);
//# sourceMappingURL=wordet.js.map
/***/ })
},[212]);
//# sourceMappingURL=main.js.map