var status, ok;
$(function() {
$(document).on('click', '.filter', function() {
if($(this).data('status') != undefined)
window.status = $(this).data('status');
if($(this).data('okay') != undefined)
window.ok = $(this).data('okay');
var template = $("#posts").html();
$.ajax({
type: "POST",
url: "/filter",
data: {
"status": window.status,
"ok": window.ok
},
success: function(result) {
$(".posts").html(_.template(template,{ result:result }));
}
});
});
$(document).on('click', '#loadmore', function() {
var template = $("#posts").html();
$.ajax({
type: "POST",
url: "/filter",
data: {
"status": window.status,
"ok": window.ok
},
success: function(result) {
$(".posts").append(_.template(template,{ result:result }));
}
});
});
});
border-top: 5px solid #fff;
margin-top: -5px;
border-top: 5px solid transparent;
border-top: 5px solid #fff;
function rower() {
var x=document.getElementsByTagName("input");
var summa=document.getElementById('summa');
var msg='';
var price=0;
summa.textContent='';
for (var i = 0 ;i<x.length; i++) {
if (x[i].checked) {
msg +=x[i].name;
price +=parseInt(x[i].value);
summa.textContent= msg+ '=' + price;
}
}
}