cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <script src="https://use.fontawesome.com/a52196c968.js"></script>
<p style="font-size:30px !important;">Clock App<p>
<div id="container">
  <select id="saatBicimi">
    <option value="3">Istanbul (GMT+3)</option>
    <option value="-4">New York (GMT-4)</option>
    <option value="1">London (GMT+1)</option>
    <option value="2">Berlin (GMT+2)</option>
    <option value="9">Tokyo (GMT+9)</option>
  </select>
  <div class="icerik"></div>
</div>
<div style="position:absolute; bottom: 15px; text-align: center; width: 99%;">
  <i class="fa fa-envelope-o" aria-hidden="true" href="#">&nbsp &nbsp</i>
  <i class="fa fa-instagram" aria-hidden="true" href="#">&nbsp &nbsp</i>
  <i class="fa fa-facebook-official" aria-hidden="true" href="#">&nbsp &nbsp</i>
  <i class="fa fa-twitter-square" aria-hidden="true" href="#"></i>
<div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Bubbler+One');

html, body {
  font-family: 'Bubbler One', sans-serif;
  
}

body {
  background: #fbf8f4 url(https://tympanus.net/Tutorials/ProximityEffect/images/bg.jpg) repeat top left;
  
}

.icerik {
	width: 250px; 
  height: 100px;
	background: white;
	font-size: 4em;
	color: #707070;
  
	position: absolute;
  left: 50%; top: 50%;
	margin-left: -125px; margin-top: -50px;

	text-align: center;
	line-height: 100px;
	
	border-top: 3px solid #1A242B;

	background-color: rgba(255,255,255,.7);
  color: #1A242B;
}

p, a {
  font-size: 20px;
  text-decoration: none;
  padding: 10px 0; 
  text-align: center;
}
#saatBicimi{
  display: block;
  margin: 0 auto;
  border: none;
  padding: 5px;
  background-color: rgba(255,255,255,.7);
  border-top: 1px solid #1A242B;
  color: #1A242B;
  font-family: 'Bubbler One', sans-serif;
}
#saatBicimi:focus {outline:0;}
#container{
  width: 400px;
  height: 200px;
  max-height: 200px;
  min-height: 200px;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 50%;
  margin-left: -220px;
  margin-top: -120px;
  padding: 20px;
  background-color: rgba(255,255,255,.2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border: 5px solid #fff;
  background: transparent url(http://static.tumblr.com/9f77d9e875b00e09dbcc1aaa2630b2b7/5uk6tmv/vk6nzkhx0/tumblr_static_er7bo0cw6e8gcsos4ogk4wgsg.jpg) center center;
  background-size: cover;
  z-index: 100;
}
i{cursor:pointer;}

            
          
!
            
              (function() {
	var saat = document.querySelector('.icerik');
  
	var ekstraSifir = function(x) {
		return x < 10 ? '0' + x : x;
	};
	
	var tiktak = function() {
    var saatBicimi = document.getElementById("saatBicimi").value;
		var d = new Date();
		var h = ekstraSifir( d.getUTCHours() + parseInt(saatBicimi));
		var m = ekstraSifir( d.getUTCMinutes() );
		var s = ekstraSifir( d.getUTCSeconds() );
		var current_time = [h,m,s].join(':');
		saat.innerHTML = current_time;
	};
	tiktak();
	
	setInterval(tiktak, 1000);
}());
            
          
!
999px
Loading ..................

Console