title: Why isn't my Bootstrap carousel or jQuery code working in Safari?
body: <p>I've been coding for a month so sorry if this has an easy answer, but I've been searching for days with no result. </p>
  
  <p>I've built a simple practise webpage using a Bootstrap carousel as the page background and jQuery to make divs (where page content will eventually go) appear. When I open the HTML file in Chrome, Firefox and Opera the page works fine, but when the file is opened in Safari on an iPhone or iPad, the links to the divs don't work (when clicked, nothing appears) and the Carousel doesn't work at all, instead appearing as four separate images down the page with simple 'previous' and 'next' links appearing at the bottom of the page. Unfortunately I have no way to test the page on a desktop version of Safari. I feel like there's something simple I'm missing but I can't figure it out. Thanks in advance. Below is the entire code for my site (CSS, HTML and jQuery), and here is a jsFiddle of the page: <a href="https://jsfiddle.net/fh8pxqqt/" rel="nofollow">https://jsfiddle.net/fh8pxqqt/</a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"&gt;
  
  
  
  &lt;link rel="icon" type="image/png"  href="http://res.cloudinary.com/jamesddavies/image/upload/v1469359895/strohl_logo_bod9yw.png"/&gt;
  
  
  &lt;title&gt;Alex Strohl&lt;/title&gt;
  
  &lt;style&gt;
  
  #bg-wrapper {
      position: relative;
  }
  
  /*Carousel Background*/
  
  #carousel-bg {
      width: 100%;
      height: 100%;
  }
  
  .carousel-inner &gt; .item &gt; img, .carousel-inner &gt; .item &gt; a &gt; img {
      width: 100%;
      height: 100vh;
      overflow: hidden;
      object-fit: cover;
      -webkit-object-fit: cover;
      -o-object-fit: cover;
      -moz-object-fit: cover;
  }
  
  /*Nav*/
  
  nav {
  
  }
  
  ul {
      height: 75px;
      line-height: 50px;
      background: rgba(255,255,255,0.4);
      text-align: left;
      padding: 10px;
      z-index: 1;
      position: absolute;
      width: 100%;
  }
  
  ul:hover {
      background: rgba(255,255,255,1);
      transition: 500ms;
      -webkit-transition: 500ms;
      -o-transition: 500ms;
      -moz-transition: 500ms;
  }
  
  ul:not(:hover) {
      background: rgba(255,255,255,0.4);
      transition: 500ms;
      -webkit-transition: 500ms;
      -o-transition: 500ms;
      -moz-transition: 500ms;
  }
  
  ul img {
      padding-right: 30px;
      padding-left: 30px;
  
  }
  
  ul img:hover {
      opacity: 0.5;
      filter:Alpha(opacity=50);
      transition: 300ms;
      -webkit-transition: 300ms;
      -o-transition: 300ms;
      -moz-transition: 300ms;
  }
  
  ul img:not(:hover) {
      opacity: 1;
      filter:Alpha(opacity=50);
      transition: 300ms;
      -webkit-transition: 300ms;
      -o-transition: 300ms;
      -moz-transition: 300ms;
  }
  
  li {
      color: rgba(0,0,0,1);
      text-decoration: none;
  }
  
  .link:focus {
      color: rgba(0,0,0,0.5);
      text-decoration: none;
  }
  
  .link:hover {
      text-decoration: none;
      color: rgba(0,0,0,0.5);
      transition: 300ms;
      -webkit-transition: 300ms;
      -o-transition: 300ms;
      -moz-transition: 300ms;
      cursor: pointer;
  }
  
  .link:not(:hover) {
      color: rgba(0,0,0,1);
      transition: 300ms;
      -webkit-transition: 300ms;
      -o-transition: 300ms;
      -moz-transition: 300ms;
  }
  
  .link:click {
      color: rgba(0,0,0,0.5);
  }
  
  li {
      display: inline;
      vertical-align: middle;
      line-height: normal;
      padding: 10px;
      z-index: 1;
  }
  
  li img {
      height: 50px;
      width: auto;
  }
  
  
  
  /*adventures*/
  
  #adventures-wrapper {
      text-align: center;
  }
  
  .adventures {
      width: 80%;
      height: 70%;
      background-color: rgba(255,255,255,0.9);
      color: rgba(0,0,0,1);
      position: absolute;
      top: 120px;
      left: 0;
      right: 0;
      margin: 0 auto;
      z-index: 1;
      display: none;
  }
  
  /*commissions*/
  
  #commissions-wrapper {
      text-align: center;
  }
  
  .commissions {
      width: 80%;
      height: 70%;
      background-color: rgba(255,255,255,0.9);
      color: rgba(0,0,0,1);
      position: absolute;
      top: 120px;
      left: 0;
      right: 0;
      margin: 0 auto;
      z-index: 1;
      display: none;
  }
  
  /*book*/
  
  #book-wrapper {
      text-align: center;
  }
  
  .book {
      width: 80%;
      height: 70%;
      background-color: rgba(255,255,255,0.9);
      color: rgba(0,0,0,1);
      position: absolute;
      top: 120px;
      left: 0;
      right: 0;
      margin: 0 auto;
      z-index: 1;
      display: none;
  }
  
  /*alex*/
  
  #alex-wrapper {
      text-align: center;
  }
  
  .alex {
      width: 80%;
      height: 70%;
      background-color: rgba(255,255,255,0.9);
      color: rgba(0,0,0,1);
      position: absolute;
      top: 120px;
      left: 0;
      right: 0;
      margin: 0 auto;
      z-index: 1;
      display: none;
  }
  
  /*contact*/
  
  #contact-wrapper {
      text-align: center;
  }
  
  .contact {
      width: 80%;
      height: 70%;
      background-color: rgba(255,255,255,0.9);
      color: rgba(0,0,0,1);
      position: absolute;
      top: 120px;
      left: 0;
      right: 0;
      margin: 0 auto;
      z-index: 1;
      display: none;
  }
  
  /*responsive design*/
  
  @media (max-width: 1000px){
  
      ul {
          text-align: center;
      }
  
  }
  
  
  &lt;/style&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  
  &lt;div id="bg-wrapper"&gt;   
  
      &lt;!--Navbar--&gt;
  
      &lt;div class="nav"&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;img src="http://res.cloudinary.com/jamesddavies/image/upload/v1469359895/strohl_logo_bod9yw.png"&gt;&lt;/li&gt;
              &lt;li class="link adventures-link"&gt;Adventures&lt;/li&gt;
              &lt;li class="link commissions-link"&gt;Commissions&lt;/li&gt;
              &lt;li class="link book-link"&gt;Book&lt;/li&gt;
              &lt;li class="link alex-link"&gt;Alex&lt;/li&gt;
              &lt;li class="link contact-link"&gt;Contact&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  
      &lt;!--Adventures--&gt;
  
      &lt;div id="adventures-wrapper"&gt;
      &lt;div class="adventures"&gt;
              &lt;h1&gt;Adventures&lt;/h1&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;!--Commissions--&gt;
  
      &lt;div id="commissions-wrapper"&gt;
      &lt;div class="commissions"&gt;
              &lt;h1&gt;Commissions&lt;/h1&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;!--Book--&gt;
  
      &lt;div id="book-wrapper"&gt;
      &lt;div class="book"&gt;
              &lt;h1&gt;Book&lt;/h1&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;!--Alex--&gt;
  
      &lt;div id="alex-wrapper"&gt;
      &lt;div class="alex"&gt;
              &lt;h1&gt;Alex&lt;/h1&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;!--Contact--&gt;
  
      &lt;div id="contact-wrapper"&gt;
      &lt;div class="contact"&gt;
              &lt;h1&gt;Contact&lt;/h1&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;!--Carousel background--&gt;
  
  &lt;div id="carousel-bg" class="carousel slide" data-ride="carousel" data-pause="false"&gt;
  
      &lt;!--Indicators--&gt;
      &lt;ol class="carousel-indicators hidden"&gt;
          &lt;li data-target="#carousel-bg" data-slide-to="0" class="active"&gt; &lt;/li&gt;
          &lt;li data-target="#carousel-bg" data-slide-to="1"&gt;&lt;/li&gt;
          &lt;li data-target="#carousel-bg" data-slide-to="2"&gt;&lt;/li&gt;
          &lt;li data-target="#carousel-bg" data-slide-to="3"&gt;&lt;/li&gt;
      &lt;/ol&gt;
  
      &lt;!--Wrapper for slides--&gt;
      &lt;div class="carousel-inner" role="listbox"&gt;
          &lt;div class="item active"&gt;
              &lt;img src="http://res.cloudinary.com/jamesddavies/image/upload/v1469264082/STROHL__MG_1150-Edit_wdcn2g.jpg"&gt;
          &lt;/div&gt;
  
          &lt;div class="item"&gt;
              &lt;img src="http://res.cloudinary.com/jamesddavies/image/upload/v1469264097/_ST_3667_ob8jtb.jpg"&gt;
          &lt;/div&gt;
  
          &lt;div class="item"&gt;
              &lt;img src="http://res.cloudinary.com/jamesddavies/image/upload/v1469264105/_ST_4081_yb2vdd.jpg"&gt;
          &lt;/div&gt;
  
          &lt;div class="item"&gt;
              &lt;img src="http://res.cloudinary.com/jamesddavies/image/upload/v1469264128/_ST_9411_h9ftou.jpg"&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;!--Left and Right controls--&gt;
      &lt;a class="left carousel-control hidden" href="#carousel-bg" role="button" data-slide="prev"&gt;
          &lt;span class="glyphicon glyphicon-chevron-left" aria-hidden="true"&gt;&lt;/span&gt;
          &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
      &lt;/a&gt;
  
      &lt;a class="right carousel-control hidden" href="#carousel-bg"  role="button" data-slide="next"&gt;
          &lt;span class="glyphicon glyphicon-chevron-right" aria-hidden="true"&gt; &lt;/span&gt;
          &lt;span class="sr-only"&gt;Next&lt;/span&gt;
      &lt;/a&gt;
  
  
  &lt;/div&gt;      
  
  
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  
  &lt;script&gt;
  
  /*Link functionality*/
  
      $(document).ready(function(){
          $("#carousel-bg").click(function(){
              $(".adventures, .commissions, .book, .alex, .contact").hide(500);
          });
      });
  
      $(document).ready(function(){
      $(".adventures-link").click(function(){
              $(".adventures").toggle(500);
              $(".commissions, .book, .alex, .contact").hide(500);
          });
      });
  
      $(document).ready(function(){
      $(".commissions-link").click(function(){
              $(".commissions").toggle(500);
              $(".adventures, .book, .alex, .contact").hide(500);
          });
      });
  
      $(document).ready(function(){
      $(".book-link").click(function(){
              $(".book").toggle(500);
              $(".adventures, .commissions, .alex, .contact").hide(500);
          });
      });
  
      $(document).ready(function(){
      $(".alex-link").click(function(){
              $(".alex").toggle(500);
              $(".adventures, .commissions, .book, .contact").hide(500);
          });
      });
  
      $(document).ready(function(){
      $(".contact-link").click(function(){
              $(".contact").toggle(500);
              $(".adventures, .commissions, .book, .alex").hide(500);
          });
      });
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  </code></pre>