diff --git a/README.md b/README.md index f63cecb..b4125a6 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,13 @@ ionic plugin add cordova-plugin-file-transfer ionic plugin add https://github.com/an-rahulpandey/cordova-plugin-dbcopy.git -Crosswlak +Crosswalk -------------------- ionic browser add crosswalk oder ionic plugin add cordova-plugin-crosswalk-webview + +JS-Libs +---------------------- + diff --git a/www/css/custom_style.css b/www/css/custom_style.css index 0c685f7..17e34a5 100644 --- a/www/css/custom_style.css +++ b/www/css/custom_style.css @@ -1,15 +1,19 @@ +md-input-container { + padding-bottom: 10px; +} + .image-list-thumb { padding: 2px 2px 2px 2px; - height: 100px; + height: 64px; } .pokemontyp1 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #D50000; color: white; @@ -18,17 +22,17 @@ .pokemontyp1 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp2 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #C51162; color: white; @@ -37,17 +41,17 @@ .pokemontyp2 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp3 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #AA00FF; color: white; @@ -56,17 +60,17 @@ .pokemontyp3 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp4 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #6200EA; color: white; @@ -75,17 +79,17 @@ .pokemontyp4 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp5 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #304FFE; color: white; @@ -94,17 +98,17 @@ .pokemontyp5 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp6 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #2962FF; color: white; @@ -113,17 +117,17 @@ .pokemontyp6 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp7 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #0091EA; color: white; @@ -132,17 +136,17 @@ .pokemontyp7 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp8 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #00B8D4; color: white; @@ -151,17 +155,17 @@ .pokemontyp8 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp9 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #00BFA5; color: white; @@ -170,17 +174,17 @@ .pokemontyp9 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp10 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #1B5E20; color: white; @@ -189,17 +193,17 @@ .pokemontyp10 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp11 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #33691E; color: white; @@ -208,17 +212,17 @@ .pokemontyp11 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp12 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #827717; color: white; @@ -227,17 +231,17 @@ .pokemontyp12 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp13 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #F57F17; color: white; @@ -246,17 +250,17 @@ .pokemontyp13 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp14 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #FF6F00; color: white; @@ -265,17 +269,17 @@ .pokemontyp14 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp15 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #E65100; color: white; @@ -284,17 +288,17 @@ .pokemontyp15 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp16 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #BF360C; color: white; @@ -303,17 +307,17 @@ .pokemontyp16 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp17 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #3E2723; color: white; @@ -322,17 +326,17 @@ .pokemontyp17 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } .pokemontyp18 { display: inline-block; padding: 0 25px; - height: 50px; + height: 32px; font-size: 16px; - line-height: 50px; + line-height: 32px; border-radius: 25px; background-color: #212121; color: white; @@ -341,7 +345,7 @@ .pokemontyp18 img { float: left; margin: 0 10px 0 -25px; - height: 50px; - width: 50px; + height: 32px; + width: 32px; border-radius: 50%; } \ No newline at end of file diff --git a/www/css/style.css b/www/css/style.css index 826a453..7385be9 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -236,13 +236,13 @@ md-sidenav { text-align: center; } .toolbar-medium { - max-height: 160px !important; - height: 160px !important; + max-height: 55px !important; + height: 55 !important; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); } .toolbar-medium div { - padding: 26px 10px 10px 10px; + padding: 10px 5px 5px 5px; text-align: center; - height: inherit !important; } + } .toolbar-medium h1 { color: white; font-size: 34px; } @@ -253,7 +253,7 @@ md-sidenav { color: white; font-size: 28px !important; } .toolbar-medium md-input-container { - margin: auto 20px auto 20px; } + margin: auto 10px auto 10px; } .toolbar-medium md-input-container input { border-bottom-color: white; color: white; } @@ -485,7 +485,7 @@ md-sidenav { text-overflow: ellipsis; } #contract-list-content { - margin-top: 164px; } + margin-top: 84px; } #contract-list-content .contract-list-item { padding: 14px 5px 14px 5px; } #contract-list-content .contract-list-item .col-25.icon-user { diff --git a/www/js/app.js b/www/js/app.js index 3415374..d9720f8 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -39,7 +39,7 @@ window.globalVariable = { };// End Global variable -angular.module('starter', ['ionic','ngIOS9UIWebViewPatch', 'starter.controllers', 'starter.services', 'ngMaterial', 'ngMessages', 'ngCordova']) +angular.module('starter', ['ionic','ngIOS9UIWebViewPatch','starter.controllers', 'starter.services', 'ngMaterial', 'ngMessages', 'ngCordova']) .run(function ($ionicPlatform, $cordovaSQLite, $rootScope, $ionicHistory, $state, $mdDialog, $mdBottomSheet) { //Create database table of contracts by using sqlite database. diff --git a/www/templates/application-storage/sqLite/html/contract-list.html b/www/templates/application-storage/sqLite/html/contract-list.html index 82dca62..1cd80e9 100644 --- a/www/templates/application-storage/sqLite/html/contract-list.html +++ b/www/templates/application-storage/sqLite/html/contract-list.html @@ -5,7 +5,7 @@ - + - +
-

