summaryrefslogblamecommitdiffstats
path: root/cwd/test.rml
blob: 4c7bfa6d60563d0cd5443adb7c75f4e8968a2265 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  







                                                                                

           









                                                                                                     


              
<rml>
    <head>
        <link type="text/rcss" href="test.rcss" />
        <script>
            redLvl = 0
            function Test(elem)
                elem.style["background-color"] = "rgb(" .. redLvl .. ",255,255)"
                print("New background-color: "..elem.style["background-color"])
                redLvl = redLvl + 50
            end
        </script>
    </head>
    <body>
        Test RmlUi
        <br />
        New line
        <div>
            Substring
        </div>
        <br />
        <button onclick="print('Button clicked!')" style="background-color:navy;">Clickable!</button>
        <div class="right-pos" onclick="Test(element)">
            (Clickable) Right viewport border is here ->
        </div>
    </body>
</rmL>