This repository was archived by the owner on Apr 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
54 lines (42 loc) · 1.75 KB
/
Copy pathtest.html
File metadata and controls
54 lines (42 loc) · 1.75 KB
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
<html>
<head>
<script>
var checkURL =
'https://burger-cors.herokuapp.com/https://api-metrika.yandex.ru/management/v1/counter/41649664/logrequests/evaluate?date1=2016%2D01%2D01&date2=2016%2D01%2D31&fields=ym%3Apv%3AdateTime%2Cym%3Apv%3Areferer&source=hits&oauth_token=AQAAAAAAltmcAAU5eiaXiDteZEe0nNxe1Tb_7lc'
var createURL =
'https://burger-cors.herokuapp.com/https://api-metrika.yandex.ru/management/v1/counter/41649664/logrequests?date1=2018%2D01%2D01&date2=2018%2D01%2D31&fields=ym%3Apv%3AdateTime%2Cym%3Apv%3Areferer&source=hits&oauth_token=AQAAAAAAltmcAAU5eiaXiDteZEe0nNxe1Tb_7lc'
var getURL =
'https://burger-cors.herokuapp.com/https://api-metrika.yandex.ru/management/v1/counter/41649664/logrequest/1592905/part/0/download?oauth_token=AQAAAAAAltmcAAU5eiaXiDteZEe0nNxe1Tb_7lc'
var infoURL = 'https://burger-cors.herokuapp.com/https://api-metrika.yandex.ru/management/v1/counter/41649664/logrequest/1592905?oauth_token=AQAAAAAAltmcAAU5eiaXiDteZEe0nNxe1Tb_7lc'
// fetch(getURL, { method: 'GET' })
// .then(response => response.json())
// .then(data => console.log(data))
// fetch(createURL, { method: 'POST' })
// .then(response => response.json())
// .then(data => console.log(data))
var addScript = function (src) {
// try {
var elem = document.createElement('script')
elem.src = src
// elem.type = 'application/json'
document.head.appendChild(elem)
// } catch (e) {}
}
var onMetrikaResponse = function (response) {
console.log(response)
}
function test() {
const t = 2;
function get()
}
</script>
</head>
<body>
<form>
<select>
<option>test1</option>
<option>test2</option>
</select>
</form>
</body>
</html>