Difference between revisions of "Template:Northwestern Page Head"

 
(258 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<html>
 
<html>
 +
<head>
 
<title>Northwestern Template</title>
 
<title>Northwestern Template</title>
 
<meta charset="UTF-8">
 
<meta charset="UTF-8">
Line 7: Line 8:
 
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
 
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
 
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 +
<script src="//use.edgefonts.net/josefin-sans:n1,i1,n3,i3,n4,i4,n6,i6,n7,i7.js"></script>
 +
<script src="//use.edgefonts.net/aladin.js"></script>
 +
</head>
  
 
<style>  
 
<style>  
#sideMenu
+
/*************STYLING FOR HEADER*************/
{display:none; /*Disable the display of the annoying side main menu*/}
+
/* Bye-Bye iGEM Defaults */
#top_title
+
{display:none; /* Disable the annoying title*/}
+
#content
+
{padding:0px; width:90%; margin-left:5%; margin-right:5%;background-color: rgba(255,255,255,0);}
+
  
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
+
h1 {
 +
 
 +
font-family: aladin;
 +
color: #551A8B;
 +
font-size: 30 px;
 +
 
 +
}
 +
 
 +
h3 {
 +
 
 +
font-family: josefin-sans, sans-serif;
 +
font-size:22px;
 +
 
 +
}
 +
 
 +
 
 +
 
 +
#sideMenu,
 +
#top_title {
 +
  display: none;
 +
}
 +
 
 +
#content {
 +
  padding: 0px;
 +
  width: 100%;
 +
}
 +
 
 +
body {
 +
  background-color: white;
 +
  width: 100%;
 +
font-family: josefin-sans, sans-serif;
 +
}
 +
 
 +
#bodyContent h1,
 +
#bodyContent h2,
 +
#bodyContent h3,
 +
#bodyContent h4,
 +
#bodyContent h5 {
 +
  margin-bottom: 0px;
 +
}
 +
 
 +
#bodyContent {
 +
  padding-right: 0px;
 +
}
 +
 
 +
#globalWrapper {
 +
  font-size: 100%;
 +
  padding: 0px;
 +
  margin: -10px -20px -20px -20px;
 +
}
 +
 
 +
.navbar-collapse {
 +
  padding-right: 0px;
 +
}
 +
 
 +
#banner {
 +
  margin-top: 50px;
 +
}
 +
 
 +
#sideMenu {
 +
  margin-top: 0px;
 +
}
 +
 
 +
.dropdown-menu li:hover .sub-menu {
 +
  visibility: visible;
 +
}
 +
 
 +
.dropdown:hover .dropdown-menu {
 +
  display: block;
 +
}
 +
 
 +
.navbar-nav .dropdown-menu,
 +
.navbar .dropdown-menu {
 +
background-color: white;
 +
  margin-top: 15px;
 +
  float: right;
 +
}
 +
 
 +
 
 +
body,h1,h2,h3,h4,h5,h6 {font-family: josefin-sans, sans-serif;}
 
body, html {
 
body, html {
 
     height: 100%;
 
     height: 100%;
Line 22: Line 101:
 
     line-height: 1.8;
 
     line-height: 1.8;
 
}
 
}
 +
 +
/******** Links n' such (NavBar)********/
 +
 +
a.nav-link:link
 +
{
 +
  color: #a025f8;
 +
  text-decoration: none;
 +
}
 +
a.nav-link:visited
 +
{
 +
  color: #7842ff;
 +
  text-decoration: none;
 +
}
 +
a.nav-link:hover
 +
{
 +
  color: #000000;
 +
  text-decoration: none;
 +
}
 +
a.nav-link:active
 +
{
 +
  color: #7842ff;
 +
  text-decoration: none;
 +
}
 +
 +
a.nav-link2:link
 +
{
 +
  color: #000000;
 +
  text-decoration: none;
 +
}
 +
a.nav-link2:visited
 +
{
 +
  color: #000000;
 +
  text-decoration: none;
 +
}
 +
a.nav-link2:hover
 +
{
 +
  color: #000000;
 +
  text-decoration: none;
 +
}
 +
a.nav-link2:active
 +
{
 +
  color: #000000;
 +
  text-decoration: none;
 +
}
 +
/******* w3 Syle editing *******/
 +
 +
/*Animates the NavBar left to right */
 +
 +
#projan{
 +
 +
position: relative;
 +
