{"id":33809,"date":"2023-02-14T08:56:48","date_gmt":"2023-02-14T03:26:48","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/"},"modified":"2023-02-14T08:56:48","modified_gmt":"2023-02-14T03:26:48","slug":"solved-change-the-sequence-of-div-an-span-in-this-javascript","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/","title":{"rendered":"[Solved] Change the sequence of div an span in this Javascript"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-50408493\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"50408493\" data-parentid=\"50407900\" data-score=\"0\" 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>First you need to revert your <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/unminify.com\/\">js file to unminify<\/a>:<\/p>\n<pre><code>! function(e) {\n    \"use strict\";\n    var t = e,\n        i = t.document,\n        o = \"cbinstance\";\n    var n = {\n            get: function(e) {\n                return decodeURIComponent(i.cookie.replace(new RegExp(\"(?:(?:^|.*;)\\\\s*\" + encodeURIComponent(e).replace(\/[\\-\\.\\+\\*]\/g, \"\\\\$&amp;\") + \"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$\"), \"$1\")) || null\n            },\n            set: function(e, t, o, n, s, r) {\n                if (!e || \/^(?:expires|max\\-age|path|domain|secure)$\/i.test(e)) return !1;\n                var a = \"\";\n                if (o) switch (o.constructor) {\n                    case Number:\n                        a = o === 1 \/ 0 ? \"; expires=Fri, 31 Dec 9999 23:59:59 GMT\" : \"; max-age=\" + o;\n                        break;\n                    case String:\n                        a = \"; expires=\" + o;\n                        break;\n                    case Date:\n                        a = \"; expires=\" + o.toUTCString()\n                }\n                return i.cookie = encodeURIComponent(e) + \"=\" + encodeURIComponent(t) + a + (s ? \"; domain=\" + s : \"\") + (n ? \"; path=\" + n : \"\") + (r ? \"; secure\" : \"\"), !0\n            },\n            has: function(e) {\n                return new RegExp(\"(?:^|;\\\\s*)\" + encodeURIComponent(e).replace(\/[\\-\\.\\+\\*]\/g, \"\\\\$&amp;\") + \"\\\\s*\\\\=\").test(i.cookie)\n            },\n            remove: function(e, t, o) {\n                return !(!e || !this.has(e)) &amp;&amp; (i.cookie = encodeURIComponent(e) + \"=; expires=Thu, 01 Jan 1970 00:00:00 GMT\" + (o ? \"; domain=\" + o : \"\") + (t ? \"; path=\" + t : \"\"), !0)\n            }\n        },\n        s = {\n            merge: function() {\n                var e, t = {},\n                    i = 0,\n                    o = arguments.length;\n                if (0 === o) return t;\n                for (; i &lt; o; i++)\n                    for (e in arguments[i]) Object.prototype.hasOwnProperty.call(arguments[i], e) &amp;&amp; (t[e] = arguments[i][e]);\n                return t\n            },\n            str2bool: function(e) {\n                switch ((e = \"\" + e).toLowerCase()) {\n                    case \"false\":\n                    case \"no\":\n                    case \"0\":\n                    case \"\":\n                        return !1;\n                    default:\n                        return !0\n                }\n            },\n            fade_in: function(e) {\n                e.style.opacity &lt; 1 &amp;&amp; (e.style.opacity = (parseFloat(e.style.opacity) + .05).toFixed(2), t.setTimeout(function() {\n                    s.fade_in(e)\n                }, 50))\n            },\n            get_data_attribs: function(e) {\n                var t = {};\n                if (Object.prototype.hasOwnProperty.call(e, \"dataset\")) t = e.dataset;\n                else {\n                    var i, o = e.attributes;\n                    for (i in o)\n                        if (Object.prototype.hasOwnProperty.call(o, i)) {\n                            var n = o[i];\n                            if (\/^data-\/.test(n.name)) t[s.camelize(n.name.substr(5))] = n.value\n                        }\n                }\n                return t\n            },\n            normalize_keys: function(e) {\n                var t = {};\n                for (var i in e)\n                    if (Object.prototype.hasOwnProperty.call(e, i)) {\n                        var o = s.camelize(i);\n                        t[o] = e[o] ? e[o] : e[i]\n                    }\n                return t\n            },\n            camelize: function(e) {\n                for (var t = \"-\", i = e.indexOf(t); - 1 != i;) {\n                    var o = i === e.length - 1,\n                        n = o ? \"\" : e[i + 1],\n                        s = n.toUpperCase(),\n                        r = o ? t : t + n;\n                    i = (e = e.replace(r, s)).indexOf(t)\n                }\n                return e\n            },\n            find_script_by_id: function(e) {\n                for (var t = i.getElementsByTagName(\"script\"), o = 0, n = t.length; o &lt; n; o++)\n                    if (e === t[o].id) return t[o];\n                return null\n            }\n        },\n        r = s.find_script_by_id(\"cookieinfo\"),\n        a = e.cookieinfo = function(e) {\n            this.init(e)\n        };\n    a.prototype = {\n        cookiejar: n,\n        init: function(t) {\n            this.inserted = !1, this.closed = !1, this.test_mode = !1;\n            if (this.default_options = {\n                    cookie: \"we-love-cookies\",\n                    closeText: \"&amp;#10006;\",\n                    cookiePath: \"https:\/\/stackoverflow.com\/\",\n                    debug: !1,\n                    expires: 1 \/ 0,\n                    zindex: 1e20,\n                    mask: !1,\n                    maskOpacity: .5,\n                    maskBackground: \"#999\",\n                    height: \"auto\",\n                    minHeight: \"31px\",\n                    bg: \"#eee\",\n                    fg: \"#333\",\n                    link: \"#31A8F0\",\n                    divlink: \"#000\",\n                    divlinkbg: \"#F1D600\",\n                    position: \"top\",\n                    message: \"This is a cookie message.\",\n                    linkmsg: \"Read more.\",\n                    scriptmsg: \"Cookie Info Script\",\n                    moreinfo: \"#acc-430\",\n                    tracking: \"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\",\n                    effect: null,\n                    fontSize: \"14px\",\n                    fontFamily: \"verdana, arial, sans-serif\",\n                    instance: o,\n                    textAlign: \"center\",\n                    acceptOnScroll: !1\n                }, this.options = this.default_options, this.script_el = r, this.script_el) {\n                var i = s.get_data_attribs(this.script_el);\n                this.options = s.merge(this.options, i)\n            }\n            t &amp;&amp; (t = s.normalize_keys(t), this.options = s.merge(this.options, t)), o = this.options.instance, this.options.zindex = parseInt(this.options.zindex, 10), this.options.mask = s.str2bool(this.options.mask), \"string\" == typeof this.options.expires &amp;&amp; \"function\" == typeof e[this.options.expires] &amp;&amp; (this.options.expires = e[this.options.expires]), \"function\" == typeof this.options.expires &amp;&amp; (this.options.expires = this.options.expires()), this.script_el &amp;&amp; this.run()\n        },\n        log: function() {\n            \"undefined\" != typeof console &amp;&amp; console.log.apply(console, arguments)\n        },\n        run: function() {\n            if (!this.agreed()) {\n                var e = this;\n                ! function(e, t) {\n                    var i = !1,\n                        o = !0,\n                        n = e.document,\n                        s = n.documentElement,\n                        r = n.addEventListener ? \"addEventListener\" : \"attachEvent\",\n                        a = n.addEventListener ? \"removeEventListener\" : \"detachEvent\",\n                        c = n.addEventListener ? \"\" : \"on\",\n                        l = function(o) {\n                            \"readystatechange\" == o.type &amp;&amp; \"complete\" != n.readyState || ((\"load\" == o.type ? e : n)[a](c + o.type, l, !1), !i &amp;&amp; (i = !0) &amp;&amp; t.call(e, o.type || o))\n                        },\n                        p = function() {\n                            try {\n                                s.doScroll(\"left\")\n                            } catch (e) {\n                                return void setTimeout(p, 50)\n                            }\n                            l(\"poll\")\n                        };\n                    if (\"complete\" == n.readyState) t.call(e, \"lazy\");\n                    else {\n                        if (n.createEventObject &amp;&amp; s.doScroll) {\n                            try {\n                                o = !e.frameElement\n                            } catch (e) {}\n                            o &amp;&amp; p()\n                        }\n                        n[r](c + \"DOMContentLoaded\", l, !1), n[r](c + \"readystatechange\", l, !1), e[r](c + \"load\", l, !1)\n                    }\n                }(t, function() {\n                    e.insert()\n                })\n            }\n        },\n        build_viewport_mask: function() {\n            var e = null;\n            if (!0 === this.options.mask) {\n                var t = this.options.maskOpacity,\n                    o = '&lt;div id=\"cookieinfo-mask\" style=\"position:fixed;top:0;left:0;width:100%;height:100%;background:' + this.options.maskBackground + \";zoom:1;filter:alpha(opacity=\" + 100 * t + \");opacity:\" + t + \";z-index:\" + this.options.zindex + ';\"&gt;&lt;\/div&gt;',\n                    n = i.createElement(\"div\");\n                n.innerHTML = o, e = n.firstChild\n            }\n            return e\n        },\n        agree: function() {\n            return this.cookiejar.set(this.options.cookie, 1, this.options.expires, this.options.cookiePath), !0\n        },\n        agreed: function() {\n            return this.cookiejar.has(this.options.cookie)\n        },\n        close: function() {\n            return this.inserted &amp;&amp; (this.closed || (this.element &amp;&amp; this.element.parentNode.removeChild(this.element), this.element_mask &amp;&amp; this.element_mask.parentNode.removeChild(this.element_mask), this.closed = !0)), this.closed\n        },\n        agree_and_close: function() {\n            return this.agree(), this.close()\n        },\n        cleanup: function() {\n            return this.close(), this.unload()\n        },\n        unload: function() {\n            return this.script_el &amp;&amp; this.script_el.parentNode.removeChild(this.script_el), e[o] = void 0, !0\n        },\n        insert: function() {\n            this.element_mask = this.build_viewport_mask();\n            var e = this.options.zindex;\n            this.element_mask &amp;&amp; (e += 1);\n            var t = i.createElement(\"div\");\n            t.className = \"cookieinfo\", t.style.position = \"fixed\", t.style.left = 0, t.style.right = 0, t.style.height = this.options.height, t.style.minHeight = this.options.minHeight, t.style.zIndex = e, t.style.background = this.options.bg, t.style.color = this.options.fg, t.style.lineHeight = t.style.minHeight, t.style.padding = \"8px 30px\", t.style.fontFamily = this.options.fontFamily, t.style.fontSize = this.options.fontSize, t.style.textAlign = this.options.textAlign, \"top\" === this.options.position ? t.style.top = 0 : t.style.bottom = 0, t.innerHTML = '&lt;div class=\"cookieinfo-close\" style=\"float:right;display:block;padding:5px 8px 5px 8px;min-width:100px;margin-left:5px;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;border-bottom-left-radius:5px;\"&gt;' + this.options.closeText + '&lt;\/div&gt;&lt;span style=\"display:block;padding:5px 0 5px 0;\"&gt;' + this.options.message + \" &lt;a&gt;\" + this.options.linkmsg + \"&lt;\/a&gt;&lt;img&gt; &lt;a&gt;\" + this.options.scriptmsg + \"&lt;\/a&gt;&lt;\/span&gt;\", this.element = t;\n            var o = t.getElementsByTagName(\"a\")[0];\n            o.href = this.options.moreinfo, o.style.textDecoration = \"underline\", o.style.color = this.options.link;\n            var n = t.getElementsByTagName(\"a\")[1];\n            n.href = this.options.scriptinfo, n.style.textDecoration = \"none\", n.style.display = \"none\", n.style.color = this.options.link;\n            var r = t.getElementsByTagName(\"div\")[0];\n            r.style.cursor = \"pointer\", r.style.color = this.options.divlink, r.style.background = this.options.divlinkbg, r.style.textAlign = \"center\";\n            var a = t.getElementsByTagName(\"img\")[0];\n\n            function c(e, t, i) {\n                var o = e.addEventListener ? \"addEventListener\" : \"attachEvent\",\n                    n = e.addEventListener ? \"\" : \"on\";\n                e[o](n + t, i, !1)\n            }\n            a.src = this.options.tracking, a.style.display = \"none\";\n            var l = this;\n            c(r, \"click\", function() {\n                l.agree_and_close()\n            }), this.element_mask &amp;&amp; (c(this.element_mask, \"click\", function() {\n                l.agree_and_close()\n            }), i.body.appendChild(this.element_mask)), this.options.acceptOnScroll &amp;&amp; c(window, \"scroll\", function() {\n                l.agree_and_close()\n            }), i.body.appendChild(this.element), this.inserted = !0, \"fade\" === this.options.effect ? (this.element.style.opacity = 0, s.fade_in(this.element)) : this.element.style.opacity = 1\n        }\n    }, r &amp;&amp; (e[o] || (e[o] = new a))\n}(window);\n<\/code><\/pre>\n<p>then you should precise your question, as I understand you want the innerHTML content <code>&lt;span&gt;&lt;\/span&gt;<\/code> be the first place then this element <code>&lt;div class=\"cookieinfo-close\"&gt;&lt;\/div&gt;<\/code> to be the second place?<br \/>\nIf so replace t.innerHTML cod as follow:<\/p>\n<pre><code>t.innerHTML = '&lt;span style=\"display:block;padding:5px 0 5px 0;\"&gt;' + \n               this.options.message + \" &lt;a&gt;\" + this.options.linkmsg + \"&lt;\/a&gt;&lt;img&gt; &lt;a&gt;\" + this.options.scriptmsg + '&lt;\/a&gt;&lt;\/span&gt;&lt;div class=\"cookieinfo-close\"&gt;', \n               + this.options.closeText + '&lt;\/div&gt;',\n               this.element = t;\n<\/code><\/pre>\n<p>in order to make js file more readable I had remove inline style code and you should add follow to your css file:<\/p>\n<pre><code>.cookieinfo-close {\n  float:right;\n  display:block;\n  padding:5px 8px 5px 8px;\n  min-width:100px;\n  margin-left:5px;\n  border-top-left-radius:5px;\n  border-top-right-radius:5px;\n  border-bottom-right-radius:5px;\n  border-bottom-left-radius:5px;\n  border-bottom-left-radius:5px;\n}\n<\/code><\/pre>\n<p>Once done test to see if this you want to modify, and one more thing change the library js file usually not recommend, try to modify layout css first, removed the inline style first in this js file then you could easily to override by your own css file<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Change the sequence of div an span in this Javascript <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] First you need to revert your js file to unminify: ! function(e) { &#8220;use strict&#8221;; var t = e, i = t.document, o = &#8220;cbinstance&#8221;; var n = { get: function(e) { return decodeURIComponent(i.cookie.replace(new RegExp(&#8220;(?:(?:^|.*;)\\\\s*&#8221; + encodeURIComponent(e).replace(\/[\\-\\.\\+\\*]\/g, &#8220;\\\\$&amp;&#8221;) + &#8220;\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$&#8221;), &#8220;$1&#8221;)) || null }, set: function(e, t, o, n, s, r) { if (!e &#8230; <a title=\"[Solved] Change the sequence of div an span in this Javascript\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/\" aria-label=\"More on [Solved] Change the sequence of div an span in this Javascript\">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],"class_list":["post-33809","post","type-post","status-publish","format-standard","hentry","category-solved","tag-html","tag-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Change the sequence of div an span in this Javascript - 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-change-the-sequence-of-div-an-span-in-this-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Change the sequence of div an span in this Javascript - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] First you need to revert your js file to unminify: ! function(e) { &quot;use strict&quot;; var t = e, i = t.document, o = &quot;cbinstance&quot;; var n = { get: function(e) { return decodeURIComponent(i.cookie.replace(new RegExp(&quot;(?:(?:^|.*;)\\s*&quot; + encodeURIComponent(e).replace(\/[-.+*]\/g, &quot;\\$&amp;&quot;) + &quot;\\s*\\=\\s*([^;]*).*$)|^.*$&quot;), &quot;$1&quot;)) || null }, set: function(e, t, o, n, s, r) { if (!e ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-14T03:26:48+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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Change the sequence of div an span in this Javascript\",\"datePublished\":\"2023-02-14T03:26:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/\"},\"wordCount\":140,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"html\",\"javascript\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/\",\"name\":\"[Solved] Change the sequence of div an span in this Javascript - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2023-02-14T03:26:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Change the sequence of div an span in this Javascript\"}]},{\"@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=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Change the sequence of div an span in this Javascript - 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-change-the-sequence-of-div-an-span-in-this-javascript\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Change the sequence of div an span in this Javascript - JassWeb","og_description":"[ad_1] First you need to revert your js file to unminify: ! function(e) { \"use strict\"; var t = e, i = t.document, o = \"cbinstance\"; var n = { get: function(e) { return decodeURIComponent(i.cookie.replace(new RegExp(\"(?:(?:^|.*;)\\s*\" + encodeURIComponent(e).replace(\/[-.+*]\/g, \"\\$&amp;\") + \"\\s*\\=\\s*([^;]*).*$)|^.*$\"), \"$1\")) || null }, set: function(e, t, o, n, s, r) { if (!e ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/","og_site_name":"JassWeb","article_published_time":"2023-02-14T03:26:48+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Change the sequence of div an span in this Javascript","datePublished":"2023-02-14T03:26:48+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/"},"wordCount":140,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["html","javascript"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/","url":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/","name":"[Solved] Change the sequence of div an span in this Javascript - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2023-02-14T03:26:48+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-change-the-sequence-of-div-an-span-in-this-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Change the sequence of div an span in this Javascript"}]},{"@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=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","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\/33809","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=33809"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/33809\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=33809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=33809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=33809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}