Exemplo n.º 1
0
        private static HElement Page(MainState state)
        {
            var page = h.Html
                       (
                h.Head(
                    h.Element("title", "SoftTech.Wui.WebConsole")
                    ),
                h.Body
                (
                    h.Div
                    (
                        h.Raw(string.Format("1<b>{0:dd.MM.yy.HH:mm:ss.fff}</b> 2", DateTime.Now))
                    ),
                    h.Input(h.type("text"), h.Attribute("onkeyup", ";"), new hdata {
                { "command", "text" }
            }),
                    h.Div(state.Text),
                    h.Div(h.A(h.href("multi.html"), "multi sync frames")),
                    h.Div(h.A(h.href("auth-view.html"), "auth-view"))
                    //h.Div(DateTime.UtcNow),
                    //h.Input(h.type("button"), h.onclick(";"), h.value("update")),
                    //h.Div(1, h.Attribute("js-init", "$(this).css('color', 'red')"))
                )
                       );

            return(page);
        }
Exemplo n.º 2
0
 private static HElement Page(MainState state)
 {
     var page = h.Div
       (
     h.Div(DateTime.UtcNow),
     h.Input(h.type("button"), h.onclick(";"), h.value("update")),
     h.Div(1, h.Attribute("js-init", "$(this).css('color', 'red')"))
       );
       return page;
 }
Exemplo n.º 3
0
        private static HElement Page(MainState state)
        {
            var page = h.Div
                       (
                h.Div(DateTime.UtcNow),
                h.Input(h.type("button"), h.onclick(";"), h.value("update")),
                h.Div(1, h.Attribute("js-init", "$(this).css('color', 'red')"))
                       );

            return(page);
        }
Exemplo n.º 4
0
 private static HElement Page(MainState state, HContext context)
 {
     var page = h.Div
       (
     h.Div(DateTime.UtcNow),
     h.Div(DateTime.UtcNow.Second / 2 % 2 == 0),
     h.Input(h.type("button"), h.onclick(";"), h.value("update")),
     h.Input(h.type("button"), h.onclick(";;sync.server_element_event(this, e)"), h.value("manual update"), new hdata{{"command", "test"}}),
     h.Div(1, h.Attribute("js-init", "$(this).css('color', 'green')")),
     h.Div(DateTime.UtcNow.Second / 2 % 2 == 0 ? new HRaw("12<b>a</b>q"): null),
     h.Div
     (
       HWebSynchronizeHandler.Updates(context.HttpContext)
        .Select(update => h.Div(string.Format("{0}({1}): {2}", update.Handler, update.Cycle, update.Elapsed)))
     )
       );
       return page;
 }
Exemplo n.º 5
0
        private static HElement Page(MainState state, HContext context)
        {
            var page = h.Div
                       (
                h.Div(DateTime.UtcNow),
                h.Div(DateTime.UtcNow.Second / 2 % 2 == 0),
                h.Input(h.type("button"), h.onclick(";"), h.value("update")),
                h.Input(h.type("button"), h.onclick(";;sync.server_element_event(this, e)"), h.value("manual update"), new hdata {
                { "command", "test" }
            }),
                h.Div(1, h.Attribute("js-init", "$(this).css('color', 'green')")),
                h.Div(DateTime.UtcNow.Second / 2 % 2 == 0 ? new HRaw("12<b>a</b>q"): null),
                h.Div
                (
                    HWebSynchronizeHandler.Updates(context.HttpContext)
                    .Select(update => h.Div(string.Format("{0}({1}): {2}", update.Handler, update.Cycle, update.Elapsed)))
                )
                       );

            return(page);
        }
Exemplo n.º 6
0
 private static HElement Page(MainState state)
 {
     var page = h.Html
       (
     h.Head(
       h.Element("title", "SoftTech.Wui.WebConsole")
     ),
     h.Body
     (
       h.Div
       (
     h.Raw(string.Format("1<b>{0:dd.MM.yy.HH:mm:ss.fff}</b> 2", DateTime.Now))
       ),
       h.Input(h.type("text"), h.Attribute("onkeyup", ";"), new hdata{{"command", "text"}}),
       h.Div(state.Text),
       h.A(h.href("multi.html"), "multi sync frames")
       //h.Div(DateTime.UtcNow),
       //h.Input(h.type("button"), h.onclick(";"), h.value("update")),
       //h.Div(1, h.Attribute("js-init", "$(this).css('color', 'red')"))
     )
       );
       return page;
 }