-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.js
More file actions
48 lines (34 loc) · 1.03 KB
/
popup.js
File metadata and controls
48 lines (34 loc) · 1.03 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
function fn1(){
var str = document.getElementById("YT_Url").value;
var vOneLS = localStorage.getItem("vOneLocalStorage");
var current_link = vOneLS
}
document.getElementById('Extract').addEventListener('click', onclick
, true)
function onclick(){
fn1()
}
const keywords = []
document.getElementById('Keyword').addEventListener('click', onclick
, true)
function onclick(){
var key = document.getElementById("Keyword_input").value;
keywords.push(key)
}
var s = '<div id="YT_Url"></div>';
var htmlObject = document.createElement('div');
htmlObject.innerHTML = s;
htmlObject.getElementById("YT_Url").style.marginTop = something;
str = 'hello world'
function sendUserInfo() {
let userInfo = {
'string' : str
}
const request = new XMLHttpRequest()
request.open('POST', '/processUserInfo/${JSON.stringify(userInfo)}')
request.onload = () => {
const flaskMessage = request.responseText
console.log(flaskMessage)
}
request.send()
}