{"id":9322,"date":"2024-01-14T18:01:00","date_gmt":"2024-01-14T18:01:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9322"},"modified":"2024-01-22T16:02:19","modified_gmt":"2024-01-22T11:02:19","slug":"javascript-detect-media-query-change","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/","title":{"rendered":"JavaScript Detect Media Query Changes"},"content":{"rendered":"<p>This JavaScript code helps you to detect media query changes in a webpage. It adjusts the displayed content according to the screen size or device. The core functionality involves using the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Window\/getComputedStyle\" target=\"_blank\" rel=\"noopener\"><code>window.getComputedStyle<\/code> method<\/a> to check the content property of a pseudo-element in the CSS. This code is helpful for responsive web design, allowing content to adapt based on the user&#8217;s device, such as mobile, tablet, or desktop screens.<\/p>\n<p>You can use this code in your website to create a responsive design that automatically adjusts content for different devices.<\/p>\n<h2>How to Detect Media Query Changes Using JavaScript<\/h2>\n<p>1. First, set up your HTML structure. Ensure that you have a container element that holds the content you want to adapt. For example:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div id=\"slides\"&gt;\r\n  &lt;div class=\"slide active\"&gt;\r\n    &lt;div class=\"slide__text\"&gt;&lt;span&gt;&lt;span&gt;getComputedStyle&lt;\/span&gt;&lt;\/span&gt;&lt;span id=\"css\"&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n    &lt;div class=\"slide__image\" style=\"background:linear-gradient(90deg,#f5365c,#f56036)\"&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"slide\"&gt;\r\n    &lt;div class=\"slide__text\"&gt;&lt;span&gt;&lt;span&gt;@media&lt;\/span&gt;&lt;\/span&gt;&lt;span id=\"js\"&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n    &lt;div class=\"slide__image\" style=\"background:linear-gradient(90deg,#1171ef,#11cdef)\"&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>2. Style your HTML elements with CSS to make them responsive. This code assumes you&#8217;re already familiar with CSS. You can use media queries to define styles for different screen sizes. Here&#8217;s a snippet from the code:<\/p>\n<pre class=\"prettyprint linenums lang-css\">* {\r\n  margin: 0;\r\n  padding: 0;\r\n}\r\n\r\nbody {\r\n  display: flex;\r\n  flex-direction: column;\r\n  align-items: center;\r\n  justify-content: center;\r\n  min-height: 100vh;\r\n  font: 28px\/1.8 -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;\r\n  color: white;\r\n}\r\n\r\n#slides {\r\n  max-width: 20rem;\r\n  width: 100%;\r\n  height: 10rem;\r\n  margin: auto;\r\n  position: relative;\r\n  border-radius: 1rem;\r\n  overflow: hidden;\r\n}\r\n\r\n.slide {\r\n  width: 100%;\r\n  height: 100%;\r\n  z-index: 1;\r\n  padding: 0;\r\n  position: absolute;\r\n  transition: z-index 1s ease;\r\n}\r\n.slide.active {\r\n  z-index: 2;\r\n  transition: z-index 1s ease;\r\n}\r\n.slide__text {\r\n  z-index: 2;\r\n  position: relative;\r\n  height: 100%;\r\n  display: flex;\r\n  flex-direction: column;\r\n  align-items: center;\r\n  justify-content: center;\r\n  overflow-y: hidden;\r\n}\r\n.slide__text &gt; span {\r\n  display: block;\r\n  overflow-y: hidden;\r\n}\r\n.slide__text &gt; span &gt; span {\r\n  display: inline-block;\r\n  transform: translate3d(0, 140%, 0);\r\n  opacity: 0;\r\n  transition: transform 0.5s cubic-bezier(0.82, 0, 0.12, 1), opacity 0.9s cubic-bezier(0.82, 0, 0.12, 1);\r\n}\r\n.slide__text &gt; span &gt; span:nth-child(1) {\r\n  transition-delay: 0.15s;\r\n}\r\n.slide__text &gt; span &gt; span:nth-child(2) {\r\n  transition-delay: 0.3s;\r\n}\r\n.active .slide__text &gt; span &gt; span {\r\n  transform: translate3d(0, 0%, 0);\r\n  opacity: 1;\r\n  transition: transform 0.7s cubic-bezier(0.82, 0, 0.12, 1), opacity 0.2s ease;\r\n}\r\n.slide__text &gt; span:nth-of-type(2n) span {\r\n  transition-delay: 0.2s;\r\n}\r\n.slide__image {\r\n  width: 100%;\r\n  height: 0%;\r\n  position: absolute;\r\n  top: 0;\r\n  left: 0;\r\n  z-index: 1;\r\n  background-size: cover;\r\n  background-position: center;\r\n  transition: height 0.7s 0.7s cubic-bezier(0.82, 0, 0.12, 1);\r\n}\r\n.active .slide__image {\r\n  height: 100%;\r\n  transition: height 0.5s 0.3s cubic-bezier(0.82, 0, 0.12, 1);\r\n}\r\n\r\n#css span::after {\r\n  content: \"Desktop\";\r\n}\r\n@media screen and (max-width: 1024px) {\r\n  #css span::after {\r\n    content: \"Tablet Landscape\";\r\n  }\r\n}\r\n@media screen and (max-width: 768px) {\r\n  #css span::after {\r\n    content: \"Tablet Portrait\";\r\n  }\r\n}\r\n@media screen and (max-width: 360px) {\r\n  #css span::after {\r\n    content: \"Mobile\";\r\n  }\r\n}<\/pre>\n<p>3. Now, let&#8217;s add the JavaScript code to make it all work. You can include the code in a separate JavaScript file or within a <code>&lt;script&gt;<\/code> tag in your HTML.<\/p>\n<pre class=\"prettyprint linenums lang-js\">const js = document.querySelector('#js span');\r\nconst all = document.querySelectorAll('.slide');\r\nlet index = 0;\r\n\r\nwindow.addEventListener('resize', onResize, false);\r\n\r\nfunction onResize() {\r\n    const content = window.getComputedStyle(document.querySelector('#css span'), '::after').getPropertyValue('content');\r\n    if (content.includes('Mobile')) {\r\n        js.innerHTML = 'Mobile';\r\n    } else if (content.includes('Tablet Portrait')) {\r\n        js.innerHTML = 'Tablet Portrait';\r\n    } else if (content.includes('Tablet Landscape')) {\r\n        js.innerHTML = 'Tablet Landscape';\r\n    } else if (content.includes('Desktop')) {\r\n        js.innerHTML = 'Desktop';\r\n    }\r\n}\r\n\r\nonResize();\r\n\r\nsetInterval(function () {\r\n    const activeSlide = document.querySelector('#slides .slide.active');\r\n    if (activeSlide) {\r\n        activeSlide.classList.remove('active');\r\n    }\r\n\r\n    if (index === all.length - 1) {\r\n        index = 0;\r\n    } else {\r\n        index++;\r\n    }\r\n\r\n    const newActiveSlide = all[index];\r\n    if (newActiveSlide) {\r\n        newActiveSlide.classList.add('active');\r\n    }\r\n}, 2000);\r\n<\/pre>\n<p>That&#8217;s it! hopefully, you have successfully created a functionality to detect media query changes on a webpage. With this code, your website will adapt to different screen sizes, providing a seamless user experience for all visitors. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code helps you to detect media query changes in a webpage. It adjusts the displayed content according to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9342,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-9322","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>JavaScript Detect Media Query Changes &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a JavaScript Detect Media Query Changes. 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\/javascript-detect-media-query-change\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Detect Media Query Changes &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a JavaScript Detect Media Query Changes. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/\" \/>\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-14T18:01:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:02:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Detect Media Query Changes\",\"datePublished\":\"2024-01-14T18:01:00+00:00\",\"dateModified\":\"2024-01-22T11:02:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/\"},\"wordCount\":240,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/\",\"name\":\"JavaScript Detect Media Query Changes &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png\",\"datePublished\":\"2024-01-14T18:01:00+00:00\",\"dateModified\":\"2024-01-22T11:02:19+00:00\",\"description\":\"Here is a free code snippet to create a JavaScript Detect Media Query Changes. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Detect Media Query Change\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#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\":\"JavaScript Detect Media Query Changes\"}]},{\"@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":"JavaScript Detect Media Query Changes &#8212; CodeHim","description":"Here is a free code snippet to create a JavaScript Detect Media Query Changes. 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\/javascript-detect-media-query-change\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Detect Media Query Changes &#8212; CodeHim","og_description":"Here is a free code snippet to create a JavaScript Detect Media Query Changes. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-14T18:01:00+00:00","article_modified_time":"2024-01-22T11:02:19+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Detect Media Query Changes","datePublished":"2024-01-14T18:01:00+00:00","dateModified":"2024-01-22T11:02:19+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/"},"wordCount":240,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/","url":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/","name":"JavaScript Detect Media Query Changes &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png","datePublished":"2024-01-14T18:01:00+00:00","dateModified":"2024-01-22T11:02:19+00:00","description":"Here is a free code snippet to create a JavaScript Detect Media Query Changes. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/JavaScript-Detect-Media-Query-Change.png","width":1280,"height":960,"caption":"JavaScript Detect Media Query Change"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/javascript-detect-media-query-change\/#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":"JavaScript Detect Media Query Changes"}]},{"@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":672,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9322","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=9322"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9322\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9342"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}