alert("will start now")
var global = window;
function _isEmptyElement(element) {
var isEmpty = !element.firstChild, i = 0;
if(!isEmpty) {
isEmpty = true;
while((el = element.childNodes[i++]) && isEmpty)
isEmpty = el.nodeType === 3 && el.nodeValue.trim() === "";
}
return isEmpty;
}
var data = {
account : {
id : 15654,
name : "George Nikolaev",
nick : "termi"
},
messages : [
{
from : {
id : 42134,
name : "Yusupov Andry",
nick : "sidor"
},
body : "Hi to <b>all</b>!!!"
},
{
from : {
id : 325,
name : "Yusupov Andry",
nick : "sidor"
},
body : "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
},
{
from : {
id : 512351,
name : "Vasa Shtovich",
nick : "vazelin"
},
body : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
},
{
from : {
id : 51234151,
name : "Chpreha Ugorgy",
nick : "sochfgy"
},
body : "Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur?"
},
{
from : {
id : 95679,
name : "Tyhon Gurgen",
nick : "gora"
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.