css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- Afin de valider ton code HTML, clic sur la petite flèche en haut à droite de cette fenêtre. Pour rappel, tu peux jeter un oeil par ici pour en savoir un peu plus: https://blog.codepen.io/2017/10/11/analyze-css-now-using-stylelint/ -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta  name='viewport' content= 'width=device-width'>
    <meta  name='description' content= 'Welcome to the website'>
    <link href="https://fonts.googleapis.com/css?family=Amatic+SC" rel="stylesheet">
    <link rel="stylesheet" href="WildCircus.css">
    <link rel="stylesheet" media="screen and (max-width: 1280px)" href="petite_wildcircus.css" />
    <title>Wild Circus</title>
</head>

<body>
    <header>
      <h1>Wild Circus</h1>
      <nav>
        <ul>
            <!-- TODO: Les liens du menu doivent nous emmener vers les sections correspondantes dans la page -->
            <li><a href='#performances'>Performances</a></li>
            <li><a href='#about'>About Us</a></li>
            <li><a href='#prices'>Prices</a></li>
            <li><a href='#contact'>Contact</a></li>
        </ul>
      </nav>

    </header>

<div id="content_diaporama">
  <div id="diaporama">
  </div>
</div>
    <section id="section1">
      <h2 id = "performances" title="Click to see the content or hide it">Performances</h2>

      <div>
      <!-- TODO: En utilisant du css place ces trois performances ("lough", "dream, "marvel at") sur la même ligne en enlevant le point généré par la balise "li". Attention, utilise bien le css pour aligner les éléments, tu ne dois pas enlever les balises "li"-->
      <ul>
        <!-- performance 1 -->
        <li>
            <h3>Laugh</h3>
            <p>As an adult, come and discover our irresistible clowns, between practical jokes and pranks let yourself be carried away by their joy and fall back into childhood.</p>
         </li>
        <!-- performance 2 -->
         <li>
            <h3>Dream</h3>
            <p>Let yourself be carried away in a world where the real and the imaginary are one, in the company of our talented magicians, discover a wonderful world limited only by your imagination.</p>
         </li>
         <!-- performance 3 -->
         <li>
            <h3>Marvel at</h3>
            <p>Tame the untameable in the company of our tamers, between roar and razor-sharp claws, watch these fierce felines turn into sweet kittens.</p>
         </li>
      </ul>

    </div>
    </section>

    <hr/>

    <section id="section2">
      <h2 id = "about" class="content-visible" title="Click to see the content or hide it">About Us</h2>

      <div>
      <p>
        <img src="https://images.pexels.com/photos/476/man-person-red-white.jpg?auto=compress&cs=tinysrgb&h=350" alt="clowns"/>
        <img src="https://images.pexels.com/photos/34111/charlie-chaplin-copy-circus-white.jpg?auto=compress&cs=tinysrgb&h=350" alt="charlie-chaplin"/>
      </p>
      <!-- TODO: Cette section n'a pas encore été réalisée, tu as carte blanche pour nous montrer ta créativité -->
      <p>
        Wild Circus is a contemporary circus arts company that offers social circus workshops and visually captivating circus performances. We specialize in inventive live performances and the creative use of geometrical shapes to perform our circus acts.
      </p>

      <p>The founder of the company Anna Stépanoff, is social work trained and has worked as a social worker doing youth work prior to setting up the company. she sees a service gap in that children and youths are often not given the opportunities to express themselves through alternative means. Thus, Wild Circus was set up in 2014. The company has since worked with more than 2000 under-privileged children and youths from a broad spectrum of settings, residential homes, special needs schools, Normal(Technical) Stream students from mainstream schools and certain underprivileged communities overseas in asia, africa and europe.
      </p>

    </div>
    </section>

    <hr/>

    <section>
      <h2 id = "prices" class="content-visible" title="Click to see the content or hide it">Prices</h2>

      <div>
      <!-- TODO:  Réalise un tableau qui présente les différents prix. Exemple (aggrandis la fenêtre en largeur pour bien voir l'exemple ci-dessous) :

                                | Adultes | Enfants de moins de 12 ans | Groupes (plus de 10 personnes) | Ecoles
        Semaines hors mercredi  |         |                         |                                |
        week-end et mercredi    |         |                         |                                |
      -->




      <table>

        <tr>
          <td>&nbsp;</td>
          <td>Adult</td>
          <td>Child under 12 years</td>
          <td>Group</td>
          <td>School</td>
        </tr>

        <tr>
          <td>Weeks off Wednesday</td>
          <td>$29</td>
          <td>$19</td>
          <td>$86</td>
          <td>$110</td>
        </tr>

        <tr>
          <td>Weekend and Wednesday</td>
          <td>$35</td>
          <td>$25</td>
          <td>$100</td>
          <td>$120</td>
        </tr>

      </table>
        </div>

    </section>

    <hr/>

    <section>
      <h2 id = "contact" class="content-visible" title="Click to see the content or hide it">Contact Us</h2>

      <div>
      <!-- TODO: Réalise un formulaire de contact avec les champs email et message plus un bouton pour envoyer le message. Pense bien à ajouter les labels pour les différents champs
        Ce formulaire n'a pas besoin d'être fonctionnel, réalise juste la mise en forme.
      -->



      <form method="post">

        <fieldset>

        <label for="name">Enter your name :</label>
        <input type="text" id="name" placeholder="name"><br>

        <label for="email">Enter your email :</label>
        <input type="email" id="email" placeholder="email" required><span id="validation-email"></span><br>

        <label for="message">Enter your message :</label>
        <textarea id="message" placeholder="message"></textarea><br><br>

        <input type="submit" value="Send">

      </fieldset><br/>

    </form>

    <div id="map"></div>

    </div>
    </section>

    <footer>
      <!-- TODO: Entre ton nom et prénom.
        Mets en place un lien vers le site de la Wild Code School (https://wildcodeschool.fr).
        Tu peux egalement mettre un lien sur ton nom vers ton site, ton blog ou ton profil github ou linkedin, si tu en a un.
       -->
      <p>Wild Circus by Joan RULLE - France-IOI: <a href="http://www.france-ioi.org/user/perso.php?sLogin=joanr" target="_blank">My profil France-IOI </a> - SoloLearn: <a href="https://www.sololearn.com/Profile/1990005" target="_blank">My profil
SoloLearn</a> - Code pen: <a href="https://codepen.io/JoanR/pen/bxGjYv">My profil Code pen</a> - <a href="https://wildcodeschool.fr" target="_blank">Wild Code School</a> - 19/08/2018</p>
    </footer>


    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCJrF5xBhoK9QbeQHdSYSnLk-CFrGxlvWg&callback=initMap"
    async defer></script>
    <script src="WildCircus.js"></script>
</body>
</html>

            
          
!
            
              body{
  margin: 0;
  padding: 0;
  background-color: gold;
}

h1, h2, h3, header ul li{
  font-family: 'Amatic SC', 'cursive', serif;
  font-weight: bold;
}

h1, h2{
  width: 20%;
  margin: auto;
}
h2{
  margin-bottom: 30px;
  margin-top: 40px;
}
li{
  list-style-type: none;
}

a{
  text-decoration: none;
  color: green;
}
a:hover, h2:hover{
  color: red;
}

/*HEADER*/

header ul{
  width: 60%;
  margin: auto;
  display: flex;
  justify-content:space-between;
}
header ul li{
font-size: 2em;
padding: 10px;
margin: 10px 0;
}

/*DIAPORAMA*/

#diaporama{
  border: 1px solid black;
  border-radius: 10px;
  height: 900px;
  width: 64%;
  box-shadow: 10px 5px 5px black;
  margin: auto;
  margin-bottom: 20px;
}

/*SECTION - 1*/

#section1 ul{
  display: flex;
  width: 80%;
  margin: auto;

}
#section1 ul li{
margin: 0 20px;
}
#section2{
  display: flex;
  flex-direction: column;
}
#section2 p{
  align-self: center;
  text-align: center;
}
#section2 p img{
  margin-left: 20px;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 10px 5px 5px black;
}

