lcars-moderne
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,0 +0,0 @@ (()=>{var O=Object.create;var b=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var R=(p,t)=>()=>(t||p((t={exports:{}}).exports,t),t.exports);var V=(p,t,c,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of j(t))!P.call(p,d)&&d!==c&&b(p,d,{get:()=>t[d],enumerable:!(f=T(t,d))||f.enumerable});return p};var Y=(p,t,c)=>(c=p!=null?O(F(p)):{},V(t||!p||!p.__esModule?b(c,"default",{value:p,enumerable:!0}):c,p));var k=R((E,v)=>{(function(p){var t=function(e){return new m(e)};t.version="0.6.8",typeof v<"u"&&v.exports?v.exports=t:typeof define=="function"&&define.amd?define(function(){return t}):p.typogr=t;var c=function(e,s){return new RegExp(e,s)},f=/<(\/)?(style|pre|code|kbd|script|math|title)[^>]*>/i,d=t.amp=function(e){var s=/(\s| )(&|&|&\#38;)(\s| )/g,n=/(<[^<]*>)?([^<]*)(<\/[^<]*>)?/g;if(!(!e&&typeof e!="string"))return e.replace(n,function(r,i,o,a){return i=i||"",a=a||"",i.match(f)||(o=o.replace(s,'$1<span class="amp">&</span>$3')),i+o+a})},L=t.ord=function(e){if(!(!e&&typeof e!="string")){var s=y(e),n=[],r=!1,i,o=/(\d+)(st|nd|rd|th)/g;return s.forEach(function(a){a.type==="tag"?(n.push(a.txt),i=f.exec(a.txt),i&&i[1]===void 0?r=!0:r=!1):r?n.push(a.txt):n.push(a.txt.replace(o,'$1<span class="ord">$2</span>'))}),n.join("")}},A=t.initQuotes=function(e){var s=c(`(?:(?:<(?:p|h[1-6]|li|dt|dd)[^>]*>|^)\\s*(?:<(?:a|em|span|strong|i|b)[^>]*>\\s*)*)(?:("|“|“)|('|‘|‘))`,"i");if(!(!e&&typeof e!="string"))return e.replace(s,function(n,r,i){var o=r?"dquo":"quo",a=r||i;return[n.slice(0,n.lastIndexOf(a)),'<span class="',o,'">',a,"</span>"].join("")})},S=t.widont=function(e){var s="a|em|span|strong|i|b",n="(?:<(?:"+s+")[^>]*?>)*?[^\\s<>]+(?:</(?:"+s+")[^>]*?>)*?",r=c("(\\s+"+n+"\\s+"+n+")(?:\\s+)([^<>\\s]+(?:\\s*</(?:a|em|span|strong|i|b)[^>]*?>\\s*\\.*)*?(?:\\s*?</(?:p|h[1-6]|li|dt|dd)>|$))","gi");return e.replace(r,'$1<span class="widont"> </span>$2')},I=t.caps=function(e){var s=y(e),n=[],r=!1,i,o=c("((\\b[A-Z\\d]*[A-Z]\\d*[A-Z][A-Z\\d']*\\b)|(\\b[A-Z]+\\.\\s?(?:[A-Z]+\\.\\s?)+)(?:\\s|\\b|$))","g");return s.forEach(function(a){a.type==="tag"?(n.push(a.txt),i=f.exec(a.txt),i&&i[1]===void 0?r=!0:r=!1):r?n.push(a.txt):n.push(a.txt.replace(o,function(g,_,l,u){var w,$;return l?'<span class="caps">%s</span>'.replace("%s",l):(u.slice(-1)===" "?(w=u.slice(0,-1),$=" "):(w=u,$=""),'<span class="caps">%s1</span>%s2'.replace("%s1",w).replace("%s2",$))}))}),n.join("")};t.typogrify=function(e){var s=e;return e.jquery&&e.html&&(s=e.html()),s=d(s),s=S(s),s=Z(s),s=I(s),s=A(s),s=L(s),s};var Z=t.smartypants=function(e){var s=y(e),n=[],r=[],i="",o="",a=!1,g="",_,l;return s.forEach(function(u){if(u.type==="tag")n.push(u.txt),(o=f.exec(u.txt))!==null&&(i=o[2].toLowerCase(),o[1]?(r.length>0&&i===r[r.length-1]&&r.pop(),r.length===0&&(a=!1)):(r.push(i),a=!0));else{if(l=u.txt,l=l.replace(/(rock )'n'( roll)/gi,"$1’n’$2"),_=l.slice(-1),!a)switch(l=B(l),l=z(l),l=C(l),l=D(l),l){case"'":/\S/.test(g)?l="’":l="‘";break;case'"':/\S/.test(g)?l="”":l="“";break;default:l=Q(l)}g=_,n.push(l)}}),n.join("")},y=t.tokenize=function(e){for(var s=[],n=0,r=/([^<]*)(<[^>]*>)/gi,i;(i=r.exec(e))!==null;){var o=i[1],a=i[2];o&&s.push({type:"text",txt:o}),s.push({type:"tag",txt:a}),n=r.lastIndex}return r.lastIndex<=e.length&&(e.slice(-1)=="."&&e.slice(-2)!=".."?(s.push({type:"text",txt:e.slice(n,e.length-1)}),s.push({type:"text",txt:e.slice(-1)})):s.push({type:"text",txt:e.slice(n)})),s},B=t.smartEscapes=function(e){return e.replace(/\\"/g,""").replace(/\\'/g,"'").replace(/\\-/g,"-").replace(/\\\./g,".").replace(/\\\\/g,"\").replace(/\\`/g,"`")},z=t.smartDashes=function(e){return e.replace(/---/g,"—").replace(/([^<][^!]|[^!]|^)--(?!>)/g,"$1–")},C=t.smartEllipses=function(e){return e.replace(/\.\.\./g,"…").replace(/\. \. \./g,"…")},D=t.smartBackticks=function(e){return e.replace(/``/g,"“").replace(/''/g,"”")},Q=t.smartQuotes=function(e){var s="[!\"#\\$\\%\\'()*+,-.\\/:;<=>?\\@\\[\\\\]\\^_`{|}~]",n="(?=%s\\B)".replace("%s",s),r="[^\\ \\t\\r\\n\\[\\{\\(\\-]",i="–|—",o=c("(\\s| |--|&[mn]dash;|"+i+"|ȁ[34];)'(?=\\w)","g"),a=c("("+r+")'(?!\\s | s\\b | \\d)","g"),g=c("("+r+")'(?!\\s | s\\b)","g"),_=c("(\\s| |--|&[mn]dash;|"+i+'|ȁ[34];)"(?=\\w)',"g"),l=c('"(?=\\s)',"g"),u=c("("+r+')"',"g");return e.replace(c("^'%s".replace("%s",n),"g"),"’").replace(c('^"%s'.replace("%s",n),"g"),"”").replace(/"'(?=\w)/g,"“‘").replace(/'"(?=\w)/g,"‘“").replace(/\b'(?=\d{2}s)/g,"’").replace(o,"$1‘").replace(a,"$1’").replace(g,"$1’$2").replace("'","’").replace(_,"$1“").replace(l,"”").replace(u,"$1”").replace('"',"“")},m=function(e){this._wrapped=e},W=function(e,s){return s?t(e).chain():e},H=function(e,s){m.prototype[e]=function(){return W(s.call(t,this._wrapped),this._chain)}},M=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},h;for(h in t)t.hasOwnProperty(h)&&M(t[h])&&H(h,t[h]);m.prototype.chain=function(){return this._chain=!0,this},m.prototype.value=function(){return this._wrapped}})(E)});var x=Y(k(),1);function q(){document.querySelectorAll(".content").forEach(function(c){c.innerHTML=x.default.typogrify(c.innerHTML)});let p=document.getElementById("co");p.addEventListener("wheel",c=>{p.scrollWidth>p.clientWidth&&(c.preventDefault(),p.scrollLeft+=c.deltaY)}),p.classList.add("columnar");let t=document.getElementById("scrolldir");t.classList.add("vis"),t.addEventListener("click",c=>{p.classList.toggle("columnar")?t.textContent="Scroll Horizontally \u27A1":t.textContent="Scroll Vertically \u2B07"})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",q):q();})(); |
{ | ||
"name": "lcars-moderne", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Personal blog CSS theme", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1193573
1229