Pokedex Helper

-

Dein Trainertool deluxe

- +
- - -
@@ -39,23 +32,10 @@
+ ng-repeat="pokemon in pokemons | filter: filterText | orderBy: 'pokemonname' | limitTo: numberOfItemsToDisplay">
-
-
-

{{ pokemon.pokemonname }}

-

Nr.: {{ pokemon.pokedexidString }}

-
- PokemonTyp - {{ pokemon.pokemontypaString }} -
-
- PokemonTyp - {{ pokemon.pokemontypbString }} -
-
-
+

@@ -114,6 +94,20 @@ + + +

+
+

{{ pokemon.pokemonname }}

+
Nr.: {{ pokemon.pokedexidString }}
+
+ PokemonTyp + {{ pokemon.pokemontypaString }} +
+
+ PokemonTyp + {{ pokemon.pokemontypbString }} +
@@ -134,6 +128,9 @@ + + + diff --git a/www/templates/application-storage/sqLite/js/controllers.js b/www/templates/application-storage/sqLite/js/controllers.js index a7db1da..cc7e55f 100644 --- a/www/templates/application-storage/sqLite/js/controllers.js +++ b/www/templates/application-storage/sqLite/js/controllers.js @@ -41,6 +41,7 @@ appControllers.controller('contractListCtrl', function ($scope, $stateParams,$fi jQuery('#contract-list-loading-progress').fadeIn(700); } }, 400); + $timeout(function () { //Get all contracts. @@ -53,6 +54,13 @@ appControllers.controller('contractListCtrl', function ($scope, $stateParams,$fi };// End initialForm. + + $scope.numberOfItemsToDisplay = 20; // Use it with limit to in ng-repeat + $scope.addMoreItem = function(done) { + if ($scope.pokemons.length > $scope.numberOfItemsToDisplay) + $scope.numberOfItemsToDisplay += 20; // load number of more items + $scope.$broadcast('scroll.infiniteScrollComplete') + } // getPokemonList is for get all contracts. // By calling pokedexDB.all() service. $scope.getPokemonList = function () { diff --git a/www/templates/application-storage/sqLite/js/services.js b/www/templates/application-storage/sqLite/js/services.js index 565fb90..38a2be0 100644 --- a/www/templates/application-storage/sqLite/js/services.js +++ b/www/templates/application-storage/sqLite/js/services.js @@ -59,7 +59,7 @@ appServices.factory('pokedexDB', function ($cordovaSQLite) } }); // Variable for prepare query statement to select all contracts. - var query = "SELECT * FROM tblPokemon order by POKEDEXID ASC"; + var query = "SELECT * FROM tblPokemon"; // Execute query statement from query variable. $cordovaSQLite.execute(db, query).then(function (res) diff --git a/www/templates/menu/html/menu.html b/www/templates/menu/html/menu.html index 902b086..d0ad6df 100644 --- a/www/templates/menu/html/menu.html +++ b/www/templates/menu/html/menu.html @@ -22,9 +22,9 @@

- Ionic Material + Pokedex Helper
- Material Design Application + Dein Trainertool deluxe