Exemplo n.º 1
0
 public static void SetBounds(out int x, out int y, out int w, out int h, jQuery obj)
 {
     x = Global.ParseInt(obj.Css("left"));
     y = Global.ParseInt(obj.Css("top"));
     w = Global.ParseInt(obj.Css("width"));
     h = Global.ParseInt(obj.Css("height"));
 }
Exemplo n.º 2
0
        public static jQuery highlight(this jQuery el)
        {
            var oldColor = el.Css("background-color");
            var opacity  = el.Css("opacity");

            el.Css("background-color", "#ffff99");
            el.Css("opacity", 0.9);

            Window.SetTimeout(() =>
            {
                el.Css("background-color", oldColor);
                el.Css("opacity", opacity);
            }, 600);

            return(el);
        }
Exemplo n.º 3
0
        public static jQuery Css_display_Inline_Block(this jQuery query)
        {
            query.Css("display", "inline-block");

            return(query);
        }
Exemplo n.º 4
0
        public static jQuery Css_width_max(this jQuery query)
        {
            query.Css("width", "100%");

            return(query);
        }
Exemplo n.º 5
0
        public static jQuery Css_width(this jQuery query, string value)
        {
            query.Css("width", value);

            return(query);
        }
Exemplo n.º 6
0
        public static jQuery Css_height_max(this jQuery query)
        {
            query.Css("height", "100%");

            return(query);
        }
Exemplo n.º 7
0
        public static jQuery Css_float_Left(this jQuery query)
        {
            query.Css("float", "left");

            return(query);
        }
Exemplo n.º 8
0
 public void hide()
 {
     height = 0;
     jquery.Css("display", "none");
 }