3 $frameworks = parse_ini_file('config.ini', true);
4 $selectors = file_get_contents('selectors.list');
9 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
12 <title>SlickSpeed Selectors Test</title>
13 <link rel="stylesheet" href="style.css" type="text/css" media="screen">
15 <script type="text/javascript">
17 $selectors = explode("\n", $selectors);
18 foreach ($selectors as $i => $selector) $list[$i] = "'".$selector."'";
19 $list = implode(',', $list);
20 echo "window.selectors = [$list]";
24 <script src="system/slickspeed.js" type="text/javascript"></script>
32 <a class="stop" href="#">stop tests</a>
33 <a class="start" href="#">start tests</a>
36 <?php include('header.html'); ?>
39 foreach ($frameworks as $framework => $properties){
40 $include = $properties['file'];
41 $function = $properties['function'];
42 $modifier = $properties['modifier'];
44 echo "<iframe name='$framework' src='system/template.php?include=$include&function=$function&modifier=$modifier&nocache=$time'></iframe>\n\n";
52 <th class="selectors-title">selectors</th>
54 foreach ($frameworks as $framework => $properties){
55 echo "<th class='framework'>$framework</th>";
63 foreach ($selectors as $selector){
65 $selector = str_replace('%', '', $selector);
66 echo "<th class='selector'>$selector</th>";
67 foreach ($frameworks as $framework){
68 echo "<td class='empty'></td>";
77 <th class="score-title"><strong>final time (less is better)</strong></th>
79 foreach ($frameworks as $framework){
80 echo "<td class='score'>0</td>";
95 <th>exception thrown or zero elements found</th>
96 <th>different returned elements</th>
100 <td class="good"></td>
101 <td class="bad"></td>
102 <td class="exception"></td>
103 <td class="mismatch"></td>
108 <?php include('footer.html'); ?>