UNPKG

2.8 kBHTMLView Raw
1<!DOCTYPE html>
2<!--
3The entry point for client. This file is loaded just once when the client is captured.
4It contains socket.io and all the communication logic.
5-->
6<html>
7<head>
8%X_UA_COMPATIBLE%
9 <title>Karma</title>
10 <link href="favicon.ico" rel="icon" type="image/x-icon">
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
12 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
13 <style type="text/css">
14 iframe {
15 height: 100%;
16 width: 100%;
17 border: 0;
18 }
19
20 html, body {
21 height: 100%;
22 padding: 0;
23 margin: 0;
24
25 font-family: sans-serif;
26 }
27
28 .offline {
29 background: #DDD;
30 }
31
32 .online {
33 background: #6C4;
34 }
35
36 .idle {
37 }
38
39 .executing {
40 background: #F99;
41 }
42
43 #banner {
44 padding: 5px 10px;
45 }
46
47 h1 {
48 font-size: 1.8em;
49 margin: 0;
50 padding: 0;
51 }
52
53 ul {
54 margin: 0;
55 padding: 0;
56
57 list-style: none;
58 }
59
60 li {
61 padding: 5px 12px;
62 }
63
64 .btn-debug {
65 float: right;
66 }
67
68 .offline .btn-debug {
69 display: none;
70 }
71
72 .btn-debug {
73 -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
74 -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
75 box-shadow:inset 0px 1px 0px 0px #ffffff;
76 background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffffff), color-stop(1, #f6f6f6) );
77 background:-moz-linear-gradient( center top, #ffffff 5%, #f6f6f6 100% );
78 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6');
79 background-color:#ffffff;
80 -moz-border-radius:6px;
81 -webkit-border-radius:6px;
82 border-radius:6px;
83 border:1px solid #dcdcdc;
84 display:inline-block;
85 color:#666666;
86 font-family:arial;
87 font-size:15px;
88 font-weight:bold;
89 padding:6px 24px;
90 text-decoration:none;
91 text-shadow:1px 1px 0px #ffffff;
92 }
93
94 .btn-debug:hover {
95 background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff) );
96 background:-moz-linear-gradient( center top, #f6f6f6 5%, #ffffff 100% );
97 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#ffffff');
98 background-color:#f6f6f6;
99 }
100 </style>
101</head>
102<body>
103 <div id="banner" class="offline">
104 <a href="#" onclick="window.open('debug.html%X_UA_COMPATIBLE_URL%')" class="btn-debug">DEBUG</a>
105 <h1 id="title">Karma - starting</h1>
106 </div>
107
108 <ul id="browsers"></ul>
109
110 <iframe id="context" src="about:blank" width="100%" height="100%"></iframe>
111
112 <script src="socket.io/socket.io.js"></script>
113 <script src="karma.js"></script>
114</body>
115</html>