This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_1.json
3 lines (3 loc) · 23.9 KB
/
project_1.json
1
2
3
{"deck_id":1482,"deck_name":"Draft_6-offline","deck_type":"NewsFiendQuiz_Draft6_Offline","version":1,"fields":{"bootstrap-css":"3506a3e824a3dbab8b95d1d4aacbdd12.css","main-css":"60b5dbdc06f4f100b16db9362b46b693.css","jquery-js":"f597f3bb4505ce12dc838ea444491a79.js","jquery-ui-js":"87e96b52be6ec522e6f2f1636e3c406b.js","touch-punch-js":"1e41c57f9aa0f16bc665e45b4c955080.js","modernizr-js":"aa5c5d5ce00c02d23f49724f2e6b2c76.js","model-js":"cf0a29588afbf05c4d3f27967afed59d.js","view-js":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/c9b786ce7cd9085e33bad9cf5f6901af.js","controller-js":"915b51e3de79867f6db60aac8f917419.js","news-fiend-css":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/5ffff881bcfd948de22340f79bf70238.css","description":"","quiz-image":"","fastclick-js":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/7aa88ed7906a27050833b9afeadd4518.js","handlebars-js":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/bd82c68fd74b73377cb667b3aa8cc2bd.js","whitney-book":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/30c61091230eb1156f7dfd379d46d3f3.ttf","whitney-italic":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/e4ed252b6ed8de22419adae5217a68b5.ttf","whitney-bold":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/f2189b6561447895a8146184767ec126.ttf","whitney-semi-bold":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/2c0fecb9f850537b75a91bc6391305f9.ttf","cronicle-display-roman":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/016ec8bb9f219d0d4c04de4b9163fb2f.ttf"},"body":{"data":[{"type":"style1","data":{"introduction":"Ad prices for the Superbowl have increased 75% in the past decade.","question-body":"What is the maximum cost of a 30-second spot in the big game this year?","question-background":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/588c0b56de2e798db0f0fd641fd97e27.png","answer-seconds":"20","item":[{"text":"$3.5 million","right":"1"},{"text":"$5 million","right":"0"},{"text":"$7 million","right":"0"},{"text":"$10 million","right":"0"}]}},{"type":"style2","data":{"introduction":"Which politician, in the midst of recent challenges, said the following:","question-body":"\"No one's saying 'mission accomplished' here\"","answer-seconds":"20","item":[{"text":"Rick Snyder","details":"Michigan Governor","image":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/79664b736e680ac058fea1b97e75fa60.jpg","right":"1"},{"text":"Bill de Blasio","details":"New York Mayor","image":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/6e66fb58e83e9af5c4b9f3e19e7c0c63.jpg","right":"0"},{"text":"John Kerry","details":"Secretary of State","image":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/7e2b84d8677c086db8af2b5bb0682b8f.jpg","right":"0"},{"text":"Chris Christie","details":"Presidential Candidate","image":"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/84ac3520435b957b6db91de4c3e39ede.jpg","right":"0"}]}}]},
"html":"<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <meta charset=\"utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no\">\r\n\r\n <title>Draft_6-offline<\/title>\r\n <meta name=\"author\" content=\"\">\r\n <meta name=\"description\" content=\"\">\r\n <link rel=\"shortcut icon\" href=\"\">\r\n \r\n <meta name=\"og:url\" content=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/projects\/ab541d874c7bc19ab77642849e02b89f.html\">\r\n <meta name=\"og:site_name\" content=\"\">\r\n <meta name=\"og:title\" content=\"Draft_6-offline\">\r\n <meta name=\"og:description\" content=\"\">\r\n <meta name=\"og:image\" content=\"\">\r\n \r\n <style data-font-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/30c61091230eb1156f7dfd379d46d3f3.ttf\" data-font-family=\"WhitneyBook\"><\/style>\r\n <style data-font-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/e4ed252b6ed8de22419adae5217a68b5.ttf\" data-font-family=\"WhitneyItalic\"><\/style>\r\n <style data-font-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/f2189b6561447895a8146184767ec126.ttf\" data-font-family=\"WhitneyBold\"><\/style>\r\n <style data-font-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/2c0fecb9f850537b75a91bc6391305f9.ttf\" data-font-family=\"WhitneySemiBold\"><\/style>\r\n <style data-font-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/016ec8bb9f219d0d4c04de4b9163fb2f.ttf\" data-font-family=\"CronicleDisplayRoman\"><\/style>\r\n \r\n <link rel=\"stylesheet\" data-href=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/3506a3e824a3dbab8b95d1d4aacbdd12.css\">\r\n <link rel=\"stylesheet\" data-href=\"http:\/\/maxcdn.bootstrapcdn.com\/font-awesome\/4.4.0\/css\/font-awesome.min.css\">\r\n <link rel=\"stylesheet\" data-href=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/60b5dbdc06f4f100b16db9362b46b693.css\">\r\n <link rel=\"stylesheet\" data-href=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/5ffff881bcfd948de22340f79bf70238.css\">\r\n \r\n\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/f597f3bb4505ce12dc838ea444491a79.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/87e96b52be6ec522e6f2f1636e3c406b.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/1e41c57f9aa0f16bc665e45b4c955080.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/bd82c68fd74b73377cb667b3aa8cc2bd.js\"><\/script>\r\n \r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/7aa88ed7906a27050833b9afeadd4518.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/aa5c5d5ce00c02d23f49724f2e6b2c76.js\"><\/script>\r\n\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/cf0a29588afbf05c4d3f27967afed59d.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/c9b786ce7cd9085e33bad9cf5f6901af.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/915b51e3de79867f6db60aac8f917419.js\"><\/script>\r\n\r\n\r\n <!-- Tealium Universal Data Object -->\r\n <script type=\"text\/javascript\">\r\n var utag_data = {\r\n page_name: '1482:Draft_6-offline',\r\n page_section: 'Qwiz Buildr - Score',\r\n page_restrictions: 'restricted'\r\n };\r\n <\/script>\r\n\r\n <!-- Tealium Asychronous Script Call -->\r\n <script type=\"text\/javascript\">\r\n (function(a,b,c,d){\r\n a='\/\/tags.tiqcdn.com\/utag\/newsinternational\/interactive.webviews\/prod\/utag.js';\r\n b=document;c='script';d=b.createElement(c);d.src=a;d.type='text\/java'+c;d.async=true;\r\n a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);\r\n })();\r\n <\/script>\r\n<\/head>\r\n<body>\r\n\r\n <!--[if lt IE 10]>\r\n <p class=\"browsehappy\">You are using an <strong>outdated<\/strong> browser. Please <a href=\"http:\/\/browsehappy.com\/\">upgrade your browser<\/a> to improve your experience.<\/p>\r\n <![endif]-->\r\n \r\n <div class=\"app\">\r\n <div class=\"quiz-container\" data-deck-id=\"1482\">\r\n\t <div class=\"navbar\">NEWS FIEND <i class=\"fa fa-close\" id=\"close-quiz\" onclick=\"\"><\/i><\/div>\r\n <div class=\"style-container\" data-quiz-style=\"section\" data-answer-style=\"show-correct\" data-result-style=\"show-correct\"><\/div>\r\n <div class=\"container-fluid section-last style-1\" data-type=\"multiple-choice\" data-attempts=\"1\" data-card=\"0\">\r\n <div class=\"question-background\" style=\"background-image: url(http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/588c0b56de2e798db0f0fd641fd97e27.png)\"><\/div>\r\n <div class=\"question-background-gradient\"><\/div>\r\n <h1 class=\"question-introduction\">Ad prices for the Superbowl have increased 75% in the past decade.<\/h1>\r\n\t<h2 class=\"question-body\">What is the maximum cost of a 30-second spot in the big game this year?<\/h2>\r\n\r\n <div class=\"multiple-choice-container\">\r\n <div class=\"multiple-choice\">\r\n\r\n <div class=\"multiple-choice-item-container one\">\r\n <div class=\"multiple-choice-item\" data-points=\"1\" data-point-system=\"time\" data-item=\"0\">\r\n <div class=\"feedback-overlay\"><\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n $3.5 million\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"multiple-choice-item-container one\">\r\n <div class=\"multiple-choice-item\" data-points=\"0\" data-point-system=\"time\" data-item=\"1\">\r\n <div class=\"feedback-overlay\"><\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n $5 million\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"multiple-choice-item-container one\">\r\n <div class=\"multiple-choice-item\" data-points=\"0\" data-point-system=\"time\" data-item=\"2\">\r\n <div class=\"feedback-overlay\"><\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n $7 million\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"multiple-choice-item-container one\">\r\n <div class=\"multiple-choice-item\" data-points=\"0\" data-point-system=\"time\" data-item=\"3\">\r\n <div class=\"feedback-overlay\"><\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n $10 million\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"loading-indicator\" data-time=\"20\">\r\n \t<div class=\"progress-indicator\"><\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"container-fluid section-last style-2\" data-type=\"multiple-choice\" data-attempts=\"1\" data-card=\"1\">\r\n\t<div class=\"question-background-gradient\"><\/div>\r\n <h1 class=\"question-introduction\">Which politician, in the midst of recent challenges, said the following:<\/h1>\r\n\t<h2 class=\"question-body\">\"No one's saying 'mission accomplished' here\"<\/h2>\r\n\r\n <div class=\"multiple-choice-container\">\r\n <div class=\"multiple-choice\">\r\n\r\n <div class=\"multiple-choice-item-container two has-image\">\r\n <div class=\"multiple-choice-item\" data-points=\"1\" data-point-system=\"time\" data-item=\"0\">\r\n <div class=\"feedback-overlay\">\r\n <div class=\"overlay-icon\"><\/div>\r\n <\/div>\r\n <!-- image answer -->\r\n <div class=\"bg-image-container two\">\r\n <div class=\"bg-image\" style=\"background-image: url(http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/79664b736e680ac058fea1b97e75fa60.jpg);\">\r\n <\/div>\r\n <\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n Rick Snyder\r\n <\/div>\r\n <div class=\"details\">\r\n Michigan Governor\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"multiple-choice-item-container two has-image\">\r\n <div class=\"multiple-choice-item\" data-points=\"0\" data-point-system=\"time\" data-item=\"1\">\r\n <div class=\"feedback-overlay\">\r\n <div class=\"overlay-icon\"><\/div>\r\n <\/div>\r\n <!-- image answer -->\r\n <div class=\"bg-image-container two\">\r\n <div class=\"bg-image\" style=\"background-image: url(http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/6e66fb58e83e9af5c4b9f3e19e7c0c63.jpg);\">\r\n <\/div>\r\n <\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n Bill de Blasio\r\n <\/div>\r\n <div class=\"details\">\r\n New York Mayor\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"multiple-choice-item-container two has-image\">\r\n <div class=\"multiple-choice-item\" data-points=\"0\" data-point-system=\"time\" data-item=\"2\">\r\n <div class=\"feedback-overlay\">\r\n <div class=\"overlay-icon\"><\/div>\r\n <\/div>\r\n <!-- image answer -->\r\n <div class=\"bg-image-container two\">\r\n <div class=\"bg-image\" style=\"background-image: url(http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/7e2b84d8677c086db8af2b5bb0682b8f.jpg);\">\r\n <\/div>\r\n <\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n John Kerry\r\n <\/div>\r\n <div class=\"details\">\r\n Secretary of State\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"multiple-choice-item-container two has-image\">\r\n <div class=\"multiple-choice-item\" data-points=\"0\" data-point-system=\"time\" data-item=\"3\">\r\n <div class=\"feedback-overlay\">\r\n <div class=\"overlay-icon\"><\/div>\r\n <\/div>\r\n <!-- image answer -->\r\n <div class=\"bg-image-container two\">\r\n <div class=\"bg-image\" style=\"background-image: url(http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/84ac3520435b957b6db91de4c3e39ede.jpg);\">\r\n <\/div>\r\n <\/div>\r\n <!-- text answer -->\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n Chris Christie\r\n <\/div>\r\n <div class=\"details\">\r\n Presidential Candidate\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"loading-indicator\" data-time=\"20\">\r\n <div class=\"progress-indicator\"><\/div>\r\n <\/div> \r\n <\/div>\r\n <div class=\"container-fluid\" data-type=\"result-share\">\r\n <div class=\"result-share-container\">\r\n <div class=\"result-share\">\r\n\r\n <div class=\"result-share-row\">\r\n <div class=\"message-container\">\r\n <div class=\"message\">\r\n <p>Share<\/p>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n\r\n <div class=\"result-share-row\">\r\n <div class=\"share-button-container\" data-share=\"twitter\">\r\n <div class=\"share-button\">\r\n <p><i class=\"fa fa-twitter-square\"><\/i>\u00a0\u00a0Twitter<\/p>\r\n <\/div>\r\n <\/div><!-- comment hack to remove space from inline-block elements\r\n --><div class=\"share-button-container\" data-share=\"facebook\">\r\n <div class=\"share-button\">\r\n <p><i class=\"fa fa-facebook-square\"><\/i>\u00a0\u00a0Facebook<\/p>\r\n <\/div>\r\n <\/div><!-- comment hack to remove space from inline-block elements\r\n --><div class=\"share-button-container\" data-share=\"google\">\r\n <div class=\"share-button\">\r\n <p><i class=\"fa fa-google-plus-square\"><\/i>\u00a0\u00a0Google+<\/p>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n \r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n\r\n <div class=\"container-fluid\" data-type=\"result-submissions\">\r\n <div class=\"result-submissions-container\">\r\n <div class=\"result-submissions\">\r\n\r\n <div class=\"message-container\">\r\n <div class=\"message\">\r\n <p>Results<\/p>\r\n <\/div>\r\n <\/div>\r\n\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n <p>How do you compare to other readers?<\/p>\r\n <\/div>\r\n <\/div>\r\n\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n\r\n <div class=\"container-fluid section-last\" data-type=\"navigation-footer\">\r\n <div class=\"navigation-footer-container\">\r\n <div class=\"navigation-footer\">\r\n\r\n <div class=\"navigation-footer-row\">\r\n <div class=\"navigation-button-container\" data-nav=\"result\">\r\n <div class=\"navigation-button\">\r\n <p><\/p>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n\r\n <div class=\"navigation-footer-row\">\r\n <div class=\"message-container\">\r\n <div class=\"message\">\r\n <p>Use the <b>Back<\/b> button below to revisit the quiz questions<\/p>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n\r\n <div class=\"navigation-footer-row\">\r\n <div class=\"count-container\">\r\n <span class=\"current-question-number\"><\/span>\/<span class=\"overall-question-count\"><\/span>\r\n <\/div>\r\n <div class=\"navigation-button-container\" data-nav=\"next\">\r\n <div class=\"navigation-button\">\r\n <p>Next\u00a0\u00a0<i class=\"fa fa-arrow-right\"><\/i><\/p>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n \r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n\r\n <\/div>\r\n <\/div>\r\n\r\n <script id=\"drop-zone-template\" class=\"handlebars-template\" type=\"text\/x-handlebars-template\">\r\n <div class=\"help-text-container\">\r\n <div class=\"help-text\">drag and drop here<\/div>\r\n <\/div>\r\n <\/script>\r\n\r\n <script id=\"submit-result-template\" class=\"handlebars-template\" type=\"text\/x-handlebars-template\">\r\n <div class=\"multiple-choice-item\">\r\n <div class=\"text-container\">\r\n <div class=\"text\">\r\n <p>Scored [[ score ]]:\u00a0\u00a0<span>[[ percent ]]%<\/span><\/p>\r\n <\/div>\r\n <\/div>\r\n <div class=\"percent\" style=\"width: [[ percent ]]%;\"><\/div>\r\n <\/div>\r\n <\/script>\r\n <script>\r\n (function () {\r\n var projectIsPreviewString = '';\r\n \/* var projectIsPreviewString = '1'; *\/\r\n var projectIsPreview = projectIsPreviewString === '1' ? true : false;\r\n var scripts = document.head.getElementsByTagName('script'), scriptsToAppend = [];\r\n var scriptsLen = scripts.length;\r\n var externalScriptsSrc = [];\r\n var styleSheets = document.head.getElementsByTagName('link');\r\n var fontStyles = document.head.getElementsByTagName('style');\r\n function scriptLoad (scripts, num) {\r\n if (num < scripts.length) {\r\n document.getElementsByTagName('head')[0].appendChild(scriptsToAppend[num]);\r\n scriptsToAppend[num].onload = function () {\r\n scriptLoad(scripts, ++num);\r\n };\r\n scriptsToAppend[num].onerror = function () {\r\n scriptLoad(scripts, ++num);\r\n };\r\n scriptsToAppend[num].setAttribute('src', externalScriptsSrc[num]);\r\n } else {\r\n var event = new Event('scriptsLoaded');\r\n document.dispatchEvent(event);\r\n }\r\n }\r\n for(var i = 0; i < styleSheets.length; i++) {\r\n if (styleSheets[i].getAttribute('data-href')) {\r\n if (projectIsPreview) {\r\n styleSheets[i].setAttribute('href', styleSheets[i].getAttribute('data-href'));\r\n } else {\r\n styleSheets[i].setAttribute('href', styleSheets[i].getAttribute('data-href').replace(\/^(http)(.*)(uploads\\\/)\/gi, ''));\r\n }\r\n }\r\n }\r\n\r\n for (var i = 0; i < fontStyles.length; i++) {\r\n if (fontStyles[i].getAttribute('data-font-src')) {\r\n if (projectIsPreview) {\r\n fontStyles[i].innerHTML = '@font-face {font-family: \"' + fontStyles[i].getAttribute('data-font-family') + '\"; src: url(\"' + fontStyles[i].getAttribute('data-font-src') + '\") format(\"truetype\");}';\r\n } else {\r\n fontStyles[i].innerHTML = '@font-face {font-family: \"' + fontStyles[i].getAttribute('data-font-family') + '\"; src: url(\"' + fontStyles[i].getAttribute('data-font-src').replace(\/^(http)(.*)(uploads\\\/)\/gi, '') + '\") format(\"truetype\");}';\r\n }\r\n }\r\n }\r\n\r\n for (var i = 0; i < scriptsLen; i++) {\r\n if (scripts[i].getAttribute('data-src')) {\r\n if (projectIsPreview) {\r\n externalScriptsSrc.push(scripts[i].getAttribute('data-src'));\r\n } else {\r\n externalScriptsSrc.push(scripts[i].getAttribute('data-src').replace(\/^(http)(.*)(uploads\\\/)\/gi, ''));\r\n }\r\n scriptsToAppend.push(document.createElement('script'));\r\n }\r\n }\r\n scriptLoad(externalScriptsSrc, 0);\r\n })();\r\n <\/script>\r\n <script>\r\n document.addEventListener('scriptsLoaded', function () {\r\n \/* fast click init *\/\r\n FastClick.attach(document.body);\r\n\r\n \/* init mvc classes *\/\r\n var model = new QwizBuildrModel();\r\n var view = new QwizBuildrView(model);\r\n var controller = new QwizBuildrController(model, view);\r\n \/* init *\/\r\n controller.init();\r\n\r\n var $body = $('body');\r\n (function () {\r\n $(\"#close-quiz\").on(\"click\", function () {\r\n if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers && window.webkit.messageHandlers.GK) {\r\n window.webkit.messageHandlers.GK.postMessage({close: \"quiz\"});\r\n }\r\n });\r\n var orientations = {\r\n '90': 'landscape',\r\n '-90': 'landscape',\r\n '0': 'portrait',\r\n '180': 'portrait'\r\n };\r\n\r\n var size = 1;\r\n if (screen.height > 480) {\r\n size = 2;\r\n }\r\n if (screen.height > 568) {\r\n size = 3;\r\n }\r\n if (screen.height > 667) {\r\n size = 4;\r\n }\r\n if (screen.height > 736) {\r\n size = 5;\r\n }\r\n if (screen.height > 1024) {\r\n size = 6;\r\n }\r\n $body.addClass('size-' + size).addClass(typeof orientation !== \"undefined\" ? orientations[orientation] : 'landscape');\r\n\r\n $(window).on('orientationchange', function () {\r\n $body.removeClass('landscape portrait').addClass(typeof orientation !== \"undefined\" ? orientations[orientation] : 'landscape');\r\n });\r\n })();\r\n });\r\n <\/script> \r\n<\/body>\r\n<\/html>\r\n"
}