Jump to content

hisoka

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by hisoka

  1. hisoka

    understand

    "The first step would be to format it so it's readable" You mean you will deobfuscate it or unpack it ?? "you can guess on some variable names" " I would go about replacing the shorter variable and function names with some of the things they replaced" first why the need to guess the variable name if they can be of any name for example : var g = 12; if you change g to b or c or x you get always the same result . So why changing the name of the variable and guessing it ? and the same with function function read () {} you can change the word read to any name you want still the function is the same and give the same result . "If you can figure out generally what the algorithm is doing then you can guess on some variable names to help it make more sense" how is it possible to figure out the algorithm in a complicated code even after getting the original code (which is impossible , you got only an approximation of the original code and not the original code) ? what are the tools and methods used to understand the algorithm ?
  2. Sorry but I did not ask what is the difference between : document.getElementById('btn1').onclick = fnd();window.onload = init(); and this : document.getElementById('btn1').onclick = fnd;window.onload = init; my question was why we did not use the parenthesis in document.getElementById('btn1').onclick = fnd;window.onload = init; this answer "This line:window.onload = init;Tells it to assign the function init to the window.onload handler. This line:window.onload = init();Tells it to execute the function init and assign the return value of that function to the window.onload handler. If init does not return a function then that will be a problem." is about the logic that drives the code . However , my question was about the syntax and Syntactically , why we used init in window.onload = init; and fnd in document.getElementById('btn1').onclick = fnd; without parenthesis ?? "Are you sure about that?" yes I am sure I ran this script : <script>'use strict';x = 3.14; function show[]{return x +10 ;} </script> I did not include this : window.onerror = function(a, b, c, d){alert('Javascript Error:n'+a+'nURL: '+b+'nLine: '+c+' Column: '+d);return true;} I ran it only like this : <script>'use strict';x = 3.14; function show[]{return x +10 ;} </script> It shew no error
  3. hisoka

    javascript

    it was implemented in html5 . It is something new
  4. according to what you wrote , a library is a code written to make certain tasks easier . This code is typically a third-party code that is imported and used . A normal written script in a website can be imported and used too by million of people to make certain tasks easier . A program which is a code can be downloaded from a third party and used to make certain task easier. So I do not see any difference between a code , a library and a program . So what is a library?
  5. hisoka

    javascript

    either I am wrong or you misunderstood me here how it is : in <form class="gsc-search-box gsc-search-box-tools" accept-charset="utf-8"> class is the attribute of form . in <form id="myform"> id is the attribute of form in <form name = "logoutform"> name is the attribute of form right? only specific words can be used as form attributes . the word "role" cannot used as an attribute to a form However in this form( which I found in the source code of this page http://www.w3schools..._validation.asp) <form role="form"><div class="form-group"><label for="err_email">Your Email:</label><input class="form-control" type="email" id="err_email" name="err_email" /></div><div class="form-group"><label for="err_email">Page address:</label><input class="form-control" type="text" id="err_url" name="err_url" disabled="disabled" /></div><div class="form-group"><label for="err_email">Description:</label><textarea rows="10" class="form-control" id="err_desc" name="err_desc"></textarea></div><div class="form-group"> <button type="button" class="btn btn-default" onclick="sendErr()">Submit</button></div></form> the attribute of the form is role . So is not this considered wrong as role cannot be an attribute of a form ???
  6. "It is a collection of code written to make certain tasks easier". So predefined functions , like apply() or eval() or charCodeAt() , are libraries as they are little piece of code written and used to make certain task easier??? like calculating or encapsulation of data . This is useful for human beings . Is not it ?
  7. When I wrote this and this are the same or equal , I mean in their result not in themselves . Their result is the same but they are totally different . I will try to be more precise in the future and I hope I will succeed in being so . Please continue like this :Please correct me in every details . Please give me all what you know .. All . I have some questions 1) document.getElementById('btn1').onclick = fnd;window.onload = init; fnd and init are both functions so why we did not write them like this document.getElementById('btn1').onclick = fnd();window.onload = init(); ?? 2) as for strict mode , I used both this and this : <script>'use strict';x = 3.14; function show[]{return x +10 ;} </script><script>"use strict";x = 3.14; function show[]{return x +10 ;} </script> use strict is in before any other statement inside the <script></script> but nothing happened when I ran both scripts . No errors where shown I have mozilla firefox version 36.0.1 any idea?
  8. hisoka

    understand

    "I don't actually read through minified code unless I'm reverse engineering something that the person didn't want to document." Please tell me , in the context of reverse engineering , if you want to reverse the very long and obfuscated code I gave above . How could you proceed ? Should put this post in the general section ?`or it is ok to talk about it here?
  9. hisoka

    understand

    I look at this : function show(){var a = document.forms["form"].role;alert(a);}function show1(){var b = document.forms["log"];alert(;}function show2(){var c = document.forms["sys"];alert©;}function show3(){var d = document.forms["user"];alert(d);} and this : eval(function(p,a,c,k,e,d){e=function©{return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('b'+e©+'b','g'),k[c])}}return p}('1 g(){0 a=3.2["5"].f;4(a)}1 7(){0 b=3.2["6"];4(}1 8(){0 c=3.2["h"];4©}1 9(){0 d=3.2["e"];4(d)}',18,18,'var|function|forms|document|alert|form|log|show1|show2|show3|||||user|role|show|sys'.split('|'),0,{})) both code are the same . Except that the second is an obfuscation of the first . Now and now I understand the trick . We really need the original code otherwise it will be a real ###### to understand such a code
  10. hisoka

    javascript

    "Form elements do not have a "role" attribute, so the form object is not going to have a role property." But here : <form role="form"> The attribute of the form is "role" . Is not it ? so Why this : alert(document.forms["form"].role) did not work ?
  11. hisoka

    html forms

    "1. Passing data from one form page to the next" to the next what ? "2. Allowing Javascript to provide a different interface to change form data before it's sent." this is too vague and abstract . Could you explain it with some examples because I cannot understand it
  12. JavaScript library I could not quite understand the term "library" . What is a library ? is there a simple and easy definition for the word library ?
  13. hisoka

    html forms

    "Many reasons. For example, lets say you want to pass the status of a login user wether to tell if they are signed in or not, or what page they are on, or their status etc as they are filling out the form for whatever reason" This is done exactly through a user session to track the activities of a specific user in a website , his status , the different pages he visited "Another reason could be to indicate something specific in the page that processes the form to do, like... say on the process form you have many functions that deal with processing forms etc and for a particular form you have in the hidden input field that indicates what you want to do once the form is submitted to the processing page/file." too abstract and vague . Could you please be more specific and give me examples ? "Like in the example you posted, you see the name is userStatus and the value is New. Once the user submits this to the processing page, it lets the processing page know that this is a New user and to execute the necessary functions etc to add the new user." good
  14. hisoka

    understand

    "Ideally you would get the original code instead of the minified packed code". "I don't actually read through minified code" In the context of JavaScript , the difference between the original code and the minified code is this minified code = original code - unnecessary characters original code = minified code + unnecessary characters if the minified code is the original code minus unnecessary characters so there is no difference between the minified code and the original code . So why both of you would get and prefer the original code rather than the minified code ???
  15. hisoka

    understand

    I would like to know something . Suppose you guys Foxy Mod or Davej or Justsomeguy you get in collision with a JavaScript code like this <script>(window['gbar']=window['gbar']||{})._CONFIG=[[[0,"www.gstatic.com","og.og.en_US.v33lWnwpxt0.O","de","en","10",1,[3,2,".64.40.36.36.40.36.36.","r_qf.","17259,3700267,3700362","1425868183","0"],"40400","RWz_VKbMKKTmsATfo4CwCw",0,0,"og.og.ij2b4qzaxww8.L.F4.O","AItRSTN8GFqLVbAU-JQ1fqiN9QwYa05zIQ","AItRSTMd9SU6aax8NRjs5waGSvER69yA9w","",2,1,200,"DEU"],null,0,["m;/_/scs/abc-static/_/js/k=gapi.gapi.en.10h8gJPyU4U.O/m=__features__/am=AAI/rt=j/d=1/rs=AItRSTOJfKF0vWdZZ280FSybaPbIscsm2Q","https://apis.google.com","","","","","",1,"es_plusone_gc_20150220.0_p0","en],["1","gci_91f30755d6a6b787dcc2a4062e6e9824.js","googleapis.client:plusone:gapi.iframes","","en"],null,null,null,[0.009999999776482582,"de","10",[null,"","w",null,1,5184000,1,0],[["4076183","4061130","6",50,5,2592000,"",""],"https://www.google.com/intl/en/policies/technologies/cookies/",["#ffffff","#d9d9d9","#a0a0a0"],1,1],[["","","",0,0,-1]],[null,0,0],0,null,null,["5061492","google.(com|ru|ca|by|kz|com.mx)$",1]],null,[0,0,0,null,"","",""],[1,0.001000000047497451,1],[1,0.1000000014901161,2,1],[0,"",null,"",0,"There was an error loading your Marketplace apps.","You have no Marketplace apps.",0,[10,"https://books.google.de/bkshp?hl=enu0026tab=pp","Books","","-35px -1356px",null,0],0,0,1],[1],[0,0,["lg"],0,["lat"]],[["ld","gl","is","id","nb","nw","sb","sd","p","vd","awd","st","lod","eld","ip","dp","cpd","","","","","","",""],[""]],null,null,null,[30,152,1,750],null,null,null,null,null,[1,1]]];(window['gbar']=window['gbar']||{})._DPG=[{'_fdm_':['_r'],'aw':['sy16','sy29','sy7'],'awd':['st','sy10','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy33','sy34','sy38','sy39','sy46','sy47','sy48','sy6','sy7','sy8'],'base':['gi','sy10','sy11','sy12','sy13','sy14','sy15','sy16','sy21','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy6','sy7','sy8','sy9'],'bn':['sy6'],'bu':['sy29'],'cp':['_r'],'cpd':['sy10','sy11','sy12','sy13','sy14','sy15','sy24','sy7','sy8','sy9'],'d':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy32','sy33','sy34','sy35','sy36','sy37','sy38','sy39','sy40','sy41','sy42','sy43','sy44','sy6','sy7','sy8','sy9'],'dbg':['sy10','sy11','sy12','sy13','sy14','sy22','sy24','sy25','sy27','sy31','sy32','sy33','sy34','sy35','sy37','sy38','sy39','sy47','sy48','sy50','sy51','sy52','sy9'],'dd':['sy28','sy7'],'dp':['sy11','sy14','sy24','sy44'],'drt':['sy10','sy11','sy12','sy13','sy14','sy24','sy31','sy32','sy33','sy37','sy38','sy42','sy44','sy53','sy54','sy9'],'el':['sy10','sy21','sy22','sy29','sy55','sy7'],'eld':['sy10','sy11','sy12','sy14','sy7','sy8','sy9'],'eq':['sy16','sy7'],'gi':['_r'],'gl':['d','sy11','sy12','sy13','sy22','sy24','sy27','sy31','sy32','sy33','sy35','sy56','sy6','sy7'],'id':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy32','sy33','sy34','sy35','sy36','sy37','sy38','sy40','sy44','sy46','sy48','sy50','sy51','sy52','sy56','sy6','sy7','sy8','sy9'],'if':['_r'],'ip':['sy11','sy14','sy7'],'is':['d','sy24','sy29','sy40','sy41','sy56'],'iw':['sy16','sy29','sy7'],'jb':['sy10','sy11','sy12','sy13','sy14','sy24','sy31','sy32','sy33','sy37','sy38','sy42','sy44','sy53','sy54','sy9'],'ld':['_r'],'lo':['sy29'],'lod':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy29','sy6','sy7','sy8','sy9'],'nb':['d','sy10','sy11','sy12','sy14','sy22','sy24','sy25','sy33','sy35','sy6','sy7'],'ni':['sy16','sy29','sy7'],'nw':['is','nb','sy14','sy22','sy24','sy25','sy29','sy30','sy31','sy33','sy35','sy40','sy41','sy6','sy7'],'p':['awd','d','sy10','sy11','sy12','sy14','sy15','sy22','sy24','sy26','sy27','sy29','sy30','sy32','sy33','sy38','sy40','sy42','sy50','sy53','sy7','sy8'],'pi':['_r'],'sb':['is','sy24','sy29','sy30','sy40','sy41','sy7'],'sbi':['sy16','sy29','sy7'],'sd':['bn','d','sf','sy12','sy14','sy15','sy22','sy24','sy26','sy40','sy6'],'sf':['sy29'],'st':['sy11','sy31','sy37','sy42','sy43','sy7','sy9'],'sy10':['_r'],'sy11':['_r'],'sy12':['sy10','sy11','sy9'],'sy13':['sy12'],'sy14':['sy11'],'sy15':['sy13','sy8'],'sy16':['sy29','sy7'],'sy21':['sy22','sy7'],'sy22':['_r'],'sy24':['sy11','sy14'],'sy25':['sy11','sy24'],'sy26':['sy11','sy12','sy13','sy24','sy25'],'sy27':['sy11','sy24'],'sy28':['sy7'],'sy29':['_r'],'sy30':['sy11','sy12','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy6'],'sy31':['sy11'],'sy32':['sy14','sy31'],'sy33':['sy12'],'sy34':['_r'],'sy35':['sy13','sy24','sy27','sy33','sy34'],'sy36':['sy14','sy24','sy27','sy7'],'sy37':['sy11','sy9'],'sy38':['sy33','sy37'],'sy39':['sy38'],'sy40':['sy11','sy12','sy14','sy24','sy33','sy36','sy44','sy7'],'sy41':['sy24','sy29','sy31','sy36','sy7'],'sy42':['_r'],'sy43':['sy11','sy31','sy37','sy42'],'sy44':['sy14'],'sy46':['sy11','sy12','sy13','sy14','sy24','sy27','sy33','sy48'],'sy47':['sy11','sy12','sy14','sy27','sy33','sy39','sy48'],'sy48':['sy11','sy24','sy27'],'sy50':['sy11'],'sy51':['sy14','sy24','sy27','sy48'],'sy52':['sy11','sy12','sy33'],'sy53':['sy11','sy14','sy31','sy33','sy38','sy42','sy9'],'sy54':['sy11','sy12','sy13','sy14','sy33','sy38','sy53'],'sy55':['sy10','sy21','sy22','sy29','sy7'],'sy56':['sy37','sy40','sy6','sy7'],'sy6':['_r'],'sy7':['_r'],'sy8':['sy11','sy12','sy14','sy7'],'sy9':['_r'],'uc':['sy16','sy29','sy7'],'ucd':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy25','sy26','sy27','sy28','sy29','sy30','sy31','sy36','sy41','sy6','sy7','sy8','sy9'],'up':['sy10','sy11','sy12','sy13','sy14','sy15','sy21','sy22','sy24','sy25','sy26','sy27','sy29','sy33','sy52','sy55','sy6','sy7','sy8','sy9'],'vd':['sy10','sy11','sy12','sy13','sy14','sy15','sy22','sy24','sy27','sy29','sy6','sy7','sy8','sy9'],'vi':['sy29']}];(window['gbar']=window['gbar']||{})._LDD=["bt","base","bn","bu","cp","el","lo","sbi","ni","sf","up","dd","aw","iw","if","gi","vi","pi","eq","uc"];this.gbar_=this.gbar_||{};(function(_){var window=this;try{var ga,ha;_.aa=_.aa||{};_.m=this;_.n=function(a){return void 0!==a};_.p=function(a,c){for(var d=a.split("."),e=c||_.m,f;f=d.shift();)if(null!=e[f])e=e[f];else return null;return e};_.ba=function(){};_.ca=function(a){a.L=function(){return a.Le?a.Le:a.Le=new a}};_.da=function(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==c&&"undefined"==typeof a.call)return"object";return c};_.ea=function(a){return"array"==_.da(a)};_.t=function(a){return"string"==typeof a};_.fa="closure_uid_"+(1E9*Math.random()>>>0);ga=function(a,c,d){return a.call.apply(a.bind,arguments)};ha=function(a,c,d){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}};_.u=function(a,c,d){_.u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ga:ha;return _.u.apply(null,arguments)};_.ia=Date.now||function(){return+new Date};_.v=function(a,c){var d=a.split("."),e=_.m;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift())!d.length&&_.n©?e[f]=c:e[f]?e=e[f]:e=e[f]={}};_.w=function(a,c){function d(){}d.prototype=c.prototype;a.F=c.prototype;a.prototype=new d;a.prototype.constructor=a;a.oi=function(a,d,g){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return c.prototype[d].apply(a,h)}};var ja,ma,la;_.ka=function(a){var c="//www.google.com/gen_204?",c=c+a.d(2040-c.length);ja©};ja=function(a){var c=new window.Image,d=la;c.onerror=c.onload=c.onabort=function(){d in ma&&delete ma[d]};ma[la++]=c;c.src=a};ma=[];la=0;_.na=function(){this.data={}};_.na.prototype.b=function(){window.console&&window.console.log&&window.console.log("Log data: ",this.data)};_.na.prototype.d=function(a){var c=[],d;for(d in this.data)c.push((0,window.encodeURIComponent)(d)+"="+(0,window.encodeURIComponent)(String(this.data[d])));return("atyp=i&zx="+(new Date).getTime()+"&"+c.join("&")).substr(0,a)};_.oa=function(a){this.b=a};_.oa.prototype.log=function(a,c){try{if(this.A(a)){var d=this.k(a,c);this.d(d)}}catch(e){}};_.oa.prototype.d=function(a){this.b?a.b():_.ka(a)};_.pa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,_.pa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a))};_.w(_.pa,Error);_.pa.prototype.name="CustomError";_.qa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[sxa0]+|[sxa0]+$/g,"")};_.ra=Array.prototype;_.sa=_.ra.indexOf?function(a,c,d){return _.ra.indexOf.call(a,c,d)}:function(a,c,d){d=null==d?0:0>d?Math.max(0,a.length+d);if(_.t(a))return _.t©&&1==c.length?a.indexOf(c,d):-1;for(;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};_.ta=_.ra.forEach?function(a,c,d){_.ra.forEach.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=_.t(a)?a.split(""):a,g=0;g<e;g++)g in f&&c.call(d,f[g],g,a)};_.ua=_.ra.filter?function(a,c,d){return _.ra.filter.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=[],g=0,h=_.t(a)?a.split(""):a,l=0;l<e;l++)if(l in h){var q=h[l];c.call(d,q,l,a)&&(f[g++]=q)}return f};_.va=_.ra.map?function(a,c,d){return _.ra.map.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=Array(e),g=_.t(a)?a.split(""):a,h=0;h<e;h++)h in g&&(f[h]=c.call(d,g[h],h,a));return f};_.wa=_.ra.reduce?function(a,c,d,e){e&&(c=(0,_.u)(c,e));return _.ra.reduce.call(a,c,d)}:function(a,c,d,e){var f=d;(0,_.ta)(a,function(d,h){f=c.call(e,f,d,h,a)});return f};_.xa=_.ra.some?function(a,c,d){return _.ra.some.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=_.t(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return!0;return!1};_.ya=function(a,c){return 0<=(0,_.sa)(a,c)};var za;za="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Aa=function(a,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)a[d]=e[d];for(var g=0;g<za.length;g++)d=za[g],Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])}};var Ha;_.Ba=function(){this.b={};this.d={}};_.ca(_.Ba);_.Da=function(a,c){a.L=function(){return _.Ca(_.Ba.L(),c)};a.Uh=function(){return _.Ba.L().b[c]||null}};_.y=function(a){return _.Ca(_.Ba.L(),a)};_.Fa=function(a,c){var d=_.Ba.L();if(a in d.{if(d.b[a]!=c)throw new Ea(a);}else{d.b[a]=c;var e=d.d[a];if(e)for(var f=0,g=e.length;f<g;f++)e[f].b(d.b,a);delete d.d[a]}};_.Ca=function(a,c){if(c in a.b)return a.b[c];throw new Ga©;};Ha=function(a){_.pa.call(this);this.aa=a};_.w(Ha,_.pa); var Ea=function(a){Ha.call(this,a)};_.w(Ea,Ha);var Ga=function(a){Ha.call(this,a)};_.w(Ga,Ha);_.Ia=/uffff/.test("uffff")?/["x00-x1fx7f-uffff]/g:/["x00-x1fx7f-xff]/g;_.z=function(){};_.A=function(a,c,d,e){a.b=null;c||(c=d?[d]:[]);a.A=d?String(d):void 0;a.o=0===d?-1:0;a.d=c;a:{if(a.d.length&&(c=a.d.length-1,(d=a.d[c])&&"object"==typeof d&&!_.ea(d))){a.w=c-a.o;a.k=d;break a}a.w=Number.MAX_VALUE}if(e)for(c=0;c<e.length;c++)d=e[c],d<a.w?(d+=a.o,a.d[d]=a.d[d]||_.Ja):a.k[d]=a.k[d]||_.Ja};_.Ja=[];_.C=function(a,c){if(c<a.w){var d=c+a.o,e=a.d[d];return e===_.Ja?a.d[d]=[]:e}e=a.k[c];return e===_.Ja?a.k[c]=[]:e}; _.D=function(a,c,d){a.b||(a.b={});if(!a.b[d]){var e=_.C(a,d);e&&(a.b[d]=new c(e))}return a.b[d]};_.z.prototype.ab=function(){return this.d};_.z.prototype.toString=function(){return this.d.toString()};_.Ka=function(a){_.A(this,a,0,null)};_.w(_.Ka,_.z);_.E=function(a,c){return null!=a?a:!!c};_.F=function(a){var c;void 0==c&&(c="");return null!=a?a:c};_.G=function(a,c){void 0==c&&(c=0);return null!=a?a:c};_.Na=function(a,c){this.data={};var d=_.D(a,_.Ka,8)||new _.Ka;this.data.ei=_.F(_.La(a));this.data.ogf=_.F(_.C(d,3));var e;e=window.google&&window.google.sn?/.*hp$/.test(window.google.sn)?!1:!0:_.E(_.C(a,7));this.data.ogrp=e?"1":"";this.data.ogv=_.F(_.C(d,6))+"."+_.F(_.C(d,7));this.data.ogd=_.F(_.C(a,21));this.data.ogc=_.F(_.C(a,20));this.data.ogl=_.F(_.Ma(a));c&&(this.data.oggv=c)};_.w(_.Na,_.na);_.Oa=function(a,c,d,e,f){_.Na.call(this,a,c);_.Aa(this.data,{jexpid:_.F(_.C(a,9)),srcpg:"prop="+_.F(_.C(a,6)),jsr:Math.round(1/e),emsg:d.name+":"+d.message});if(f){f._sn&&(f._sn="og."+f._sn);for(var g in f)this.data[(0,window.encodeURIComponent)(g)]=f[g]}};_.w(_.Oa,_.Na);var Pa=function(a){_.A(this,a,0,null)};_.w(Pa,_.z);_.Ma=function(a){return _.C(a,5)};_.La=function(a){return _.C(a,10)};_.H=function(){this.ba=this.ba;this.Na=this.Na};_.H.prototype.ba=!1;_.H.prototype.Y=function(){this.ba||(this.ba=!0,this.M())};_.H.prototype.M=function(){if(this.Na)for(;this.Na.length;)this.Na.shift()()};_.Qa=function(a){_.A(this,a,0,null)};_.w(_.Qa,_.z);_.Ra=function(a){return null!=_.C(a,2)?_.C(a,2):.001};var Sa,Ua,Va,Xa;_.Ta=function(a,c,d,e,f,g){_.H.call(this);this.G=c;this.J=f;this.o=g;this.S=!1;this.k={"":!0};this.H={"":!0};this.A=[];this.w=[];this.R=["//"+_.F(_.C(a,2)),"og/_/js","k=+_.F(_.C(a,3)),"rt=j];this.O=""==_.F(_.C(a,14))?null:_.C(a,14);this.K=["//"+_.F(_.C(a,2)),"og/_/ss","k="+_.F(_.C(a,13))];this.C=""==_.F(_.C(a,15))?null:_.C(a,15);this.U=_.E(_.C(a,1))?"?host=www.gstatic.com&bust="+_.F(_.C(a,16)):"";this.T=_.E(_.C(a,1))?"?host=www.gstatic.com&bust="+1E11*Math.random():"";this.d=d;_.C(a,19);a=null!=_.C(a,17)?_.C(a,17):1;this.b=_.G(a,1);a=0;for(c=e[a];a<e.length;a++,c=e[a])Sa(this,c,!0)};_.w(_.Ta,_.H);_.Da(_.Ta,"m");Sa=function(a,c,d){if(!a.k[c]&&(a.k[c]=!0,d&&a.d[c]))for(var e=0;e<a.d[c].length;e++)Sa(a,a.d[c][e],d)};Ua=function(a,c){for(var d=[],e=0;e<c.length;e++){var f=c[e];if(!a.k[f]){var g=a.d[f];g&&(g=Ua(a,g),d=d.concat(g));d.push(f);a.k[f]=!0}}return d};_.Wa=function(a,c,d){c=Ua(a,c);0<c.length&&(c=a.R.join("/")+"/"+("m="+c.join(",")),a.O&&(c+="/rs="+a.O),c=c+a.U,Va(a,c,(0,_.u)(a.P,a,d)),a.A.push©)};_.Ta.prototype.P=function(a){_.y("api").Va();for(var c=0;c<this.w.length;c++)this.w[c].call(null);a&&a.call(null)};Va=function(a,c,d,e){var f=window.document.createElement("SCRIPT");f.async=!0;f.type="text/javascript";f.charset="UTF-8";f.src=c;var g=!0,h=e||1;e=(0,_.u)(function(){g=!1;this.o.log(47,{att:h,max:a.b,url:c});h<a.b?Va(a,c,d,h+1):this.J.log(Error("f`"+h+"`"+a.,{url:c})},a);var l=(0,_.u)(function(){g&&(this.o.log(46,{att:h,max:a.b,url:c}),g=!1,d&&d.call(null))},a),q=function(a){"loaded"==a.readyState||"complete"==a.readyState?l():g&&window.setTimeout(function(){q(a)},100)};"undefined"!==typeof f.addEventListener?f.onload=function(){l()}:f.onreadystatechange=function(){f.onreadystatechange=null;q(f)};f.onerror=e;a.o.log(45,{att:h,max:a.b,url:c});window.document.getElementsByTagName("HEAD")[0].appendChild(f)};_.Ya=function(a,c,d){for(var e=[],f=0,g=c[f];f<c.length;f++,g=c[f])a.H[g]||(e.push(g),a.H[g]=!0);0<e.length&&(c=a.K.join("/")+"/"+("m="+e.join(",")),a.C&&(c+="/rs="+a.C),c+=a.T,Xa(c,d))};Xa=function(a,c){var d=window.document.createElement("LINK");d.setAttribute("rel","stylesheet");d.setAttribute("type","text/css");d.setAttribute("href",a);d.onload=d.onreadystatechange=function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=d.readyState||c&&c.call(null)};window.document.getElementsByTagName("HEAD")[0].appendChild(d)};_.Ta.prototype.B=function(a){this.S||(void 0!=a?window.setTimeout((0,_.u)(this.B,this,void 0),a)_.Wa(this,_.C(this.G,1),(0,_.u)(this.Q,this)),_.Ya(this,_.C(this.G,2)),this.S=!0))};_.Ta.prototype.Q=function(){_.v("gbar.qm",(0,_.u)(function(a){try{a()}catch©{this.J.log©}},this))};_.Za=function(a){_.A(this,a,0,null)};_.w(_.Za,_.z);var $a=function(a){_.A(this,a,0,null)};_.w($a,_.z);_.bb=function(){var a=_.ab();return _.C(a,9)};_.cb=function(a){_.A(this,a,0,null)};_.w(_.cb,_.z);_.db=function(a){_.A(this,a,0,null)};_.w(_.db,_.z);_.db.prototype.Ra=function(){return _.C(this,6)};var eb=function(a){_.A(this,a,0,null)};_.w(eb,_.z);eb.prototype.yc=function(){return _.D(this,_.Za,14)};_.fb=function(){var a=_.I(_.J.L());return _.D(a,_.db,6)};_.gb=function(){var a=_.I(_.J.L());return _.D(a,_.Qa,13)};_.hb=function(){var a=_.I(_.J.L());return _.D(a,_.cb,5)};var ib=new eb(window.gbar&&window.gbar._CONFIG?window.gbar._CONFIG[0]:[[,,,,,,,[]],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]),jb;jb=_.C(ib,3);_.kb=_.E(jb);_.K=function(){};_.v("gbar_._DumpException",function(a){if(_.kb)throw a;_.K(a)});var mb;mb=function(){this.d=!1;this.b=[]};_.ob=function(a){var c=_.nb;c.d?a():c.b.push(a)};mb.prototype.k=function(a){if(!this.d){this.d=!0;for(var c=0;c<this.b.length;c++)try{this.b[c]()}catch(d){a(d)}this.b=null;try{_.y("api").Va()}catch(e){}}};_.nb=new mb;_.J=function(){_.H.call(this);this.b=ib};_.w(_.J,_.H);_.Da(_.J,"cs");_.I=function(a){return a.b};_.pb=function(){var a=_.I(_.J.L());return _.D(a,Pa,1)||new Pa};_.ab=function(){var a=_.I(_.J.L());return _.D(a,$a,4)||new $a};_.Fa("cs",new _.J);}catch(e){_._DumpException(e)}try{_.v("gbar.ldb",(0,_.u)(_.nb.k,_.nb));}catch(e){_._DumpException(e)}try{var Mb=function(){_.H.call(this);this.ie=[];this.kd=[]};_.w(Mb,_.H);Mb.prototype.b=function(a,c){this.ie.push({vc:a,options:c})};Mb.prototype.init=function(){window.gapi={};var a=_.ab(),c=window.___jsl={};c.h=_.F(_.C(a,1));c.ms=_.F(_.C(a,2));c.m=_.F(_.C(a,3));c.l=[];a=_.hb()||new _.cb;_.C(a,1)&&(a=_.C(a,3))&&this.kd.push(a);a=_.fb()||new _.db;_.C(a,1)&&(a=_.C(a,2))&&this.kd.push(a);_.v("gapi.load",(0,_.u)(this.b,this));return this};var Nb=window,Ob,Pb=_.ab();Ob=_.C(Pb,7);Nb.__PVT=_.F(Ob);_.Fa("gs",(new Mb).init());}catch(e){_._DumpException(e)}try{var sb,tb,ub,Bb;_.qb=function(a){_.A(this,a,0,null)};_.w(_.qb,_.z);_.rb=function(){var a=_.I(_.J.L());return _.D(a,_.qb,11)};sb=function(a){return null!=_.C(a,3)?_.C(a,3):1};tb=function(a){return null!=_.C(a,2)?_.C(a,2):1E-4};ub=function(a){_.A(this,a,0,null)};_.w(ub,_.z);var vb=null,wb=function(a){return(a+"").replace(".","%2E").replace(",","%2C")},xb=[1,2,3,4,5,6,9,10,11,13,14,28,29,30,34,35,37,38,39,40,41,42,43,48,49,50,51,52,53,500],yb=function(a){if(!vb){vb={};for(var c=0;c<xb.length;c++)vb[xb[c]]=!0}return!!vb[a]},zb=function(a,c,d,e,f,g){_.Na.call(this,a,c);_.Aa(this.data,{oge:e,ogex:_.F(_.C(a,9)),ogp:_.F(_.C(a,6)),ogsr:Math.round(1/(yb(e)?_.G(sb(d)):_.G(tb(d)))),ogus:f});if(g){"ogw"in g&&(this.data.ogw=g.ogw,delete g.ogw);"ved"in g&&(this.data.ved=g.ved,delete g.ved);a=[];for(var h in g)0!=a.length&&a.push(","),a.push(wb(h)),a.push("."),a.push(wb(g[h]));g=a.join("");""!=g&&(this.data.ogad=g)}};_.w(zb,_.Na);var Ab=function(a,c,d,e,f){this.b=f;this.G=a;this.O=c;this.ba=e;this.C=_.G(tb(a),1E-4);this.w=_.G(sb(a),1);c=Math.random();this.B=_.E(_.C(a,1))&&c<this.C;this.o=_.E(_.C(a,1))&&c<this.w;a=0;_.E(_.C(d,1))&&(a|=1);_.E(_.C(d,2))&&(a|=2);_.E(_.C(d,3))&&(a|=4);this.J=a};_.w(Ab,_.oa);Ab.prototype.A=function(a){return this.b||(yb(a)?this.o:this.};Ab.prototype.k=function(a,c){return new zb(this.O,this.ba,this.G,a,this.J,c)};Bb=null;_.Cb=function(){if(!Bb){var a=_.I(_.J.L()),a=_.D(a,ub,12)||new ub,c=_.pb(),d=_.rb()||new _.qb,e=_.bb();Bb=new Ab(a,c,d,e,_.kb)}return Bb};_.L=function(a,c){_.Cb().log(a,c)};_.L(8,{m:"BackCompat"==window.document.compatMode?"q":"s"});}catch(e){_._DumpException(e)}try{var Qb=function(a,c,d,e){this.b=e;this.G=c;this.ba=d;this.w=_.G(_.Ra(a),.001);this.O=_.E(_.C(a,1))&&Math.random()<this.w;c=null!=_.C(a,3)?_.C(a,3):1;this.B=_.G(c,1);this.o=0;a=null!=_.C(a,4)?_.C(a,4):!0;this.C=_.E(a,!0)},Rb;_.w(Qb,_.oa);Qb.prototype.log=function(a,c){Qb.F.log.call(this,a,c);if(this.b&&this.C)throw a;};Qb.prototype.A=function(){return this.b||this.O&&this.o<this.B};Qb.prototype.k=function(a,c){try{return _.Ca(_.Ba.L(),"lm").yf(a,c)}catch(d){return new _.Oa(this.G,this.ba,a,this.w,c)}};Qb.prototype.d=function(a){Qb.F.d.call(this,a);this.o++};Rb=null;_.Sb=function(){if(!Rb){var a=_.gb()||new _.Qa,c=_.pb(),d=_.bb();Rb=new Qb(a,c,d,_.kb)}return Rb};_.K=function(a,c){_.Sb().log(a,c)};}catch(e){_._DumpException(e)}try{_.Tb=function(a){_.Tb[" "](a);return a};_.Tb[" "]=_.ba;}catch(e){_._DumpException(e)}try{var Ub,ac;Ub=function(a,c){return a<c?-1:a>c?1:0};_.Vb=function(a,c,d){for(var e in a)c.call(d,a[e],e,a)};_.Wb=function(a,c){for(var d=0,e=(0,_.qa)(String(a)).split("."),f=(0,_.qa)(String©).split("."),g=Math.max(e.length,f.length),h=0;0==d&&h<g;h++){var l=e[h]||"",q=f[h]||"",r=RegExp("(d*)(D*)","g"),x=RegExp("(d*)(D*)","g");do{var B=r.exec(l)||["","",""],O=x.exec(q)||["","",""];if(0==B[0].length&&0==O[0].length)break;d=Ub(0==B[1].length?0:(0,window.parseInt)(B[1],10),0==O[1].length?0:(0,window.parseInt)(O[1],10))||Ub(0==B[2].length,0==O[2].length)||Ub(B[2],O[2])}while(0==d)}return d};_.Xb=function(a){var c=typeof a;return"object"==c&&null!=a||"function"==c};_.Zb=function(a){return"function"==_.da(a)};_.$b=function(a){return"number"==typeof a};a:{var bc=_.m.navigator;if(bc){var cc=bc.userAgent;if(cc){ac=cc;break a}}ac=""}_.dc=function(a){return-1!=ac.indexOf(a)};_.ec=function(){return _.dc("Opera")||_.dc("OPR")};_.fc=function(){return _.dc("Edge")||_.dc("Trident")||_.dc("MSIE")};var gc=function(){return _.dc("Edge")};_.hc=function(){return _.dc("iPhone")&&!_.dc("iPod")&&!_.dc("iPad")};var mc,rc,sc,uc,yc,zc,wc;_.ic=_.ec();_.M=_.fc();_.jc=_.dc("Gecko")&&!(-1!=ac.toLowerCase().indexOf("webkit")&&!gc())&&!(_.dc("Trident")||_.dc("MSIE"))&&!gc();_.kc=-1!=ac.toLowerCase().indexOf("webkit")&&!gc();_.lc=_.kc&&_.dc("Mobile");mc=_.m.navigator||null;_.nc=mc&&mc.platform||"";_.oc=_.dc("Macintosh");_.pc=_.dc("Windows");_.qc=_.dc("Linux")||_.dc("CrOS");rc=function(){var a=ac;if(_.jc)return/rv[^);]+)()|;)/.exec(a);if(_.M&&gc())return/Edge/([d.]+)/.exec(a);if(_.M)return/b(?:MSIE|rv)[: ]([^);]+)()|;)/.exec(a);if(_.kc)return/WebKit/(S+)/.exec(a)};sc=function(){var a=_.m.document;return a?a.documentMode:void 0};_.tc=function(){if(_.ic&&_.m.opera){var a=_.m.opera.version;return _.Zb(a)?a():a}var a="",c=rc();c&&(a=c?c[1]:"");return _.M&&!gc()&&(c=sc(),c>(0,window.parseFloat)(a))?String©:a}();uc={}; _.vc=function(a){return uc[a]||(uc[a]=0<=_.Wb(_.tc,a))};_.xc=function(a){return _.M&&(gc()||wc>=a)};yc=_.m.document;zc=sc();wc=!yc||!_.M||!zc&&gc()?void 0:zc||("CSS1Compat"==yc.compatMode?(0,window.parseInt)(_.tc,10):5);}catch(e){_._DumpException(e)}try{var Dc,Ec;_.Ac=function(a,c){try{return _.Tb(a[c]),!0}catch(d){}return!1};_.Bc=function(a,c){var d=(0,_.sa)(a,c),e;(e=0<=d)&&_.ra.splice.call(a,d,1);return e};_.Cc=!_.M||_.xc(9);Dc=!_.M||_.xc(9);Ec=_.M&&!_.vc("9");!_.kc||_.vc("528");_.jc&&_.vc("1.9b")||_.M&&_.vc("8")||_.ic&&_.vc("9.5")||_.kc&&_.vc("528");_.jc&&!_.vc("8")||_.M&&_.vc("9");_.Fc=function(a,c){this.type=a;this.k=this.target=c;this.A=!1;this.$e=!0};_.Fc.prototype.stopPropagation=function(){this.A=!0};_.Fc.prototype.preventDefault=function(){this.$e=!1};_.Gc=_.M?"focusin":"DOMFocusIn";_.Hc=_.kc?"webkitTransitionEnd":_.ic?"otransitionend":"transitionend";_.Ic=function(a,c){_.Fc.call(this,a?a.type:"");this.o=this.k=this.target=null;this.B=this.keyCode=this.button=this.clientY=this.clientX=0;this.G=this.C=this.d=this.w=!1;this.b=this.state=null;a&&this.init(a,c)};_.w(_.Ic,_.Fc);_.Ic.prototype.init=function(a,c){var d=this.type=a.type;this.target=a.target||a.srcElement;this.k=c;var e=a.relatedTarget;e?_.jc&&(_.Ac(e,"nodeName")||(e=null)):"mouseover"==d?e=a.fromElement:"mouseout"==d&&(e=a.toElement);this.o=e;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.button=a.button;this.keyCode=a.keyCode||0;this.B=a.charCode||("keypress"==d?a.keyCode:0);this.w=a.ctrlKey;this.d=a.altKey;this.C=a.shiftKey;this.G=a.metaKey;this.state=a.state;this.b=a;a.defaultPrevented&&this.preventDefault()};_.Ic.prototype.stopPropagation=function(){_.Ic.F.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};_.Ic.prototype.preventDefault=function(){_.Ic.F.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ec)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch©{}};_.Ic.prototype.ba=function(){return this.b};var Mc;_.Jc="closure_listenable_"+(1E6*Math.random()|0);_.Kc=function(a){return!(!a||!a[_.Jc])};Mc=0;var Nc;Nc=function(a,c,d,e,f){this.ub=a;this.b=null;this.src=c;this.type=d;this.nc=!!e;this.Jc=f;this.key=++Mc;this.Jb=this.mc=!1};_.Oc=function(a){a.Jb=!0;a.ub=null;a.b=null;a.src=null;a.Jc=null};_.Pc=function(a){this.src=a;this.b={};this.d=0};_.Pc.prototype.add=function(a,c,d,e,f){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.d++);var h=_.Qc(a,c,e,f);-1<h?(c=a[h],d||(c.mc=!1)):(c=new Nc(c,this.src,g,!!e,f),c.mc=d,a.push©);return c};_.Pc.prototype.remove=function(a,c,d,e){a=a.toString();if(!(a in this.)return!1;var f=this.b[a];c=_.Qc(f,c,d,e);return-1<c?(_.Oc(f[c]),_.ra.splice.call(f,c,1),0==f.length&&(delete this.b[a],this.d--),!0):!1};_.Rc=function(a,c){var d=c.type;if(!(d in a.)return!1;var e=_.Bc(a.b[d],c);e&&(_.Oc©,0==a.b[d].length&&(delete a.b[d],a.d--));return e};_.Qc=function(a,c,d,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.Jb&&g.ub==c&&g.nc==!!d&&g.Jc==e)return f}return-1};var Sc,Tc,Uc,Yc,Zc,cd,bd,$c,dd;Sc="closure_lm_"+(1E6*Math.random()|0);Tc={};Uc=0;_.N=function(a,c,d,e,f){if(_.ea©){for(var g=0;g<c.length;g++)_.N(a,c[g],d,e,f);return null}d=_.Vc(d);return _.Kc(a)?a.Sa(c,d,e,f):_.Wc(a,c,d,!1,e,f)};_.Wc=function(a,c,d,e,f,g){if(!c)throw Error("g");var h=!!f,l=_.Xc(a);l||(a[sc]=l=new _.Pc(a));d=l.add(c,d,e,f,g);if(d.b)return d;e=Yc();d.b=e;e.src=a;e.ub=d;a.addEventListener?a.addEventListener(c.toString(),e,h):a.attachEvent(Zc(c.toString()),e);Uc++;return d};Yc=function(){var a=$c,c=Dc?function(d){return a.call(c.src,c.ub,d)}:function(d){d=a.call(c.src,c.ub,d);if(!d)return d};return c};_.ad=function(a){if(_.$b(a)||!a||a.Jb)return!1;var c=a.src;if(_.Kc©)return c.kc(a);var d=a.type,e=a.b;c.removeEventListener?c.removeEventListener(d,e,a.nc):c.detachEvent&&c.detachEvent(Zc(d),e);Uc--;(d=_.Xc©)?(_.Rc(d,a),0==d.d&&(d.src=null,c[sc]=null)):_.Oc(a);return!0};Zc=function(a){return a in Tc?Tc[a]:Tc[a]="on"+a};cd=function(a,c,d,e){var f=!0;if(a=_.Xc(a))if(c=a.b[c.toString()])for(c=c.concat(),a=0;a<c.length;a++){var g=c[a];g&&g.nc==d&&!g.Jb&&(g=bd(g,e),f=f&&!1!==g)}return f};bd=function(a,c){var d=a.ub,e=a.Jc||a.src;a.mc&&_.ad(a);return d.call(e,c)};$c=function(a,c){if(a.Jb)return!0;if(!Dc){var d=c||_.p("window.event"),e=new _.Ic(d,this),f=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var g=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==d.returnValue)d.returnValue=!0}d=[];for(g=e.k;g;g=g.parentNode)d.push(g);for(var g=a.type,l=d.length-1;!e.A&&0<=l;l--){e.k=d[l];var q=cd(d[l],g,!0,e),f=f&&q}for(l=0;!e.A&&l<d.length;l++)e.k=d[l],q=cd(d[l],g,!1,e),f=f&&q}return f}return bd(a,new _.Ic(c,this))}; _.Xc=function(a){a=a[sc];return a instanceof _.Pc?a:null};dd="__closure_events_fn_"+(1E9*Math.random()>>>0);_.Vc=function(a){if(_.Zb(a))return a;a[dd]||(a[dd]=function©{return a.handleEvent©});return a[dd]};}catch(e){_._DumpException(e)}try{var ed,fd;ed=function(a){var c=arguments.length;if(1==c&&_.ea(arguments[0]))return ed.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};fd=function(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c};_.gd=function(a){var c=[],d=0,e;for(e in a)c[d++]=a[e];return c};_.hd=function(a){var c=a.length;if(0<c){for(var d=Array©,e=0;e<c;e++)d[e]=a[e];return d}return[]};_.id=function(a){var c=_.da(a);return"array"==c||"object"==c&&"number"==typeof a.length};_.jd=ed("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));_.ld=function(){this.b="";this.d=_.kd};_.ld.prototype.tb=!0;_.kd={};_.ld.prototype.jb=function(){return this.b};_.md=function(a){var c=new _.ld;c.b=a;return c};_.nd=_.md("");_.pd=function(){this.b="";this.k=_.od;this.d=null};_.pd.prototype.Dd=!0;_.pd.prototype.Xb=function(){return this.d};_.pd.prototype.tb=!0;_.pd.prototype.jb=function(){return this.b};_.od={};_.qd=function(a,c){var d=new _.pd;d.b=a;d.d=c;return d};_.rd=_.qd("",0);_.sd=function(a,c,d){return Math.min(Math.max(a,c),d)};_.td="StopIteration"in _.m?_.m.StopIteration:Error("v");_.ud=function(){};_.ud.prototype.next=function(){throw _.td;};_.ud.prototype.Ob=function(){return this};_.vd=function(a,c){this.d={};this.b=[];this.o=this.k=0;var d=arguments.length;if(1<d){if(d%2)throw Error("b");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(a){"undefined"!=typeof _.vd&&a instanceof _.vd?(d=a.Ia(),e=a.Ja()):(d=fd(a),e=_.gd(a));for(var f=0;f<d.length;f++)this.set(d[f],e[f])}};_.k=_.vd.prototype;_.k.Ja=function(){wd(this);for(var a=[],c=0;c<this.b.length;c++)a.push(this.d[this.b[c]]);return a};_.k.Ia=function(){wd(this);return this.b.concat()};_.k.fc=function(){return 0==this.k};_.k.clear=function(){this.d={};this.o=this.k=this.b.length=0};_.k.remove=function(a){return _.(this.d,a)?(delete this.d[a],this.k--,this.o++,this.b.length>2*this.k&&wd(this),!0):!1};var wd=function(a){if(a.k!=a.b.length){for(var c=0,d=0;c<a.b.length;){var e=a.b[c];_.(a.d,e)&&(a.b[d++]=e);c++}a.b.length=d}if(a.k!=a.b.length){for(var f={},d=c=0;c<a.b.length;)e=a.b[c],_.(f,e)||(a.b[d++]=e,f[e]=1),c++;a.b.length=d}};_.k=_.vd.prototype;_.k.get=function(a,c){return _.(this.d,a)?this.d[a]:c};_.k.set=function(a,c){_.(this.d,a)||(this.k++,this.b.push(a),this.o++);this.d[a]=c};_.k.forEach=function(a,c){for(var d=this.Ia(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);a.call(c,g,f,this)}};_.k.clone=function(){return new _.vd(this)};_.k.Ob=function(a){wd(this);var c=0,d=this.b,e=this.d,f=this.o,g=this,h=new _.ud;h.next=function(){for(;{if(f!=g.o)throw Error("x");if(c>=d.length)throw _.td;var h=d[c++];return a?h:e[h]}};return h}; _.=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};_.yd=function(a){if("function"==typeof a.Ja)return a.Ja();if(_.t(a))return a.split("");if(_.id(a)){for(var c=[],d=a.length,e=0;e<d;e++)c.push(a[e]);return c}return _.gd(a)};_.zd=function(a){if("function"==typeof a.Ia)return a.Ia();if("function"!=typeof a.Ja){if(_.id(a)||_.t(a)){var c=[];a=a.length;for(var d=0;d<a;d++)c.push(d);return c}return fd(a)}};}catch(e){_._DumpException(e)}try{_.Ad=function(a,c){return function(){try{return a.apply(c,arguments)}catch(d){_.K(d)}}};_.Cd=function(a,c,d,e,f){d=_.Ad(d,f);d=_.N(a,c,d,e,f);_.Bd(a,c);return d};_.Bd=function(a,c){if(a instanceof window.Element){var d=_.y("eq").Pe(a,c);if(d)if(_.M&&d instanceof window.MouseEvent&&a.dispatchEvent){var e=window.document.createEvent("MouseEvent");e.initMouseEvent(d.type,!0,!0,d.view,d.detail,d.screenX,d.screenY,d.clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget);a.dispatchEvent(e)}else a.dispatchEvent&&a.dispatchEvent(d)}};}catch(e){_._DumpException(e)}try{var Hd;_.Dd=function(a,c,d,e,f){if(_.ea©){for(var g=0;g<c.length;g++)_.Dd(a,c[g],d,e,f);return null}d=_.Vc(d);return _.Kc(a)?a.Fc(c,d,e,f):_.Wc(a,c,d,!0,e,f)};_.Ed=function(a){_.H.call(this);this.R=a;this.U={}};_.w(_.Ed,_.H);var Fd=[];_.Ed.prototype.b=function(a,c,d,e){return Gd(this,a,c,d,e)};_.Ed.prototype.G=function(a,c,d,e,f){return Gd(this,a,c,d,e,f)};var Gd=function(a,c,d,e,f,g){_.ea(d)||(d&&(Fd[0]=d.toString()),d=Fd);for(var h=0;h<d.length;h++){var l=_.N(c,d[h],e||a.handleEvent,f||!1,g||a.R||a);if(!l)break;a.U[l.key]=l}return a};_.Ed.prototype.O=function(a,c,d,e){return Hd(this,a,c,d,e)};Hd=function(a,c,d,e,f,g){if(_.ea(d))for(var h=0;h<d.length;h++)Hd(a,c,d[h],e,f,g);else{c=_.Dd(c,d,e||a.handleEvent,f,g||a.R||a);if(!c)return a;a.U[c.key]=c}return a};_.Id=function(a,c,d,e){d.b(c,e,void 0,a.R||a,a)};_.Jd=function(a){_.Vb(a.U,_.ad);a.U={}}; _.Ed.prototype.M=function(){_.Ed.F.M.call(this);_.Jd(this)};_.Ed.prototype.handleEvent=function(){throw Error("y");}; </script> How will you be able to , perfectly , understand it and what it does in its details???
  16. hisoka

    html forms

    I read articles about hidden fields used in HTML forms like : <FORM METHOD="Get" ACTION="Profile.asp"><INPUT TYPE="Text" NAME="FirstName"> <INPUT TYPE="Text" NAME="LastName"><INPUT TYPE="Text" NAME="Age"><INPUT TYPE="hidden" NAME="UserStatus" VALUE="New"><INPUT TYPE="Submit" VALUE="Enter"></FORM> or <input type="text" size="25" value="Enter your name here!"><input type="hidden" name="Language" value="English"> However they did not convince me on the real purpose beyond using hidden fields in HTML forms . So I would like to know what is the real cause beyond using hidden fields in HTML forms??!!!
  17. hisoka

    javascript

    thank you what about this : "I tried to access the form like this alert(document.forms[0].role) but i did not succeed : it says undefined . I tried to change the index number to 2 , 3 , 4 ...7 but I did not work although my command is true . Why it did not work although my command is true?" document.forms["user"].name gives user as output document.forms["console"].name gives console as output I tried the same concerning this http://www.w3schools...l_doc_forms.asp <form role="form"> ..... alert(document.forms["form"].role) but it did not work why? and how it works ?
  18. Thank you Davej I learned many thing from your script . Please if I am wrong in all what I wrote or some of it then please correct me
  19. 'use strict'; tells that the JavaScript should be executed in a strict mode . I call it "intolerant mode" . in this link : http://www.w3schools.com/js/js_strict.asp it is written Using a variable (property or object) without declaring it, is not allowed: "use strict";x = 3.14; // This will cause an error (if x has not been declared) Deleting a variable, a function, or an argument, is not allowed. "use strict";x = 3.14;delete x; // This will cause an error Defining a property more than once, is not allowed: "use strict";var x = {p1:10, p1:20}; // This will cause an error Duplicating a parameter name is not allowed: "use strict";function x(p1, p1) {}; // This will cause an error The problem is when I put these same script in JavaScript editor or notepad save them as HTML then run them no errors are shown . Why ? and how to make JavaScript strict show me the errors???
  20. "why you put your java script code in different parts instead of putting it in one part <script> </script>???" When the <script> tag is used many times , the browser will execute the separated scripts one by one in order . Like cooking the first ingredient then once it is finished , going to the next until it is cooked then to the third.. The execution will be done in a different time . However when the separated scripts are gathered under one <script> , the execution will be simultaneous . Like putting all the ingredients together and cooking them in the same time. So logically , putting all the script under one <script> tag is better than using separated scripts for the sake of speed and efficiency and to avoid errors and for beauty too <!DOCTYPE html><html><body><script>window.onerror = function(a, b, c, d){alert('Javascript Error:n'+a+'nURL: '+b+'nLine: '+c+' Column: '+d);return true;}'use strict';window.onload = init;function init() {document.getElementById('btn1').onclick = fnd;}document.write("this text is inserted into the document");function fnd(){document.write("writing this text overwrites the entire document");}</script><input type="button" id="btn1" value="Enter"/><hr/><img src="http://media.mediatemple.netdna-cdn.com/wp-content/uploads/2012/04/doug-crockford-image.jpg" alt="dc"/></body> </html> is the same as this: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><title>title</title><script>window.onerror = function(a, b, c, d){alert('Javascript Error:n'+a+'nURL: '+b+'nLine: '+c+' Column: '+d);return true;}</script><script>'use strict';window.onload = init;function init() {document.getElementById('btn1').onclick = fnd;}</script></head><body><input type="button" id="btn1" value="Enter"/><hr/><img src="http://media.mediatemple.netdna-cdn.com/wp-content/uploads/2012/04/doug-crockford-image.jpg" alt="dc"/><script>document.write("this text is inserted into the document");function fnd(){document.write("writing this text overwrites the entire document");}</script></body> </html> "what is the difference between : this document.getElementById('btn1').onclick = fnd; and this document.getElementById('btn1').innerHTML = fnd(); ???" this: <!DOCTYPE html><html><body><script>function show1(){document.getElementById("myform").innerHTML ="sparta is destroyed";}</script><p id="myform">This is sparta</p><input type="button" value="Enter" onclick="show1();"></body> </html> change the inner content of a html element <!DOCTYPE html><html><body><script>function show1(){document.getElementById("myform").innerHTML =show();}function show(){document.write("sparta is destroyed");}</script><p id="myform" >this is sparta</p><input type="button" value="Enter" onclick="show1();"></body> </html> the same but through a function <!DOCTYPE html><html><body><script>function show1(){document.getElementById("myform").onclick =show();}function show(){document.write("sparta is destroyed");}</script><p id="myform" >this is sparta</p><input type="button" value="Enter" onclick="show1();"></body> </html>the same as the script above "why you used : window.onload ??" this : window.onload = init is equal to this onclick="init();" both they call a function when the enter button is clicked "what does this mean Javascript Error:n'+a+'nURL: '+b+'nLine: '+c+' Column: '+d) ??" it shows an error if there is an error in a specific line or column of the script
  21. "You aren't writing c code. You are writing JavaScript code which modifies the document it is executing in" you wrote a script in which there is a visual content which was overwritten by a textual content through a function that was triggered by an event . all happened inside the script itself . So I cannot see what is new in this :) in C or C++ you cannot overwrite a content by another content in the same code !!?
  22. I have some questions : why you use window.error? window.onerror = function(a, b, c, d){alert('Javascript Error:n'+a+'nURL: '+b+'nLine: '+c+' Column: '+d);return true; ??? why you put your java script code in different parts instead of putting it in one part <script> </script>??? what is the difference between : this document.getElementById('btn1').onclick = fnd; and this document.getElementById('btn1').innerHTML = fnd(); ??? what does this mean Javascript Error:n'+a+'nURL: '+b+'nLine: '+c+' Column: '+d) ?? why you used : window.onload ?? could you answer all these questions?
  23. In order to understand the document.getElementById('btn1').onclick = fnd; <!DOCTYPE html><html><body><head><title>w3school website</title></head><center><h1><font size="5" color="green">welcome to the w3school website</font></h1></center><p><b><big>we are here for your service. We do believe in the freedom of speech . our symbol is the horse as it represents the beauty , the prestige and the honor</big></b></p><img src = "http://i.nextmedia.com.au/Galleries/20110707030945_Horse21.jpg"><script>function show1(){document.getElementById("myform").innerHTML = show();}function show(){var a = document.forms["console"]["fname"].value;if(a == "" || a == null){alert("please enter a name ");return false ;}if(a!= "" || a!= null){document.body.style.backgroundColor="red";return false;}}</script><center><form name = "console" id="myform" onsubmit="show(); return false ;" ><input type= "text" name="fname" /><p>Enter your name</p><input type="submit" name="mysubmit" value="Click!" /></form></center></body></html>
  24. hisoka

    javascript

    In order to better understand this : document.forms["myForm"]["fname"] I write this little script <!DOCTYPE html><html><body><form name="console" onsubmit="return show()"><input type="text" name="hisoka" /><p>Enter your name</p><input type="submit" name="mysubmit" value="Click!" /></form><br><form name="log" onsubmit="return show1()"><input type="text" name="admin" /><p>Enter your name</p><input type="submit" name="mysubmit" value="Click!" /></form><b><form name="sys" onsubmit="return show2()"><input type="text" name="gini" /><p>Enter your name</p><input type="submit" name="mysubmit" value="Click!" /></form><br><form name="user" onsubmit="return show3()"><input type="text" name="brock" /><p>Enter your name</p><input type="submit" name="mysubmit" value="Click!" /></form><script>function show(){var a = document.forms["console"];alert(a);}function show1(){var b = document.forms["log"];alert(;}function show2(){var c = document.forms["sys"];alert(c);}function show3(){var d = document.forms["user"];alert(d);}</script></body></html> but it shows for all : object html form element as an output what am I missing ?
  25. hisoka

    javascript

    ------ ---- - --document (object root)----------------------- | | | | | | | | | | --forms images links cookie domain | | | | | | | | | | www.w3schools.com input(1,2,3) src(1,2,3) href(1,2,3) document is the object root and has a collection of elements that differ by type like (forms , domain , links , cookie , images , forms). These elements are the properties of the object root . They have values like(input , src , href....) . The elements of the root object are organised and ordered and can be accessed by index- like in arrays , elements are ordered and accessed by their index numbers in arrays- for example forms[0] , forms[1] and so on .... so in order to access the forms[0] we need to do like this document.forms[0].(variable that holds the name of the form) for example : document.forms[0].id the document.forms[0] is telling javascript that we are dealing with properties of form type the id make our query more specific and tells javascript that we want the value of the first form in the document or object root. However in this link : http://www.w3schools.com/jsref/coll_doc_forms.asp I accessed the source code and find this form <form role="form"><div class="form-group"><label for="err_email">Your Email:</label><input class="form-control" type="email" id="err_email" name="err_email" /></div><div class="form-group"><label for="err_email">Page address:</label><input class="form-control" type="text" id="err_url" name="err_url" disabled="disabled" /></div><div class="form-group"><label for="err_email">Description:</label><textarea rows="10" class="form-control" id="err_desc" name="err_desc"></textarea></div><div class="form-group"> <button type="button" class="btn btn-default" onclick="sendErr()">Submit</button></div></form><form role="form"><div class="form-group"><label for="err_email">Your Email:</label><input class="form-control" type="email" id="err_email" name="err_email" /></div><div class="form-group"><label for="err_email">Page address:</label><input class="form-control" type="text" id="err_url" name="err_url" disabled="disabled" /></div><div class="form-group"><label for="err_email">Description:</label><textarea rows="10" class="form-control" id="err_desc" name="err_desc"></textarea></div><div class="form-group"> <button type="button" class="btn btn-default" onclick="sendErr()">Submit</button></div></form> I tried to access the form like this alert(document.forms[0].role) but i did not succeed : it says undefined . I tried to change the index number to 2 , 3 , 4 ...7 but I did not work although my command is true . Why it did not work although my command is true?
×
×
  • Create New...