/*PRICE*/

table{
  border-collapse: collapse;
  margin: auto;
}

td{
  font-size: 1.4em;
  letter-spacing: 1px;
  border: 1px solid #fff;
  padding: 10px;
  margin: 0 auto;
  background-color: green;
  color: #fff;
}

/*FORM*/

form{
display: flex;
flex-direction: column;
align-items: center;
font-size: 1.4em;
letter-spacing: 1px;
}

#name{
  margin-left: 40px;
}
#email{
  margin-left: 38px;
}
#message{
  margin-left: 4px;
  margin-top: 10px;
}

/*FOOTER*/

footer p{
  width: 60%;
  margin: auto;
}

/*API GOOGLE MAP*/

#map{
  height: 800px;
  width: 60%;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 10px 5px 5px black;
}

#contentMap{
  height: 200px;
  width: 150px;
}

  /*RESPONSIVE*/
  
@media all and (max-width: 1280px){

  header ul,#section1 ul{
    flex-wrap: wrap;
  }
  #content_diaporama,#section2 p img,#map{
    display: none;
  }

}

            
          
!
            
              //DIAPORAMA
window.addEventListener('load', function opacite(){
    setInterval(delay, 4000);

  let diaporama = document.querySelector('#diaporama');
  let image1 = document.createElement('img');
  image1.id = 'image1';
  image1.src = 'https://images.unsplash.com/photo-1524309124783-00473b0bbd21?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=3eed7436a3057e6cf40f1aa62c58b3a0&auto=format&fit=crop&w=500&q=60';
  image1.style.height = 900 + 'px';
  image1.style.width = 100 + '%';
  image1.style.borderRadius = 10 + 'px';

  let booleenCondition = true;
  let booleenCondition2 = false;
  diaporama.appendChild(image1);

  function delay(){

    let diaporama = document.querySelector('#diaporama');

    if (booleenCondition == true) {
      image1.src = 'https://images.unsplash.com/photo-1491339526372-c7112c8e37f3?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=3da4812a474b270a21d497d2a3a1a025&auto=format&fit=crop&w=500&q=60';
      booleenCondition = false;
      booleenCondition2 = true;
      diaporama.appendChild(image1);

  }else if (booleenCondition == false && booleenCondition2 == true) {
    image1.src = 'https://images.unsplash.com/photo-1476611550464-4b94f060e1c6?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=77e2584321c9dd1d911c3f9ea869312a&auto=format&fit=crop&w=500&q=60';
    booleenCondition2 = false;
    diaporama.appendChild(image1);

  }else if(booleenCondition2 == false){
    image1.src = 'https://images.unsplash.com/photo-1524309124783-00473b0bbd21?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=3eed7436a3057e6cf40f1aa62c58b3a0&auto=format&fit=crop&w=500&q=60';
    booleenCondition = true;
    booleenCondition2 = false;
    diaporama.appendChild(image1);

  }else{
    image1.src = 'https://images.unsplash.com/photo-1524309124783-00473b0bbd21?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=3eed7436a3057e6cf40f1aa62c58b3a0&auto=format&fit=crop&w=500&q=60';
    diaporama.appendChild(image1);
  }
  }
})



