-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzap.txt
71 lines (57 loc) · 2.26 KB
/
zap.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
????version=1.0.0
<!-- <meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" /> -->
// fetch('http://cm32.ru.xsph.ru/js/cat.json')
// .then((response) => response.json())
// .then(
// (dtj) => (
// (dataCond = dtj.Worksheet[1].Бренд + dtj.Worksheet[1].Артикул),
// (elem.innerHTML = dataCond),
// (elem2.innerHTML = dtj.Worksheet[1].Цена),
// (elem4.src = dtj.Worksheet[1].Изображение),
// console.log(dtj)
// )
// );
// const condWrapper = document.getElementById('cond__wrapper');
// const brand = document.getElementById('brand');
// const art = document.getElementById('art');
// const createTemplateCondItem = (data) => {
// return `
// <div class="cond__item">
// <div class="cond__item-image">
// <img src="${
// data.Изображение ? data.Изображение.split(',')[0] : ''
// }" alt="Модель" width="280px" height="207px" />
// </div>
// <div class="cond__item-brand">Бренд: ${data.Бренд}</div>
// <div class="cond__item-article">Артикул: ${data.Артикул}</div>
// <div class="cond__item-cost">Цена: ${data.Цена}</div>
// </div>
// `;
// };
// fetch(requestURLBaseCond)
// .then((response) => response.json())
// .then((data) => {
// if (data) {
// data.Worksheet.forEach((item) => {
// condWrapper.innerHTML += createTemplateCondItem(item);
// console.log(item);
// });
// }
// });
/****************geo_begin*********/
/****************geo_end*********/
<!-- <button id="but11">PRESS</button> -->
/*************************************************/
/////////////Button_PRESS begin//////////////////////
/*************************************************/
const but11 = document.getElementById('but11');
const section1 = document.getElementById('section-1');
but11.addEventListener('click', () => {
// section1.classList.remove('active');
section1.classList.toggle('active');
});
/*************************************************/
/////////////Button_PRESS end////////////////////////
/*************************************************/
background-color: rgb(190, 187, 187);