{"id":7625,"date":"2024-01-19T17:01:00","date_gmt":"2024-01-19T17:01:00","guid":{"rendered":"https:\/\/codehim.com\/?p=7625"},"modified":"2024-01-22T15:02:09","modified_gmt":"2024-01-22T10:02:09","slug":"spacebar-hit-counter-javascript-code","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/","title":{"rendered":"Spacebar Hit Counter JavaScript Code"},"content":{"rendered":"<p>This lightweight JavaScript code snippet helps you to create spacebar hit counter. It is based on a simple idea to count the spacebar hits. Simply, it executes the keyup function, match the spacebar keycode, and increase the hit value using increment operator.<\/p>\n<p>Whether you&#8217;re working on a game or web app in which you need to count spacebar hits, this simple code snippet equally helpful.<\/p>\n<h2>How to Create Spacebar Hit Counter in JavaScript<\/h2>\n<p>1. First of all, create a span element with a class name &#8220;hits&#8221; that will holds the number of hits counted by JS function. Similarly, create a button or anchor link with onclick attribute to register a click event for resetHits() function. Also, define a class name &#8220;tryagain&#8221; for the button, it will be used to reset the counting variable. The complete HTML structure for the counter is as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div id=\"activity\"&gt;\r\n  &lt;h1 id=\"counter\"&gt;You have hit the spacebar &lt;span class=\"hits\"&gt;0&lt;\/span&gt; times.&lt;\/h1&gt;\r\n  &lt;a href=\"#\" onclick=\"resetHits()\" class=\"tryagain\"&gt;RESTART&lt;\/a&gt;\r\n\t\t&lt;\/div&gt;<\/pre>\n<p>2. Add the basic CSS style for the hits counter. Basically, these styles are optional, you can go without them.<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n\t\t\tmargin: 0;\r\n\t\t\tfont-family: 'Open Sans', sans-serif;\r\n\t\t\tposition: absolute;\r\n\t\t\twidth: 100vw;\r\n\t\t\theight: 100vh;\r\n\t\t\toverflow: hidden;\r\n\t\t\tdisplay: table;\r\n\t\t}\r\n\r\n\t\t#activity {\r\n\t\t\tdisplay: table-cell;\r\n\t\t\ttext-align: center;\r\n\t\t\tvertical-align: middle;\r\n\t\t}\r\n\r\n\r\n\t\t#result {\r\n\t\t\ttext-transform: uppercase;\r\n\t\t}\r\n\r\n\t\t.tryagain {\r\n\t\tbackground-attachment: scroll;\r\n\t\tbackground-clip: border-box;\r\n\t\tbackground-color: rgb(127, 206, 119);\r\n\t\tbackground-image: none;\r\n\t\tbackground-origin: padding-box;\r\n\t\tbackground-size: auto;\r\n\t\tborder-bottom-left-radius: 16px;\r\n\t\tborder-bottom-right-radius: 16px;\r\n\t\tborder-top-left-radius: 16px;\r\n\t\tborder-top-right-radius: 16px;\r\n\t\tbox-sizing: border-box;\r\n\t\tcolor: rgb(255, 255, 255);\r\n\t\tcursor: pointer;\r\n\t\tdisplay: inline-block;\r\n\t\tfont-family: 'Open Sans', sans-serif;\r\n\t\tfont-size: 32px;\r\n\t\tfont-stretch: normal;\r\n\t\tfont-style: normal;\r\n\t\tfont-variant: normal;\r\n\t\tfont-weight: normal;\r\n\t\theight: 93px;\r\n\t\tline-height: normal;\r\n\t\tmargin-bottom: 8px;\r\n\t\tmargin-left: 9.28px;\r\n\t\tmargin-right: 9.28px;\r\n\t\tmargin-top: 8px;\r\n\t\tmin-height: 0px;\r\n\t\tmin-width: 208px;\r\n\t\toutline-width: 0px;\r\n\t\tpadding-bottom: 24px;\r\n\t\tpadding-left: 24px;\r\n\t\tpadding-right: 24px;\r\n\t\tpadding-top: 24px;\r\n\t\tposition: relative;\r\n\t\ttext-align: center;\r\n\t\ttext-transform: none;\r\n\t\ttransition-delay: 0s;\r\n\t\ttransition-duration: 0.28s;\r\n\t\ttransition-property: box-shadow;\r\n\t\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\r\n\t\twidth: 351.594px;\r\n\t\tz-index: 0;\r\n\t\t-webkit-user-select: none;\r\n\t\t}\r\n\r\n\t\ta:link, a:hover, a:visited, a:active {\r\n\t\t\ttext-decoration: none;\r\n\t\t}\r\n.hits {\r\n  font-size: 2em;\r\n  font-weight: bolder;\r\n}<\/pre>\n<p>3. Finally, create a variable with initial value and get the span element by using <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document\/querySelector\" target=\"_blank\" rel=\"noopener\">JavaScript query selection<\/a>. Use the on keyup function and check if key is a spacebar. The key code for spacebar is 32. So, use if statement to detect if spacebar has been pressed then call the addHit() function.<\/p>\n<p>Define addHit() function and simply use increment operators to increase the hits variable value.<\/p>\n<p>Add the following script between the &lt;script&gt; and &lt;\/script&gt; tag place it before the closing the body tag.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var hits = 0;\r\nvar hitElement = document.querySelector( '.hits' );\r\ndocument.body.onkeyup = function(e) {\r\n  if( e.keyCode == 32 ) {\r\n    addHit();\r\n  }\r\n}\r\n\r\nvar addHit = function() {\r\n  hits++;\r\n  renderHits();\r\n}\r\n\r\nvar renderHits = function() {\r\n  hitElement.innerHTML = hits;\r\n}\r\n\r\nvar resetHits = function() {\r\n  hits = 0;\r\n  renderHits();\r\n}<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created Spacebar Hit Counter Javascript Code. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This lightweight JavaScript code snippet helps you to create spacebar hit counter. It is based on a simple idea to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":7627,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-7625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spacebar Hit Counter JavaScript Code &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight JavaScript code snippet to create a spacebar hit counter. You can view demo and download 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\/spacebar-hit-counter-javascript-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spacebar Hit Counter JavaScript Code &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight JavaScript code snippet to create a spacebar hit counter. You can view demo and download source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/\" \/>\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-19T17:01:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:02:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Spacebar Hit Counter JavaScript Code\",\"datePublished\":\"2024-01-19T17:01:00+00:00\",\"dateModified\":\"2024-01-22T10:02:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/\"},\"wordCount\":279,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/\",\"name\":\"Spacebar Hit Counter JavaScript Code &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png\",\"datePublished\":\"2024-01-19T17:01:00+00:00\",\"dateModified\":\"2024-01-22T10:02:09+00:00\",\"description\":\"Here is a lightweight JavaScript code snippet to create a spacebar hit counter. You can view demo and download source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png\",\"width\":1280,\"height\":960,\"caption\":\"Spacebar Hit Counter JavaScript Code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#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\":\"Spacebar Hit Counter JavaScript Code\"}]},{\"@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":"Spacebar Hit Counter JavaScript Code &#8212; CodeHim","description":"Here is a lightweight JavaScript code snippet to create a spacebar hit counter. You can view demo and download 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\/spacebar-hit-counter-javascript-code\/","og_locale":"en_US","og_type":"article","og_title":"Spacebar Hit Counter JavaScript Code &#8212; CodeHim","og_description":"Here is a lightweight JavaScript code snippet to create a spacebar hit counter. You can view demo and download source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-19T17:01:00+00:00","article_modified_time":"2024-01-22T10:02:09+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Spacebar Hit Counter JavaScript Code","datePublished":"2024-01-19T17:01:00+00:00","dateModified":"2024-01-22T10:02:09+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/"},"wordCount":279,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/","url":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/","name":"Spacebar Hit Counter JavaScript Code &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png","datePublished":"2024-01-19T17:01:00+00:00","dateModified":"2024-01-22T10:02:09+00:00","description":"Here is a lightweight JavaScript code snippet to create a spacebar hit counter. You can view demo and download source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/11\/Spacebar-Hit-Counter-JavaScript-Code.png","width":1280,"height":960,"caption":"Spacebar Hit Counter JavaScript Code"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/spacebar-hit-counter-javascript-code\/#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":"Spacebar Hit Counter JavaScript Code"}]},{"@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":4790,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/7625","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=7625"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/7625\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/7627"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=7625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=7625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=7625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}