Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hit3nkuro authored Jan 11, 2024
1 parent 60982eb commit 980e6c4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
34 changes: 21 additions & 13 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,19 @@ main {
*::-webkit-scrollbar {
width: 6px;
height: 6px;
margin-left: 15px;
}
*::-webkit-scrollbar-track {
border-radius: 10px;
background: rgba(0,0,0,0.1);
background: var(--color-gray);
}
*::-webkit-scrollbar-thumb{
border-radius: 10px;
background: rgba(0,0,0,0.2);
background: var(--color-blue);
}
*::-webkit-scrollbar-thumb:hover{
background: rgba(0,0,0,0.4);
background: var(--color-dark-blue);
}
*::-webkit-scrollbar-thumb:active{
background: rgba(0,0,0,.9);
background: var(--color-black);
}
body {
background-color: var(--color-white);
Expand Down Expand Up @@ -83,36 +82,45 @@ header {
width: 100%;
flex-grow: 1;
margin-bottom: 15px;
overflow-y: auto;
border-radius: 0;
overflow-y: scroll;
resize: none;
padding: 5px;
box-shadow: 1px 1px 10px var(--color-gray);
box-shadow: 1px 1px 10px var(--color-gray);
border: 1px solid var(--color-gray);
}
#warranty-check-textarea:focus {
outline: none;
border: 1px solid var(--color-dark-gray);
}
#warranty-check-button {
border: 1px solid var(--color-gray);
width: 100%;
height: 40px;
cursor: pointer;
font-style: normal;
font-size: medium;
font-weight: 700;
background-color: var(--color-white);
transition: .2s;
color: var(--color-dark-gray);
border: 1px solid var(--color-dark-gray);
box-shadow: 1px 1px 10px var(--color-gray);
}

#warranty-check-button:hover {
background-color: var(--color-blue);
color: var(--color-white);
border: 3px solid var(--color-blue);
border: 1px solid var(--color-blue);
}

#warranty-check-button:focus {

}

/*Таблица*/
.warranty-check-result-table {
height: 60vh;
overflow: overlay;
scrollbar-gutter: stable;
overflow-y: scroll;
overflow-x: auto;
box-shadow: 1px 1px 10px var(--color-gray);
}
.warranty-check-result-table table {
Expand Down
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ function checkWarranty() {
let imeiArray = $(textAreaSelector).val().split('\n');
imeiArray = imeiArray.filter((temp) => imeiRegExp.test(temp));


imeiArray.forEach( async (imei) => {
if ($('tr#'+imei).length == 0) {
let dataString = { "shortName" : "ru", "imei" : imei};
postData(apiUrl, dataString).then((data) => createRow(dataProcessing(data)));
postData(apiUrl, dataString).then((data) => {
createRow(dataProcessing(data))
});
}
});
}
Expand Down

0 comments on commit 980e6c4

Please sign in to comment.