LoginSignup
0
0

More than 5 years have passed since last update.

short codex on the apps.

Last updated at Posted at 2018-03-21
<!-- codex html: silence is golden -->
<div id="app"></div>
/*codex css*/
.card{/*sysname:mejor*/}
.card.has-line{/*has-XXXXX: parts*/}
.card.type-small{/*type-XXXX: if multiple type */}
.card.type-big{}
.card.of-abc{/*of-XXXX:minor or yourself */}

/*codex js*/
//common is fn. check is is.
var fn={},is={}/*var is lent*/
;
let a=0,b=0,c=0/*let is minor variable*/
,url='https://gnjo.github.io/'
;/*sequence mark the semicolon*/
let draw=()=>{ /*2nd let is minor varb*/}
,log=()=>{}
,f1=()=>{ /*short varb is f or f0 f1 f2 f3 ...*/ }
,cmd=function(ev){ /*event handler is full function*/}
,cmdEx=function(obj){return function(ev){ /*obj and event handler version*/
 // this.textContent =obj.str;
}}
,send=(url,opt)=>{return new Promise(sol=>{
 //promise
})}
,lex=(data)=>{
 /*sync*/
 return Promise.resolve(data).then(d=>{ /*async*/ })
}
;
fetch(url).then(d=>d.text())
 .then(log)
 .then(draw)
 .then(f1)
;/*chaining is cool*/
document.body.onkeydown=cmd;
document.body.oninput=cmdEx({'str':'xxxxx'});
;
(function(root){/*objection*/
 /*lent*/
 var ls=root.localStorage,fn=root.fn||{},is=root.is||{}
 ;
 function entry(obj){
  let o={}
  o.calc=()=>{ ;return o}
  return o;
 }
 root.xyz =entry;
})(this)
;
//console.log(window.xyz);

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0