forked from arctic5/SLAcompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.sla
42 lines (42 loc) · 1.43 KB
/
demo.sla
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!doctype html>
<html>
<head>
<style>
#blue{
background: lightblue;
margin: 5px;
padding: 5px;
display: inline-block;
}
.box{
height: 100px;
width: 100px;
background:lightgrey;
display:inline-block;
margin:5px;
}
.red{background:red;}
.blue{background:blue;}
.green{background:green;}
.yellow{background:yellow;}
</style>
</head>
<body>
This file can be quickly thrown into GSLAUUA to show how it works.<br/>
<div#blue>For starters, this text should be in a pale blue box. This is achieved using a simple # to stand in for "id=".</div>
<br/><br/>
<?php
x = 2;
if (x > 0){ print("If you are using a PHP server, you should notice this text, where the greater-than symbol was left alone in the operator.")}
?>
<br/><br/>
Here are some boxes.
<br/>
<div.box.red></div>
<div.box.blue></div>
<div.box.green></div>
<div.box.yellow></div>
<br/><br/><br/><br/><br/><br/>
<a href="#blue" title='GSLAUUA supports both double-quotes and single-quotes for element attributes.'>If you lower your window size so that this link is the only thing showing, and then click on it, you will jump to the blue box, since it's an ID.
</body>
</html>