📅 2015-07-06
1 record with ≈2300 authors
>30sec for rendering!
var target = document.getElementById('rendered');
for (var i = 0; i < data.length; ++i) {
target.appendChild(generate(data[i]));
}
var target = document.getElementById('rendered');
var fragment = document.createDocumentFragment();
for (var i = 0; i < data.length; ++i) {
fragement.appendChild(generate(data[i]));
}
target.appendChild(fragment);
/* data.length === 1000 */
for (var i = 0, ii = data.length; i < ii; ++i) {
listform.add(genHTML(data[i]));
listform.revalidate();
}
/* listform.validate = function() {
var json = listform.value();
validator.execute(json);
} */
for (var i = 0, ii = data.length; i < ii; ++i) {
listform.add(genHTML(data[i]));
}
listform.revalidate();
for (var i = 0; i < data.length; ++i) {
doWhatever(data[i]);
}
for (var i = 0, ii = data.length; i < ii; ++i) {
doWhatever(data[i]);
}
for (var k in obj) {
doWhatever(obj[k]);
}
var keys = Object.keys(obj);
for (var i = 0; i < keys.length; ++i) {
doWhatever(obj[keys[i]);
}
for (var k in obj) {
if (obj.hasOwnProperty(k) {
doWhatever(obj[k]);
}
}
$('#mycell .field').each(function() {
$(this).css('color', 'red');
}
var fields = document
.getElementById('mycell')
.getElementsByClassName('field');
for (var i = 0, ii = fields.length; i < ii; ++i) {
fields[i].style.color = 'red';
}
var e = $('<div>');
var e = document.createElement('div');
element.style.color = 'red';
element.className = 'alert';
// OR
element.classList.add('alert');
.alert {
color: red;
}
// OR
.myform .alert {
color: red;
}
// OR
.somerow > .alert {
color: red;
}
// OR
input.alert {
color: red;
}
$(".author").bind("click", function () {
alert(this.id);
})
var _f = function () {
alert(this.id);
};
var _all = document.getElementsByClassName('author');
for (var _i = 0; _i < _all.length; ++_i) {
_all[_i].addEventListener('click', _f.bind(_all[_i]));
}
=
(that means: no tablets/smartphones, at least not for huge records and not during the first release!)
Provided by Sortable
Provided by tv4
TODO
First public prototype end of next week, maybe
Questions and offers to help:
I'll pass the main development to other maintainers after the first release.