{"id":18,"date":"2025-08-29T09:25:58","date_gmt":"2025-08-29T09:25:58","guid":{"rendered":"https:\/\/vladi.dapho.net\/?page_id=18"},"modified":"2025-09-12T08:19:59","modified_gmt":"2025-09-12T08:19:59","slug":"elementor-18","status":"publish","type":"page","link":"https:\/\/vladi.dapho.net\/index.php\/elementor-18\/","title":{"rendered":""},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"18\" class=\"elementor elementor-18\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6fa5c4a e-flex e-con-boxed e-con e-parent\" data-id=\"6fa5c4a\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c6c5b0b elementor-widget elementor-widget-html\" data-id=\"c6c5b0b\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n  <meta charset=\"UTF-8\" \/>\r\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>\r\n  <title>Document<\/title>\r\n<\/head>\r\n<body onload=\"getPlaces()\">\r\n<button onclick=\"setReservation()\">Reservation<\/button>\r\n<button onclick=\"setBooking()\">Book<\/button>\r\n<button onclick=\"cancel()\">Cancel<\/button>\r\n<div id=\"response\"><\/div>\r\n<div id=\"squares\" style=\"width: 1000px; height: 1000px\"><\/div>\r\n<\/body>\r\n<script>\r\n  let hall_id;\r\n  const topa = [\r\n    [1242, 1238, 1232, 1230, 1227, 1225, 1222, 1221, 1218, 1218, 1220, 1221, 1223, 1227, 1228, 1232, 1240, 1245, 1211, 1206, 1200, 1195, 1192, 1188, 1186, 1185, 1183, 1182, 1182, 1183, 1186, 1190, 1192, 1195, 1200, 1206, 1212, 1176, 1170, 1165, 1158, 1155, 1152, 1150, 1148, 1147, 1146, 1146, 1146, 1148, 1151, 1152, 1155, 1160, 1165, 1171, 1178, 1143, 1136, 1132, 1126, 1122, 1118, 1116, 1115, 1112, 1111, 1111, 1111, 1111, 1112, 1115, 1118, 1122, 1127, 1132, 1138, 1146, 1108, 1103, 1098, 1092, 1088, 1082, 1080, 1077, 1076, 1075, 1073, 1073, 1075, 1076, 1078, 1081, 1085, 1088, 1093, 1100, 1106, 1112, 1077, 1072, 1065, 1058, 1055, 1050, 1048, 1045, 1042, 1041, 1040, 1040, 1040, 1041, 1042, 1043, 1046, 1051, 1055, 1060, 1063, 1070, 1080, 1020, 1016, 1012, 1010, 1006, 1005, 1003, 1003, 1002, 1003, 1005, 1007, 1010, 1012, 1016, 1020, 1025, 1031, 1041, 1047, 985, 981, 976, 973, 970, 968, 967, 966, 966, 965, 966, 970, 971, 973, 977, 982, 986, 992, 998, 1005, 1013, 952, 947, 943, 940, 937, 933, 931, 930, 930, 930, 931, 932, 933, 936, 938, 942, 948, 953, 960, 966, 973, 980, 931, 925, 918, 915, 910, 907, 902, 900, 896, 893, 892, 892, 892, 893, 896, 898, 902, 905, 908, 912, 918, 926, 932, 938, 946, 898, 891, 886, 882, 876, 872, 868, 865, 862, 861, 858, 857, 857, 858, 860, 862, 865, 866, 872, 876, 881, 886, 892, 898, 866, 860, 852, 846, 841, 836, 833, 830, 826, 825, 823, 822, 821, 821, 822, 823, 827, 830, 832, 836, 841, 848, 855, 861, 866, 835, 830, 822, 812, 807, 802, 797, 795, 790, 788, 786, 785, 783, 783, 783, 786, 788, 791, 795, 798, 801, 807, 813, 820, 828, 836, 795, 788, 782, 776, 770, 765, 760, 757, 755, 752, 751, 750, 750, 750, 750, 751, 753, 756, 758, 762, 768, 772, 780, 786, 795, 753, 746, 740, 733, 731, 726, 722, 718, 716, 715, 712, 712, 712, 712, 715, 717, 718, 721, 725, 730, 736, 741, 746, 755, 716, 710, 706, 701, 695, 692, 686, 683, 681, 680, 678, 678, 678, 680, 682, 685, 688, 692, 697, 701, 706, 712, 718, 683, 677, 671, 666, 662, 658, 655, 653, 651, 648, 646, 645, 645, 645, 646, 648, 650, 652, 655, 661, 665, 670, 676, 685, 918, 892, 867, 841, 817, 792, 767, 741, 717, 695, 672, 650, 627, 607, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 646, 671, 695, 718, 742, 768, 793, 818, 843, 868, 895, 922, 881, 856, 831, 806, 782, 757, 731, 707, 681, 657, 633, 611, 588, 567, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 578, 595, 618, 642, 666, 691, 717, 742, 767, 790, 815, 838, 862, 886, 786, 761, 736, 711, 686, 662, 637, 613, 591, 568, 545, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 536, 546, 562, 583, 605, 628, 652, 676, 701, 725, 750, 775, 800, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 563, 540, 516, 492, 468, 446, 423, 400, 377, 355, 332, 310, 291, 275, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 277, 292, 312, 333, 356, 378, 400, 422, 445, 467, 488, 510, 532, 555, 531, 508, 485, 462, 438, 415, 392, 370, 347, 323, 301, 280, 261, 245, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 253, 271, 292, 315, 337, 360, 381, 403, 426, 448, 471, 493, 516, 540, 423, 402, 380, 357, 336, 312, 290, 270, 248, 227, 213, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 223, 241, 260, 282, 306, 328, 351, 375, 397, 420, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 1087, 1128],\r\n    [293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 220],\r\n    [367, 403, 476, 592, 582, 547, 482, 445, 405, 372, 303, 338, 375, 413, 450, 488, 587, 608, 627, 637, 636, 638, 632, 615, 592, 492, 453, 418, 376, 342, 308, 288, 321, 355, 391, 428, 465, 505, 613, 632, 652, 667, 678, 676, 678, 676, 662, 646, 626, 602, 507, 470, 430, 392, 361, 325, 288, 230, 261, 296, 328, 363, 401, 437, 473, 508, 551, 657, 682, 723, 741, 756, 756, 758, 756, 742, 726, 705, 685, 656, 552, 512, 478, 442, 406, 370, 332, 297, 267, 233, 197, 233, 270, 302, 332, 376, 411, 447, 481, 515, 682, 720, 742, 760, 781, 802, 812, 791, 771, 752, 731, 698, 523, 488, 452, 417, 382, 338, 305, 271, 237, 205, ],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [335, 292, 248, 206, 168, 140, 111, 86, 71, 56, 48, 42, 38, 38, 42, 48, 56, 71, 86, 111, 140, 168, 206, 248, 292, 335, 402, 428, 450, 465, 476, 486, 491, 493, 493, 491, 486, 476, 465, 450, 428, 402, ],\r\n    [482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 445, 445, 445, 445, 445, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,],\r\n    [],\r\n    [\r\n      62, 100, 137, 100, 62, 100, 137, 100, 137, 175, 212, 175, 175, 212, 250,\r\n      212, 250, 287, 325, 287, 62, 100, 137, 100, 137, 175, 212, 175, 287,\r\n      325, 362, 325, 400, 437, 475, 437, 362, 400, 437, 400, 137, 175, 212,\r\n      175, 175, 212, 250, 212, 287, 325, 362, 325, 400, 437, 475, 437, 512,\r\n      550, 587, 550, 475, 512, 550, 512, 250, 287, 325, 287, 400, 437, 475,\r\n      437, 512, 550, 587, 550, 587, 625, 662, 625, 362, 400, 437, 400, 475,\r\n      512, 550, 512, 587, 625, 662, 625, 662, 700, 737, 700, 662, 700, 737,\r\n      700,\r\n    ],\r\n    [],\r\n  ];\r\n  const left = [\r\n    [696, 672, 650, 626, 605, 582, 560, 538, 515, 491, 467, 442, 418, 395, 372, 348, 325, 302, 711, 688, 666, 642, 618, 595, 571, 547, 525, 502, 480, 456, 432, 410, 386, 362, 338, 315, 291, 725, 702, 678, 655, 631, 608, 586, 562, 538, 515, 491, 468, 446, 422, 398, 375, 352, 330, 307, 283, 735, 710, 686, 663, 640, 617, 593, 571, 548, 526, 502, 480, 456, 432, 408, 386, 363, 340, 316, 292, 268, 746, 722, 700, 676, 652, 630, 606, 583, 560, 536, 512, 490, 466, 442, 420, 397, 373, 351, 328, 306, 282, 258, 757, 732, 708, 686, 662, 638, 616, 595, 571, 547, 525, 502, 478, 455, 432, 408, 387, 363, 341, 317, 293, 270, 246, 675, 653, 631, 608, 585, 562, 538, 515, 491, 466, 442, 418, 395, 372, 348, 326, 303, 281, 257, 233, 686, 662, 640, 616, 593, 570, 547, 525, 502, 478, 456, 432, 408, 386, 362, 338, 316, 295, 272, 248, 225, 698, 676, 652, 628, 603, 580, 557, 533, 510, 486, 463, 441, 418, 395, 372, 348, 326, 303, 281, 258, 235, 212, 756, 732, 708, 686, 663, 641, 617, 595, 572, 548, 525, 501, 478, 456, 432, 410, 386, 363, 342, 318, 295, 272, 250, 226, 203, 762, 740, 715, 693, 671, 648, 626, 605, 582, 558, 536, 513, 491, 468, 445, 421, 398, 375, 351, 327, 305, 282, 260, 236, 773, 751, 726, 702, 680, 657, 635, 612, 590, 567, 545, 522, 498, 476, 453, 431, 408, 386, 363, 340, 316, 292, 268, 246, 223, 790, 767, 743, 718, 696, 675, 652, 630, 606, 582, 558, 536, 512, 490, 467, 443, 422, 398, 376, 355, 332, 310, 286, 262, 238, 216, 781, 757, 732, 708, 686, 662, 638, 615, 592, 570, 547, 525, 502, 481, 458, 435, 411, 388, 366, 345, 322, 298, 276, 251, 228, 765, 741, 716, 692, 670, 646, 622, 600, 576, 553, 530, 507, 485, 461, 438, 416, 393, 371, 348, 325, 302, 278, 255, 231, 755, 730, 706, 682, 660, 636, 612, 588, 565, 541, 518, 495, 471, 447, 425, 402, 380, 357, 335, 311, 288, 265, 242, 770, 746, 722, 698, 676, 652, 628, 605, 582, 560, 537, 512, 488, 466, 445, 423, 400, 376, 355, 331, 308, 286, 262, 238, 881, 877, 872, 868, 863, 860, 857, 853, 848, 845, 836, 827, 813, 795, 656, 632, 608, 585, 561, 538, 516, 492, 470, 446, 422, 400, 377, 353, 187, 175, 167, 163, 160, 155, 152, 147, 142, 138, 133, 130, 907, 906, 901, 897, 893, 888, 886, 882, 878, 871, 858, 843, 825, 802, 688, 665, 642, 620, 596, 573, 550, 527, 503, 480, 456, 433, 411, 387, 363, 340, 316, 202, 181, 161, 150, 141, 133, 128, 123, 118, 115, 112, 110, 103, 100, 927, 923, 921, 916, 912, 908, 898, 887, 871, 851, 830, 678, 655, 632, 607, 582, 560, 537, 512, 490, 466, 442, 418, 396, 372, 348, 326, 208, 186, 165, 147, 131, 120, 107, 101, 97, 92, 87, 86, 82, 716, 692, 670, 646, 623, 598, 575, 550, 525, 500, 476, 455, 432, 407, 382, 358, 337, 312, 287, 960, 948, 931, 917, 900, 881, 862, 847, 832, 817, 800, 787, 765, 742, 676, 652, 631, 608, 586, 563, 540, 516, 495, 471, 447, 423, 400, 376, 352, 330, 261, 240, 220, 202, 187, 166, 150, 133, 117, 101, 85, 70, 53, 35, 980, 972, 956, 940, 923, 908, 890, 873, 856, 840, 823, 805, 783, 760, 686, 662, 641, 618, 595, 572, 550, 526, 502, 480, 457, 435, 412, 388, 366, 343, 320, 225, 202, 183, 167, 151, 136, 120, 102, 86, 68, 56, 38, 22, 7, 953, 937, 922, 907, 893, 876, 860, 838, 817, 802, 780, 726, 702, 678, 655, 632, 608, 585, 561, 540, 517, 493, 471, 447, 423, 401, 378, 355, 332, 308, 285, 208, 186, 165, 147, 128, 113, 97, 82, 65, 48, 735, 710, 687, 665, 641, 620, 596, 573, 550, 527, 505, 482, 460, 436, 412, 388, 365, 343, 320, 296, 273, 701, 678, 655, 632, 610, 586, 562, 540, 517, 493, 471, 448, 426, 403, 380, 356, 332, 308, 632, 608, 585, 562, 538, 516, 493, 470, 447, 425, 402, 378, 852, 857, ],\r\n    [588, 563, 538, 513, 488, 463, 438, 413, 388, 363, 338, 313, 288, 263, 238, 213, 188, 588, 563, 538, 513, 488, 463, 438, 413, 388, 363, 338, 313, 288, 263, 238, 213, 188, 563, 538, 513, 488, 463, 438, 413, 388, 363, 338, 313, 288, 263, 238, 213, 188, 590, 565, 540, 515, 490, 465, 440, 415, 390, 365, 340, 315, 290, 265, 240, 215, 190, 640, 615, 590, 565, 540, 515, 490, 465, 440, 415, 390, 365, 340, 315, 290, 265, 240, 215, 190, 165, 140, 588, ],\r\n    [320, 313, 325, 521, 570, 631, 670, 683, 685, 680, 287, 275, 263, 261, 266, 275, 350, 383, 417, 460, 500, 537, 588, 620, 651, 722, 728, 733, 735, 723, 711, 242, 228, 215, 208, 215, 221, 230, 308, 342, 378, 411, 453, 490, 525, 565, 607, 642, 675, 707, 767, 773, 781, 788, 785, 773, 762, 180, 166, 152, 140, 132, 128, 132, 133, 137, 150, 235, 270, 342, 378, 428, 465, 540, 576, 630, 663, 700, 735, 766, 840, 852, 857, 863, 867, 870, 862, 853, 837, 821, 110, 97, 87, 73, 60, 51, 57, 62, 65, 67, 171, 196, 236, 271, 306, 343, 643, 678, 715, 751, 787, 820, 923, 928, 933, 940, 945, 938, 925, 913, 902, 887, ],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [],\r\n    [837, 860, 863, 850, 823, 790, 751, 710, 671, 631, 592, 552, 512, 473, 433, 393, 355, 315, 275, 235, 196, 161, 136, 121, 126, 147, 206, 243, 282, 321, 358, 397, 436, 473, 512, 550, 588, 627, 665, 703, 741, 778,],\r\n    [788, 763, 738, 713, 688, 663, 638, 613, 588, 563, 538, 513, 488, 463, 438, 413, 388, 363, 338, 313, 288, 263, 238, 213, 188, 788, 763, 738, 713, 688, 788, 763, 738, 713, 688, 663, 638, 613, 588, 563,],\r\n    [],\r\n    [\r\n      750, 787, 750, 712, 500, 537, 500, 462, 575, 612, 575, 537, 700, 737,\r\n      700, 662, 800, 837, 800, 762, 250, 287, 250, 212, 425, 462, 425, 387,\r\n      575, 612, 575, 537, 650, 687, 650, 612, 850, 887, 850, 812, 125, 162,\r\n      125, 87, 300, 337, 300, 262, 425, 462, 425, 387, 500, 537, 500, 462,\r\n      575, 612, 575, 537, 800, 837, 800, 762, 200, 237, 200, 162, 350, 387,\r\n      350, 312, 425, 462, 425, 387, 725, 762, 725, 687, 150, 187, 150, 112,\r\n      200, 237, 200, 162, 275, 312, 275, 237, 375, 412, 375, 337, 625, 662,\r\n      625, 587,\r\n    ],\r\n    [],\r\n  ];\r\n  const responseDiv = document.getElementById(\"response\");\r\n  const squaresDiv = document.getElementById(\"squares\");\r\n  const url = \"https:\/\/naroden-test.teatar.bg\/api\/national\/\";\r\n\r\n  let json_data;\r\n  async function getPlaces() {\r\n    const params = new URLSearchParams(window.location.search);\r\n\r\n    fetch(\"https:\/\/vladi.dapho.net\/wp-json\/myproxy\/v1\/getEventSeats\", {\r\n      method: \"POST\",\r\n      headers: { \"Content-Type\": \"application\/json\" },\r\n      body: JSON.stringify({ time: params.get(\"event_time\"), \"api_id\": 1, event: params.get(\"event_id\") })\r\n    })\r\n    .then(res => res.json())\r\n    .then(data => {\r\n      json_data = data;\r\n      hall_id = json_data.hall_id - 1;\r\n      draw();\r\n    })\r\n    .catch((error) => {\r\n      responseDiv.textContent = \"Error: \" + error;\r\n    });\r\n  }\r\n  async function setReservation() {\r\n    const params = new URLSearchParams(window.location.search);\r\n    var str = `{\\n\\t\"order\":9876543,\\n\\t\"event\":${params.get(\"event_id\")},\\n\\t\"seats\":[`;\r\n    var first = true;\r\n    json_data.seats.forEach((seat) => {\r\n      if (seat.status === 0) {\r\n        if (!first) {\r\n          str += \",\";\r\n        }\r\n        str += `{\"id\": ${seat.id}}`;\r\n        first = false;\r\n      }\r\n    });\r\n    str += '],\\n\"card\":\"\"\\n}';\r\n    fetch(\"https:\/\/vladi.dapho.net\/wp-json\/myproxy\/v1\/setReservation\", {\r\n      method: \"POST\",\r\n      headers: {\r\n        \"Content-Type\": \"application\/json\",\r\n      },\r\n      body: str,\r\n    })\r\n            .then((response) => {\r\n              if (!response.ok) throw new Error(\"Network response was not ok\");\r\n              return response.json();\r\n            })\r\n            .then((data) => {\r\n              responseDiv.innerHTML = `<pre>${JSON.stringify(data, null, 2)}<\/pre>`;\r\n            })\r\n            .catch((error) => {\r\n              responseDiv.textContent = \"Error: \" + error;\r\n            });\r\n  }\r\n  async function setBooking() {\r\n    var str =\r\n            \"{\\n\" +\r\n            '    \"order\":9876543,\\n' +\r\n            '    \"is_reservation\":\"True\",\\n' +\r\n            '    \"client_email\":\"test1@gmail.com\",\\n' +\r\n            '    \"client_name\":\"test1\"\\n' +\r\n            \"}\";\r\n    fetch(\"https:\/\/vladi.dapho.net\/wp-json\/myproxy\/v1\/setBooking\", {\r\n      method: \"POST\",\r\n      headers: {\r\n        \"Content-Type\": \"application\/json\",\r\n      },\r\n      body: str,\r\n    })\r\n            .then((response) => {\r\n              if (!response.ok) throw new Error(\"Network response was not ok\");\r\n              return response.json();\r\n            })\r\n            .then((data) => {\r\n              responseDiv.innerHTML = `<pre>${JSON.stringify(data, null, 2)}<\/pre>`;\r\n            })\r\n            .catch((error) => {\r\n              responseDiv.textContent = \"Error: \" + error;\r\n            });\r\n  }\r\n  function cancel() {\r\n    fetch(url + \"setCancel\", {\r\n      method: \"POST\",\r\n      headers: {\r\n        \"Content-Type\": \"application\/json\",\r\n      },\r\n      body: JSON.stringify({\r\n        data: \"ew0KICAgICAgICAib3JkZXIiOjM0NTY5MiwNCiAgICAgICAgInRpY2tldHMiOlsxNjY3NzU3LCAxNjY3NzU4XX0=\",\r\n        checksum: \"a686a424c40c4b317eec18a63e67ea693681ed7e\",\r\n      }),\r\n    })\r\n            .then((response) => {\r\n              if (!response.ok) throw new Error(\"Network response was not ok\");\r\n              return response.json();\r\n            })\r\n            .then((data) => {\r\n              responseDiv.innerHTML = `<pre>${JSON.stringify(data, null, 2)}<\/pre>`;\r\n            })\r\n            .catch((error) => {\r\n              responseDiv.textContent = \"Error: \" + error;\r\n            });\r\n  }\r\n  function draw() {\r\n    var i = 0;\r\n    json_data.seats.forEach((seat) => {\r\n      const seatDiv = document.createElement(\"div\");\r\n      seatDiv.id =  `${seat.id}`;\r\n      seatDiv.textContent = `${seat.n}`;\r\n      seatDiv.style.width = \"22px\";\r\n      seatDiv.style.height = \"22px\";\r\n      seatDiv.style.border = \"1px solid black\";\r\n      seatDiv.style.position = \"absolute\";\r\n      seatDiv.style.top = `${topa[hall_id][i]}px`;\r\n      seatDiv.style.left = `${left[hall_id][i]}px`;\r\n      i++;\r\n      if (seat.status === 1) {\r\n        seatDiv.style.backgroundColor = \"green\";\r\n      }else if(seat.status === 3){\r\n        seatDiv.style.backgroundColor = \"orange\";\r\n      }else if(seat.status === 4){\r\n        seatDiv.style.backgroundColor = \"red\"\r\n      } else if (seat.status === 7) {\r\n        seatDiv.style.backgroundColor = \"blue\";\r\n      } else if (seat.status === 9) {\r\n        seatDiv.style.backgroundColor = \"purple\";\r\n      }\r\n      seatDiv.addEventListener(\"click\", () => {\r\n        if (seat.status === 1) {\r\n          seatDiv.style.backgroundColor = \"white\";\r\n          seat.status = 0;\r\n        } else if (seat.status === 0) {\r\n          seatDiv.style.backgroundColor = \"green\";\r\n          seat.status = 1;\r\n        }\r\n      });\r\n      squaresDiv.appendChild(seatDiv);\r\n    });\r\n  }\r\n  async function hmacSHA1(key, message) {\r\n    const enc = new TextEncoder();\r\n    const cryptoKey = await crypto.subtle.importKey(\r\n            \"raw\",\r\n            enc.encode(key),\r\n            { name: \"HMAC\", hash: \"SHA-1\" },\r\n            false,\r\n            [\"sign\"]\r\n    );\r\n    const signature = await crypto.subtle.sign(\r\n            \"HMAC\",\r\n            cryptoKey,\r\n            enc.encode(message)\r\n    );\r\n    return Array.from(new Uint8Array(signature))\r\n            .map((b) => b.toString(16).padStart(2, \"0\"))\r\n            .join(\"\");\r\n  }\r\n<\/script>\r\n<\/html>\r\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Document Reservation Book Cancel<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-18","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":62,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages\/18\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/pages\/18\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/vladi.dapho.net\/index.php\/wp-json\/wp\/v2\/media?parent=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}