animation-name: example;
 +
    animation-duration: 15s;
 +
    animation-delay: 2s;
 +
    animation-iteration-count: infinite;
 +
    animation-direction: alternate;
 +
}
 +
@keyframes example {
 +
    0%  {left:0%; top:0%;}
 +
    25%  {left:5%; top:0%;}
 +
    50%  { left:10%; top:0%;}
 +
    75%  { left:15%; top:0%;}
 +
    100% {left:20%; top:0%;}
 +
}
 +
 +
/*Controls the speed of animation */
 +
#spin {
 +
    -webkit-animation:spin 30s linear infinite;
 +
    -moz-animation:spin 30s linear infinite;
 +
    animation:spin 30s linear infinite;
 +
}
 +
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
 +
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
 +
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
  
 
/* Create a Parallax Effect */
 
/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
+
 
 +
body {
 +
    margin: 0;
 +
    font-family: 'Lato', sans-serif;
 +
}
 +
 
 +
.overlay {
 +
    height: 0%;
 +
    width: 100%;
 +
    position: fixed;
 +
    z-index: 1;
 +
    top: 0;
 +
    left: 0;
 +
    background-color: rgb(0,0,0);
 +
    background-color: rgba(0,0,0, 0.9);
 +
    overflow-y: hidden;
 +
    transition: 0.5s;
 +
}
 +
 
 +
.overlay-content {
 +
    position: relative;
 +
    top: 25%;
 +
    width: 100%;
 +
    text-align: center;
 +
    margin-top: 30px;
 +
}
 +
 
 +
.overlay a {
 +
    padding: 8px;
 +
    text-decoration: none;
 +
    font-size: 36px;
 +
    color: #818181;
 +
    display: block;
 +
    transition: 0.3s;
 +
}
 +
 
 +
.overlay a:hover, .overlay a:focus {
 +
    color: #f1f1f1;
 +
}
 +
 
 +
.overlay .closebtn {
 +
    position: absolute;
 +
    top: 20px;
 +
    right: 45px;
 +
    font-size: 60px;
 +
}
 +
 
 +
@media screen and (max-height: 450px) {
 +
  .overlay {overflow-y: auto;}
 +
  .overlay a {font-size: 20px}
 +
  .overlay .closebtn {
 +
    font-size: 40px;
 +
    top: 15px;
 +
    right: 35px;
 +
  }
 +
}
 +
 
 +
.bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 {
 
     background-attachment: fixed;
 
     background-attachment: fixed;
 
     background-position: center;
 
     background-position: center;
Line 31: Line 241:
 
}
 
}
  
/* First image (Logo. Full height) */
+
#teaman{
 +
 
 +
position: relative;
 +
animation-name: team;
 +
    animation-duration: 20s;
 +
    animation-timing-function: linear;
 +
    animation-delay: 2s;
 +
    animation-iteration-count: infinite;
 +
    animation-direction: alternate;
 +
}
 +
@keyframes team {
 +
    0%  {left:0%; top:20%;}
 +
    25%  {left:5%; top:20%;}
 +
    50%  { left:10%; top:20%;}
 +
    75%  { left:15%; top:20%;}
 +
    100% {left:20%; top:20%;}
 +
}
 +
 
 +
 
 +
#partsan{
 +
 
 +
position: relative;
 +
animation-name: parts;
 +
    animation-duration: 25s;
 +
    animation-delay: 2s;
 +
    animation-iteration-count: infinite;
 +
    animation-direction: alternate;
 +
}
 +
@keyframes parts {
 +
    0%  {left:0%; top:50%;}
 +
    25%  {left:5%; top:50%;}
 +
    50%  {left:10%; top:50%;}
 +
    75%  {left:15%; top:50%;}
 +
    100% {left:20%; top:50%;}
 +
}
 +
 
 +
 
 +
/* Create a Parallax Effect */
 +
.bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 {
 +
    background-attachment: fixed;
 +
    background-position: center;
 +
    background-repeat: no-repeat;
 +
    background-size: cover;
 +
}
 +
 
 +
.w3-top {
 +
    margin-top: 10px;
 +
}
 +
 
 +
.body-cont {
 +
  margin-right: 5%;
 +
  margin-left: 5%;
 +
}
 +
 
 +
img {
 +
    image-orientation: from-image;
 +
}
 +
 
 +
/* First image (Logo Full height) */
 
