{"id":5018,"date":"2022-08-25T23:06:20","date_gmt":"2022-08-25T17:36:20","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/"},"modified":"2022-08-25T23:06:20","modified_gmt":"2022-08-25T17:36:20","slug":"solved-simple-way-of-creating-jquery-slider","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/","title":{"rendered":"[Solved] Simple way of creating jQuery Slider"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-12233576\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"12233576\" data-parentid=\"12233575\" data-score=\"6\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Today I tried a content slider, with fixed pagination. I implemented this for something, which I would say after it is released. I could have simply used a plug-in, but due to some technical issues, and I too wanted to learn something, so I did it on my onw.<\/p>\n<p>I started with the HTML Markup, starting with two <code>UL<\/code>s. One holds the <em>pagination<\/em> and the other, <em>content for the slides<\/em>.<\/p>\n<p>Starting with this <strong>HTML Markup<\/strong>, I moved on to the <strong>CSS<\/strong> and <em>positioned<\/em> the layout elements.<\/p>\n<h3>HTML<\/h3>\n<pre><code>&lt;ul class=\"content-pagination\"&gt;\n    &lt;li&gt;&lt;a href=\"0\"&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"1\"&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"2\"&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"3\"&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"4\"&gt;&lt;\/a&gt;&lt;\/li&gt;\n&lt;\/ul&gt;\n\n&lt;ul class=\"content-slides\"&gt;\n    &lt;li&gt;\n        &lt;img src=\"slides\/background1.png\" alt=\"\" \/&gt;\n        &lt;div class=\"desc\"&gt;\n            &lt;h3&gt;Heading 1&lt;\/h3&gt;\n            &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s!.&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/li&gt;\n    &lt;li&gt;\n        &lt;img src=\"slides\/background2.png\" alt=\"\" \/&gt;\n        &lt;div class=\"desc\"&gt;\n            &lt;h3&gt;Heading 2&lt;\/h3&gt;\n            &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s!.&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/li&gt;\n    &lt;li&gt;\n        &lt;img src=\"slides\/background3.png\" alt=\"\" \/&gt;\n        &lt;div class=\"desc\"&gt;\n            &lt;h3&gt;Heading 3&lt;\/h3&gt;\n            &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s!.&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/li&gt;\n    &lt;li&gt;\n        &lt;img src=\"slides\/background4.png\" alt=\"\" \/&gt;\n        &lt;div class=\"desc\"&gt;\n            &lt;h3&gt;Heading 4&lt;\/h3&gt;\n            &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s!.&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/li&gt;\n    &lt;li&gt;\n        &lt;img src=\"slides\/background5.png\" alt=\"\" \/&gt;\n        &lt;div class=\"desc\"&gt;\n            &lt;h3&gt;Heading 5&lt;\/h3&gt;\n            &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s!.&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/li&gt;\n&lt;\/ul&gt;\n<\/code><\/pre>\n<p>I had somewhat a hard time fixing the issues caused by our ancient <strong>Internet Explorer 7<\/strong> and slightly modern <strong>Internet Explorer 8<\/strong> browsers, so I had to meddle with their proprietary form of <em>hacking<\/em> and fixed them! The <strong>final CSS<\/strong> came this way:<\/p>\n<h3>CSS<\/h3>\n<pre><code>.slider {padding: 0; height: 150px; position: relative; overflow: hidden; width: 270px;}\n.slider .content-slides {position: absolute; top: 0; left: 0; padding: 0; margin: 0;}\n.slider .content-slides li {width: 270px; height: 150px; position: relative; float: left; list-style: none;}\n.slider .content-slides li img {width: 270px; height: 150px; display: block;}\n.slider .content-slides li .desc {position: absolute; font-size: 90%; background: #999; background: rgba(0, 0, 0, 0.5); left: 0; top: 0; width: 100%; overflow: hidden; padding: 0 0 5px;}\n.slider .content-slides li .desc * {color: #fff; width: 200px; margin: 5px 10px; line-height: 1.1em;}\n.slider .content-pagination {text-align: right; position: absolute; bottom: 10px; right: 10px; z-index: 5;}\n.slider .content-pagination li {float: none; display: inline; font-size: 0.75em; padding: 0.25em;}\n.slider .content-pagination li a {width: 7px; height: 7px; border-radius: 7px; background-color: #ccc; overflow: hidden; line-height: 10px; font-size: 1px; text-indent: -999em; display: inline-block; *display: inline; *zoom: 1;}\n.slider .content-pagination li.active-marker a,\n.slider .content-pagination li a:hover {background-color: #08c; color: #fff;}\n<\/code><\/pre>\n<p>And yeah, the width and height of <em>background<\/em> images are fixed and they were <code>270px \u00d7 150px<\/code>.<\/p>\n<p>Now comes the really interesting part, which took me about an hour! The <strong>JavaScript<\/strong> rocks in consuming time like anything! \ud83d\ude42 I have to admit that I took a kind of low quality approach in my JavaScript, as I was concerned only about this <strong>5 Content<\/strong> always <strong>with pagination<\/strong> and <strong>not scalable<\/strong> in future kind of a slider.<\/p>\n<h3>JavaScript<\/h3>\n<p>First of all, I had no idea how these sliders work, but I had a small idea that the <code>UL<\/code> will be having the width of sum of all the <code>LI<\/code>s, which it holds. So, that became the first statement:<\/p>\n<pre><code>$(\".slider .content-slides\").width($(\".slider .content-slides\").children().size() * $(\".slider .content-slides\").width());\n<\/code><\/pre>\n<p>I need a <strong>counter<\/strong> to hold the current page been requested. So I initialized a counter <code>index<\/code> and assigning it a value <code>0<\/code>. Many of you people missed this part!!! Add this too!<\/p>\n<pre><code>index = 0;\n<\/code><\/pre>\n<p>The next step is to create a <strong>function<\/strong>, which animates the whole slider. Yeah, I used <strong>jQuery<\/strong> to help me out! So, the function goes this way:<\/p>\n<pre><code>function slideStart()\n{\n    curPage = ((index) % $(\".slider .content-slides\").children().size()) + 1;\n    $(\".slider .content-slides\").animate({\n        \"left\": -($(\".slider .content-slides li:nth-child(\" + curPage + \")\").position().left)\n    });\n    $(\".slider .content-pagination li\").removeClass(\"active-marker\");\n    $(\".slider .content-pagination li:nth-child(\" + curPage + \")\").addClass(\"active-marker\");\n    index++;\n}\n<\/code><\/pre>\n<p>Since I declared <code>index<\/code> as a global variable, I can access it at any time from anywhere. Its scope is valid through the scripts and inside functions. I initialized a variable for the current page as the <strong>modulus<\/strong> value of the <em>count<\/em> of <code>index<\/code> divided by the <em>number of children<\/em> inside slider.<\/p>\n<p>The next comes the awesome <code>animate()<\/code> function, which jQuery provides. It is used to change the <em>CSS Properties<\/em> as given in a smooth transition instead of a drastic or sudden change. This function now moves (slides) the left position of the list container <code>UL<\/code> to fit the next <code>LI<\/code> element.<\/p>\n<p>Then comes the pagination stuff. It adds the current slide using another awesome <em>CSS \/ jQuery Selector<\/em>, <code>:nth-child()<\/code>, which literally selects the nth child of the container. Once a slide is loaded, the corresponding <code>LI<\/code> will be marked as active by adding a class <code>active<\/code>.<\/p>\n<p>Finally the value of <code>index<\/code> is incremented by 1 using the <em>traditional way<\/em>!<\/p>\n<p>Coming to the next function, which is adding the <code>click<\/code> event to the pagination buttons. I thought this would be the complicated way, but I managed to do in a simple way by just setting the <code>index<\/code> value, clearing the old timer, and restarting the slider function.<\/p>\n<pre><code>$(\".slider .content-pagination li a\").click(function(){\n    index = $(this).attr(\"href\");\n    clearInterval(islider);\n    slideStart();\n    islider = setInterval(\"slideStart()\", 2500);\n    return false;\n});\n<\/code><\/pre>\n<p>I added a <code>return false;<\/code> at the end to prevent the link from following the URL of it, else it would open the URL from its <code>href<\/code> attribute. Now comes the final part and the important one. The initializer for the script. We just need to start the slider using the function <code>slideStart()<\/code> and let it run for a fixed interval, say <em>2.5 seconds<\/em>. Since it needs to be executed after the document is loaded, it is given inside the <code>$(document).ready()<\/code> function.<\/p>\n<pre><code>$(document).ready(function(){\n    slideStart();\n    islider = setInterval(\"slideStart()\", 2500);\n});\n<\/code><\/pre>\n<h3>Final JavaScript<\/h3>\n<pre><code>$(\".slider .content-slides\").width($(\".slider .content-slides\").children().size() * $(\".slider .content-slides\").width());\n\n\nfunction slideStart()\n{\n    curPage = ((index) % $(\".slider .content-slides\").children().size()) + 1;\n    $(\".slider .content-slides\").animate({\n        \"left\": -($(\".slider .content-slides li:nth-child(\" + curPage + \")\").position().left)\n    });\n    $(\".slider .content-pagination li\").removeClass(\"active-marker\");\n    $(\".slider .content-pagination li:nth-child(\" + curPage + \")\").addClass(\"active-marker\");\n    index++;\n}\n\n\n$(\".slider .content-pagination li a\").click(function(){\n    index = $(this).attr(\"href\");\n    clearInterval(islider);\n    slideStart();\n    islider = setInterval(\"slideStart()\", 2500);\n    return false;\n});\n\n$(document).ready(function(){\n    index = 0;\n    islider = setInterval(\"slideStart()\", 2500);\n});\n<\/code><\/pre>\n<h3>Full Demo: <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/jsbin.com\/uhowak\/2\">http:\/\/jsbin.com\/uhowak\/2<\/a><\/h3>\n<p>Hope this helps someone! \ud83d\ude42<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">8<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Simple way of creating jQuery Slider <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Today I tried a content slider, with fixed pagination. I implemented this for something, which I would say after it is released. I could have simply used a plug-in, but due to some technical issues, and I too wanted to learn something, so I did it on my onw. I started with the HTML &#8230; <a title=\"[Solved] Simple way of creating jQuery Slider\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\" aria-label=\"More on [Solved] Simple way of creating jQuery Slider\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[346,333,388,1205],"class_list":["post-5018","post","type-post","status-publish","format-standard","hentry","category-solved","tag-html","tag-javascript","tag-jquery","tag-slider"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Simple way of creating jQuery Slider - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Simple way of creating jQuery Slider - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Today I tried a content slider, with fixed pagination. I implemented this for something, which I would say after it is released. I could have simply used a plug-in, but due to some technical issues, and I too wanted to learn something, so I did it on my onw. I started with the HTML ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-25T17:36:20+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Simple way of creating jQuery Slider\",\"datePublished\":\"2022-08-25T17:36:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\"},\"wordCount\":595,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"html\",\"javascript\",\"jquery\",\"slider\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\",\"name\":\"[Solved] Simple way of creating jQuery Slider - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-08-25T17:36:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Simple way of creating jQuery Slider\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Simple way of creating jQuery Slider - JassWeb","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:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Simple way of creating jQuery Slider - JassWeb","og_description":"[ad_1] Today I tried a content slider, with fixed pagination. I implemented this for something, which I would say after it is released. I could have simply used a plug-in, but due to some technical issues, and I too wanted to learn something, so I did it on my onw. I started with the HTML ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/","og_site_name":"JassWeb","article_published_time":"2022-08-25T17:36:20+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Simple way of creating jQuery Slider","datePublished":"2022-08-25T17:36:20+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/"},"wordCount":595,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["html","javascript","jquery","slider"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/","url":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/","name":"[Solved] Simple way of creating jQuery Slider - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-08-25T17:36:20+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-simple-way-of-creating-jquery-slider\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Simple way of creating jQuery Slider"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/5018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=5018"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/5018\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=5018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=5018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=5018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}