mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-22 20:31:21 +01:00
15 lines
356 B
JavaScript
15 lines
356 B
JavaScript
function uid() {
|
|
function s4() {
|
|
return Math.floor((1 + Math.random()) * 0x10000)
|
|
.toString(16)
|
|
.substring(1);
|
|
}
|
|
|
|
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
|
|
s4() + '-' + s4() + s4() + s4();
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
$('.withripple, .btn, .navbar a, .drawer-menu a').ripples();
|
|
});
|