text: /**
   * Created by tene on 14/10/19.
   */
  
  (function(){
      $(document).ready(function(){
  
          var motto = document.getElementById("motto");
  
          getSiteDefaultCompany ();
  
  
          function getSiteDefaultCompany (){
              //console.log("getting answers...");
  
              $.ajax({
                  type: "GET",
                  headers: {
                      'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                  },
                  contentType: "application/json",
                  url: '/exams/site/json/',
  
                  dataType: "json",
                  success:function(response){
  
                      console.log("default company...1: ",response);
                      setCompany(response);
  
                  },
  
                  error: function (request, status, error) {
                      console.log(request.responseText);
  
                      //fillAnswerErr(request.responseText);
                  },
                  statusCode: {
                      404: function() {
                          console.log( "page not found" );
                      }
                  }
              });
          }
  
  
          function setCompany(company) {
              if(motto){
                  //$('#motto').text(company.motto);
                  console.log("The motto is ", company.motto);
              } else {
                  console.log("no motto");
              }
          }
  
  
      });
  })();
  
  