diff --git a/api/README.md b/api/README.md
index 8687ee5..2164b67 100644
--- a/api/README.md
+++ b/api/README.md
@@ -17,7 +17,6 @@ Expecting a future where clickstream data are more and more important, because r
- torrent size
- session id
- action #
-- rank #
- screen resolution
- expected to be critical for ranking of video
- User Agent
diff --git a/static/bundle.js b/static/bundle.js
index 9f345ea..d9eff73 100644
--- a/static/bundle.js
+++ b/static/bundle.js
@@ -2,6 +2,7 @@ function searchTriggered() {
let searchbox = document.getElementById("searchbox");
let query = searchbox.value
searchFor(query);
+ passQueryToResultpage(query)
}
async function searchFor(query) {
@@ -23,24 +24,11 @@ function passResultToResultpage(results) {
results: JSON.stringify(results)
}, '*');
}
-/**
- * Sends telemetry payload, adds actionid and sessionid to it. IP is never logged.
- */
-function sendTelemetry(payload){
- payload.aid = actionid;
- actionid = actionid + 1
- if (sessionid == undefined){
- sessionid = Math.round((Math.random()-0.5)*Math.pow(2,32))
- payload.sid = sessionid;
- }else{
- payload.sid = sessionid;
- }
-
- (async (payload) => {
- await fetch('https://torrent-paradise.ml/api/telemetry', {
- method: 'POST',
- body: JSON.stringify(payload)
- })
- })(payload);
+function passQueryToResultpage(query) {
+ let resultPageIframe = document.getElementById("resultPage");
+ resultPageIframe.contentWindow.postMessage({
+ type: "query",
+ query: query
+ }, '*');
}
\ No newline at end of file
diff --git a/static/resultpage/index.html b/static/resultpage/index.html
index e33a0f6..a62088e 100644
--- a/static/resultpage/index.html
+++ b/static/resultpage/index.html
@@ -13,7 +13,7 @@
{{ props.row.text }}
- {{ props.row.len }}
+ {{ props.row.length }}
{{ props.row.s }}
@@ -23,7 +23,7 @@
-
+
@@ -33,5 +33,6 @@
+