.bgimg-1 {
 
.bgimg-1 {
     background-image: url('https://unsplash.it/1920/1080?random');
+
     background-image: url("https://static.igem.org/mediawiki/2017/4/4f/T-Northwestern-purple.jpg");
     min-height: 100%;
+
     min-height: 100vh;
 
}
 
}
  
/* Second image (Portfolio) */
+
/* Second image (Team) */
 
.bgimg-2 {
 
.bgimg-2 {
     background-image: url("/w3images/parallax2.jpg");
+
     background-image: url("https://static.igem.org/mediawiki/2017/0/0f/T-Northwestern_Puppy.jpeg");
 
     min-height: 400px;
 
     min-height: 400px;
 
}
 
}
  
/* Third image (Contact) */
+
/* Third image (Lab) */
 
.bgimg-3 {
 
.bgimg-3 {
     background-image: url("/w3images/parallax3.jpg");
+
     background-image: url("https://static.igem.org/mediawiki/2017/6/61/T-Northwestern-lab.jpg");
 +
    min-height: 400px;
 +
    width: 100%;
 +
}
 +
 
 +
/* Fourth image (Contact) */
 +
.bgimg-4 {
 +
    background-image: url("https://static.igem.org/mediawiki/2017/2/24/T-Northwestern_Northwesternpic.jpeg");
 
     min-height: 400px;
 
     min-height: 400px;
 
}
 
}
Line 58: Line 333:
 
     }
 
     }
 
}
 
}
</style>
 
<body>
 
  
<!-- Navbar (sit on top) -->
+
/* Add a black background color to the top navigation */
<div class="w3-top">
+
.topnav {
  <div class="w3-bar" id="myNavbar">
+
     background-color: #333;
    <a class="w3-bar-item w3-button w3-hover-black w3-hide-medium w3-hide-large w3-right" href="javascript:void(0);" onclick="toggleFunction()" title="Toggle Navigation Menu">
+
     overflow: hidden;
      <i class="fa fa-bars"></i>
+
}
    </a>
+
     <a href="#home" class="w3-bar-item w3-button">HOME</a>
+
    <a href="#about" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-user"></i> Team </a>
+
     <a href="#portfolio" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-th"></i> Project </a>
+
    <a href="#contact" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-envelope"></i> Human Practices </a>
+
    <a href="#" class="w3-bar-item w3-button w3-hide-small w3-right w3-hover-red">
+
      <i class="fa fa-search"></i>
+
    </a>
+
  </div>
+
  
  <!-- Navbar on small screens -->
+
/* Style the links inside the navigation bar */
  <div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium">
+
.topnav a {
     <a href="#about" class="w3-bar-item w3-button" onclick="toggleFunction()">ABOUT</a>
+
    float: left;
     <a href="#portfolio" class="w3-bar-item w3-button" onclick="toggleFunction()">PORTFOLIO</a>
+
    display: block;
     <a href="#contact" class="w3-bar-item w3-button" onclick="toggleFunction()">CONTACT</a>
+
     color: #f2f2f2;
     <a href="#" class="w3-bar-item w3-button">SEARCH</a>
+
     text-align: center;
  </div>
+
     padding: 14px 16px;
</div>
+
    text-decoration: none;
 +
     font-size: 17px;
 +
}
  
<!-- First Parallax Image with Logo Text -->
+
/* Change the color of links on hover */
<div class="bgimg-1 w3-display-container w3-opacity-min" id="home">
+
.topnav a:hover {
  <div class="w3-display-middle" style="white-space:nowrap;">
+
    background-color: #ddd;
     <span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity">MY <span class="w3-hide-small">WEBSITE</span> LOGO</span>
+
     color: black;
  </div>
+
}
</div>
+
  
<!-- Container (About Section) -->
+
/* Hide the link that should open and close the topnav on small screens */
<div class="w3-content w3-container w3-padding-64" id="about">
+
.topnav .icon {
  <h3 class="w3-center">ABOUT ME</h3>
+
     display: none;
  <p class="w3-center"><em>I love photography</em></p>
+
}
  <p>We have created a fictional "personal" website/blog, and our fictional character is a hobby photographer. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
+
     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
+
    qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
+
  <div class="w3-row">
+
    <div class="w3-col m6 w3-center w3-padding-large">
+
      <p><b><i class="fa fa-user w3-margin-right"></i>My Name</b></p><br>
+
      <img src="/w3images/avatar_hat.jpg" class="w3-round w3-image w3-opacity w3-hover-opacity-off" alt="Photo of Me" width="500" height="333">
+
    </div>
