HiddenEye-Legacy/WebPages/origin/SIGN IN_files/jquery_004.js

1 line
8.5 KiB
JavaScript
Raw Normal View History

2019-04-21 18:08:25 +08:00
(function(a,b){var c=function(){var e=function(h){var g=String.fromCharCode(h.which);if(g.toUpperCase()===g&&g.toLowerCase()!==g&&!h.shiftKey){a("#password").siblings(".otkicon-capslock").addClass("otkinput-capslock-visible")}else{a("#password").siblings(".otkicon-capslock").removeClass("otkinput-capslock-visible")}};var d=function(){if(a(".otkinput-capslock:visible").length>0){a("#password").siblings(".otkicon-capslock").removeClass("otkinput-capslock-visible")}};a("#password").on("keypress",e);a("#password").on("focusout",d);a(".otkcheckbox input, .otkradio input, .otkselect select").focusin(function(g){g.preventDefault();a(this).parent("span").addClass("focus")}).focusout(function(g){g.preventDefault();a(this).parent("span").removeClass("focus")});var f=function(g){if(!g){return}g.each(function(){var n=2;var r=parseFloat(a(this).css("padding-top"))+n;var j=parseFloat(a(this).css("padding-right"))+n;var i=parseFloat(a(this).css("padding-bottom"))+n;var k=parseFloat(a(this).css("padding-left"))+n;var q=r+"px "+j+"px "+i+"px "+k+"px";a(this).css("padding",q);var h=parseFloat(a(this).css("margin-top"))-n;var p=parseFloat(a(this).css("margin-right"))-n;var m=parseFloat(a(this).css("margin-bottom"))-n;var l=parseFloat(a(this).css("margin-left"))-n;var o=h+"px "+p+"px "+m+"px "+l+"px";a(this).css("margin",o);a(this).css("outline-offset","-2px");a(this).hover(function(){a(this).blur()},function(){a(this).blur()});a(this).click(function(){a(this).blur()});a(this).focus(function(){a(this).addClass("outline-focus")});a(this).blur(function(){a(this).removeClass("outline-focus")})})};f(a("a.forgot-password-link"));f(a("a.registration-link"));f(a("div#panel-privacy-settings > p > a"));a(a("div#panel-privacy-settings > p > a")).css("outline-offset","0px");f(a("label#label-readAccept > a"));f(a("#uploader.container-inner > .file-select-note > span > a"));f(a("#panel-profile-upgrade > .panel-contents > .panel-content > p > a"));f(a("#panel-nux > .panel-contents > .panel-content > p > a"))};a(document).ready(function(){c()})})(jQuery);"use strict";var QWebChannelMessageTypes={signal:1,propertyUpdate:2,init:3,idle:4,debug:5,invokeMethod:6,connectToSignal:7,disconnectFromSignal:8,setProperty:9,response:10,};var QWebChannel=function(c,a){if(typeof c!=="object"||typeof c.send!=="function"){console.error("The QWebChannel expects a transport object with a send function and onmessage callback property. Given is: transport: "+typeof(c)+", transport.send: "+typeof(c.send));return}var b=this;this.transport=c;this.send=function(d){if(typeof(d)!=="string"){d=JSON.stringify(d)}b.transport.send(d)};this.transport.onmessage=function(d){var e=d.data;if(typeof e==="string"){e=JSON.parse(e)}switch(e.type){case QWebChannelMessageTypes.signal:b.handleSignal(e);break;case QWebChannelMessageTypes.response:b.handleResponse(e);break;case QWebChannelMessageTypes.propertyUpdate:b.handlePropertyUpdate(e);break;default:console.error("invalid message received:",d.data);break}};this.execCallbacks={};this.execId=0;this.exec=function(d,e){if(!e){b.send(d);return}if(b.execId===Number.MAX_VALUE){b.execId=Number.MIN_VALUE}if(d.hasOwnProperty("id")){console.error("Cannot exec message with property id: "+JSON.stringify(d));return}d.id=b.execId++;b.execCallbacks[d.id]=e;b.send(d)};this.objects={};this.handleSignal=function(e){var d=b.objects[e.object];if(d){d.signalEmitted(e.signal,e.args)}else{console.warn("Unhandled signal: "+e.object+"::"+e.signal)}};this.handleResponse=function(d){if(!d.hasOwnProperty("id")){console.error("Invalid response message received: ",JSON.stringify(d));return}b.execCallbacks[d.id](d.data);delete b.execCallbacks[d.id]};this.handlePropertyUpdate=function(f){for(var e in f.data){var g=f.data[e];var d=b.objects[g.object];if(d){d.propertyUpdate(g.signals,g.properties)}else{console.warn("Unhandled property update: "+g.object+"::"+g.signal)}}b.exec({type:QWebChannelMessageTypes.idle})};this.debug=function(d){b.send({type:QWebChannelMessageTypes.debug,data:d})};b.exec({type:QWebChannelMessageTypes.init},function(e){for(var f in e){var d=new QObject(f