svg.selectAll("text")
.data(data)
.enter()
.append("text")
.text(function(data){return data.days;})
.attr("text-anchor", "middle")
.attr("x", function(data, i) {
return x(data.days);
})
.attr("y", function(d) {
return h - (data.days * 4) + 14;
})
.attr("font-family", "sans-serif")
.attr("font-size", "11px")
.attr("fill", "green");
<div class="spine-widget" data-background-color="#00000000" data-json="skeleton.json" data-atlas="skeleton.atlas" data-scale="0.5" data-animation="animation" style="height: 300px; width: 300px; "></div>
function findCarInLot (car) {
for (var i = 0 ; i < lot.length ; i ++) {
if ( car === lot[i] ) {
return i ;
}
}
return - 1 ;
}
<style>.font { font-family: {{$ctrl.font}};}</style>
<link rel="stylesheet" href="/css/vendor.css"> // size +100500kb
<link rel="stylesheet" href="/css/init.css"> // size 5kb
<link rel="stylesheet" href="/css/main.css"> // size 500kb
function sliderBg() {
$('.bgcolor').vegas({
delay: 6000,
timer: false,
loop:false,
transitionDuration: 3000,
animation: 'kenburns',
slides: [
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg"}
],
end: slideUpMain
});
setInterval(this.renewClock(), 1000); // Не пашет
setInterval(function(){
this.renewClock.call(this);
}, 1000); // Пашет
.modal-open {
overflow: hidden;
}