Informatik#Final-Mod

In this example below you will see how to do a Informatik#Final-Mod with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by MGK_888, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright MGK_888 ©
  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Informatik#Final-Mod</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <body onload="startTime()">
<nav class="fixed-nav-bar">

  <ul>
    <a href="#">Home</a>
    <div class="dropdown">
    <a href="#" class="dropbtn">Themen</a>
       <div class="dropdown-content">
    <a href="#">Vergangenheit</a>
    <a href="#">Präsens</a>
    <a href="#">Zukunft</a>
    </div>
    </div>
    </div>
    <b id="name">Marten Karl</b>
    
    <!--<a style="padding-left:25%;padding-top:0;font-family:'Bungee Hairline', cursive;text-align: center;letter-spacing: 20px;position: absolute;"><b>Physik</a></b> -->  
  </ul>
</nav>

<b id="clock" href="#"><div id="txt"></div></b>

<img class="backimg" src="https://static.pexels.com/photos/6547/sky-night-space-galaxy.jpeg">

  <div class="header">
    <div id="header-text" class="partner">
      <div class="top">
      <h1 class="DUNI">Das Universum</h1>
 </br>
 </br>
 </br>
    <div class="tooltip"><i>Physik</i>
  <span class="tooltiptext">Ein Projekt des Informatikkurses Q1 2016/17</span>
</div>
 
  </div>
<div class="Mainhr">
<hr>
</div>


<div class="Maintxt">
<p class="Introtxt">In der Schule lernt man nicht viel über die Entstehung des Universums oder dessen Zukunft. Genauso wenig lernt man über die Milchstraße und was uns als Planet und Galaxie in der "nahen" Zukunft schow erwartet. Das heißt aber nicht, dass diese Themen nicht interessant sind. In diesem Projekt versuch ich eine kurze Zusammenfassung der Vergangnenheit und des Zukunft des Universums zu beschreiben und dem Leser einen kleinen Einblick zu erschaffen, was uns bald erwartet.</p>
</div>

</div>

</div>

<div class="Topics">
<div class="Main">
  <h3>Startseite</h3>
</div>

<div class="Vergangenheit">
  <h3>Vergangenheit</h3>
</div>


<div class="Praesens">
  <h3>Jetzt</h3>
</div>

<div class="Zukunft">
  <h3>Zukunft</h3>
</div>
 

</div>
  
<div class="fillbx">
</div>
  
<div class="body">
  
  <image class="img" src="https://www.nasa.gov/sites/default/files/moon_and_earth_lroearthrise_frame_0.jpg">

  <!--<div class="information">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.
</div>

  </br>  
  
<div class="text-oszilloskop"> 
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu </p>
</div>-->


</div>


</body>
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/MGK_888/informatikfinal-mod-eBwwzB */
@import url('https://fonts.googleapis.com/css?family=Archivo+Narrow|Bungee+Hairline|Codystar|Delius+Swash+Caps|Megrim|Montserrat+Subrayada');
@import url('https://fonts.googleapis.com/css?family=Montserrat');
@import url('https://fonts.googleapis.com/css?family=Yatra+One');
@import url('https://fonts.googleapis.com/css?family=Space+Mono');
@import url('https://fonts.googleapis.com/css?family=Permanent+Marker');
@import url('https://fonts.googleapis.com/css?family=Dosis');
@import url('https://fonts.googleapis.com/css?family=Work+Sans');

.fixed-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  height: 50px;
  background-color: rgba(0, 160, 135, 0.9);
  color: white;
}
a:link {
    color: white;
    background-color: transparent;
    text-decoration: none;
    padding-right: 30px;
    font-family: 'Montserrat', sans-serif;
}
a:visited {
    color: black;
    background-color: transparent;
    text-decoration: none;
}
a:hover {
    color: rgb(212, 232, 211);
    background-color: transparent;
    text-decoration: underline;
}
a:active {
    color: yellow;
    background-color: transparent;
    text-decoration: underline;
}
#name {
  margin-right: 20px;
  font-family: 'Megrim', cursive;
  float: right;
}
#clock {
  color: black;
  position: fixed;
  margin-top: 50px;
  padding-left: 10px;
  font-family: 'Dosis', sans-serif;
  z-index: 2;
}
.dropbtn {
    background-color: rgba(0, 160, 135, 0.0);
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {
    display: block;
    margin-top: 15px;
}
.dropdown:hover .dropbtn {
    background-color: rgb(0, 160, 135);
}
.backimg {
  width: 100%;
  height: 400px;
  margin-top: 42px;
  position: fixed;
  z-index: -1;
}
#header-text {
  margin: 0 auto;
  position: relative;
  text-align: center;
  padding-top: 150px;
  width: 100%;
  overflow: hidden;
}
.tooltip {
    color: black;
    font-family: 'Megrim', cursive;;
    text-align: center;
    font-size: 28px;
    font-weight: 100;
    position: relative;
    display: inline-block;
    border-bottom: none;
}
.tooltiptext {
  color: #FFF;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  font-size: 15px;
  font-weight: 200;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}
