Создать расширяемую платформу Муром 1.2

This commit is contained in:
2019-10-16 13:31:46 +03:00
parent 8752fdf1e8
commit 09d6342e55
8 changed files with 436 additions and 221 deletions

View File

@@ -0,0 +1,13 @@
// Create GUID / UUID in JavaScript?
// https://stackoverflow.com/a/2117523
муром.uuid = function()
{
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(
/[xy]/g,
function(c)
{
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
}
);
};