+
  
    <!-- Hide this text on small devices -->
+
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
    <div class="w3-col m6 w3-hide-small w3-padding-large">
+
@media screen and (max-width: 600px) {
      <p>Welcome to my website. I am lorem ipsum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
+
   .topnav a:not(:first-child) {display: none;}
        dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor
+
   .topnav a.icon {
        incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
+
     float: right;
    </div>
+
     display: block;
  </div>
+
   }
  <p class="w3-large w3-center w3-padding-16">Im really good at:</p>
+
}
   <p class="w3-wide"><i class="fa fa-camera"></i>Photography</p>
+
  <div class="w3-light-grey">
+
    <div class="w3-container w3-padding-small w3-dark-grey w3-center" style="width:90%">90%</div>
+
   </div>
+
  <p class="w3-wide"><i class="fa fa-laptop"></i>Web Design</p>
+
  <div class="w3-light-grey">
+
     <div class="w3-container w3-padding-small w3-dark-grey w3-center" style="width:85%">85%</div>
+
  </div>
+
  <p class="w3-wide"><i class="fa fa-photo"></i>Photoshop</p>
+
  <div class="w3-light-grey">
+
     <div class="w3-container w3-padding-small w3-dark-grey w3-center" style="width:75%">75%</div>
+
   </div>
+
</div>
+
  
<div class="w3-row w3-center w3-dark-grey w3-padding-16">
+
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
  <div class="w3-quarter w3-section">
+
@media screen and (max-width: 600px) {
    <span class="w3-xlarge">14+</span><br>
+
   .topnav.responsive {position: relative;}
    Partners
+
   .topnav.responsive a.icon {
   </div>
+
     position: absolute;
   <div class="w3-quarter w3-section">
+
     right: 0;
     <span class="w3-xlarge">55+</span><br>
+
    top: 0;
     Projects Done
+
   }
   </div>
+
   .topnav.responsive a {
   <div class="w3-quarter w3-section">
+
     float: none;
     <span class="w3-xlarge">89+</span><br>
+
     display: block;
     Happy Clients
+
     text-align: left;
  </div>
+
   }
  <div class="w3-quarter w3-section">
+
}
     <span class="w3-xlarge">150+</span><br>
+
    Meetings
+
   </div>
+
</div>
+
  
<!-- Second Parallax Image with Portfolio Text -->
+
</style>
<div class="bgimg-2 w3-display-container w3-opacity-min">
+
  <div class="w3-display-middle">
+
    <span class="w3-xxlarge w3-text-white w3-wide">PORTFOLIO</span>
+
  </div>
+
</div>
+
  
<!-- Container (Portfolio Section) -->
 
<div class="w3-content w3-container w3-padding-64" id="portfolio">
 
  <h3 class="w3-center">MY WORK</h3>
 
  <p class="w3-center"><em>Here are some of my latest lorem work ipsum tipsum.<br> Click on the images to make them bigger</em></p><br>
 
  
  <!-- Responsive Grid. Four columns on tablets, laptops and desktops. Will stack on mobile devices/small screens (100% width) -->
+
<body>
  <div class="w3-row-padding w3-center">
+
    <div class="w3-col m3">
+
      <img src="/w3images/p1.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="The mist over the mountains">
+
    </div>
+
  
    <div class="w3-col m3">
 
      <img src="/w3images/p2.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="Coffee beans">
 
    </div>
 
  
    <div class="w3-col m3">
+
<!-- Navbar code (sits on top) -->
      <img src="/w3images/p3.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="Bear closeup">
+
    </div>
+
  
    <div class="w3-col m3">
+
<!--
      <img src="/w3images/p4.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="Quiet ocean">
+
<div class="w3-top">
    </div>
+
  <div class="w3-bar" "w3-white" "w3-right" "w3-hide-small" id="myNavbar">
  </div>
+
    <a class="w3-bar-item w3-button w3-hover-purple w3-hide-medium w3-hide-large w3-right" href="javascript:void(0);" onclick="toggleFunction()" title="Toggle Navigation Menu">
 +
      <i class="fa fa-bars"></i>
 +
    </a>
  
  <div class="w3-row-padding w3-center w3-section">
+
    <a href="https://2017.igem.org/Team:Northwestern#contact" class= "w3-bar-item w3-button w3-hide-small w3-right nav-link"> Contact </a>
    <div class="w3-col m3">
