");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":"Jaki powiniene\u015b sobie zrobi\u0107 tatua\u017c?","description":"Zastanawia\u0142a\u015b si\u0119 kiedy\u015b co mog\u0142aby\u015b umie\u015bci\u0107 na sta\u0142e na swoim ciele? Sprawd\u017a co do Ciebie najbardziej pasuje!","type":"person","questions":[{"text":"Kt\u00f3ry obrazek najbardziej do Ciebie przemawia?","type":"images","id":"13503","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_806e82593dee.jpg","result_text":"","result_image":"","answers":[{"id":"54876","text":"","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_b4e5bd0e2b45.jpg"},{"id":"54877","text":"","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_76f799c10ca0.jpg"},{"id":"54878","text":"","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_d8192a48f6e8.jpg"},{"id":"54879","text":"","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_b3cb595055ec.jpg"},{"id":"54880","text":"","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_249e95c49833.jpg"},{"id":"54881","text":"","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_eacf7bc744b7.jpg"},{"id":"54882","text":"","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_2ea4df912798.jpg"}]},{"text":"Utkn\u0105\u0142e\u015b na bezludnej wyspie. Co chcia\u0142by\u015b mie\u0107 przy sobie? (Nie grozi Ci g\u0142\u00f3d, odwodnienie, ani \u017cadne zagra\u017caj\u0105ce \u017cyciu niebezpiecze\u0144stwa)","type":"images","id":"13504","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_99cb763665c7.jpg","result_text":"","result_image":"","answers":[{"id":"54883","text":"Mojego lojalnego psa","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_484f0136cc53.jpg"},{"id":"54884","text":"S\u0142uchawki i iPoda","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_ef47fab442af.jpg"},{"id":"54885","text":"Aparat, aby mie\u0107 wiele zdj\u0119\u0107 z tej niesamowitej przygody!","correct":"0","result":"13657,13657,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_51279668ba1b.jpg"},{"id":"54886","text":"Ksi\u0105\u017cki, aby si\u0119 nie nudzi\u0107","correct":"0","result":"13654,13654,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_bf30323ee311.jpg"},{"id":"54887","text":"Kompas, aby zwiedzi\u0107 wysp\u0119","correct":"0","result":"13657,13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_98475ea07397.jpg"},{"id":"54888","text":"Szkicownik, aby m\u00f3c namalowa\u0107 widoki z wyspy","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_d373ec81dda7.jpg"},{"id":"54889","text":"Alkohol, aby si\u0119 wyluzowa\u0107","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_41128e6116bc.jpg"}]},{"text":"Jak chcia\u0142by\u015b podr\u00f3\u017cowa\u0107?","type":"images","id":"13505","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_ee396532abd5.jpg","result_text":"","result_image":"","answers":[{"id":"54890","text":"Takie co\u015b by\u0142oby super!","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_6090c7fc8285.jpg"},{"id":"54891","text":"Motocyklem","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_890dd2dd6e24.jpg"},{"id":"54892","text":"Niewa\u017cne czym, wa\u017cne gdzie!","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_f4fab49bcdcc.jpg"},{"id":"54893","text":"Chcia\u0142bym lata\u0107!","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_927329cf0bb0.jpg"},{"id":"54894","text":"Pieszo, aby m\u00f3c podziwia\u0107 wszystkie widoki.","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_99472d7e4781.jpg"},{"id":"54895","text":"Konno","correct":"0","result":"13657,13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_bc932feebefe.jpg"},{"id":"54896","text":"PKS-em lub poci\u0105giem, aby s\u0142ucha\u0107 muzyki na s\u0142uchawkach lub porozmawia\u0107 z nowymi lud\u017ami","correct":"0","result":"13656,13656,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_490e17c3def5.jpg"}]},{"text":"Wybierz str\u00f3j:","type":"images","id":"13506","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_89840c4ae795.jpg","result_text":"","result_image":"","answers":[{"id":"54897","text":"","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_76f1ded1d83d.jpg"},{"id":"54898","text":"","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_49395b82e165.jpg"},{"id":"54899","text":"","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_f77fa8cf8b60.jpg"},{"id":"54900","text":"","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_a1f10a09c7b5.jpg"},{"id":"54901","text":"","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_866da7829fb7.jpg"},{"id":"54902","text":"","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_286a8b02c707.jpg"},{"id":"54903","text":"","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_a034690f1119.jpg"}]},{"text":"Kt\u00f3ry z tych zawod\u00f3w, jest Twoim wymarzonym?","type":"images","id":"13507","image":"","result_text":"","result_image":"","answers":[{"id":"54904","text":"Artysta lub fotograf","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_67ca43ba4683.jpg"},{"id":"54905","text":"Pisarz lub autor tekst\u00f3w piosenek","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_1b70ae76b59a.jpg"},{"id":"54906","text":"Przewodnik","correct":"0","result":"13657,13657,13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_0fdfddef5ecc.jpg"},{"id":"54907","text":"Treser zwierz\u0105t","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_b5124769904d.jpg"},{"id":"54908","text":"Re\u017cyser filmowy","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_157b5a0671ef.jpg"},{"id":"54909","text":"Agent specjalny","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_8207419e98d9.jpg"}]},{"text":"Kt\u00f3re zwierz\u0119 lubisz najbardziej?","type":"images","id":"13508","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_cf2fb4f35fb0.jpg","result_text":"","result_image":"","answers":[{"id":"54910","text":"Paw","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_818cf002c2f6.jpg"},{"id":"54911","text":"Motyl","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_dba83d2641b6.jpg"},{"id":"54912","text":"\u0106wierkaj\u0105cy ptak","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_effa98a05435.jpg"},{"id":"54913","text":"Podr\u00f3\u017cuj\u0105cy ptak","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_acab584efa0f.jpg"},{"id":"54914","text":"Rekin","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_f2299ea2d865.jpg"},{"id":"54915","text":"Smok","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_d46987b15601.jpg"},{"id":"54916","text":"Nie mog\u0119 si\u0119 zdecydowa\u0107!","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_ded121a40a43.jpg"}]},{"text":"Kt\u00f3ry wz\u00f3r podoba Ci si\u0119 najbardziej?","type":"images","id":"13509","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_51edb1d11910.jpg","result_text":"","result_image":"","answers":[{"id":"54917","text":"","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_4edcc45f46c0.jpg"},{"id":"54918","text":"","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_0257865bfbd7.jpg"},{"id":"54919","text":"","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_9c8426d244a9.jpg"},{"id":"54920","text":"","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_6cfbb321d3f7.jpg"},{"id":"54921","text":"","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_41ca65351561.jpg"},{"id":"54922","text":"","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_299442480b71.jpg"},{"id":"54923","text":"","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_6fc2b1931f19.jpg"}]},{"text":"Kt\u00f3ry ko\u0144 podoba Ci si\u0119 najbardziej?","type":"images","id":"13510","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_bb0b9345132d.jpg","result_text":"","result_image":"","answers":[{"id":"54924","text":"","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_b137fb9ca142.jpg"},{"id":"54925","text":"","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_50bd9bb22889.jpg"},{"id":"54926","text":"","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_b333f96c3268.jpg"},{"id":"54927","text":"","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_1ff56230eaef.jpg"},{"id":"54928","text":"","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_2ebeb0b3573d.jpg"},{"id":"54929","text":"","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_a8d02fa3a1ae.jpg"},{"id":"54930","text":"","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_1184f971c736.jpg"}]},{"text":"Wybierz modelk\u0119:","type":"images","id":"13511","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_2c642198110a.jpg","result_text":"","result_image":"","answers":[{"id":"54931","text":"","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_57900b4c2961.jpg"},{"id":"54932","text":"","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_5adf18db6ac5.jpg"},{"id":"54933","text":"","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_b60d8e34d4a7.jpg"},{"id":"54934","text":"","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_ac2b49ce6a75.jpg"},{"id":"54935","text":"","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_0e78a6bcc288.jpg"},{"id":"54936","text":"","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_303709101cc0.jpg"},{"id":"54937","text":"","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_c0475c84ec63.jpg"}]},{"text":"Wybierz szpilki, kt\u00f3re Ci si\u0119 podobaj\u0105:","type":"images","id":"13512","image":"","result_text":"","result_image":"","answers":[{"id":"54938","text":"","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_73d3b873d45b.jpg"},{"id":"54939","text":"","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_cffd3287c89c.jpg"},{"id":"54940","text":"","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_c5700112f51c.jpg"},{"id":"54941","text":"","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_0a85025b2bed.jpg"},{"id":"54942","text":"","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_7ecb9a909d96.jpg"},{"id":"54943","text":"","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_d71ba370726e.jpg"},{"id":"54944","text":"","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_88582e6e696d.jpg"}]},{"text":"Wybierz rzecz, kt\u00f3r\u0105 zawsze chcia\u0142aby\u015b mie\u0107 przy sobie:","type":"images","id":"13513","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_51358fbb5379.jpg","result_text":"","result_image":"","answers":[{"id":"54945","text":"","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_67d37b467dd7.jpg"},{"id":"54946","text":"","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_02efaefaad57.jpg"},{"id":"54947","text":"","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_1bfb049e7c0a.jpg"},{"id":"54948","text":"","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_457e3b993e1b.jpg"},{"id":"54949","text":"","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_063527b2085d.jpg"},{"id":"54950","text":"","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_c6adde24e2b2.jpg"},{"id":"54951","text":"","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_9bd83213e14e.jpg"}]},{"text":"I w ko\u0144cu jaki tatua\u017c by\u015b chcia\u0142a?","type":"images","id":"13514","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_e3b22be63879.jpg","result_text":"","result_image":"","answers":[{"id":"54952","text":"Co\u015b abstrakcyjnego i artystycznego","correct":"0","result":"13655,13655","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_6d505c0d41fc.jpg"},{"id":"54953","text":"Zwierz\u0119\/stw\u00f3r","correct":"0","result":"13660,13660","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_0266269efc8a.jpg"},{"id":"54954","text":"Co\u015b super jak np. to:","correct":"0","result":"13658,13658","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_65dd03995bdb.jpg"},{"id":"54955","text":"Co\u015b zwi\u0105zanego z natur\u0105","correct":"0","result":"13657,13657","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_a25c747bfa4c.jpg"},{"id":"54956","text":"Ulubiony cytat lub s\u0142owa piosenki","correct":"0","result":"13656,13656","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_089595072f04.jpg"},{"id":"54957","text":"Co\u015b zwi\u0105zanego z moj\u0105 mi\u0142o\u015bci\u0105 do podr\u00f3\u017cy","correct":"0","result":"13659,13659","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_1782bf383198.jpg"},{"id":"54958","text":"Co\u015b zwi\u0105zanego z ulubionym filmem\/ksi\u0105\u017ck\u0105","correct":"0","result":"13654,13654","image":"http:\/\/filing.pl\/wp-content\/uploads\/2015\/02\/filing_images_d718be0e4c0d.jpg"}]}],"results":[{"title":"Tatua\u017c zwi\u0105zany z czym\u015b, czego jeste\u015b fanem!","id":"13654","description":"Jeste\u015b zapalon\u0105 fank\u0105 i ca\u0142y \u015bwiat powinien o tym wiedzie\u0107! Pomy\u015bl o tym co kochasz najbardziej i znajd\u017a idealny obrazek na tatua\u017c. Niech b\u0119dzie ma\u0142y i subtelny, bo nigdy nie wiesz czy w przysz\u0142o\u015bci nadal b\u0119dziesz fascynowa\u0107 si\u0119 tym samym!","from":"0","to":"0"},{"title":"Tatua\u017c artystyczny!","id":"13655","description":"Jeste\u015b wyj\u0105tkow\u0105 osob\u0105 i sprawiasz, \u017ce ludzie \u0142atwo si\u0119 przed Tob\u0105 otwieraj\u0105. Wyzwalasz pozytywn\u0105 energi\u0119 i uwielbiasz sp\u0119dza\u0107 czas w domu z ksi\u0105\u017ck\u0105 i kubkiem herbaty, obserwuj\u0105c jak pada deszcz.","from":"0","to":"0"},{"title":"Cytat lub s\u0142owa piosenki!","id":"13656","description":"Bywasz bardzo zamy\u015blona i ludzie momentami myl\u0105 Tw\u00f3j spok\u00f3j z nie\u015bmia\u0142o\u015bci\u0105. W rzeczywisto\u015bci doskonale wiesz co to dobra zabawa i b\u0142yszczysz w\u015br\u00f3d tych, przy kt\u00f3rych czujesz si\u0119 swobodnie. Czasem ci\u0119\u017cko jest ci zaufa\u0107 innym, ale uwielbiasz pozna\u0107 nowych ludzi i zawsze jeste\u015b ch\u0119tna na now\u0105 przygod\u0119.","from":"0","to":"0"},{"title":"Tatua\u017c zwi\u0105zany z natur\u0105!","id":"13657","description":"Uwielbiasz przebywa\u0107 na zewn\u0105trz! Czujesz, \u017ce jeste\u015b mocno zwi\u0105zana z natur\u0105 i z nasz\u0105 planet\u0105. Odwiedzanie nowych miejsc niezwykle Ci\u0119 ekscytuje. Uwielbiasz wszystkie imprezy w plenerze i d\u0142ugie spacery.","from":"0","to":"0"},{"title":"Kozacki tatua\u017c!","id":"13658","description":"Jeste\u015b dusz\u0105 towarzystwa! To w\u0142a\u015bnie Ty opowiadasz swoim znajomym najbardziej szalone i przezabawne historie. Twoi przyjaciele s\u0105 dla Ciebie naprawd\u0119 wa\u017cni i wiedz\u0105, \u017ce zrobi\u0142a\u0142by\u015b dla nich wszystko!","from":"0","to":"0"},{"title":"Tatua\u017c zwi\u0105zany z podr\u00f3\u017cowaniem!","id":"13659","description":"Potrafisz doceni\u0107 pi\u0119kno \u015bwiata, dla Ciebie bieganie w deszczu czy chodzenie na boso w nocy po pla\u017cy to prawdziwy raj! Uwielbiasz podr\u00f3\u017cowa\u0107 i odkrywa\u0107 nowe miejsca. Dla Ciebie \u017cycie bez podr\u00f3\u017cowania nie mia\u0142oby kompletnie sensu. Musisz pr\u00f3bowa\u0107 ci\u0105gle nowych rzeczy i poznawa\u0107 nowych ludzi.","from":"0","to":"0"},{"title":"Zwierz\u0119!","id":"13660","description":"Uwielbiasz zwierz\u0119ta, te ma\u0142e i du\u017ce! Ekscytujesz si\u0119 widz\u0105c lataj\u0105ce ptaki nad swoj\u0105 g\u0142ow\u0105 czy szczeniaka poznaj\u0105cego \u015bwiat. Twoja rodzina jest dla Ciebie niezwykle wa\u017cna i zrobisz dla niej wszystko. Pi\u00f3rko lub zwierz\u0119 b\u0119dzie dla Ciebie idealnym wzorem na tatua\u017c!","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Ł