Related to: v14.4.0-SNAPSHOT_grouped_attributes_(20201125)_r0
All elements with fg=blue
//the diagram properties
[includes]
bg=blue
var arr = [1,9,4,1,00,5,333,222]; | |
arr.sort(function(a,b){ | |
var _a=Number(a); | |
var _b=Number(b); | |
return _a - _b; | |
}); | |
console.log(arr); | |
/* | |
out: |
var a={a:0,b:0}; | |
var b={a:0,b:0}; | |
var c={}; | |
var d= a; | |
Object.assign(c,a); | |
console.log("a == b "+(a==b)); // false as b has different ptr than a | |
console.log("a == c "+(a==c)); // false as c has its ptr too | |
console.log("a == d "+(a==d)); // trueas the d is athe ptr referencing to the a | |
console.log("b == c "+(c==b)); // false |
<!DOCTYPE html> | |
<!-- | |
Created on Dec 9, 2020 at 2:53 PM -0800 | |
https://github.com/911992 | |
--> | |
<html> | |
<head> | |
<title>TODO supply a title</title> | |
<meta charset="UTF-8"> |
<!DOCTYPE html> | |
<!-- | |
Created on Dec 9, 2020 at 2:53 PM -0800 | |
https://github.com/911992 | |
--> | |
<html> | |
<head> | |
<title>TODO supply a title</title> | |
<meta charset="UTF-8"> |
<html> | |
<head> | |
<title>Kode</title> | |
</head> | |
<body> | |
<canvas id="c" width="200" height="200"> | |
</canvas> | |
<script> | |
var g2d = document.getElementById('c').getContext('2d'); |
function get_obj(){ | |
var obj={ | |
func:function(){ | |
console.log("Tehc"); | |
} | |
}; | |
return obj; | |
} | |
var a = get_obj(); | |
a.func(); |
<html> | |
<head> | |
<title>Kode</title> | |
</head> | |
<body> | |
<div id="a"> | |
</div> | |
<script> | |
var _img_el = document.createElement("img"); |
function obj(arg_a,arg_b){ | |
var res={ | |
a: arg_a, | |
b: arg_b, | |
fn:function(){ | |
console.log("a: "+this.a + " , b: "+this.b); | |
} | |
}; | |
return res; | |
} |
<!DOCTYPE html> | |
<!-- | |
https://github.com/911992 | |
--> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function rand_css_col(){ | |
var col = Math.random()*0xffffff; | |
return "#"+(("000000"+(col).toString(16)).substr(-6)); |
Related to: v14.4.0-SNAPSHOT_grouped_attributes_(20201125)_r0
All elements with fg=blue
//the diagram properties
[includes]
bg=blue