Int_Prog/лаб3/lab3/public/scripts/variables.js

22 lines
922 B
JavaScript
Raw Normal View History

2024-01-18 23:29:33 +04:00
export const form = {
root: document.querySelector("#modal-form"),
fieldName: document.querySelector("#object-name"),
fieldPrice: document.querySelector("#object-price"),
fieldInfo: document.querySelector("#object-info"),
fieldPhotoPreview: document.querySelector("#object-preview-photo"),
fieldPhoto: document.querySelector("#object-photo"),
fieldCategorySelect: document.querySelector("#object-category"),
fieldRestaurantTypeSelect: document.querySelector("#object-restaurant-type")
};
export const modal = {
root: document.querySelector("#modal"),
submitButton: document.querySelector("#submit-button"),
title: document.querySelector("#modal-title")
};
export const serverPath = "http://localhost:3000";
export const parent = document.querySelector('#parent');
export const itemContainer = document.querySelector("#item-container");
export const menuList = document.querySelector("#menu-list");