src/ts/client/global.ts
Function initForm
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private initForm() {
let form:any = window.document.getElementById("cv-form");
let input:any = form.querySelector(".form__file-input");
let label:any = form.querySelector(".form__file-label");
- Create a ticketCreate a ticket
Function initMenuItems
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private initMenuItems() {
let menuItems:any = window.document.querySelectorAll(".menu__item a");
let menuItemsHandler = (e, menuItem) => {
e.preventDefault();
- Create a ticketCreate a ticket
Function initLeadButtons
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private initLeadButtons() {
let leadButtons:any = window.document.querySelectorAll(".button--lead");
let leadButtonsHandler = (e, leadButton) => {
e.preventDefault();
- Create a ticketCreate a ticket
Function initLogotype
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private initLogotype() {
let logotype:any = window.document.querySelector(".logotype--header");
let logotypeHandler = (e, logotype) => {
e.preventDefault();
- Create a ticketCreate a ticket