Skip to content

Commit a085895

Browse files
author
patched.codes[bot]
committed
Patched /Users/user/Documents/GitHub/example-python/v.js
1 parent 11e9d7b commit a085895

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

v.js

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,39 @@ function onClear() {
4242
document.getElementById("vipurl").value = "";
4343
}
4444
function onShare() {
45-
navigator.clipboard.writeText("https://" + document.domain + "/v.html?vv=" + document.getElementById("vipurl").value)
45+
navigator.clipboard.writeText("https://" + document.domain + "/v.html?vv=" + document.getElementById("vipurl").value)
4646
}
4747
function onPlay() {
48-
var e = document.getElementById("jk"),
49-
t = e.options[e.selectedIndex].value,
50-
n = document.getElementById("vipurl").value,
51-
o = document.getElementById("play");
52-
0 < n.length && (o.src = t + n);
48+
var e = document.getElementById("jk"),
49+
t = e.options[e.selectedIndex].value,
50+
n = document.getElementById("vipurl").value,
51+
o = document.getElementById("play");
52+
0 < n.length && (o.src = t + n);
5353
}
5454
function getQueryVariable(variable)
5555
{
56-
var query = window.location.search.substring(1);
57-
var vars = query.split("&");
58-
for (var i=0;i<vars.length;i++) {
59-
var pair = vars[i].split("=");
60-
if(pair[0] == variable){return pair[1];}
61-
}
62-
return(false);
56+
var query = window.location.search.substring(1);
57+
var vars = query.split("&");
58+
for (var i=0;i<vars.length;i++) {
59+
var pair = vars[i].split("=");
60+
if(pair[0] == variable){return pair[1];}
61+
}
62+
return(false);
6363
}
6464
function vipvideovalue()
6565
{
66-
if (getQueryVariable("vv").length>1) {
67-
document.getElementById("vipurl").value = getQueryVariable("vv");
68-
} else {
69-
70-
}
66+
if (getQueryVariable("vv").length>1) {
67+
document.getElementById("vipurl").value = getQueryVariable("vv");
68+
} else {
69+
70+
}
7171
}
7272
vipvideovalue();
73+
74+
// Add the new method for Django endpoint /health
75+
app.get('/health', function (req, res) {
76+
res.send('ok');
77+
});
7378
</script>
7479
</body>
7580
</html>
@@ -79,9 +84,9 @@ const Status = "HTTP/1.1 200 OK";
7984
const Headers = {};
8085
const Data = body;
8186
const Response = {
82-
status: Status,
83-
//headers: Headers, // Optional.
84-
body: Data // Optional.
87+
status: Status,
88+
//headers: Headers, // Optional.
89+
body: Data // Optional.
8590
};
8691

8792
$done(Response);

0 commit comments

Comments
 (0)