feat: open product card links in same tab
This commit is contained in:
parent
4f37370e8d
commit
e94d387fdd
@ -59,4 +59,6 @@ reframe('.post-content iframe:not(.reframe-off)');
|
||||
!function(e,t){var n,i,r,s,a=.75*t.innerHeight;function d(){!i&&r.getBoundingClientRect().top-t.innerHeight<=a&&(removeEventListener("scroll",s),removeEventListener("resize",s),(n=e.createElement("script")).async=!0,n.src='https://'+disqus_id+'.disqus.com/embed.js',n.setAttribute("data-timestamp",+new Date),(e.head||e.body).appendChild(n),i=!0)}r&&(addEventListener("scroll",s),addEventListener("resize",s)),t.disqusLazy=function(n){var i,l,o,c;i=d,l=(n=n||{}).throttle||100,c=0,s=function(){var e=+new Date,t=l-(e-c),n=arguments;clearTimeout(o),t>0?o=setTimeout(function(){c=e,i.apply(null,n)},t):(c=e,i.apply(null,n))},r=n.element||e.getElementById("disqus_thread"),a=n.threashold||.75*t.innerHeight,r&&(addEventListener("scroll",s),addEventListener("resize",s))}}(document,window);
|
||||
|
||||
/* Custom settings for disqusLazy */
|
||||
!function(){document.querySelector(".disqus-lazy") && disqusLazy()}();
|
||||
!function(){document.querySelector(".disqus-lazy") && disqusLazy()}();
|
||||
|
||||
document.querySelectorAll(".kg-product-card a").forEach($a=>{$a.setAttribute("target","");$a.setAttribute("rel","")});
|
Loading…
Reference in New Issue
Block a user