{"id":6624,"date":"2024-01-17T16:47:00","date_gmt":"2024-01-17T16:47:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6624"},"modified":"2024-01-22T14:48:55","modified_gmt":"2024-01-22T09:48:55","slug":"javascript-image-grid-different-sizes-and-width","status":"publish","type":"post","link":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/","title":{"rendered":"JavaScript Image Grid Different Sizes and Width"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create image grid with different sizes and width. It arrange images in a responsive <a href=\"https:\/\/codehim.com\/layout\/javascript-masonry-grid-layout\/\" target=\"_blank\" rel=\"noopener\">masonry grid layout<\/a> that automatically adjust their sizes according to device width. You can use this code in your gallery\/showcase projects.<\/p>\n<p>The code snippet generates image gallery dynamically using template system.<\/p>\n<h2>How to Create JavaScript Image Grid with Different Sizes and Width<\/h2>\n<p>1. First of all, create the HTML structure as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\"> &lt;div id=\"gallery\"&gt;&lt;\/div&gt;\r\n\r\n&lt;script type=\"text\/tmpl\" id=\"tmpl\"&gt;\r\n&lt;% for (let i = 0; i &lt; imgs.length; i++) { %&gt;\r\n\t&lt;div class=\"img\" style=\"width:&lt;%=imgs[i].ww%&gt;px;height:&lt;%=imgs[i].hh%&gt;px\"&gt;\r\n  \t&lt;img src=\"&lt;%=imgs[i].src%&gt;\"\/&gt;\r\n  &lt;\/div&gt;\r\n&lt;% } %&gt;\r\n&lt;\/script&gt;<\/pre>\n<p>2. After that, add the following CSS styles into your project:<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n  margin: 0;\r\n}\r\n#gallery {\r\n\tposition: relative;\r\n\tpadding: 5px;\r\n}\r\n.img {\r\n  display: block;\r\n  margin: 5px;\r\n  float: left;\r\n  background: #ececec;\r\n}\r\n.img img {\r\n  width: 100%;\r\n  height: 100%;\r\n}<\/pre>\n<p>3. Finally, add the following JavaScript code and done.<\/p>\n<pre class=\"prettyprint linenums lang-js\">(function(){\r\n  var cache = {};\r\n\r\n  this.tmpl = function tmpl(str, data){\r\n    \/\/ Figure out if we're getting a template, or if we need to\r\n    \/\/ load the template - and be sure to cache the result.\r\n    var fn = !\/\\W\/.test(str) ?\r\n      cache[str] = cache[str] ||\r\n        tmpl(document.getElementById(str).innerHTML) :\r\n\r\n      \/\/ Generate a reusable function that will serve as a template\r\n      \/\/ generator (and which will be cached).\r\n      new Function(\"obj\",\r\n        \"var p=[],print=function(){p.push.apply(p,arguments);};\" +\r\n\r\n        \/\/ Introduce the data as local variables using with(){}\r\n        \"with(obj){p.push('\" +\r\n\r\n        \/\/ Convert the template into pure JavaScript\r\n        str\r\n          .replace(\/[\\r\\t\\n]\/g, \" \")\r\n          .split(\"&lt;%\").join(\"\\t\")\r\n          .replace(\/((^|%&gt;)[^\\t]*)'\/g, \"$1\\r\")\r\n          .replace(\/\\t=(.*?)%&gt;\/g, \"',$1,'\")\r\n          .split(\"\\t\").join(\"');\")\r\n          .split(\"%&gt;\").join(\"p.push('\")\r\n          .split(\"\\r\").join(\"\\\\'\")\r\n      + \"');}return p.join('');\");\r\n\r\n    \/\/ Provide some basic currying to the user\r\n    return data ? fn( data ) : fn;\r\n  };\r\n})();\r\n\r\nfunction randomImg () {\r\n  let count = 10 + Math.ceil(Math.random() * 10)\r\n  let imgs = []\r\n  for (let i = count; i &gt; 0; i--) {\r\n    let w = 250 + 10 * Math.ceil(Math.random() * 50)\r\n    let h = 200 + 10 * Math.ceil(Math.random() * 50)\r\n    imgs.push({\r\n      src: 'https:\/\/unsplash.it\/' + w + '\/' + h,\r\n      w: w,\r\n      h: h\r\n    })\r\n  }\r\n  return imgs\r\n}\r\nfunction countImgsInCol (idx, imgs) {\r\n  let gallery = document.querySelector('#gallery')\r\n  let gw = gallery.clientWidth\r\n  let maxEachCol = 4\r\n  let minH = 120\r\n  let count = 0\r\n  for (let i = Math.min(maxEachCol, imgs.length - idx); i &gt; 0; i--) {\r\n    let w = 0\r\n    for (let j = idx; j &lt; idx + i; j++) {\r\n      let minW = minH * imgs[j].w \/ imgs[j].h\r\n      if (minW &gt;= gw) {\r\n        return 1\r\n      } else {\r\n\t      w += minW\r\n      }\r\n    }\r\n    if (w &lt; gw) {\r\n      count = i\r\n      break\r\n    }\r\n  }\r\n  return count\r\n}\r\nfunction getCols (imgs) {\r\n  let cols = []\r\n  let rest = imgs.length\r\n  let count = 1;\r\n  for (let i = 0; i &lt; imgs.length; i = i + count) {\r\n    count = countImgsInCol(i, imgs)\r\n    console.log(i, count)\r\n    cols.push({start: i, end: i + count - 1, total: count})\r\n  }\r\n  return cols\r\n}\r\nfunction organizeImg (imgs) {\r\n  let gallery = document.querySelector('#gallery')\r\n  let galleryW = gallery.clientWidth\r\n  let margin = 10\r\n  let cols = getCols(imgs)\r\n  for (let i = 0; i &lt; cols.length; i++) {\r\n    let col = cols[i]\r\n    let colH = 0\r\n    let scale = 0\r\n    for (let j = col.start; j &lt;= col.end; j++) {\r\n      scale += imgs[j].w \/ imgs[j].h\r\n    }\r\n    colH = (galleryW - margin * (col.total + 1)) \/ scale\r\n    console.log(colH)\r\n    for (let k = col.start; k &lt;= col.end; k++) {\r\n      let img = imgs[k]\r\n      img.hh = colH\r\n      img.ww = colH * img.w \/ img.h\r\n     }\r\n  }\r\n  gallery.innerHTML = tmpl('tmpl', { imgs })\r\n}\r\nlet imgs = randomImg()\r\norganizeImg(imgs)\r\nwindow.addEventListener('resize', () =&gt; {\r\n  organizeImg(imgs)\r\n})<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this image grid code snippet into your project. If you have any questions or facing any issues, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create image grid with different sizes and width. It arrange images in a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6680,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-6624","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gallery"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Image Grid Different Sizes and Width &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a code snippet to create a responsive JavaScript Image grid with different sizes and width. You can view demo &amp; download 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\/gallery\/javascript-image-grid-different-sizes-and-width\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Image Grid Different Sizes and Width &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a code snippet to create a responsive JavaScript Image grid with different sizes and width. You can view demo &amp; download code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/\" \/>\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-17T16:47:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:48:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.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\/gallery\/javascript-image-grid-different-sizes-and-width\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Image Grid Different Sizes and Width\",\"datePublished\":\"2024-01-17T16:47:00+00:00\",\"dateModified\":\"2024-01-22T09:48:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/\"},\"wordCount\":128,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png\",\"articleSection\":[\"Gallery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/\",\"url\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/\",\"name\":\"JavaScript Image Grid Different Sizes and Width &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png\",\"datePublished\":\"2024-01-17T16:47:00+00:00\",\"dateModified\":\"2024-01-22T09:48:55+00:00\",\"description\":\"Here is a code snippet to create a responsive JavaScript Image grid with different sizes and width. You can view demo & download code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Image Grid Different Sizes and Width\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gallery\",\"item\":\"https:\/\/codehim.com\/category\/gallery\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Image Grid Different Sizes and Width\"}]},{\"@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 Image Grid Different Sizes and Width &#8212; CodeHim","description":"Here is a code snippet to create a responsive JavaScript Image grid with different sizes and width. You can view demo & download 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\/gallery\/javascript-image-grid-different-sizes-and-width\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Image Grid Different Sizes and Width &#8212; CodeHim","og_description":"Here is a code snippet to create a responsive JavaScript Image grid with different sizes and width. You can view demo & download code.","og_url":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-17T16:47:00+00:00","article_modified_time":"2024-01-22T09:48:55+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.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\/gallery\/javascript-image-grid-different-sizes-and-width\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Image Grid Different Sizes and Width","datePublished":"2024-01-17T16:47:00+00:00","dateModified":"2024-01-22T09:48:55+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/"},"wordCount":128,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png","articleSection":["Gallery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/","url":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/","name":"JavaScript Image Grid Different Sizes and Width &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png","datePublished":"2024-01-17T16:47:00+00:00","dateModified":"2024-01-22T09:48:55+00:00","description":"Here is a code snippet to create a responsive JavaScript Image grid with different sizes and width. You can view demo & download code.","breadcrumb":{"@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/JavaScript-Image-Grid-Diffe.png","width":1280,"height":960,"caption":"JavaScript Image Grid Different Sizes and Width"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/gallery\/javascript-image-grid-different-sizes-and-width\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Gallery","item":"https:\/\/codehim.com\/category\/gallery\/"},{"@type":"ListItem","position":3,"name":"JavaScript Image Grid Different Sizes and Width"}]},{"@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":8978,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6624","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=6624"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6624\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6680"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}