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_2.json
80 lines (80 loc) · 26.3 KB
/
project_2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"deck_id": 1516,
"deck_name": "Offline_example",
"deck_type": "NewsFiendQuiz_Draft7",
"version": 1,
"fields": {
"bootstrap-css": "3506a3e824a3dbab8b95d1d4aacbdd12.css",
"main-css": "http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/82c5c9aeab0fba6bbdad41396774173c.css",
"jquery-js": "f597f3bb4505ce12dc838ea444491a79.js",
"jquery-ui-js": "87e96b52be6ec522e6f2f1636e3c406b.js",
"touch-punch-js": "1e41c57f9aa0f16bc665e45b4c955080.js",
"modernizr-js": "aa5c5d5ce00c02d23f49724f2e6b2c76.js",
"model-js": "http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/888b5e8b05f902c910526eff7aee1f29.js",
"view-js": "http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/7db8417ba2b70a4d1ad12ef3b352281a.js",
"controller-js": "http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/5f59c37317bc995fa0e42fb63ff9b35b.js",
"news-fiend-css": "http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/37f9ecdb27e7d0edbe19195560b320f5.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\/c01bcf48f06e89aa79e4a3e01c956b1c.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\/08db7a193d0271492f4eaf9dfd37980f.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\/daeb456a280eb19c366c46b87bf834bf.jpg",
"right": "0"
}, {
"text": "John Kerry",
"details": "Secretary of State",
"image": "http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/b45ff9493f02a7acacc7890e3f067a44.jpg",
"right": "0"
}, {
"text": "Chris Christie",
"details": "Presidential Candidate",
"image": "http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/a0fe6fac13861bb63179b8d68fe31345.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>Offline_example<\/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\/490640b43519c77281cb2f8471e61a71.html\">\r\n <meta name=\"og:site_name\" content=\"\">\r\n <meta name=\"og:title\" content=\"Offline_example\">\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:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/82c5c9aeab0fba6bbdad41396774173c.css\">\r\n <link rel=\"stylesheet\" data-href=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/37f9ecdb27e7d0edbe19195560b320f5.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\/888b5e8b05f902c910526eff7aee1f29.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/7db8417ba2b70a4d1ad12ef3b352281a.js\"><\/script>\r\n <script data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/5f59c37317bc995fa0e42fb63ff9b35b.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: '1516:Offline_example',\r\n page_section: 'Qwiz Buildr - Score',\r\n page_restrictions: 'restricted'\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=\"1516\">\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 offline-image\" data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/c01bcf48f06e89aa79e4a3e01c956b1c.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 offline-image\" data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/08db7a193d0271492f4eaf9dfd37980f.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 offline-image\" data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/daeb456a280eb19c366c46b87bf834bf.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 offline-image\" data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/b45ff9493f02a7acacc7890e3f067a44.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 offline-image\" data-src=\"http:\/\/nuk-tnl-deck-prod-static.s3-eu-west-1.amazonaws.com\/uploads\/a0fe6fac13861bb63179b8d68fe31345.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 var projectIsPreviewString = '';\r\n var projectIsPreview = projectIsPreviewString === '1' ? true : false;\r\n (function () {\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 var imagesOffline = document.getElementsByClassName('offline-image');\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 console.log('script %s loaded', scriptsToAppend[num]);\r\n scriptLoad(scripts, ++num);\r\n };\r\n scriptsToAppend[num].onerror = function () {\r\n console.log('script %s could not be loaded', scriptsToAppend[num]);\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\r\n for (var i = 0; i < imagesOffline.length; i++) {\r\n if (imagesOffline[i].getAttribute('data-src')) {\r\n if (projectIsPreview) {\r\n imagesOffline[i].style.backgroundImage = 'url(' + imagesOffline[i].getAttribute('data-src') + ')';\r\n } else {\r\n imagesOffline[i].style.backgroundImage = 'url(' + imagesOffline[i].getAttribute('data-src').replace(\/^(http)(.*)(uploads\\\/)\/gi, '') + ')';\r\n }\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 console.log('scriptsLoadedEvent');\r\n\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 function calculateSize () {\r\n var size = 1;\r\n if (projectIsPreview) {\r\n \/* this code is to trigger sizes in the preview *\/\r\n size = 3;\r\n if ($body.width() > 746) {\r\n size = 5;\r\n }\r\n return size;\r\n }\r\n\r\n if (window.innerHeight > window.innerWidth) {\r\n if (window.innerHeight > 480) {\r\n size = 2;\r\n }\r\n if (window.innerHeight > 568) {\r\n size = 3;\r\n }\r\n if (window.innerHeight > 667) {\r\n size = 4;\r\n }\r\n if (window.innerHeight > 736) {\r\n size = 5;\r\n }\r\n if (window.innerHeight > 1024) {\r\n size = 6;\r\n }\r\n } else {\r\n if (window.innerWidth > 480) {\r\n size = 2;\r\n }\r\n if (window.innerWidth > 568) {\r\n size = 3;\r\n }\r\n if (window.innerWidth > 667) {\r\n size = 4;\r\n }\r\n if (window.innerWidth > 736) {\r\n size = 5;\r\n }\r\n if (window.innerWidth > 1024) {\r\n size = 6;\r\n }\r\n }\r\n return size;\r\n }\r\n\r\n $body.addClass('size-' + calculateSize()).addClass(typeof orientation !== \"undefined\" ? orientations[orientation] : 'landscape');\r\n\r\n $(window).on('resize', function () {\r\n $body.removeClass('size-1 size-2 size-3 size-4 size-5 size-6').addClass('size-' + calculateSize());\r\n console.log(calculateSize());\r\n });\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"
}