Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Author: Ivan Revelli

Digital solution partner

Get client screen size in a browser by Javascript

using this simple code you can have the size of your client area in pix function getScreenSize() { var w = window, d = document, e = d.documentElement, g = d.getElementsByTagName(‘body’)[0], x = w.innerWidth || e.clientWidth || g.clientWidth, y = w.innerHeight|| e.clientHeight|| g.clientHeight; return x + ‘px ‘ + y + ‘px’; } window.addEventListener(‘resize’,);

Happy Christmas 2016 from Synaptica Srl

Generating Random Numbers with Sensor Input

Orace Tips – Recursive query

select PK_ID from USERS start with FK_USER_PARENT = PK_USER connect by prior PK_ID = FK_USER_PARENT;

Delphi – Int to Hex and Hex to Int

int2hex example in delphi: var str : string; // hex value b : byte; begin b := 15; str := system.sysutils.inttohex(b,2); end; // the result in str will be : ‘0F’ hex2int example: var strHexVal : string; // hex value intVal : integer; begin strHexVal := ‘0F’; intVal := StrToInt(‘$’ + strHexVal); end; // the…
Read more

Synaptica @office