+
    <a href="https://2017.igem.org/Team:Northwestern#humanpractices" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Human Practices </a>
      <img src="/w3images/p5.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="The mist">
+
     <a href="https://2017.igem.org/Team:Northwestern#parts" class= "w3-bar-item w3-button w3-hide-small w3-right nav-link"> Parts </a>
    </div>
+
    <a href="https://2017.igem.org/Team:Northwestern/lab" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Lab </a>
 
+
     <a href="https://2017.igem.org/Team:Northwestern#team" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Team </a>
     <div class="w3-col m3">
+
     <a href="https://2017.igem.org/Team:Northwestern#project" class="w3-bar-item w3-button w3-hide-small w3-right nav-link"> Project </a>
      <img src="/w3images/p6.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="My beloved typewriter">
+
     <a href="https://2017.igem.org/Team:Northwestern#home" class="w3-bar-item w3-button w3-hide-small w3-right nav-link">HOME</a>
    </div>
+
 
+
     <div class="w3-col m3">
+
      <img src="/w3images/p7.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="Empty ghost train">
+
    </div>
+
 
+
     <div class="w3-col m3">
+
      <img src="/w3images/p8.jpg" style="width:100%" onclick="onClick(this)" class="w3-hover-opacity" alt="Sailing">
+
    </div>
+
     <button class="w3-button w3-padding-large w3-light-grey" style="margin-top:64px">LOAD MORE</button>
+
 
   </div>
 
   </div>
</div>
+
-->  
 
+
  <!-- Navbar on small screens -->
<!-- Modal for full size images on click-->
+
<!--
<div id="modal01" class="w3-modal w3-black" onclick="this.style.display='none'">
+
  <div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium">
  <span class="w3-button w3-large w3-black w3-display-topright" title="Close Modal Image"><i class="fa fa-remove"></i></span>
+
    <a href="https://2017.igem.org/Team:Northwestern#home" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Home</a>
  <div class="w3-modal-content w3-animate-zoom w3-center w3-transparent w3-padding-64">
+
  <a href="https://2017.igem.org/Team:Northwestern#project" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Project</a>
     <img id="img01" class="w3-image">
+
    <a href="https://2017.igem.org/Team:Northwestern#team" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Team</a>
    <p id="caption" class="w3-opacity w3-large"></p>
+
    <a href="https://2017.igem.org/Team:Northwestern/lab" class="w3-bar-item w3-button  nav-link" onclick="toggleFunction()"> Lab </a>
 +
    <a href="https://2017.igem.org/Team:Northwestern#parts" class= "w3-bar-item w3-button  nav-link" onclick="toggleFunction()"> Parts </a>
 +
     <a href="https://2017.igem.org/Team:Northwestern#humanpractices" class="w3-bar-item w3-button nav-link" onclick="toggleFunction()">Human Practices</a>
 +
<a href="https://2017.igem.org/Team:Northwestern#contact" class= "w3-bar-item w3-button nav-link" onclick="toggleFunction()"> Contact </a>
 
   </div>
 
   </div>
 
</div>
 
</div>
  
<!-- Third Parallax Image with Portfolio Text -->
+
-->  
<div class="bgimg-3 w3-display-container w3-opacity-min">
+
  <div class="w3-display-middle">
+
    <span class="w3-xxlarge w3-text-white w3-wide">CONTACT</span>
+
  </div>
+
</div>
+
  
<!-- Container (Contact Section) -->
+
</body>
<div class="w3-content w3-container w3-padding-64" id="contact">
+
  <h3 class="w3-center">WHERE I WORK</h3>
+
  <p class="w3-center"><em>I'd love your feedback!</em></p>
+
  
  <div class="w3-row w3-padding-32 w3-section">
+
<script>  
    <div class="w3-col m4 w3-container">
+
      <!-- Add Google Maps -->
+
      <div id="googleMap" class="w3-round-large w3-greyscale" style="width:100%;height:400px;"></div>
+
    </div>
+
    <div class="w3-col m8 w3-panel">
+
      <div class="w3-large w3-margin-bottom">
+
        <i class="fa fa-map-marker fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> Chicago, US<br>
+
        <i class="fa fa-phone fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> Phone: +00 151515<br>
+
        <i class="fa fa-envelope fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> Email: mail@mail.com<br>
+
      </div>
+
      <p>Swing by for a cup of <i class="fa fa-coffee"></i>, or leave me a note:</p>
+
      <form action="/action_page.php" target="_blank">
