Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
</body>
</html>
 
var getParam = function( name ) {
                        var result = '';
                        var thisUrl = unescape(location.href);
                        var params = thisUrl.substring(thisUrl.indexOf('?')+1).split('&');
                        for(var i = 0 ; i < params.length ; i++)
                        {
                                var keyValue = params[i].split('=');
                                if(keyValue[0].toUpperCase() == name.toUpperCase())
                                {
                                        result = keyValue[1];
                                        break;
                                }
                        }
                        return result;
                }
                $('#client-name').text(getParam('id'));
                $('#client-tel').text(getParam('tel'));
                $('#start-support-time').text($_param.connectTime.replace(/\//g, '-'));
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers