Cookie Use
We use cookies to ensure a smooth browsing experience. By continuing we assume you accept the use of cookies.
Learn More
// localStorage.getItem('customPath|test123')
var removeCover = function(){
$('.cover22').fadeOut(200,function(){
$('.cover22').remove()
});
}
var allowPath = function(path){
localStorage.setItem('customPath|' + path, '1')
}
var showCover = function(inputPath){
var path = inputPath
if (!path) path = window.location.pathname
if (path.charAt(0) == '/') path = path.slice(1)
if (pw[path]) {
if ($('.cover22').length) return
if (localStorage.getItem('customPath|' + path)) return
var cover = $(``)
$('body').append(cover)
$('.cont22 .s-btn').click(function(){
var val = $('.cover22 input').val()
if (val === pw[path]) {
console.log('remove1')
removeCover()
allowPath(path)
} else {
setTimeout(function(){
alert('Incorrect password')
}, 500);
}
})
} else {
console.log('remove2')
removeCover()
}
}
setInterval(showCover, 250)
window._strk = window._strk || []
/* _strk.push( function(){
customFunction();
$('.s-nav-li a').click(function(){
var hrefPath = $(this).attr('href')
hrefPath = hrefPath.replace(window.location.host.toString(), '')
for (var i in pw) {
if (i.length && hrefPath.indexOf(i) != -1) {
console.log('show cover on click')
customFunction(i)
}
}
})
}); */
/*_strk.push( function(){ window.edit_page.Event.subscribe("Page.beforeNewOneFadeIn", customFunction); }); */