forked from googlearchive/erlnmyr
-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.ejs
29 lines (29 loc) · 930 Bytes
/
example.ejs
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
<!DOCTYPE html>
<% permutation([ function() { style=function() { return 'width: ' + random(100, 500) + 'px;' }; },
function() { style=function() { return "" }; },
function() { style=function() { return 'background-color: rgb(' + random(0,255) + ',' + random(0,255) + ',' + random(0,255) + ');';} }])%>
<% permutation([ function() { %>
<% repeat(1000, function() { %>
<div style='<%= style() %>'><%= randomText(500, 500) %></div>
<% }) %>
<%}, function() { %>
<% repeat(10, function() { %>
<div>
<% repeat(100, function() { %>
<div style='<%= style() %>'><%= randomText(500, 500) %></div>
<% }) %>
</div>
<% }) %>
<%}, function() {%>
<% repeat(10, function() { %>
<div>
<% repeat(10, function() { %>
<div>
<% repeat(10, function() { %>
<div style='<%= style() %>'><%= randomText(500, 500) %></div>
<% }) %>
</div>
<% }) %>
</div>
<% }) %>
<%}]) %>