h1 {
  padding-top: 50px; 
  color: black;
  font-family: 'Permanent Marker', cursive;
  font-size: 125px;
  min-size: 50px;
  font-weight: 900;
  letter-spacing: 20px;
  text-align: center;
  position: relative;
  line-height: 70%;
  margin-top: 300px;
  z-index: 1;
  background: white;
}
h1:hover {
  text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}
h2 {
  color: #FFF;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  font-size: 28px;
  font-weight: 100;
}
.Introtxt {
  margin: auto;
  width: 75%;
  font-size: 20px;
  font-family: 'Work Sans', sans-serif;
  padding-top: 50px;
  padding-bottom: 50px;
  z-index: 1;
  background: white;
}
.Maintxt {
  width: 100%;
  background: white;
}
.top {
  background: white;
}
.Mainhr {
  width: 100%;
  background: white;
  padding-top: 30px;
}
.Topics {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  color: black;
}
.Praesens, .Zukunft {
  margin-top: 7px;
}
.Main {
  width: 49%;
  height: 300px;
  color: white;
  float: left;
  text-align: center;
  text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.Vergangenheit {
  width: 49%;
  height: 300px;
  float: right;
  text-align: center;
  text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.Praesens {
  width: 49%;
  height: 300px;
  float: left;
  text-align: center;
  text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.Zukunft {
  width: 49%;
  height: 300px;
  float: right;
  text-align: center;
  text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
h3 {
  padding: 100px;
  color: black;
}
h3:hover {
  overflow: hidden;
  text-shadow: 10px 10px 20px rgba(255, 255, 255, 0.7);
  color: white;
}
.Main:hover {
  background: url("http://i.giphy.com/xT8qBfjJhOmNPTVWU0.gif");
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-shadow: 10px 10px 20px rgba(255, 255, 255, 0.7);
}
.Praesens:hover {
  background: url("http://i.giphy.com/xT8qBfjJhOmNPTVWU0.gif");
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-shadow: 10px 10px 20px rgba(255, 255, 255, 0.7);
}
.Zukunft:hover {
  background: url("http://i.giphy.com/xT8qBfjJhOmNPTVWU0.gif");
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-shadow: 10px 10px 20px rgba(255, 255, 255, 0.7);
  color: white;
}
.Vergangenheit:hover {
  background: url("http://i.giphy.com/xT8qBfjJhOmNPTVWU0.gif");
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-shadow: 10px 10px 20px rgba(255, 255, 255, 0.7);
  color: white;
}
.fillbx {
  heigth: 1px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  width: 100%;
  height: 1000px;
  z-index: 1;
  background: grey;
    background: -webkit-linear-gradient(white, black); 
    background: -o-linear-gradient(white, black);
    background: -moz-linear-gradient(white, black);
    background: linear-gradient(white, black);
}
.img {
  width: 100%;
  margin: 0px;
}
hr{
    width: 80%; 
    height: 1px; 
    margin: 0 auto;
    background: black;
}

/* 
font-family: 'Codystar', cursive;
font-family: 'Montserrat Subrayada', sans-serif;
font-family: 'Montserrat', sans-serif;
font-family: 'Delius Swash Caps', cursive;
font-family: 'Bungee Hairline', cursive;
font-family: 'Megrim', cursive;
font-family: 'Archivo Narrow', sans-serif;
font-family: 'Yatra One', cursive;
font-family: 'Space Mono', monospace;
font-family: 'Permanent Marker', cursive;
font-family: 'Dosis', sans-serif;
font-family: 'Work Sans', sans-serif;

*/

/*Downloaded from https://www.codeseek.co/MGK_888/informatikfinal-mod-eBwwzB */
function startTime() {
    var today = new Date();
    var h = today.getHours();
    var m = today.getMinutes();
    var s = today.getSeconds();
    m = checkTime(m);
    s = checkTime(s);
    document.getElementById('txt').innerHTML =
    h + ":" + m + ":" + s;
    var t = setTimeout(startTime, 500);
}
function checkTime(i) {
    if (i < 10) {i = "0" + i};  // add zero in front of numbers < 10
    return i;
}

Comments