");return e>=0?{content:t.substr(4,e),length:e+3}:void 0},endTag:function(){var e=t.match(a);return e?{tagName:e[1],length:e[0].length}:void 0},atomicTag:function(){var e=T.startTag();if(e){var n=t.slice(e.length);if(n.match(new RegExp("\\s*"+e.tagName+"\\s*>","i"))){var a=n.match(new RegExp("([\\s\\S]*?)\\s*"+e.tagName+"\\s*>","i"));if(a)return{tagName:e.tagName,attrs:e.attrs,content:a[1],length:a[0].length+e.length}}}},startTag:function(){var e=t.indexOf(">");if(-1===e)return null;var a=t.match(n);if(a){var i={},o={},u=a[2];return a[2].replace(r,function(t,e){if(arguments[2]||arguments[3]||arguments[4]||arguments[5])if(arguments[5])i[arguments[5]]="",o[e]=!0;else{var n=arguments[2]||arguments[3]||arguments[4]||s.test(e)&&e||"";i[e]=g(n)}else i[e]=null;u=u.replace(t,"")}),{tagName:a[1],attrs:i,booleanAttrs:o,rest:u,unary:!!a[3],length:a[0].length}}},chars:function(){var e=t.indexOf("<");return{length:e>=0?e:t.length}}},v=function(){for(var e in p)if(p[e].test(t)){i&&console.log("suspected "+e);var n=T[e]();return n?(i&&console.log("parsed "+e,n),n.type=n.type||e,n.text=t.substr(0,n.length),t=t.slice(n.length),n):null}},h=function(t){for(var e;e=v();)if(t[e.type]&&t[e.type](e)===!1)return},d=function(){var e=t;return t="",e},N=function(){return t};return o.fix&&!function(){var e=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,n=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i,a=[];a.last=function(){return this[this.length-1]},a.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},a.containsTagName=function(t){for(var e,n=0;e=this[n];n++)if(e.tagName===t)return!0;return!1};var r=function(t){return t&&"startTag"===t.type&&(t.unary=e.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t},s=v,i=function(){var e=t,n=r(s());return t=e,n},u=function(){var t=a.pop();m(""+t.tagName+">")},c={startTag:function(t){var e=t.tagName;"TR"===e.toUpperCase()&&a.lastTagNameEq("TABLE")?(m(""),g()):o.fix_selfClose&&n.test(e)&&a.containsTagName(e)?a.lastTagNameEq(e)?u():(m(""+t.tagName+">"),g()):t.unary||a.push(t)},endTag:function(t){var e=a.last();e?o.fix_tagSoup&&!a.lastTagNameEq(t.tagName)?u():a.pop():o.fix_tagSoup&&f()}},f=function(){s(),g()},g=function(){var t=i();t&&c[t.type]&&c[t.type](t)};v=function(){return g(),r(s())}}(),{append:l,readToken:v,readTokens:h,clear:d,rest:N,stack:c}}var e=function(){var t,e={},n=this.document.createElement("div");return t="
",n.innerHTML=t,e.tagSoup=n.innerHTML!==t,n.innerHTML="
",e.selfClose=2===n.childNodes.length,e}(),n=/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,a=/^<\/([\-A-Za-z0-9_]+)[^>]*>/,r=/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,s=/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i,i=!1;t.supports=e,t.tokenToString=function(t){var e={comment:function(t){return"");return b>=0?{content:a.substr(4,b),length:b+3}:void 0},endTag:function(){var b=a.match(d);return b?{tagName:b[1],length:b[0].length}:void 0},atomicTag:function(){var b=p.startTag();if(b){var c=a.slice(b.length);if(c.match(new RegExp("\\s*"+b.tagName+"\\s*>","i"))){var d=c.match(new RegExp("([\\s\\S]*?)\\s*"+b.tagName+"\\s*>","i"));if(d)return{tagName:b.tagName,attrs:b.attrs,content:d[1],length:d[0].length+b.length}}}},startTag:function(){var b=a.indexOf(">");if(-1===b)return null;var d=a.match(c);if(d){var g={};return d[2].replace(e,function(a,b){var c=arguments[2]||arguments[3]||arguments[4]||f.test(b)&&b||null;g[b]=l(c)}),{tagName:d[1],attrs:g,unary:!!d[3],length:d[0].length}}},chars:function(){var b=a.indexOf("<");return{length:b>=0?b:a.length}}},q=function(){for(var b in o)if(o[b].test(a)){g&&console.log("suspected "+b);var c=p[b]();return c?(g&&console.log("parsed "+b,c),c.type=c.type||b,c.text=a.substr(0,c.length),a=a.slice(c.length),c):null}},r=function(a){for(var b;b=q();)if(a[b.type]&&a[b.type](b)===!1)return},s=function(){var b=a;return a="",b},t=function(){return a};return h.fix&&!function(){var b=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,c=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i,d=[];d.last=function(){return this[this.length-1]},d.lastTagNameEq=function(a){var b=this.last();return b&&b.tagName&&b.tagName.toUpperCase()===a.toUpperCase()},d.containsTagName=function(a){for(var b,c=0;b=this[c];c++)if(b.tagName===a)return!0;return!1};var e=function(a){return a&&"startTag"===a.type&&(a.unary=b.test(a.tagName)||a.unary),a},f=q,g=function(){var b=a,c=e(f());return a=b,c},i=function(){var a=d.pop();n(""+a.tagName+">")},j={startTag:function(a){var b=a.tagName;"TR"===b.toUpperCase()&&d.lastTagNameEq("TABLE")?(n(""),l()):h.fix_selfClose&&c.test(b)&&d.containsTagName(b)?d.lastTagNameEq(b)?i():(n(""+a.tagName+">"),l()):a.unary||d.push(a)},endTag:function(a){var b=d.last();b?h.fix_tagSoup&&!d.lastTagNameEq(a.tagName)?i():d.pop():h.fix_tagSoup&&k()}},k=function(){f(),l()},l=function(){var a=g();a&&j[a.type]&&j[a.type](a)};q=function(){return l(),e(f())}}(),{append:m,readToken:q,readTokens:r,clear:s,rest:t,stack:j}}var b=function(){var a,b={},c=this.document.createElement("div");return a="
",c.innerHTML=a,b.tagSoup=c.innerHTML!==a,c.innerHTML="
",b.selfClose=2===c.childNodes.length,b}(),c=/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,d=/^<\/([\-A-Za-z0-9_]+)[^>]*>/,e=/([\-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,f=/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i,g=!1;a.supports=b,a.tokenToString=function(a){var b={comment:function(a){return"<--"+a.content+"-->"},endTag:function(a){return""+a.tagName+">"},atomicTag:function(a){return console.log(a),b.startTag(a)+a.content+b.endTag(a)},startTag:function(a){var b="<"+a.tagName;for(var c in a.attrs){var d=a.attrs[c];b+=" "+c+'="'+(d?d.replace(/(^|[^\\])"/g,'$1\\"'):"")+'"'}return b+(a.unary?"/>":">")},chars:function(a){return a.text}};return b[a.type](a)},a.escapeAttributes=function(a){var b={};for(var c in a){var d=a[c];b[c]=d&&d.replace(/(^|[^\\])"/g,'$1\\"')}return b};for(var h in b)a.browserHasFlaw=a.browserHasFlaw||!b[h]&&h;this.htmlParser=a}(),function(){function a(){}function b(a){return a!==m&&null!==a}function c(a){return"function"==typeof a}function d(a,b,c){var d,e=a&&a.length||0;for(d=0;e>d;d++)b.call(c,a[d],d)}function e(a,b,c){var d;for(d in a)a.hasOwnProperty(d)&&b.call(c,d,a[d])}function f(a,b){return e(b,function(b,c){a[b]=c}),a}function g(a,c){return a=a||{},e(c,function(c,d){b(a[c])||(a[c]=d)}),a}function h(a){try{return o.call(a)}catch(b){var c=[];return d(a,function(a){c.push(a)}),c}}function i(a){return a&&"tagName"in a?!!~a.tagName.toLowerCase().indexOf("script"):!1}function j(a){return a&&"tagName"in a?!!~a.tagName.toLowerCase().indexOf("style"):!1}var k={afterAsync:a,afterDequeue:a,afterStreamStart:a,afterWrite:a,beforeEnqueue:a,beforeWrite:function(a){return a},done:a,error:function(a){throw a},releaseAsync:!1},l=this,m=void 0;if(!l.postscribe){var n=!1,o=Array.prototype.slice,p=function(a){return a[a.length-1]},q=function(){function a(a,c,d){var e=k+c;if(2===arguments.length){var f=a.getAttribute(e);return b(f)?String(f):f}b(d)&&""!==d?a.setAttribute(e,d):a.removeAttribute(e)}function g(b,c){var d=b.ownerDocument;f(this,{root:b,options:c,win:d.defaultView||d.parentWindow,doc:d,parser:htmlParser("",{autoFix:!0}),actuals:[b],proxyHistory:"",proxyRoot:d.createElement(b.nodeName),scriptStack:[],writeQueue:[]}),a(this.proxyRoot,"proxyof",0)}var k="data-ps-";return g.prototype.write=function(){[].push.apply(this.writeQueue,arguments);for(var a;!this.deferredRemote&&this.writeQueue.length;)a=this.writeQueue.shift(),c(a)?this.callFunction(a):this.writeImpl(a)},g.prototype.callFunction=function(a){var b={type:"function",value:a.name||a.toString()};this.onScriptStart(b),a.call(this.win,this.doc),this.onScriptDone(b)},g.prototype.writeImpl=function(a){this.parser.append(a);for(var b,c,d,e=[];(b=this.parser.readToken())&&!(c=i(b))&&!(d=j(b));)e.push(b);this.writeStaticTokens(e),c&&this.handleScriptToken(b),d&&this.handleStyleToken(b)},g.prototype.writeStaticTokens=function(a){var b=this.buildChunk(a);if(b.actual)return b.html=this.proxyHistory+b.actual,this.proxyHistory+=b.proxy,this.proxyRoot.innerHTML=b.html,n&&(b.proxyInnerHTML=this.proxyRoot.innerHTML),this.walkChunk(),n&&(b.actualInnerHTML=this.root.innerHTML),b},g.prototype.buildChunk=function(a){var b=this.actuals.length,c=[],e=[],f=[];return d(a,function(a){if(c.push(a.text),a.attrs){if(!/^noscript$/i.test(a.tagName)){var d=b++;e.push(a.text.replace(/(\/?>)/," "+k+"id="+d+" $1")),"ps-script"!==a.attrs.id&&"ps-style"!==a.attrs.id&&f.push("atomicTag"===a.type?"":"<"+a.tagName+" "+k+"proxyof="+d+(a.unary?" />":">"))}}else e.push(a.text),f.push("endTag"===a.type?a.text:"")}),{tokens:a,raw:c.join(""),actual:e.join(""),proxy:f.join("")}},g.prototype.walkChunk=function(){for(var c,d=[this.proxyRoot];b(c=d.shift());){var e=1===c.nodeType,f=e&&a(c,"proxyof");if(!f){e&&(this.actuals[a(c,"id")]=c,a(c,"id",null));var g=c.parentNode&&a(c.parentNode,"proxyof");g&&this.actuals[g].appendChild(c)}d.unshift.apply(d,h(c.childNodes))}},g.prototype.handleScriptToken=function(a){var b=this.parser.clear();b&&this.writeQueue.unshift(b),a.src=a.attrs.src||a.attrs.SRC,a.src&&this.scriptStack.length?this.deferredRemote=a:this.onScriptStart(a);var c=this;this.writeScriptToken(a,function(){c.onScriptDone(a)})},g.prototype.handleStyleToken=function(a){var b=this.parser.clear();b&&this.writeQueue.unshift(b),a.type=a.attrs.type||a.attrs.TYPE||"text/css",this.writeStyleToken(a),b&&this.write()},g.prototype.writeStyleToken=function(a){var b=this.buildStyle(a);this.insertStyle(b),a.content&&(b.styleSheet&&!b.sheet?b.styleSheet.cssText=a.content:b.appendChild(this.doc.createTextNode(a.content)))},g.prototype.buildStyle=function(a){var b=this.doc.createElement(a.tagName);return b.setAttribute("type",a.type),e(a.attrs,function(a,c){b.setAttribute(a,c)}),b},g.prototype.insertStyle=function(a){this.writeImpl('');var b=this.doc.getElementById("ps-style");b.parentNode.replaceChild(a,b)},g.prototype.onScriptStart=function(a){a.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(a)},g.prototype.onScriptDone=function(a){return a!==this.scriptStack[0]?void this.options.error({message:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,a.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this.onScriptStart(this.deferredRemote),this.deferredRemote=null)))},g.prototype.writeScriptToken=function(a,b){var c=this.buildScript(a),d=this.shouldRelease(c),e=this.options.afterAsync;a.src&&(c.src=a.src,this.scriptLoadHandler(c,d?e:function(){b(),e()}));try{this.insertScript(c),(!a.src||d)&&b()}catch(f){this.options.error(f),b()}},g.prototype.buildScript=function(a){var b=this.doc.createElement(a.tagName);return e(a.attrs,function(a,c){b.setAttribute(a,c)}),a.content&&(b.text=a.content),b},g.prototype.insertScript=function(a){this.writeImpl('');var b=this.doc.getElementById("ps-script");b.parentNode.replaceChild(a,b)},g.prototype.scriptLoadHandler=function(a,b){function c(){a=a.onload=a.onreadystatechange=a.onerror=null}function d(){c(),b()}function e(a){c(),g(a),b()}var g=this.options.error;f(a,{onload:function(){d()},onreadystatechange:function(){/^(loaded|complete)$/.test(a.readyState)&&d()},onerror:function(){e({message:"remote script failed "+a.src})}})},g.prototype.shouldRelease=function(a){var b=/^script$/i.test(a.nodeName);return!b||!!(this.options.releaseAsync&&a.src&&a.hasAttribute("async"))},g}();l.postscribe=function(){function b(){var a,b=j.shift();b&&(a=p(b),a.afterDequeue(),b.stream=d.apply(null,b),a.afterStreamStart())}function d(c,d,g){function j(a){a=g.beforeWrite(a),m.write(a),g.afterWrite(a)}m=new q(c,g),m.id=i++,m.name=g.name||m.id,e.streams[m.name]=m;var k=c.ownerDocument,l={close:k.close,open:k.open,write:k.write,writeln:k.writeln};f(k,{close:a,open:a,write:function(){return j(h(arguments).join(""))},writeln:function(){return j(h(arguments).join("")+"\n")}});var n=m.win.onerror||a;return m.win.onerror=function(a,b,c){g.error({msg:a+" - "+b+":"+c}),n.apply(m.win,arguments)},m.write(d,function(){f(k,l),m.win.onerror=n,g.done(),m=null,b()}),m}function e(d,e,f){c(f)&&(f={done:f}),f=g(f,k),d=/^#/.test(d)?l.document.getElementById(d.substr(1)):d.jquery?d[0]:d;var h=[d,e,f];return d.postscribe={cancel:function(){h.stream?h.stream.abort():h[1]=a}},f.beforeEnqueue(h),j.push(h),m||b(),d.postscribe}var i=0,j=[],m=null;return f(e,{streams:{},queue:j,WriteStream:q})}()}}();var ad_code='Reklama';var ad_code2='Reklama';var ad_code3='Reklama';var quizData={"title":"Jakiego stereotypowego bohatera horroru m\u00f3g\u0142by\u015b zagra\u0107?","description":"By\u0142by\u015b morderc\u0105, nerdem, bohaterem czy mo\u017ce g\u0142upi\u0105 blondynk\u0105?","type":"person","questions":[{"text":"Co chcia\u0142by\u015b robi\u0107 w filmie kiedy niespodziewanie mia\u0142by przeszkodzi\u0107 Ci morderca?","type":"text","id":"956","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_3cb6c5a92277.jpg","result_text":"","result_image":"","answers":[{"id":"4511","text":"Gra\u0107 na PlayStation","correct":"0","result":"773,773,777","image":""},{"id":"4512","text":"Wybiera\u0107 idealny str\u00f3j","correct":"0","result":"774,775,775","image":""},{"id":"4513","text":"Czyta\u0107 ksi\u0105\u017ck\u0119","correct":"0","result":"773,777,777","image":""},{"id":"4514","text":"Bawi\u0107 si\u0119 kolekcj\u0105 no\u017cy","correct":"0","result":"772,772,777","image":""},{"id":"4515","text":"\u0106wiczy\u0107","correct":"0","result":"776,776","image":""},{"id":"4516","text":"Uprawia\u0107 seks","correct":"0","result":"774,774,775","image":""},{"id":"4517","text":"Szuka\u0107 mordercy","correct":"0","result":"772,776,776,778,778","image":""}]},{"text":"Co robisz gdy zobaczysz paj\u0105ka?","type":"text","id":"957","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_3f288efbb576.jpg","result_text":"","result_image":"","answers":[{"id":"4518","text":"Podpalam go","correct":"0","result":"776,776","image":""},{"id":"4519","text":"Wo\u0142am kogo\u015b, aby go zabi\u0142","correct":"0","result":"774,774,775","image":""},{"id":"4520","text":"Staj\u0119 na nim butem","correct":"0","result":"772,772,777,777","image":""},{"id":"4521","text":"Krzycz\u0119 i uciekam","correct":"0","result":"774,775,775","image":""},{"id":"4522","text":"Ignoruj\u0119 go, nikomu nie zrobi krzywdy","correct":"0","result":"776,776,777,778,778","image":""},{"id":"4523","text":"Staram si\u0119 okre\u015bli\u0107 jaki to paj\u0105k, a potem decyduj\u0119 czy go zabi\u0107 czy pu\u015bci\u0107 wolno","correct":"0","result":"773,773,776","image":""}]},{"text":"Jaki jest Tw\u00f3j ulubiony kolor?","type":"text","id":"958","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_be996a64a0ef.jpg","result_text":"","result_image":"","answers":[{"id":"4524","text":"Czarny\/Czerwony","correct":"0","result":"774,774,776","image":""},{"id":"4525","text":"Fioletowy\/R\u00f3\u017cowy","correct":"0","result":"774,775,775","image":""},{"id":"4526","text":"Zielony","correct":"0","result":"773,773,777,777,778","image":""},{"id":"4527","text":"Pomara\u0144czowy","correct":"0","result":"773,773","image":""},{"id":"4528","text":"Niebieski","correct":"0","result":"774,776,776,778,778","image":""},{"id":"4529","text":"Nienawidz\u0119 wszystkich kolor\u00f3w","correct":"0","result":"772,772,777","image":""},{"id":"4530","text":"\u017b\u00f3\u0142ty","correct":"0","result":"773,777","image":""}]},{"text":"Wybierz bro\u0144:","type":"text","id":"959","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_b48551bbc00e.jpg","result_text":"","result_image":"","answers":[{"id":"4531","text":"N\u00f3\u017c","correct":"0","result":"772,772,773","image":""},{"id":"4532","text":"Moja druga po\u0142\u00f3wka mnie obroni\u2026 nie potrzebuj\u0119 broni","correct":"0","result":"774,774,775","image":""},{"id":"4533","text":"Pistolet","correct":"0","result":"776,776,777","image":""},{"id":"4534","text":"\u0141uk","correct":"0","result":"773,773,777,778,778","image":""},{"id":"4535","text":"Miecz","correct":"0","result":"772,773,773","image":""},{"id":"4536","text":"Pi\u0119\u015b\u0107","correct":"0","result":"777","image":""}]},{"text":"Co jest Twoj\u0105 najwi\u0119ksz\u0105 zalet\u0105?","type":"text","id":"960","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_2f68134170fc.jpg","result_text":"","result_image":"","answers":[{"id":"4537","text":"Moje cia\u0142o","correct":"0","result":"774,774,775","image":""},{"id":"4538","text":"To, \u017ce jestem nieustraszony","correct":"0","result":"772,776,776","image":""},{"id":"4539","text":"Nie wiem","correct":"0","result":"777,777","image":""},{"id":"4540","text":"Nie mam \u017cadnych","correct":"0","result":"772,777,777","image":""},{"id":"4541","text":"Umiej\u0119tno\u015b\u0107 pomagania innym","correct":"0","result":"778,778","image":""},{"id":"4542","text":"Wszystko ","correct":"0","result":"774,775,775","image":""},{"id":"4543","text":"Moja inteligencja","correct":"0","result":"773,773,776","image":""}]},{"text":"Co jest Twoim najgorszym koszmarem?","type":"text","id":"961","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_e4fb5c8fe012.jpg","result_text":"","result_image":"","answers":[{"id":"4544","text":"Utrata mojej drugiej po\u0142\u00f3wki","correct":"0","result":"774,774,775","image":""},{"id":"4545","text":"Bycie torturowanym","correct":"0","result":"775,775,776,776,777","image":""},{"id":"4546","text":"\u015amier\u0107 kogo\u015b z rodziny","correct":"0","result":"778,778","image":""},{"id":"4547","text":"Niczego si\u0119 nie boj\u0119","correct":"0","result":"772,772,776","image":""},{"id":"4548","text":"Utoni\u0119cie","correct":"0","result":"776,777,777","image":""},{"id":"4549","text":"Spalenie \u017cywcem","correct":"0","result":"772,772,777","image":""},{"id":"4550","text":"Bycie pochowanym \u017cywcem","correct":"0","result":"773,773,777","image":""}]},{"text":"Wybierz zwierz\u0119:","type":"images","id":"962","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_ad4823cfc188.jpg","result_text":"","result_image":"","answers":[{"id":"4551","text":"","correct":"0","result":"776,776,777","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_50aee2bd851f.jpg"},{"id":"4552","text":"","correct":"0","result":"772,772,776,776,777","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_a120e2b51e0d.jpg"},{"id":"4553","text":"","correct":"0","result":"773,773","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_9c881781a0f7.jpg"},{"id":"4554","text":"","correct":"0","result":"774,775,775","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_d2783a6e08b8.jpg"},{"id":"4555","text":"","correct":"0","result":"774,774,775","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_eae3df29319e.jpg"},{"id":"4556","text":"","correct":"0","result":"772,777,777,778,778","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_b28308ccdb77.jpg"},{"id":"4557","text":"","correct":"0","result":"772,772,773,773,776","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_e00be0b3a4ce.jpg"}]},{"text":"Wybierz film:","type":"images","id":"963","image":"","result_text":"","result_image":"","answers":[{"id":"4558","text":"Avengers","correct":"0","result":"778,778","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_f3f4affcd736.jpeg"},{"id":"4559","text":"Legalna Blondynka","correct":"0","result":"774,775,775","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_6f72aafcc24e.jpeg"},{"id":"4560","text":"Z\u0142ap mnie je\u015bli potrafisz","correct":"0","result":"776,776","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_55b3c0cafbe1.jpeg"},{"id":"4561","text":"Gwiezdne wojny","correct":"0","result":"773,773","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_640f0e9970df.jpeg"},{"id":"4562","text":"Magic Mike","correct":"0","result":"774,774,775","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_aa82329dc690.jpeg"},{"id":"4563","text":"Halloween","correct":"0","result":"772,772,777","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_c2ad2bdefa4b.jpeg"},{"id":"4564","text":"Boski chillout","correct":"0","result":"777,777","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_a93040fee826.jpeg"}]},{"text":"Jaka jest Twoja wymarzona praca?","type":"text","id":"964","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_609fac92c61c.jpg","result_text":"","result_image":"","answers":[{"id":"4565","text":"Gwiazda filmowa","correct":"0","result":"774,775,775","image":""},{"id":"4566","text":"Superbohater","correct":"0","result":"778,778","image":""},{"id":"4567","text":"Model\/Modelka","correct":"0","result":"774,774,775","image":""},{"id":"4568","text":"Cokolwiek zwi\u0105zane z komputerami","correct":"0","result":"773,773,776","image":""},{"id":"4569","text":"Psychiatra","correct":"0","result":"773,776,776","image":""},{"id":"4570","text":"Rze\u017anik","correct":"0","result":"772,772,777","image":""},{"id":"4571","text":"Praca jest nie dla mnie.","correct":"0","result":"772,777,777","image":""}]},{"text":"Kim by\u0142by\u015b w czasie apokalipsy zombie?","type":"text","id":"965","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/01\/filing_images_755ae98d3c8d.jpg","result_text":"","result_image":"","answers":[{"id":"4572","text":"Nauczycielem","correct":"0","result":"773,773","image":""},{"id":"4573","text":"Tworzy\u0142bym w\u0142asn\u0105 kolekcj\u0119 ubra\u0144","correct":"0","result":"775,775","image":""},{"id":"4574","text":"Naukowcem","correct":"0","result":"772,772","image":""},{"id":"4575","text":"Apokalipsa zombie nigdy nie nadejdzie","correct":"0","result":"776,776","image":""},{"id":"4576","text":"P\u0142odzi\u0142bym dzieci","correct":"0","result":"774,774","image":""},{"id":"4577","text":"Szefem kuchni","correct":"0","result":"777,777","image":""},{"id":"4578","text":"\u0141owc\u0105","correct":"0","result":"778,778","image":""}]}],"results":[{"title":"Zagra\u0142by\u015b morderc\u0119!","id":"772","description":"
By\u0142by\u015b najgorsz\u0105 postaci\u0105 w ca\u0142ym horrorze! Uwielbiasz widzie\u0107 strach i b\u00f3l innych ludzi. Zawsze starasz si\u0119 przechytrzy\u0107 innych, a dzi\u0119ki temu, \u017ce jeste\u015b lubian\u0105 osob\u0105, nigdy nikt nie dowie si\u0119, \u017ce to Ty jeste\u015b zab\u00f3jc\u0105! P.S. Zab\u00f3jca zawsze na ko\u0144cu filmu umiera!","from":"0","to":"0"},{"title":"Zagra\u0142by\u015b nerda!","id":"773","description":"
\r\nBy\u0142by\u015b albo najbardziej lubian\u0105, albo najbardziej znienawidzon\u0105 postaci\u0105 w filmie, kt\u00f3ra albo umiera za bycie nerdem, albo udaje jej si\u0119 przetrwa\u0107 bo jest na tyle inteligentna \u017ceby ucieka\u0107 w przeciwn\u0105 stron\u0119 od mordercy.","from":"0","to":"0"},{"title":"Zagra\u0142by\u015b ciacho!","id":"774","description":"
\r\n\r\nBy\u0142by\u015b jedn\u0105 z pierwszych os\u00f3b, kt\u00f3re umr\u0105 w filmie! Jeste\u015b niesamowicie atrakcyjny i zawsze pakujesz si\u0119 w k\u0142opoty. Typowo zginiesz podczas uprawiania seksu. Ale sp\u00f3jrz na to z drugiej strony, ludzie uwielbiaj\u0105 widzie\u0107 Ci\u0119 na ekranie i zawsze zak\u0142adaj\u0105 si\u0119 kiedy umrzesz!","from":"0","to":"0"},{"title":"Zagra\u0142by\u015b g\u0142upi\u0105 blondynk\u0119!","id":"775","description":"
\r\nBy\u0142by\u015b prawdopodobnie najbardziej irytuj\u0105c\u0105 postaci\u0105 w filmie. Wydaje si\u0119, \u017ce nie umiesz biec bez przewr\u00f3cenia si\u0119, zawsze upuszczasz klucze kiedy pr\u00f3bujesz dosta\u0107 si\u0119 do auta i pomimo tego, \u017ce zawsze co\u015b schrzanisz to i dotrwasz prawie do ko\u0144ca.","from":"0","to":"0"},{"title":"Zagra\u0142by\u015b niedowiarka!","id":"776","description":"
By\u0142by\u015b tym, kt\u00f3ry musi zobaczy\u0107 potwora, aby w niego uwierzy\u0107. Na wszystko zawsze znajdziesz jakie\u015b logiczne wyt\u0142umaczenie. Kiedy ju\u017c w ko\u0144cu u\u015bwiadomisz sobie, \u017ce potw\u00f3r naprawd\u0119 istnieje, usilnie pr\u00f3bujesz go zabi\u0107. Zazwyczaj umierasz pod koniec filmu, kiedy pomagasz blondynce.","from":"0","to":"0"},{"title":"Zagra\u0142by\u015b zjaranego go\u015bcia!","id":"777","description":"
Jeste\u015b naj\u015bmieszniejsz\u0105 osob\u0105 w ca\u0142ym filmie. Niestety umrzesz, ale dopiero na ko\u0144cu filmu poniewa\u017c ludzie uwielbiaj\u0105 na Ciebie patrze\u0107. Masz \u015bmieszne \u017carty i nie zauwa\u017casz, \u017ce w pokoju obok kto\u015b kogo\u015b zabija. Cudem unikasz \u015bmierci, ale w ko\u0144cu i Ciebie dopadnie.","from":"0","to":"0"},{"title":"Zagra\u0142by\u015b bohatera!","id":"778","description":"
Jeste\u015b tym, kt\u00f3rego wszyscy kochaj\u0105 od samego pocz\u0105tku filmu! Zawsze starasz si\u0119 robi\u0107 wszystko, aby ka\u017cdego uratowa\u0107. Jeste\u015b prawdziwym twardzielem. Nie wyobra\u017casz sobie, \u017ce m\u00f3g\u0142by\u015b nie wr\u00f3ci\u0107 po swoich przyjaci\u00f3\u0142, kt\u00f3rzy zostali porwani i oczywi\u015bcie wtedy zostajesz z\u0142apany przez morderc\u0119. Po d\u0142ugiej i niesamowitej walce zabijasz go, ale okazuje si\u0119, \u017ce Ty r\u00f3wnie\u017c zosta\u0142e\u015b d\u017agni\u0119ty no\u017cem i umierasz!","from":"0","to":"0"}]};jQuery(document).ready(function($){$('#modal-embed textarea').val(' ');$('div#modal-embed').on('show.bs.mlmodal',function(){$('.modal-login-backdrop').addClass('visible');});$('div#modal-embed').on('shown.bs.mlmodal',function(){var client=new ZeroClipboard($("#copy-btn"));client.on("copy",function(event){$('.copied').fadeIn(400,function(){$('.copied').delay(1000).fadeOut(400,function(){});});});$('.modal-login-backdrop').addClass('visible');});var $qu=$('.question-container.empty');var $a=$('.answer-container.empty');var $ai=$('.answer-container-img.empty');var $r=$('.result-container.empty');$.each(quizData.questions,function(i,v){var $tmpq=$qu.clone().removeClass('empty');$tmpq.show();$tmpq.attr('id','question-'+(i+1));if(v.image.length>0)
$tmpq.find('.question-content .image').append('
');$tmpq.find('.question-content .text').append(v.text);var cols=3;switch(v.answers.length){case 2:$tmpq.find('.question-answers').addClass('col-2');cols=2;break;default:$tmpq.find('.question-answers').addClass('col-3');cols=3;break;}
if($(window).width()<690)
cols=2;if(v.type=="text"){var long=false;$.each(v.answers,function(i,v){var $tmpa=$a.clone().removeClass('empty').show();$tmpa.attr('id','answer-'+(i+1));$tmpa.data('results',v.result);$tmpa.data('correct',v.correct);$tmpa.find('.text').append(v.text);if(v.text.length>30){long=true;}
$tmpq.find('.question-answers .answers-inner').append($tmpa);if((i+1)%cols==0)
$tmpq.find('.question-answers .answers-inner').append('');});if(long){$tmpq.find('.question-answers').addClass('long-answers');}}else{$.each(v.answers,function(i,v){var $tmpa=$ai.clone().removeClass('empty').show();$tmpa.attr('id','answer-'+(i+1));$tmpa.data('results',v.result);$tmpa.data('correct',v.correct);$tmpa.find('.image img').attr('src',v.image);$tmpa.find('.text').append(v.text);if(v.text.lenght==0){$tmpa.find('.text').remove();}
$tmpq.find('.question-answers .answers-inner').append($tmpa);if((i+1)%cols==0)
$tmpq.find('.question-answers .answers-inner').append('');});}
$('.question_boxes_inner').append(''+(i+1)+'');$('#quiz .questions-container').append($tmpq);if(i==Math.floor(quizData.questions.length*0.33)&&quizData.questions.length>3){$('#quiz .questions-container').append('');var a=document.getElementById('ad1');postscribe('#ad1',ad_code);}
if(i==Math.floor(quizData.questions.length*0.66)&&quizData.questions.length>6){$('#quiz .questions-container').append('');var b=document.getElementById('ad2');postscribe('#ad2',ad_code2);}
if(i==quizData.questions.length-1){$('#quiz .questions-container').append('');var c=document.getElementById('ad3');postscribe('#ad3',ad_code3);}});$('.question_box:first-child').addClass('question_box_done');$('#quiz').on('click','.quiz-nav',function(e){e.preventDefault();if($('.question:visible').prev('.question').length>0){$('.question:visible').hide().prev('.question').show();$('.question_box_done:last-child').removeClass('question_box_done');}
return false;});$('.answer:not(.disabled)').click(function(){if($(this).hasClass('disabled'))
return false;var result;$(this).parent().find('.answer').removeClass('checked');$(this).addClass('active checked');if(quizData.type=="trivia"){$(this).parent().find('.answer').addClass('disabled');if($(this).data('correct')=="1"){$(this).addClass('correct');}else{$(this).addClass('wrong');$(this).parent().find('.answer').each(function(){if($(this).data('correct')=="1")
$(this).addClass('correct');});}}
$('.question_box_done:last').next('.question_box').addClass('question_box_done');if($('#quiz .question:not(.empty)').length==$('#quiz .checked').length){if(quizData.type=="person"){var r={};for(res in quizData.results){r[quizData.results[res].id]=0;}
$('.answer.checked').each(function(){var rr=$(this).data('results');rr=rr.split(',');for(var tmp in rr){r[rr[tmp]]++;}});var b=0;for(var k in r){if(r[k]>b){b=r[k];result=k;}}
var final=getObjects(quizData.results,'id',result);$('.result-container .result-content').html(final[0].description);$('.result-container .result-title h2').html(final[0].title);$('.result-container').show();}else{var s=0;var final;$('.answer.checked').each(function(){if($(this).data('correct')=="1"){s++;}});$.each(quizData.results,function(i,v){if(parseInt(v.from)<=s&&parseInt(v.to)>=s){final=v;return false;}});$('.result-container .result-content').html(final.description);$('.result-container .result-title h2').html(final.title+' '+s+'/'+$('#quiz .question:not(.empty)').length);$('.result-container').show();}
$('html, body').animate({scrollTop:$('#result').offset().top-100},1000);$('.answer:not(.disabled)').off('click');}});function getObjects(obj,key,val){var objects=[];for(var i in obj){if(!obj.hasOwnProperty(i))continue;if(typeof obj[i]=='object'){objects=objects.concat(getObjects(obj[i],key,val));}else if(i==key&&obj[key]==val){objects.push(obj);}}
return objects;}
$(document).on('click','.quizshare',function(){var title=document.getElementsByTagName("title")[0].innerHTML;var desc=$(this).parents('.result-container').find('h2').text();var img=$(this).parents('.result-container').find('img').attr('src');var sTop=window.screen.height/2-(218);var sLeft=window.screen.width/2-(313);if(img!=undefined)
window.open('https://www.facebook.com/v2.2/dialog/feed?display=popup&app_id=179290305579706&link='+jQuery('link[rel=canonical]').attr('href')+'&picture='+img+'&redirect_uri=http://filing.pl/share.html'+'&name='+encodeURIComponent(title)+'&description='+encodeURIComponent(desc)+'&sdk=joey&version=v2.2','_blank','toolbar=0,status=0,width=580,height=400,top='+sTop+',left='+sLeft);else
window.open('https://www.facebook.com/v2.2/dialog/feed?display=popup&app_id=179290305579706&link='+jQuery('link[rel=canonical]').attr('href')+'&picture='+jQuery('meta[property="og:image"]').attr('content')+'&redirect_uri=http://filing.pl/share.html'+'&name='+encodeURIComponent(title)+'&description='+encodeURIComponent(desc)+'&sdk=joey&version=v2.2','_blank','toolbar=0,status=0,width=580,height=400,top='+sTop+',left='+sLeft);return false;});});-->
Reklama
Skomentuj
PRZEWIŃ W DÓŁ, ABY PRZECZYTAĆ NASTĘPNY ARTYKUŁ
'+(i+1)+'
');$('#quiz .questions-container').append($tmpq);if(i==Math.floor(quizData.questions.length*0.33)&&quizData.questions.length>3){$('#quiz .questions-container').append('');var a=document.getElementById('ad1');postscribe('#ad1',ad_code);}
if(i==Math.floor(quizData.questions.length*0.66)&&quizData.questions.length>6){$('#quiz .questions-container').append('');var b=document.getElementById('ad2');postscribe('#ad2',ad_code2);}
if(i==quizData.questions.length-1){$('#quiz .questions-container').append('');var c=document.getElementById('ad3');postscribe('#ad3',ad_code3);}});$('.question_box:first-child').addClass('question_box_done');$('#quiz').on('click','.quiz-nav',function(e){e.preventDefault();if($('.question:visible').prev('.question').length>0){$('.question:visible').hide().prev('.question').show();$('.question_box_done:last-child').removeClass('question_box_done');}
return false;});$('.answer:not(.disabled)').click(function(){if($(this).hasClass('disabled'))
return false;var result;$(this).parent().find('.answer').removeClass('checked');$(this).addClass('active checked');if(quizData.type=="trivia"){$(this).parent().find('.answer').addClass('disabled');if($(this).data('correct')=="1"){$(this).addClass('correct');}else{$(this).addClass('wrong');$(this).parent().find('.answer').each(function(){if($(this).data('correct')=="1")
$(this).addClass('correct');});}}
$('.question_box_done:last').next('.question_box').addClass('question_box_done');if($('#quiz .question:not(.empty)').length==$('#quiz .checked').length){if(quizData.type=="person"){var r={};for(res in quizData.results){r[quizData.results[res].id]=0;}
$('.answer.checked').each(function(){var rr=$(this).data('results');rr=rr.split(',');for(var tmp in rr){r[rr[tmp]]++;}});var b=0;for(var k in r){if(r[k]>b){b=r[k];result=k;}}
var final=getObjects(quizData.results,'id',result);$('.result-container .result-content').html(final[0].description);$('.result-container .result-title h2').html(final[0].title);$('.result-container').show();}else{var s=0;var final;$('.answer.checked').each(function(){if($(this).data('correct')=="1"){s++;}});$.each(quizData.results,function(i,v){if(parseInt(v.from)<=s&&parseInt(v.to)>=s){final=v;return false;}});$('.result-container .result-content').html(final.description);$('.result-container .result-title h2').html(final.title+' '+s+'/'+$('#quiz .question:not(.empty)').length);$('.result-container').show();}
$('html, body').animate({scrollTop:$('#result').offset().top-100},1000);$('.answer:not(.disabled)').off('click');}});function getObjects(obj,key,val){var objects=[];for(var i in obj){if(!obj.hasOwnProperty(i))continue;if(typeof obj[i]=='object'){objects=objects.concat(getObjects(obj[i],key,val));}else if(i==key&&obj[key]==val){objects.push(obj);}}
return objects;}
$(document).on('click','.quizshare',function(){var title=document.getElementsByTagName("title")[0].innerHTML;var desc=$(this).parents('.result-container').find('h2').text();var img=$(this).parents('.result-container').find('img').attr('src');var sTop=window.screen.height/2-(218);var sLeft=window.screen.width/2-(313);if(img!=undefined)
window.open('https://www.facebook.com/v2.2/dialog/feed?display=popup&app_id=179290305579706&link='+jQuery('link[rel=canonical]').attr('href')+'&picture='+img+'&redirect_uri=http://filing.pl/share.html'+'&name='+encodeURIComponent(title)+'&description='+encodeURIComponent(desc)+'&sdk=joey&version=v2.2','_blank','toolbar=0,status=0,width=580,height=400,top='+sTop+',left='+sLeft);else
window.open('https://www.facebook.com/v2.2/dialog/feed?display=popup&app_id=179290305579706&link='+jQuery('link[rel=canonical]').attr('href')+'&picture='+jQuery('meta[property="og:image"]').attr('content')+'&redirect_uri=http://filing.pl/share.html'+'&name='+encodeURIComponent(title)+'&description='+encodeURIComponent(desc)+'&sdk=joey&version=v2.2','_blank','toolbar=0,status=0,width=580,height=400,top='+sTop+',left='+sLeft);return false;});});-->
Reklama
Skomentuj
PRZEWIŃ W DÓŁ, ABY PRZECZYTAĆ NASTĘPNY ARTYKUŁ
