From 58ed988f751fe902e37d6a233b91284edf0dd677 Mon Sep 17 00:00:00 2001 From: shmyga Date: Fri, 5 Jan 2018 18:22:22 +0300 Subject: [PATCH] fix --- src/client/webapp/index.html | 26 ----- src/client/webapp/index_template.html | 51 --------- src/client/webapp/swf.js | 148 -------------------------- src/webapp/index.html | 1 + 4 files changed, 1 insertion(+), 225 deletions(-) delete mode 100644 src/client/webapp/index.html delete mode 100644 src/client/webapp/index_template.html delete mode 100644 src/client/webapp/swf.js diff --git a/src/client/webapp/index.html b/src/client/webapp/index.html deleted file mode 100644 index aeb3a98..0000000 --- a/src/client/webapp/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - -
- - - - - - diff --git a/src/client/webapp/index_template.html b/src/client/webapp/index_template.html deleted file mode 100644 index 4be61ac..0000000 --- a/src/client/webapp/index_template.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - ::APP_TITLE:: - - - - - ::if linkedLibraries::::foreach (linkedLibraries):: - ::end::::end:: - - - - - - - - - -
- - - - - \ No newline at end of file diff --git a/src/client/webapp/swf.js b/src/client/webapp/swf.js deleted file mode 100644 index 62c1328..0000000 --- a/src/client/webapp/swf.js +++ /dev/null @@ -1,148 +0,0 @@ -(function(window) { - - if (!window.Swf) { - - window.Swf = function(eid, src, listener, params) { - this.id = "adman" + window.Swf.i++; - this.listener = listener; - this.embed(eid, src, params); - - window.SWF_CALLBACKS = window.SWF_CALLBACKS || {}; - window.SWF_CALLBACKS[this.id] = this.onSwfEvent(); - }; - - window.Swf.i = 0; - - window.Swf.prototype = { - - dispatch: function(type) { - if (this.listener && this.listener["on_" + type]) { - var args = [].slice.call(arguments, 1); - this.listener["on_" + type].apply(this.listener, args); - } - }, - - onSwfEvent: function() { - var self = this; - return function(type, arg1, arg2) { - self.dispatch(type, arg1, arg2); - }; - }, - - insertAfter :function(elem, refElem) { - var parent = refElem.parentNode; - var next = refElem.nextSibling; - if (next) { - return parent.insertBefore(elem, next); - } else { - return parent.appendChild(elem); - } - }, - - - embed:function(target, src, params) { - params = params || {}; - params["callback"] = "SWF_CALLBACKS." + this.id; - var flashData = { - params: { - id: this.id, - quality: "high", - allowScriptAccess: "always", - allowFullScreen: true, - wMode: "opaque", - base: null, - swLiveConnect: true - }, - properties: { - name: this.id, - width: "100%", - height: "100%" - }, - vars: params - }; - this.swf = this.buildFlashElement(src, flashData); - this.swf.style["position"] = "absolute"; - this.swf.style["left"] = 0; - this.swf.style["top"] = 0; - //this.swf.style["visibility"] = "hidden"; - if (target) { - target = document.getElementById(target); - this.insertAfter(this.swf, target); - } else { - document.body.appendChild(this.swf); - } - }, - - typeOf: function (item) { - if (item == null) return "null"; - if (item.nodeName) { - if (item.nodeType == 1) return "element"; - if (item.nodeType == 3) return (/\S/).test(item.nodeValue) ? "textnode" : "whitespace"; - } else if (typeof item.length == "number") { - if (item.callee) return "arguments"; - } - return typeof item; - }, - - toFlashVars: function (object, base) { - var queryString = []; - for (var key in object) { - var value = object[key]; - if (base) key = base + ":" + key; - var result; - switch (this.typeOf(value)) { - case "object": - result = this.toFlashVars(value, key); - break; - case "array": - var qs = {}; - value.each(function (val, i) { - qs[i] = val; - }); - result = this.toFlashVars(qs, key); - break; - default: - result = key + "=" + encodeURIComponent(value); - } - if (value != null) queryString.push(result); - } - return queryString.join("&"); - }, - - buildFlashElement: function (path, options) { - var params = options.params; - var vars = options.vars; - var properties = options.properties; - - params.flashVars = this.toFlashVars(vars); - var isIE = /*@cc_on!@*/false; - if (isIE) { - properties.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; - params.movie = path; - } else { - properties.type = "application/x-shockwave-flash"; - } - properties.data = path; - - var build = ""; - } - build += ""; - - var div = document.createElement("div"); - div.innerHTML = build; - return div.firstChild; - }, - - dispose: function() { - if (this.swf) { - this.swf.dispose(); - this.swf.parentNode.removeChild(this.swf); - } - } - }; - } -})(window); \ No newline at end of file diff --git a/src/webapp/index.html b/src/webapp/index.html index 5e0f69a..217ae12 100644 --- a/src/webapp/index.html +++ b/src/webapp/index.html @@ -12,6 +12,7 @@ height: 100%; margin: 0; padding: 0; + overflow: hidden; }