<div class="f1">
<div class="f1-content"></div>
<div class="f2">
<div class="f2-content"></div>
</div>
</div>
.f1,
.f2 {
position: fixed;
left: 0;
right: 0;
}
.f1 {
top: 0;
}
.f1-content {
height: 100px; //может меняться в любой момент
background: rgba(102, 153, 204, .7);
}
.f2-content {
height: 100px;
background: rgba(51, 102, 153, .7);
}
On the index or home page, append #disqus_thread to the end of each article URL which appears inside the href tag for the article comments link
<footer class="topic-footer">
<ul class="list-unstyled list-inline small topic-info">
<li class="topic-info-author">
<a href="http://geekninja.ru/profile/romanstrukov/"><img src="http://geekninja.ru/uploads/images/00/00/35/2015/03/20/avatar_24x24.jpg?165946" alt="romanstrukov" class="avatar"></a>
<a rel="author" href="http://geekninja.ru/profile/romanstrukov/">Роман Струков</a>
</li>
<li class="topic-info-date">
<time datetime="2015-04-23T11:30:52+03:00" title="23 апреля 2015, 11:30" class="text-muted">
23.04.2015
</time>
</li>
<!-- Вот этот кусок для счётчика -->
<li class="topic-info-comment">
<a href="http://geekninja.ru/podcasts/227#disqus_thread" class="topic-comment"></a>
</li>
</ul>
</footer>
<div class="item"><span class="item-text">...</span></div>
.item {
height: 60px;
line-height: 60px; //вот правило, примерно центрирующее символ по высоте
}
.item:before,
.item-text {
display: inline-block;
vertical-align: middle;
}
.item:before {
content: ""; //или вставляем картинку
width: 40px;
height: 40px;
margin-right: 10px;
border-radius: 50%;
background: #369;
}
.item-text {
line-height: normal; //не забываем вернуть высоту линии в норму
}
.left_menu_content_book_title {
padding: 0 0 0 64px;
}
filter: alpha(opacity=...);
$(document).on('click', '[data-dialog]', function (e) {
e.preventDefault();
});
$(function () {
var trigger = $('[data-dialog]'),
type = trigger.data('dialog'),
dialog = new DialogFx(type);
trigger.on('click', function (e) {
e.preventDefault();
dialog.toggle.bind(dialog);
});
})();
s.replace(/(https?:\/\/)([\w-]+(\.[\w-]+)+)/g, '<a href="$1$2">$2</a>');
s.replace(/(https?:\/\/([\w-]+(\.[\w-]+)+))/ig, function () {
return '<a href="' + arguments[1].toLowerCase() + '">' + arguments[2].toLowerCase() + '</a>';
});