{"id":9858,"date":"2024-01-12T18:09:00","date_gmt":"2024-01-12T18:09:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9858"},"modified":"2024-01-22T16:12:43","modified_gmt":"2024-01-22T11:12:43","slug":"simple-html-color-mixer-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/","title":{"rendered":"Simple HTML Color Mixer in JavaScript"},"content":{"rendered":"<p>This JavaScript code creates an interactive HTML color mixer with red, blue, green, and yellow buttons. It allows users to click a color button to add 10% of its color to the preview. The new color is calculated as 90% old color + 10% button color. Similarly, the preview updates instantly and the corresponding hex code is displayed.<\/p>\n<p>Moreover, the users can easily revert to the default white color using a reset button. Easily experiment with color combinations in this user-friendly interface.<\/p>\n<h2>How to Create a Simple HTML Color Mixer in JavaScript<\/h2>\n<p>1. First of all, copy the following HTML code, and paste it into your HTML file. This code includes a color preview, color buttons, and an informational section:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div id=\"container\"&gt;\r\n\t\t&lt;div id='preview'&gt;&lt;\/div&gt;\r\n\t\t&lt;div id=\"controller\"&gt;\r\n\t\t\t\t&lt;div class=\"red\"&gt;&lt;\/div&gt;\r\n\t\t\t\t&lt;div class=\"blue\"&gt;&lt;\/div&gt;\r\n\t\t\t\t&lt;div class=\"green\"&gt;&lt;\/div&gt;\r\n\t\t\t\t&lt;div class=\"yellow\"&gt;&lt;\/div&gt;\r\n\t\t&lt;\/div&gt;\r\n\t\t&lt;div id=\"infos\"&gt;\r\n\t\t\t\t&lt;input id=\"colorHex\" type=\"text\" value=\"#ffffff\" readonly&gt;\r\n\t\t\t\t&lt;input id=\"resetButton\" type=\"button\" value=\"reset\"&gt;&lt;\/input&gt;\r\n\t\t&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"instruction\"&gt;\r\n\t&lt;h3&gt;Instructions:&lt;\/h3&gt;\r\n\t&lt;p&gt;Click on each color to add 10% more of this color.\r\n\tOn each click, the new color will be: 90% * (oldColor) + 10% * (ButtonColor)&lt;\/p&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>2. Now, copy the CSS code and paste it into your stylesheet. This will style the color mixer interface, making it visually appealing and user-friendly.<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n\ttext-align: center;\r\n}\r\n.instruction {\r\n\tpadding-top: 350px;\r\n}\r\n#container {\r\n\t\tbackground-color: rgba(1, 1, 1, 0.7);\r\n\t\twidth: 300px;\r\n\t\ttext-align: center;\r\n\t\tposition: absolute;\r\n\t\tmargin-top: 20px;\r\n\t\tleft: 50%;\r\n\t\tmargin-left: -150px;\r\n}\r\n\r\n#preview {\r\n\t\theight: 200px;\r\n\t\tmargin: 5px;\r\n\t\tborder: 1px solid black;\r\n\t\tbackground-color: rgb(255, 255, 255);\r\n}\r\n\r\n.red {\r\n\t\twidth: 50px;\r\n\t\theight: 50px;\r\n\t\tbackground-color: rgb(255, 0, 0);\r\n}\r\n\r\n.blue {\r\n\t\twidth: 50px;\r\n\t\theight: 50px;\r\n\t\tbackground-color: rgb(0, 0, 255);\r\n}\r\n\r\n.green {\r\n\t\twidth: 50px;\r\n\t\theight: 50px;\r\n\t\tbackground-color: rgb(0, 255, 0);\r\n}\r\n\r\n.yellow {\r\n\t\twidth: 50px;\r\n\t\theight: 50px;\r\n\t\tbackground-color: rgb(255, 255, 0);\r\n}\r\n\r\n#controller div {\r\n\t\tdisplay: inline-block;\r\n\t\tmargin-top: 5px;\r\n\t\tborder: 1px solid black;\r\n\t\t-moz-user-select: none;\r\n\t\t-khtml-user-select: none;\r\n\t\t-webkit-user-select: none;\r\n\t\t-o-user-select: none;\r\n}\r\n\r\n#controller {\r\n\t\tmargin-top: 10px;\r\n\t\tbackground-color: rgb(255, 255, 255);\r\n\t\tmargin: 5px;\r\n\t\t-moz-user-select: none;\r\n\t\t-khtml-user-select: none;\r\n\t\t-webkit-user-select: none;\r\n\t\t-o-user-select: none;\r\n}\r\n\r\n#infos {\r\n\t\tpadding-bottom: 5px;\r\n}<\/pre>\n<p>3. Finally, copy the JavaScript code and add it to your HTML file, either in the <code>&lt;head&gt;<\/code> or just before the closing <code>&lt;\/body&gt;<\/code> tag. This code handles the color mixing logic and user interactions.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var controller = document.getElementById(\"controller\");\r\nvar buttons = controller.children;\r\nvar preview = document.getElementById(\"preview\");\r\nvar hexInput = document.getElementById(\"colorHex\");\r\nfor (var i = 0; i &lt; buttons.length; i++) {\r\n\t\t(function(i) {\r\n\t\t\t\tbuttons[i].addEventListener('click', function() {\r\n\t\t\t\t\t\tvar buttonColor = getColors(window.getComputedStyle(buttons[i], null).backgroundColor);\r\n\t\t\t\t\t\tvar oldColor = getColors(window.getComputedStyle(preview, null).backgroundColor);\r\n\t\t\t\t\t\tvar newColor = [Math.floor(0.9 * oldColor[0] + 0.1 * buttonColor[0]), Math.floor(0.9 * oldColor[1] + 0.1 * buttonColor[1]), Math.floor(0.9 * oldColor[2] + 0.1 * buttonColor[2])];\r\n\t\t\t\t\t\tpreview.style.backgroundColor = \"rgb(\" + newColor[0] + \",\" + newColor[1] + \",\" + newColor[2] + \")\";\r\n\t\t\t\t\t\tconsole.log(\"rgb(\" + newColor[0] + \",\" + newColor[1] + \",\" + newColor[2] + \")\");\r\n\r\n\t\t\t\t\t\thexInput.value = \"#\" + newColor[0].toString(16) + newColor[1].toString(16) + newColor[2].toString(16);\r\n\t\t\t\t});\r\n\t\t})(i);\r\n}\r\n\r\nvar resetButton = document.getElementById(\"resetButton\");\r\nresetButton.addEventListener('click', function() {\r\n\t\tpreview.style.backgroundColor = \"#ffffff\";\r\n\t\thexInput.value = \"#ffffff\";\r\n});\r\n\r\nvar getColors = function(rgbStr) {\r\n\r\n\t\trgbColors = rgbStr.replace(\/[^\\d,]\/g, '').split(',');\r\n\t\tfor (var i = 0; i &lt; rgbColors.length; i++) {\r\n\t\t\t\trgbColors[i] = parseInt(rgbColors[i]);\r\n\t\t}\r\n\t\treturn rgbColors;\r\n};<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a Simple HTML color Mixer on your web\/app project. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code creates an interactive HTML color mixer with red, blue, green, and yellow buttons. It allows users to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9860,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[234],"class_list":["post-9858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript","tag-color-picker"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Simple HTML Color Mixer in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Simple HTML Color Mixer in JavaScript. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple HTML Color Mixer in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Simple HTML Color Mixer in JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-12T18:09:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:12:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Simple HTML Color Mixer in JavaScript\",\"datePublished\":\"2024-01-12T18:09:00+00:00\",\"dateModified\":\"2024-01-22T11:12:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/\"},\"wordCount\":206,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png\",\"keywords\":[\"Color Picker\"],\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/\",\"name\":\"Simple HTML Color Mixer in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png\",\"datePublished\":\"2024-01-12T18:09:00+00:00\",\"dateModified\":\"2024-01-22T11:12:43+00:00\",\"description\":\"Here is a free code snippet to create a Simple HTML Color Mixer in JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Simple HTML Color Mixer in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vanilla JavaScript\",\"item\":\"https:\/\/codehim.com\/category\/vanilla-javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Simple HTML Color Mixer in JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Simple HTML Color Mixer in JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Simple HTML Color Mixer in JavaScript. You can view demo and download the source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Simple HTML Color Mixer in JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Simple HTML Color Mixer in JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-12T18:09:00+00:00","article_modified_time":"2024-01-22T11:12:43+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Simple HTML Color Mixer in JavaScript","datePublished":"2024-01-12T18:09:00+00:00","dateModified":"2024-01-22T11:12:43+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/"},"wordCount":206,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png","keywords":["Color Picker"],"articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/","url":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/","name":"Simple HTML Color Mixer in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png","datePublished":"2024-01-12T18:09:00+00:00","dateModified":"2024-01-22T11:12:43+00:00","description":"Here is a free code snippet to create a Simple HTML Color Mixer in JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Simple-HTML-Color-Mixer-in-JavaScript.png","width":1280,"height":960,"caption":"Simple HTML Color Mixer in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-html-color-mixer-in-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Vanilla JavaScript","item":"https:\/\/codehim.com\/category\/vanilla-javascript\/"},{"@type":"ListItem","position":3,"name":"Simple HTML Color Mixer in JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":769,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=9858"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9858\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9860"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}