var __fb = { }; __fb.domain = "https://www.mindmigma.com/feedback"; __fb.color = "yellow"; __fb.key="4ed6a33a63f2e11da7fef4fb5c0b7316"; __fb.data = {"__fb-left-top-ideas":[{"id":1,"title":"60 fps for video converter?","text":"Can you make a setting so the video converter can convert a video that will be in 60 fps?Frexxy","likes":"732","dislikes":"450","cat":"__fb-left-top-ideas","time":"1411066068"}]}; __fb.label="none"; __fb.offset="50%"; __fb.theme="dark";/* Creative Feedback Plugin # # An outstanding feedback form that lets you communcate with customers and accepting ideas about improving your services. # # Copyright by Prospekt, 2011 # http://prospekt.hr, http://projects.prospekt.hr/feedback # # Main javascript file that processes all end-user functions in browser. */ function __fb_init(){if(arguments.callee.done)return;arguments.callee.done=true;__fb.object=new CR_FB}function prLayer(a){this.className=a;this.zIndex=10008;this.opacity="0.5";this.backgroundColor="#000"}function prCaptcha(){this.error=true}function CR_FB(){this.initDemo();this.init();this.initButton();this.initNodes()}CR_FB.prototype.init=function(){this.addCss(__fb.domain+"/style.css");this.form=document.createElement("div");this.form.innerHTML="
Got idea how to improve the site?
Idea
Remark
Problem
Likes
POPULAR IDEAS
Ideas
Votes
Nothing here yet ;(
Remarks
Votes
Nothing here yet ;(
Problems
Votes
Nothing here yet ;(
Likes
Votes
Nothing here yet ;(
Thank you for your contribution.
Show me more
";this.form.id="__fb-form";this.form.className="__fb-form-"+__fb.color;document.body.appendChild(this.form);this.fullInit();this.tab(document.getElementById("__fb-left-top-ideas"))};CR_FB.prototype.initButton=function(){if(!__fb.label||__fb.label=="")return;if(!this.label){this.label=document.createElement("div");this.label.id="__fb-label";if(__fb.theme=="dark")__fb.theme="dark";else __fb.theme="light";this.label.className="__fb-label-pos-"+__fb.theme+"-"+__fb.label+" __fb-label-color-"+__fb.color;this.label.onmouseover=function(){__fb.object.addClass(this,"__fb-label-pos-"+__fb.theme+"-"+__fb.label+"-hover")};this.label.onmouseout=function(){__fb.object.removeClass(this,"__fb-label-pos-"+__fb.theme+"-"+__fb.label+"-hover")};this.label.onclick=function(){__fb.object.show()};if(__fb.offset){if(__fb.label=="right"||__fb.label=="left"){if(__fb.offset=="100%")this.label.style.bottom="0%";else if(__fb.offset=="50%")this.label.style.top=(window.innerHeight-50)/2+"px";else this.label.style.top=__fb.offset}else{if(__fb.offset=="100%")this.label.style.right="0%";else if(__fb.offset=="50%")this.label.style.left=(window.innerWidth-158)/2+"px";else this.label.style.left=__fb.offset}}this.label;document.body.appendChild(this.label)}};CR_FB.prototype.initNodes=function(){var a=document.getElementsByTagName("*");var b={};b.className="__fb-button __fb-button-"+__fb.theme+" __fb-button-color-"+__fb.color;b.onmouseover=function(){__fb.object.addClass(this,"__fb-button-"+__fb.theme+"-hover")};b.onmouseout=function(){__fb.object.removeClass(this,"__fb-button-"+__fb.theme+"-hover")};b.onclick=function(){__fb.object.show()};var c=a.length;for(var d=0;d]+>/gi,"");c=parseInt(c.substr(0,c.indexOf(" ")),10);c+=1;if(document.getElementById("__fb-like-"+a))document.getElementById("__fb-like-"+a).innerHTML='
'+c+" like";document.getElementById("__fb-flike-"+a).innerHTML='
'+c+" like"}else{var c=document.getElementById("__fb-fdislike-"+a).innerHTML.replace(/<\/?[^>]+>/gi,"");c=parseInt(c.substr(0,c.indexOf(" ")),10);c+=1;if(document.getElementById("__fb-dislike-"+a))document.getElementById("__fb-dislike-"+a).innerHTML='
'+c+" dislike";document.getElementById("__fb-fdislike-"+a).innerHTML='
'+c+" dislike"}this.request("&id="+a+"&like="+b)};CR_FB.prototype.unlike=function(a){this.addClass(document.getElementById("__fb-like-"+a),"liked");this.addClass(document.getElementById("__fb-dislike-"+a),"liked");this.addClass(document.getElementById("__fb-flike-"+a),"liked");this.addClass(document.getElementById("__fb-fdislike-"+a),"liked")};CR_FB.prototype.dragStart=function(a){if(a.preventDefault)a.preventDefault();__fb.drag.active=true;__fb.drag.top=__fb.drag.scrollH-__fb.drag.dragH;__fb.drag.lastpos=this.mousePos(a).y;if(!document.getElementById("__fb-full").onmousemove){document.getElementById("__fb-overlay").onmousemove=function(a){__fb.object.dragMove(a)};document.getElementById("__fb-overlay").onmouseup=function(a){__fb.object.dragStop(a)};document.getElementById("__fb-full").onmousemove=function(a){__fb.object.dragMove(a)};document.getElementById("__fb-full").onmouseup=function(a){__fb.object.dragStop(a)}}};CR_FB.prototype.dragStop=function(a){__fb.drag.active=false};CR_FB.prototype.dragMove=function(a){var a=a||window.event;if(!__fb.drag)__fb.drag={};if(!__fb.drag.active)return;var b=document.getElementById("__fb-scroller-full-scroller");if(!b.style.top)b.style.top="0px";var c=parseInt(b.style.top.replace("px",""),10);var d=this.mousePos(a).y;var e=d-__fb.drag.lastpos;if(c<=0&&e<0||c>=__fb.drag.top&&e>0){if(c<0){b.style.top="0px";document.getElementById("__fb-full").scrollTop=0}if(c>__fb.drag.top){b.style.top=__fb.drag.top+"px";document.getElementById("__fb-full").scrollTop=__fb.drag.docH}return}document.getElementById("__fb-full").scrollTop=(c+e)*__fb.drag.ratio;b.style.top=c+e+"px";__fb.drag.lastpos=d};CR_FB.prototype.dragFix=function(){if(!__fb.drag)__fb.drag={};__fb.drag.docH=document.getElementById("__fb-full-container").offsetHeight;__fb.drag.winH=document.getElementById("__fb-full").offsetHeight;__fb.drag.scrollH=document.getElementById("__fb-scroller-full").offsetHeight-34;__fb.drag.dragH=document.getElementById("__fb-scroller-full-scroller").offsetHeight;__fb.drag.ratio=__fb.drag.docH/__fb.drag.scrollH;var a=__fb.drag.winH/__fb.drag.docH*__fb.drag.scrollH;if(a>__fb.drag.scrollH)a=__fb.drag.scrollH;var b=document.getElementById("__fb-scroller-full-scroller");b.style.height=a+"px";__fb.drag.dragH=b.offsetHeight;var c=parseInt(b.style.top.replace("px",""),10);if(c+b.offsetHeight>__fb.drag.scrollH)b.style.top=__fb.drag.scrollH-b.offsetHeight+"px"};CR_FB.prototype.mousePos=function(a){var a=a||window.event;return{x:a.clientX+document.documentElement.scrollLeft,y:a.clientY+document.documentElement.scrollTop}};CR_FB.prototype.fullInit=function(){if(!__fb.data){return}for(var a in __fb.data){var b="";var c=" __fb-even";for(var d=0;d<__fb.data[a].length;d++){var e=__fb.data[a][d];if(c=="")c=" __fb-even";else c="";if(e.id==0)liked=" liked";else liked="";b+='
'+e.title+'
'+e.text+'
'+e.likes+' like
'+e.dislikes+" dislike
"}var e=document.getElementById(a+"-container");if(e)e.innerHTML=b}this.checkLikes()};CR_FB.prototype.fill=function(a){if(!__fb.data||!__fb.data[a.id]){document.getElementById("__fb-right-content").innerHTML="No posts here yet ;(";return}var b="";for(var c=0;c<__fb.data[a.id].length;c++){if(c>2)break;var d=__fb.data[a.id][c];if(d.id==0)liked=" liked";else liked="";b+='
'+d.title+'
'+d.likes+' like
'+d.dislikes+" dislike
"}document.getElementById("__fb-right-content").innerHTML=b;this.checkLikes()};CR_FB.prototype.tab=function(a){if(__fb.tab)this.removeClass(__fb.tab,"q-active");this.addClass(a,"q-active");__fb.tab=a;var b=document.getElementById("__fb-textarea");if(b.value==b.title)b.value=a.title;b.title=a.title;var c=a.id.substr(a.id.lastIndexOf("-")+1);document.getElementById("__fb-right-top").innerHTML="popular "+c;this.fill(a)};CR_FB.prototype.focus=function(a){this.addClass(a,"active");if(a.value==a.title)a.value=""};CR_FB.prototype.blur=function(a){this.removeClass(a,"active");if(a.value=="")a.value=a.title};CR_FB.prototype.check=function(a){elGroup={"__fb-left-bottom-public":"__fb-left-bottom-private","__fb-left-bottom-private":"__fb-left-bottom-public"};var b=a.getElementsByTagName("input")[0];if(b.checked){return true;this.removeClass(a,"radio-checked");b.checked=false}else{document.getElementById(elGroup[a.id]).checked=false;this.removeClass(document.getElementById(elGroup[a.id]),"radio-checked");this.addClass(a,"radio-checked");b.checked=true;this.radio=a}return true};CR_FB.prototype.scroll=function(a,b,c){if(!c)c=54;if(b==1){a.scrollTop=a.scrollTop-c}else{a.scrollTop=a.scrollTop+c}};CR_FB.prototype.submit=function(){var a=document.getElementById("__fb-textarea");if(a.value==a.title||a.value==""){this.msg("Please write short description!");return}var a=document.getElementById("__fb-input");if(a.value==a.title||a.value==""){this.msg("Please write title!");return}if(!window.__prCaptcha){__prCaptcha=new prCaptcha;__prCaptcha.domain=__fb.domain;__prCaptcha.color=__fb.color;__prCaptcha.callback="__fb.object.captchaCallback"}__prCaptcha.show()};CR_FB.prototype.submitFinal=function(){var a={};var b=document.getElementById("__fb-textarea");a["text"]=b.value;if(b.value==b.title||b.value==""){this.msg("Please write short description!");return}var b=document.getElementById("__fb-input");a["title"]=b.value;if(b.value==b.title||b.value==""){this.msg("Please write title!");return}if(this.radio&&this.radio.id=="__fb-left-bottom-private")a["privacy"]=1;else a["privacy"]=0;this.request("&title="+a.title+"&text="+a.text+"&privacy="+a.privacy+"&cat="+__fb.tab.id);this.close();this.msg("Your message has been sent. Thank you for feedback!");var b=document.getElementById("__fb-textarea");b.value=b.title;var b=document.getElementById("__fb-input");b.value=b.title;if(!a.privacy){if(!__fb.data[__fb.tab.id])__fb.data[__fb.tab.id]=[];__fb.data[__fb.tab.id].unshift({id:0,title:a.title,text:a.text,likes:"0",dislikes:"0",cat:__fb.tab.id});this.fullInit();this.fill(__fb.tab)}};CR_FB.prototype.msg=function(a){if(!this.msg_div){this.msg_div=document.createElement("div");this.msg_div.id="__fb-msg";document.body.appendChild(this.msg_div)}this.msg_div.innerHTML=unescape(a);this.msg_div.style.display="block";this.msg_div.style.visibility="visible";this.msg_div.style.opacity=1;var b=this;window.clearTimeout(__fb.timer);__fb.timer=window.setTimeout(function(){b.fade(b.msg_div)},5e3)};CR_FB.prototype.fade=function(a,b,c){if(!b)b=50;if(!c)c=.15;a.style.opacity=1;__fb.interval=window.setInterval(function(){if(a.style.opacity<=0){window.clearInterval(__fb.interval);a.style.visibility="hidden"}else{var b=Number(a.style.opacity).toFixed(2);a.style.opacity=b-c;if(c>=b){a.style.opacity=0}}},b)};CR_FB.prototype.maxmin=function(){var a=document.getElementById("__fb-center");if(a.style.display=="none")this.minView();else this.fullView()};CR_FB.prototype.minView=function(){if(__fb.timer2||__fb.timer3||__fb.interval)return;var a=document.getElementById("__fb-container");var b={fW:650,fH:300,qW:(650-a.offsetWidth)/10,qH:(300-a.offsetHeight)/10};this.fade(document.getElementById("__fb-full"),20,.1);if(__fb.timer2)window.clearTimeout(__fb.timer2);if(__fb.timer3)window.clearTimeout(__fb.timer2);__fb.timer2=window.setTimeout(function(){__fb.object.transform(a,b);__fb.timer2=null},500);__fb.timer3=window.setTimeout(function(){__fb.object.removeClass(document.getElementById("__fb-form"),"__fb-full");var a=document.getElementById("__fb-center");a.style.display="block";a.style.opacity=1;a.style.visibility="visible";document.getElementById("__fb-full").style.display="none";document.getElementById("__fb-right-footer").innerHTML='Show me more
';document.getElementById("__fb-right-footer").className="";__fb.timer3=null},1e3)};CR_FB.prototype.fullView=function(){if(__fb.timer2||__fb.timer3||__fb.interval)return;var a=document.getElementById("__fb-container");var b={fW:750,fH:450,qW:(750-a.offsetWidth)/10,qH:(450-a.offsetHeight)/10};this.addClass(document.getElementById("__fb-form"),"__fb-full");this.fade(document.getElementById("__fb-center"),20,.1);document.getElementById(__fb.tab.id+"-container").style.display="block";if(__fb.timer2)window.clearTimeout(__fb.timer2);if(__fb.timer3)window.clearTimeout(__fb.timer2);__fb.timer2=window.setTimeout(function(){__fb.object.transform(a,b);__fb.timer2=null},500);__fb.timer3=window.setTimeout(function(){document.getElementById("__fb-center").style.display="none";document.getElementById("__fb-right-footer").innerHTML='Back to form
';document.getElementById("__fb-right-footer").className="__fb-less";var a=document.getElementById("__fb-full");a.style.display="block";a.style.opacity=1;a.style.visibility="visible";__fb.object.dragFix();__fb.timer3=null},1e3)};CR_FB.prototype.transform=function(a,b){var c=1;if(a.offsetWidth>b.fW)c=-1;var d=this.layer.layerSize();var e=this.layer.layerScroll();__fb.interval=window.setInterval(function(){if(a.offsetWidth*c>=b.fW*c){window.clearInterval(__fb.interval);__fb.interval=null}else{a.style.width=a.offsetWidth+b.qW+"px";a.style.height=a.offsetHeight+b.qH+"px";__fb.object.form.style.left=(d[2]-__fb.object.form.offsetWidth)/2+e[0]+"px";__fb.object.form.style.top=(d[3]-__fb.object.form.offsetHeight)/2+e[1]+"px"}},1)};CR_FB.prototype.initDemo=function(){if(!document.getElementById("__fb-demo"))return;if(window.location.hash)this.msg(window.location.hash.substring(1));var a=window.location.search.substring(1);a=a.split(":");if(a[1])__fb.label=a[1];if(a[2])__fb.color=a[2];if(a[3])__fb.theme=a[3];if(a[4])__fb.offset=a[4];this.demoSelectFill(3,"__fb-theme-select");this.demoSelectFill(4,"__fb-offset-select")};CR_FB.prototype.demoSelect=function(a,b,c){if(!__fb.demo)__fb.demo={};__fb.demo[a]=b;this.addClass(c,"q-active");if(__fb.demo.el)this.removeClass(__fb.demo.el,"q-active");__fb.demo.el=c;if(!__fb.demo[1])__fb.demo[1]=__fb.label;if(!__fb.demo[2])__fb.demo[2]=__fb.color;if(!__fb.demo[3])__fb.demo[3]=__fb.theme;if(!__fb.demo[4])__fb.demo[4]=__fb.offset;window.location.href="?:"+__fb.demo[1]+":"+__fb.demo[2]+":"+__fb.demo[3]+":"+__fb.demo[4]};CR_FB.prototype.demoSave=function(){if(!__fb.demo)__fb.demo={};if(!__fb.demo[1])__fb.demo[1]=__fb.label;if(!__fb.demo[2])__fb.demo[2]=__fb.color;if(!__fb.demo[3])__fb.demo[3]=__fb.theme;if(!__fb.demo[4])__fb.demo[4]=__fb.offset;window.location.href="?save=1&a="+__fb.demo[1]+"&b="+__fb.demo[2]+"&c="+__fb.demo[3]+"&d="+__fb.demo[4]+"&e="+document.getElementById("__fb-mail-select").value};CR_FB.prototype.demoSelectFill=function(a,b){var c={3:["dark","light"],4:["0%","10%","20%","30%","40%","50%","60%","70%","100%"]};var d="";var e={3:__fb.theme,4:__fb.offset};for(var f=0;f"+c[a][f]+""}document.getElementById(b).innerHTML='
"+e[a]+'
'+d+"
"};CR_FB.prototype.captchaCallback=function(){this.submitFinal()};CR_FB.prototype.request=function(a){var b=document.createElement("script");var c=this.rnd();b.type="text/javascript";b.src=__fb.domain+"/data.php?key="+__fb.key+""+a;b.id="__fb-request-up-"+c;var d=document.getElementsByTagName("head")[0];d.appendChild(b)};CR_FB.prototype.requestUp=function(token,reply){var __=document.getElementById("__fb-request-up-"+token);if(reply==0){this.error=true;this.msg("Text does not match symbols on the picture","error");this.refresh()}if(reply==1){this.error=false;this.close();if(this.callback&&typeof eval(this.callback)=="function")eval(this.callback+"()")}__.parentNode.removeChild(__)};prCaptcha.prototype.show=function(a){if(!this.form){this.form=document.createElement("div");this.form.id="__prCaptcha-form";this.form.className="__prCaptcha-form-"+this.color;this.form.innerHTML="
Captcha protection
Refresh captcha
Anti-spam protection
";document.body.appendChild(this.form)}if(!this.layer){this.layer=new prLayer("prCaptcha");this.layer.zIndex=10010}this.refresh();this.layer.layerShow(this.form)};prCaptcha.prototype.close=function(){this.layer.layerHide(this.form)};prCaptcha.prototype.refresh=function(){document.getElementById("__prCaptcha-img").style.backgroundImage='url("'+this.domain+"/data.php?captcha="+Math.random()+'")'};prCaptcha.prototype.msg=function(a,b){document.getElementById("__prCaptcha-footer").innerHTML='
'+a+"
"};prCaptcha.prototype.check=function(a){var a=document.getElementById("__prCaptcha-input");if(a.value==""){this.msg("Type symbols from picture","error");return}this.msg("Processing...","loading");this.request(a.value);return;var b=this;$.ajax({url:"/data.php",type:"POST",dataType:"json",data:{action:"captcha",type:"check",msg:a},timeout:15e3,success:function(a){if(a==0){b.error=true;msg("Неверный код, пожалуйста повторите","Ошибка");b.refresh()}else{b.error=false;$("#captcha").dialog("destroy");$("#captcha").remove();if(b.callback)window[b.callback]()}}})};prCaptcha.prototype.request=function(a){var b=document.createElement("script");var c=this.rnd();b.type="text/javascript";b.src=this.domain+"/data.php?captcha="+a+"&_="+c;b.id="__prCaptcha-request-up-"+c;var d=document.getElementsByTagName("head")[0];d.appendChild(b)};prCaptcha.prototype.requestUp=function(token,reply){var __=document.getElementById("__prCaptcha-request-up-"+token);if(reply==0){this.error=true;this.msg("Text does not match symbols on the picture","error");this.refresh()}if(reply==1){this.error=false;this.close();if(this.callback&&typeof eval(this.callback)=="function")eval(this.callback+"()")}__.parentNode.removeChild(__)};prCaptcha.prototype.rnd=function(a,b){if(!a)a=1e6;if(!b)b=999999999;return Math.floor(Math.random()*(b-a+1))+a};CR_FB.prototype.addJs=function(a){var b=document.createElement("script");b.src=a;document.getElementsByTagName("head")[0].appendChild(b)};CR_FB.prototype.addCss=function(a){var b=document.createElement("link");b.href=a;b.type="text/css";b.rel="stylesheet";b.media="all";document.getElementsByTagName("head")[0].appendChild(b)};CR_FB.prototype.addClass=function(a,b){if(!a)return;if(a.className.indexOf(b)>-1)return;a.className+=" "+b};CR_FB.prototype.removeClass=function(a,b){if(!a)return;if(a.className.indexOf(b)<0)return;a.className=a.className.replace(b,"")};CR_FB.prototype.serialize=function(a){var b=[];for(var c in a){b.push(c+"||"+a[c])}return b.join("::")};CR_FB.prototype.unserialize=function(a){var b={};var c=a.split("::");for(var d=0;ddocument.body.offsetHeight){a=document.body.scrollWidth;b=document.body.scrollHeight}else{a=document.body.offsetWidth;b=document.body.offsetHeight}var c,d;if(self.innerHeight){if(document.documentElement.clientHeight)c=document.documentElement.clientWidth;else c=self.innerWidth;d=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){c=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else if(document.body){c=document.body.clientWidth;d=document.body.clientHeight}if(b