diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..aef8443 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/Angular/App.js b/Angular/App.js new file mode 100644 index 0000000..1441905 --- /dev/null +++ b/Angular/App.js @@ -0,0 +1,24 @@ +angular.module('app', [ 'ui.bootstrap', 'ngRoute' ]).config(function($routeProvider) { + $routeProvider + .when('/', { + templateUrl: './WelcomePage.html' + }) + .when('/about', { + templateUrl: './about.html' + }) + .when('/signup', { + templateUrl: './signup.html', + controller: 'signup' + }) + .when('/food', { + templateUrl: './food.html', + controller: 'food' + }) + .when('/signin', { + templateUrl: './signin.html', + controller: 'signin' + }) + .when('/ThankYouPage', { + templateUrl: './ThankYouPage.html' + }); +}); diff --git a/Angular/ThankYouPage.html b/Angular/ThankYouPage.html new file mode 100644 index 0000000..73ed12e --- /dev/null +++ b/Angular/ThankYouPage.html @@ -0,0 +1,4 @@ +
+
+ Your Restaurnt will Be Exposse To thousands of people every day and You can get benefit from this to get new customers and make your busness biger.
+Whate the requirements to get your restarunt accsepted ?! + All You need to have is good restarunt and have a good
+customer servers and our team will come to you to check every thing and you will be accsepted +
+This App Is to Make your life Easy when You order food You just Put in How much you want to eat + and we will
+take care of the rest we will give you famous restaurnts and none famous restaurnt how have meals under your Budget and You will pick Your favorite +
+
+ Hands down the best food I had in Jordan. We went with friends while visiting Amman and the whole experience was just great. Every item was delicious and quantity was huge. We ordered various selection of appetizers. The customer service was so very warm and friendly. The restaurant has a very warm welcoming decor. +
+ +I loved the food. Service was great, nice and peaceful atmosphere - all you need to enjoy a good meal is available here. +
+best service and food. i highly reccomend it , I enjoyed it very much +
+\ No newline at end of file diff --git a/Angular/about.html b/Angular/about.html new file mode 100644 index 0000000..537b169 --- /dev/null +++ b/Angular/about.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/Angular/data.json b/Angular/data.json new file mode 100644 index 0000000..94a3ecf --- /dev/null +++ b/Angular/data.json @@ -0,0 +1,33 @@ +[ + { + "resturant": "Al Hanayen", + "meal": "shawarma arabic", + "price": 5, + "describtion": "this returent in jabal amman near circle two" + }, + { + "resturant": "Hashem", + "meal": "Broasted", + "price": 6, + "describtion": "this returent in down town near abu jabara" + }, + { + "resturant": "Ghazal", + "meal": "Burger", + "price": 3, + "describtion": "this returent in abdalla alchosheh street near circle seven" + }, + { + "resturant": "Ghazal", + "meal": "Zinger", + "price": 2, + "describtion": "this returent in abdalla alchosheh street near circle seven" + }, + { + "resturant": "KFC", + "meal": "Burger", + "price": 2, + "describtion": "this returent in abdalla alchosheh street near circle seven" + } + +] diff --git a/Angular/filter.js b/Angular/filter.js new file mode 100644 index 0000000..89621e0 --- /dev/null +++ b/Angular/filter.js @@ -0,0 +1,18 @@ +// angular.module('app') +// .filter('filterData', function(){ +// return function(resturentList , priceInfo){ + +// var max = priceInfo; +// console.log(max) +// var choosedPrice = []; + +// angular.forEach(resturentList, function(resturent){ +// console.log(resturent) +// if(resturent.price <= max){ +// choosedPrice.push(resturent) +// } +// }) +// console.log(choosedPrice) +// return choosedPrice; +// } +// }) \ No newline at end of file diff --git a/Angular/food.html b/Angular/food.html new file mode 100644 index 0000000..f85907a --- /dev/null +++ b/Angular/food.html @@ -0,0 +1,14 @@ +
diff --git a/Angular/food.js b/Angular/food.js new file mode 100644 index 0000000..73c5889 --- /dev/null +++ b/Angular/food.js @@ -0,0 +1,37 @@ +angular.module('app').controller('food', function($scope, $http, $location, $rootScope) { + $scope.meals; + $scope.search = function() { + $http({ + method: 'post', + url: '/getMealsByPrice', + data: JSON.stringify({ + price: $scope.input + }), + headers: { 'Content-Type': 'application/json' } + }) + .then(function(response) { + console.log(response.data); + $scope.meals = response.data; + }) + .catch(function(error) { + console.log(error); + }); + }; + + // $scope.showInfo = function() { + // $http({ + // method: 'post', + // url: '/getRest', + // data: JSON.stringify({ + // info: $scope.meal.restId + // }), + // headers: { 'Content-Type': 'application/json' } + // }) + // .then(function(result) { + // console.log(result); + // }) + // .catch(function(error) { + // console.log(error); + // }); + // }; +}); diff --git a/Angular/index.html b/Angular/index.html new file mode 100644 index 0000000..172390b --- /dev/null +++ b/Angular/index.html @@ -0,0 +1,37 @@ + + +
+ +
+ + + + + + + + +
+