$(document).ready(function () {
$('.copyrigt a').css('display', 'block');
$.post("/misc/view.php", {struct_id: "70272"});
var struct = "70272";
if (struct == 47917) {
$('p a').each(function () {
var href = $(this).attr('href');
$(this).attr('href', "https://platfor.ma" + href)
});
}
if ($('.img-ilusion').length > 0) {
var innerW = $(document).innerWidth();
var postWrp = parseInt($('.post-wrapper').css('padding-left'));
var postWrpR = parseInt($('.post-wrapper').css('padding-right'));
$('.img-ilusion').each(function () {
setTimeout(400);
var img_h = $(this).find("img").height();
if (img_h >= 199) {
var imgWidth = $(this).find("img").width();
var res1 = imgWidth + postWrp + postWrpR;
var res2 = (innerW - res1) / 2;
$(this).width(innerW);
$(this).css('margin-left', -(res2 + postWrp));
}
/* $(this).find("img").load(function(){
var imgWidth = $(this).width();
var res1 = imgWidth + postWrp + postWrpR;
var res2 = (innerW-res1)/2;
$(this).parents('.img-ilusion').width(innerW);
$(this).parents('.img-ilusion').css('margin-left',-(res2+postWrp));
});*/
});
}
});
$(document).ready(function () {
// console.log(1);
var questions = getObjFromJSON(localStorage.getItem('questions_'));
// console.log('questions: ' + questions);
var answers = JSON.parse('[{"title":"Glen Miller - Moonlight Serenade","annot":"Glen Miller - Moonlight Serenade","bodytext":"