Posted Fri May 16, 2014 2:41 pm
I put these codes, whats wrong
- Code:
$(function() {
if (document.getElementById('logout') == null) {
var sCategory = '/c2';
$('.main-content:eq(' + sCategory + ')').addClass('hanckiprotected');
}
});
- Code:
.hanckiprotected:after {
background: none repeat scroll 0px 0px rgba(255, 255, 255, 0.7);
bottom: 0px;
content: "Members Only";
font-size: 30px;
left: 0px;
line-height: 310px;
position: absolute;
right: 0px;
text-align: center;
top: 0px;
z-index: 10;
}
.hanckiprotected {
position: relative;