1UplayIframe = new Class({ 2 container: null, 3 inner: null, 4 close: null, 5 initialize: function () { 6 this.container = document.id('loginUplay') 7 this.inner = this.container.getElement('.inner') 8 this.close = this.container.getElement('.close') 9 10 this.close.addEvent('click', function (e) { 11 e.stop() 12 this.hide() 13 }.bind(this)) 14 }, 15 16 _insertIframe: function () { 17 this.iframe = new Element('iframe', { 18 src: connectV3LoginUrl, 19 width: 480, 20 height: 720 21 }).inject(this.inner) 22 }, 23 24 _removeIframe: function () { 25 if (this.iframe) { 26 this.iframe.destroy() 27 } 28 }, 29 30 show: function () { 31 this._insertIframe() 32 this.container.removeClass('hide') 33 Overlay.show() 34 }, 35 36 hide: function (closeOverlay) { 37 if (closeOverlay === undefined) { 38 closeOverlay = true 39 } 40 this.container.addClass('hide') 41 if (closeOverlay) { 42 Overlay.hide() 43 } 44 this._removeIframe() 45 } 46}) 47 48UplayIframe.show = function () { 49 UplayIframe.getInstance().show() 50} 51 52UplayIframe.instance = null 53UplayIframe.getInstance = function () { 54 if (UplayIframe.instance === null) { 55 UplayIframe.instance = new UplayIframe() 56 } 57 return UplayIframe.instance 58}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.