+
        <div class="w3-row-padding" style="margin:0 -16px 8px -16px">
+
          <div class="w3-half">
+
            <input class="w3-input w3-border" type="text" placeholder="Name" required name="Name">
+
          </div>
+
          <div class="w3-half">
+
            <input class="w3-input w3-border" type="text" placeholder="Email" required name="Email">
+
          </div>
+
        </div>
+
        <input class="w3-input w3-border" type="text" placeholder="Message" required name="Message">
+
        <button class="w3-button w3-black w3-right w3-section" type="submit">
+
          <i class="fa fa-paper-plane"></i> SEND MESSAGE
+
        </button>
+
      </form>
+
    </div>
+
  </div>
+
</div>
+
  
<!-- Footer -->
+
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
<footer class="w3-center w3-black w3-padding-64 w3-opacity w3-hover-opacity-off">
+
function myFunction() {
  <a href="#home" class="w3-button w3-light-grey"><i class="fa fa-arrow-up w3-margin-right"></i>To the top</a>
+
     var x = document.getElementById("myTopnav");
  <div class="w3-xlarge w3-section">
+
     if (x.className === "topnav") {
     <i class="fa fa-facebook-official w3-hover-opacity"></i>
+
        x.className += " responsive";
     <i class="fa fa-instagram w3-hover-opacity"></i>
+
     } else {
    <i class="fa fa-snapchat w3-hover-opacity"></i>
+
        x.className = "topnav";
    <i class="fa fa-pinterest-p w3-hover-opacity"></i>
+
     }
     <i class="fa fa-twitter w3-hover-opacity"></i>
+
}
    <i class="fa fa-linkedin w3-hover-opacity"></i>
+
  </div>
+
</footer>
+
+
<!-- Add Google Maps -->
+
<script>
+
function myMap()
+
{
+
  myCenter=new google.maps.LatLng(41.878114, -87.629798);
+
  var mapOptions= {
+
     center:myCenter,
+
    zoom:12, scrollwheel: false, draggable: false,
+
    mapTypeId:google.maps.MapTypeId.ROADMAP
+
  };
+
  var map=new google.maps.Map(document.getElementById("googleMap"),mapOptions);
+
  
  var marker = new google.maps.Marker({
+
/* When the user clicks on the button,
     position: myCenter,
+
toggle between hiding and showing the dropdown content */
  });
+
function myFunction() {
  marker.setMap(map);
+
     document.getElementById("myDropdown").classList.toggle("show");
 
}
 
}
  
// Modal Image Gallery
+
// Close the dropdown if the user clicks outside of it
function onClick(element) {
+
window.onclick = function(e) {
   document.getElementById("img01").src = element.src;
+
   if (!e.target.matches('.dropbtn')) {
  document.getElementById("modal01").style.display = "block";
+
    var myDropdown = document.getElementById("myDropdown");
  var captionText = document.getElementById("caption");
+
      if (myDropdown.classList.contains('show')) {
   captionText.innerHTML = element.alt;
+
        myDropdown.classList.remove('show');
 +
      }
 +
   }
 
}
 
}
  
// Change style of navbar on scroll
+
function openNav() {
window.onscroll = function() {myFunction()};
+
     document.getElementById("myNav").style.height = "100%";
function myFunction() {
+
     var navbar = document.getElementById("myNavbar");
+
    if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
+
        navbar.className = "w3-bar" + " w3-card-2" + " w3-animate-top" + " w3-white";
+
    } else {
+
        navbar.className = navbar.className.replace(" w3-card-2 w3-animate-top w3-white", "");
+
    }
+
 
}
 
}
  
// Used to toggle the menu on small screens when clicking on the menu button
+
function closeNav() {
function toggleFunction() {
+
     document.getElementById("myNav").style.height = "0%";
     var x = document.getElementById("navDemo");
+
    if (x.className.indexOf("w3-show") == -1) {
+
        x.className += " w3-show";
+
    } else {
+
        x.className = x.className.replace(" w3-show", "");
+
    }
+
 
}
 
}
</script>
 
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBu-916DdpKAjTmJNIgngS6HL_kDIKU0aU&callback=myMap"></script>
 
<!--
 
To use this code on your website, get a free API key from Google.
 
Read more at: https://www.w3schools.com/graphics/google_maps_basic.asp
 
-->
 
  
</body>
+
</script>  
 +
 
 +
 
 
</html>
 
</html>

Latest revision as of 16:37, 28 August 2017

Northwestern Template