mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 18:12:26 +03:00
14 lines
306 B
PHP
14 lines
306 B
PHP
<script <?= vars('attributes') ?>>
|
|
window.vars = (function () {
|
|
const vars = <?= json_encode(script_vars()) ?>;
|
|
|
|
return (key) => {
|
|
if (!key) {
|
|
return vars;
|
|
}
|
|
|
|
return vars[key] || undefined;
|
|
};
|
|
})();
|
|
</script>
|
|
|