GitXplorerGitXplorer
d

restaurant-reviews-OpenClassRooms-project-7

public
1 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
8367c8a501f70508f54336754d52e1f21a3565cf

reformat error code

ddebs-obrien committed 7 years ago
Unverified
970b463c6aab35f93683c55ab3e7098b00494f7b

error message

ddebs-obrien committed 7 years ago
Unverified
1b60019738f4f2a94db11063f202576f8f465a11

error message extended

ddebs-obrien committed 7 years ago
Unverified
f49f28f5f3f1b1e95f6e77a26688eb3002feea96

error codes

ddebs-obrien committed 7 years ago
Unverified
09d058a39b96975aaf5edbfdb25cc9bde2aa88ba

error messages

ddebs-obrien committed 7 years ago
Unverified
4b8e3ee4584c4d0b542da5059869a524073ef7e0

error code messages

ddebs-obrien committed 7 years ago

README

The README file for this repository.

Launch your own restaurant review site

FrontEnd Web Developer Project 7

JavaScript, Google maps API, Google Places API, HTML5, CSS3

  • A Google Maps map loaded with the Google Maps API
  • The Google Maps map will focus immediately on the position of the user.
  • A list of restaurants is provided as JSON data in a separate file
  • A list of restaurants on the right side of the page that are within the area displayed on the map
  • When you click on a restaurant, the list of reviews should be shown
  • Also show the Google Street View photo via the corresponding API!
  • A filter tool allows the display of restaurants that have between X and Y stars
  • Add a restaurant by clicking on a specific place on the map
  • Use the Google search API to find restaurants in a particular display area.

By Debbie O'Brien

25 September 2017

View the applicatiion here

https://debs-obrien.github.io/restaurant-reviews-OpenClassRooms-project-7

Screenshot

Example Code

/*-----------------------------------------------------------------------------------
Builds the small info Window
-------------------------------------------------------------------------------------*/
function buildIWContentSmall(place) {
   document.getElementById('iw-icon-small').innerHTML = '<img class="photo" ' + 'src="https://raw.githubusercontent.com/debs-obrien/restaurant-reviews-OpenClassRooms-project-7/master/' + createPhoto(place) + '"/>';
   document.getElementById('iw-url-small').innerHTML = '<b>' + place.name + '</b>';
   if (place.rating) {
       let ratingHtml = '';
       for (let i = 0; i < 5; i++) {
          if (place.rating < (i + 0.5)) {
              ratingHtml += '&#10025;';
          } else {
              ratingHtml += '&#10029;';
          }
          document.getElementById('iw-rating-small').style.display = '';
          document.getElementById('iw-rating-small').innerHTML = ratingHtml;
       }
   } else {
       document.getElementById('iw-rating-small').style.display = 'none';
   }
}