text: /**
   * First we will load all of this project's JavaScript dependencies which
   * includes React and other helpers. It's a great starting point while
   * building robust, powerful web applications using React + Laravel.
   */
  
  require('./bootstrap');
  
  /**
   * Next, we will create a fresh React component instance and attach it to
   * the page. Then, you may begin adding components to this application
   * or customize the JavaScript scaffolding to fit your unique needs.
   */
  
  require('./components/MapBox');
  require('./components/FavoriteButton');
  require('./components/RestaurantReview');
  require('bootstrap-input-spinner');
  
  /*****************************************************************************/
  
  const getFontSize = (textLength) => {
      if (textLength >= 15) {
          return `1.75rem`;
      }
      return `2.25rem`;
  };
  
  const contents = document.querySelectorAll('.content h1');
  
  contents.forEach(content => {
      content.style.fontSize = getFontSize(content.textContent.length);
  });
  