Commit 7488d8ce by Иван Кубота

Change url to simpler

parent cc627ac7
...@@ -326,7 +326,7 @@ export class VideoInputApp { ...@@ -326,7 +326,7 @@ export class VideoInputApp {
this.mAddress = this.mUiAddress.value; this.mAddress = this.mUiAddress.value;
this.mAudio = this.mUiAudio.checked; this.mAudio = this.mUiAudio.checked;
this.mVideo = this.mUiVideo.checked; this.mVideo = this.mUiVideo.checked;
this.mUiUrl.innerHTML = this.GetUrl(); this.mUiUrl.innerHTML = `<a href="${this.GetUrl()}">${this.GetUrl()}</a>`;
} }
public Ui_Update(): void { public Ui_Update(): void {
...@@ -334,15 +334,15 @@ export class VideoInputApp { ...@@ -334,15 +334,15 @@ export class VideoInputApp {
this.mUiAddress.value = this.mAddress; this.mUiAddress.value = this.mAddress;
this.mUiAudio.checked = this.mAudio; this.mUiAudio.checked = this.mAudio;
this.mUiVideo.checked = this.mVideo; this.mUiVideo.checked = this.mVideo;
this.mUiUrl.innerHTML = this.GetUrl(); this.mUiUrl.innerHTML = `<a href="${this.GetUrl()}">${this.GetUrl()}</a>`;
} }
private GenerateRandomKey() { private GenerateRandomKey() {
var result = ""; var result = "LUCID-"+(Math.random()*10|0);
for (var i = 0; i < 7; i++) { /*for (var i = 0; i < 7; i++) {
result += String.fromCharCode(65 + Math.round(Math.random() * 25)); result += String.fromCharCode(65 + Math.round(Math.random() * 25));
} }*/
return result; return result;
} }
private GetUrlParams() { private GetUrlParams() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment