Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.fn.disable = function () {
- $(this).attr("disabled", "true");
- return this;
- }
- $(function () {
- $("html").css("font-size", "10px");
- var allObj = [];
- for(var D in window) if(typeof eval("window."+D) == "object") allObj.push(D);
- $('#m-name').keyup(function (k) {
- if(k.keyCode == 13) sum();
- $(this).each(function() {
- $(this).val($(this).val().replace(/\./gi, ""));
- $(this).autocomplete({source:allObj})
- })
- })
- $('button').click( function () {
- $("#m-name").disable();
- $('#methods').show();
- var k=$("#m-name").val(),b=[];
- for(var D in eval(k)) {
- v=eval(k+"."+D);
- v===null||v==""?v="null":v;
- typeof v=="function"?v="function":v;
- b.push(k+"."+D + " ("+ (typeof v) + ")" + " = " + v);
- }
- $("#m-all").val(k).attr("type", "text").focus().autocomplete({source:b});
- });
- });
- const sum = (function () {
- $("button").click();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement