From 81071b59445d702d14a80241f409fc282d509f1f Mon Sep 17 00:00:00 2001 From: RblSb Date: Wed, 4 Mar 2020 20:56:03 +0300 Subject: Template url --- res/client.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'res') diff --git a/res/client.js b/res/client.js index d603436..a500324 100644 --- a/res/client.js +++ b/res/client.js @@ -528,6 +528,12 @@ client_Buttons.init = function(main) { client_Buttons.showPlayerGroup(showCustomEmbed); return; }; + window.document.querySelector("#insert_template").onclick = function(e14) { + var input = window.document.querySelector("#mediaurl"); + input.value = main.getTemplateUrl(); + input.focus(); + return; + }; window.onresize = client_Buttons.onVideoResize; client_Buttons.initSplit(); }; @@ -1364,6 +1370,9 @@ client_Main.prototype = { this.onTimeGet = new haxe_Timer(s * 1000); this.onTimeGet.run = $bind(this,this.requestTime); } + ,getTemplateUrl: function() { + return this.config.templateUrl; + } ,escapeRegExp: function(regex) { var _this_r = new RegExp("([.*+?^${}()|[\\]\\\\])","g".split("u").join("")); return regex.replace(_this_r,"\\$1"); -- cgit v1.2.3