Esempio 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"));
 }
Esempio 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);
        }
Esempio n. 3
0
        public static jQuery Css_display_Inline_Block(this jQuery query)
        {
            query.Css("display", "inline-block");

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

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

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

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

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