{"id":5217,"date":"2020-06-10T06:43:55","date_gmt":"2020-06-10T06:43:55","guid":{"rendered":"http:\/\/www.appsgeyser.com\/blog\/?p=5217"},"modified":"2021-06-01T09:49:14","modified_gmt":"2021-06-01T09:49:14","slug":"customized-code-quiz-template-customization-add-theme","status":"publish","type":"post","link":"https:\/\/appsgeyser.com\/blog\/customized-code-quiz-template-customization-add-theme\/","title":{"rendered":"Customized Code &#8211; Quiz Template Customization: Add Your Own Theme"},"content":{"rendered":"\n<p>Today&#8217;s code is something a little different. It is focusing upon the quiz template only. If you are looking at adding some color to personalize your app to suit your branding, then add this code into your app. In order to add this customized code, go to your AppsGeyser dashboard, click on<strong><em>&nbsp;&#8216;Edit&#8217;<\/em><\/strong> and go to the &#8216;<em><strong>Advanced Edit<\/strong><\/em>&nbsp;&#8216;page. Add the code at the bottom of&nbsp; the \u2018<b><i>Advanced Edit\u2019 <\/i><\/b> tab.<\/p>\n\n\n\n<p>Today&#8217;s code will help you add your branding needs to your quiz.<\/p>\n\n\n\n<p><code style=\"font-size: 12px;\"><br>\nvar colors = [\"BurlyWood\", \"LightGreen\", \"LightPink\"]; \/* <span style=\"color: #ff0000;\">Enter a list of colors<\/span> *\/<br>\nvar themeWrapper=document.createElement(\"div\");<br>\nthemeWrapper.style.position=\"absolute\";<br>\nthemeWrapper.style.width=\"100%\";<br>\nthemeWrapper.style.bottom=\"10px\";<br>\nvar themeBlock=document.createElement(\"div\");<br>\nthemeBlock.setAttribute(\"class\",\"start_button\");<br>\nthemeBlock.style.width=\"25%\";<br>\nvar themeText= document.createTextNode(\"Theme\");<br>\nthemeBlock.appendChild(themeText);<br>\nthemeWrapper.appendChild(themeBlock);<br>\ndocument.getElementById(\"intro_screen\").appendChild(themeWrapper);<br>\nvar state =1;<br>\nfunction changeTheme(color){<br>\ndocument.getElementById(\"intro_screen\").style.backgroundImage='none';<br>\ndocument.getElementsByTagName(\"html\")[0].style.backgroundImage='none';<br>\ndocument.getElementById(\"intro_screen\").style.backgroundColor=color;<br>\ndocument.getElementsByTagName(\"html\")[0].style.backgroundColor=color;<br>\n}<br>\nvar i = 0;<br>\nthemeBlock.onclick=function(){<br>\ni = i + 1;<br>\ni = i % colors.length;<br>\nchangeTheme(colors[i]);<br>\n};<br>\n<\/code><br>To upload the code, please click on&#8217;<strong><em>Edit&#8217;<\/em><\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img  src=\"data:image\/gif,GIF89a%01%00%01%00%80%00%00%00%00%00%FF%FF%FF%21%F9%04%01%00%00%00%00%2C%00%00%00%00%01%00%01%00%00%02%01D%00%3B\" data-layzr=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2012\/11\/edit-arrow.jpg\" alt=\"edit free android app\"\/><\/figure><\/div>\n\n\n\n<p>Then click on &#8216;<strong><em>Advanced Edit&#8217;<\/em><\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2013\/06\/edit-tab.jpg\"><img  width=\"300\" height=\"59\" src=\"data:image\/gif,GIF89a%01%00%01%00%80%00%00%00%00%00%FF%FF%FF%21%F9%04%01%00%00%00%00%2C%00%00%00%00%01%00%01%00%00%02%01D%00%3B\" data-layzr=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2013\/06\/edit-tab-300x59.jpg\" alt=\"free android app\" class=\"wp-image-3361\"\/><\/a><figcaption>Choose Edit app to edit your free android app.<\/figcaption><\/figure><\/div>\n\n\n\n<p>Scroll to the bottom and add in your customized code.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2015\/05\/embed-code.jpg\"><img  width=\"300\" height=\"243\" src=\"data:image\/gif,GIF89a%01%00%01%00%80%00%00%00%00%00%FF%FF%FF%21%F9%04%01%00%00%00%00%2C%00%00%00%00%01%00%01%00%00%02%01D%00%3B\" data-layzr=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2015\/05\/embed-code-300x243.jpg\" alt=\"embed code\" class=\"wp-image-5137\"\/><\/a><\/figure><\/div>\n\n\n\n<p>This is what the app will look like before and after:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2015\/06\/before-quiz.png\"><img  width=\"168\" height=\"300\" src=\"data:image\/gif,GIF89a%01%00%01%00%80%00%00%00%00%00%FF%FF%FF%21%F9%04%01%00%00%00%00%2C%00%00%00%00%01%00%01%00%00%02%01D%00%3B\" data-layzr=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2015\/06\/before-quiz-168x300.png\" alt=\"Customized Code\" class=\"wp-image-5218\"\/><\/a><figcaption>Customized Code &#8211; Image before code<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2015\/06\/after-quiz.png\"><img  width=\"168\" height=\"300\" src=\"data:image\/gif,GIF89a%01%00%01%00%80%00%00%00%00%00%FF%FF%FF%21%F9%04%01%00%00%00%00%2C%00%00%00%00%01%00%01%00%00%02%01D%00%3B\" data-layzr=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2015\/06\/after-quiz-168x300.png\" alt=\"Customized Code \" class=\"wp-image-5219\"\/><\/a><figcaption>Customized Code &#8211; Image after code<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-caption-dt\"><a href=\"http:\/\/www.appsgeyser.com\/blog\/wp-content\/uploads\/2015\/06\/after-code.png\">&nbsp;<\/a><\/p>\n\n\n\n<p>We wish you the best of luck with your app, and hope that you enjoy adding in customized code to your app.<\/p>\n\n\n\n<p>Appsgeyser will be adding more codes over the coming few weeks. Don&#8217;t forget to come back and learn some more.<\/p>\n\n\n\n<p>*codes are not available on every template. Please check the advanced edit section to see if the coding area is open. Today&#8217;s code is for the QUIZ template only<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s code is something a little different. It is focusing upon the quiz template only. If you are looking at adding some color to personalize your app to suit your branding, then add this code into your app. In order to add this customized code, go to your AppsGeyser dashboard, click on&nbsp;&#8216;Edit&#8217; and go to the &#8216;Advanced Edit&nbsp;&#8216;page. Add the code at the bottom of&nbsp; the \u2018Advanced Edit\u2019 tab. Today&#8217;s code will help you add your branding needs to your quiz. var colors = ; \/* Enter a list of colors *\/ var themeWrapper=document.createElement(&#8220;div&#8221;); themeWrapper.style.position=&#8221;absolute&#8221;; themeWrapper.style.width=&#8221;100%&#8221;; themeWrapper.style.bottom=&#8221;10px&#8221;; var <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1296,703],"tags":[],"_links":{"self":[{"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/posts\/5217"}],"collection":[{"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/comments?post=5217"}],"version-history":[{"count":7,"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/posts\/5217\/revisions"}],"predecessor-version":[{"id":15156,"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/posts\/5217\/revisions\/15156"}],"wp:attachment":[{"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/media?parent=5217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/categories?post=5217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsgeyser.com\/blog\/wp-json\/wp\/v2\/tags?post=5217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}