//OPEN - CLOSE ONGLET

let listenerH2 = document.querySelectorAll('h2');
for(let i = 0; i < listenerH2.length; i++){
  let listenner = listenerH2[i];
  let verification = true;
    listenner.addEventListener('click', function(){
      if(listenner && verification === true){
        listenner = listenerH2[i].nextSibling.nextSibling;
        listenner.style.display = 'none';
        verification = false;
      }else if(listenner && verification === false){
        listenner = listenerH2[i].nextSibling.nextSibling;
        listenner.style.display = 'block';
        verification = true;
      }

})
}

//API GOOGLE MAP

    let map;
      function initMap() {
        let paris = {lat: 48.866667, lng:  2.333333};
         map = new google.maps.Map(document.getElementById('map'), {
          center: paris,
          zoom: 13
        });
        let position_maker = new google.maps.Marker({position: paris, map: map});

        let contentString = '<div id ="contentMap"><h1>Wild Circus sc </h1><p>Join us to the Wild Circus</p></div>';

        let infoWindow = new google.maps.InfoWindow({
          content: contentString
        });
        let marker = new google.maps.Marker({
        position: paris,
        map: map,
        title: 'Wild Circus sc '
        });
        marker.addListener('click', function(){
          infoWindow.open(map, marker);
        });
      }

    initMap();
//REGEX FOR FORM

document.getElementById('email').addEventListener('blur', function(e){

  let regexEmail = /.+@.+\.+/;
  let validationEmail = '';

  if(!regexEmail.test(e.target.value)){
    validationEmail = alert('Invalid Format');
  }
  document.getElementById('validation-email').textContent = validationEmail;
});

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console