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 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.

Quick-add: + add another resource

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.

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.

            
              <h1>Total Human Population</h1>

<span id="worldpop" class="bkgd"></span>
            
          
!
            
              body {
  text-align: center;
  padding-top: 5vh;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background:
  color: white;
}

h1 {
  font-size: 35px;
  text-shadow: 0px 0px 0px #000000;
}

span {
  text-shadow: 0px 0px 0px #000000;
  position: relative;
  margin: 5px 0;
  padding: 14px 16px;
  font-size: 80px;
  line-height: 80px;
  font-weight: 600;
  border-radius: 5px;
  display: inline-block;
  color: white;
  -webkit-box-shadow: 6px 6px 20px 2px rgba(0,0,0,0.5);
-moz-box-shadow: 6px 6px 20px 2px rgba(0,0,0,0.5);
box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.5);
}

.bkgd {
  	background: -moz-linear-gradient(top,  #455A64 50%, #455A64 50%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,#455A64), color-stop(50%,#455A64)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #455A64 50%,#455A64 50%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #455A64 50%,#455A64 50%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #455A64 50%,#455A64 50%); /* IE10+ */
	background: linear-gradient(to bottom,  #455A64 50%,#455A64 50%); /* W3C */
}
            
          
!
            
              function maind(){
	startdate = new Date()
	now(startdate.getYear(),startdate.getMonth(),startdate.getDate(),startdate.getHours(),startdate.getMinutes(),startdate.getSeconds())
}


function ChangeValue(number,pv){
	numberstring =""
	var j=0 
	var i=0
	while (number > 1)
	 { 

	    numberstring = (Math.round(number-0.5) % 10) + numberstring
	    number= number / 10
	    j++
	    if (number > 1 && j==3) { 
			numberstring = "," + numberstring 
			j=0}
	    i++
	 }

	 numberstring=numberstring

if (pv==1) {document.getElementById("worldpop").innerHTML=numberstring }
}


function now(year,month,date,hours,minutes,seconds){       
startdatum = new Date(year,month,date,hours,minutes,seconds)

var now = 5600000000.0
var now2 = 5690000000.0
var groeipercentage = (now2 - now) / now *100
var groeiperseconde = (now * (groeipercentage/100))/365.0/24.0/60.0/60.0 
nu = new Date ()                
schuldstartdatum = new Date (96,1,1)                            
secondenoppagina = (nu.getTime() - startdatum.getTime())/1000
totaleschuld= (nu.getTime() - schuldstartdatum.getTime())/1000*groeiperseconde + now
ChangeValue(totaleschuld,1);


timerID = setTimeout("now(startdatum.getYear(),startdatum.getMonth(),startdatum.getDate(),startdatum.getHours(),startdatum.getMinutes(),startdatum.getSeconds())",200)
}

window.onload=maind;
            
          
!
999px
Loading ..................

Console