<!doctype html> 
<html> 
<head> 
    <title>PubNub Latency Check Example</title> 
    <style>
        #latency {
            font-size: 30px;
            color: #eeeee2;
            background: #444;
            padding: 10px;

            -webkit-transition: all 0.1s;
            -moz-transition: all 0.1s;
            -ms-transition: all 0.1s;
            -o-transition: all 0.1s;
            transition: all 0.1s;
        }
    </style>
</head> 
<body>

<div id=latency></div>

<div id=pubnub></div>
<script 