-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (159 loc) · 4.43 KB
/
index.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!doctype html>
<head>
<title>Optimizely Sizely, Visualizely</title>
<link rel="stylesheet" href="codemirror.css">
<link rel="stylesheet" href="webtreemap.css">
<style>
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
html, body {
height: 100%;
}
#horizontal {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
}
#list-pane {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
overflow-y: scroll;
transform: translateX(-100%);
transition: transform 300ms linear;
}
#map-pane {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
transform: translateX(0);
transition: transform 300ms linear;
}
#map {
height: 100%;
width: 100%;
overflow-y: scroll;
position: relative;
}
a[data-variation-id] {
cursor: pointer;
color: blue;
}
#code {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow-y: scroll;
transform: translateX(100%);
transition: transform 300ms linear;
}
.CodeMirror {
border: 1px solid #ccc;
height: 450px;
font-size: 90%;
margin-bottom: 6px;
background: white;
}
#menu {
padding: 5px;
}
.input-left {
display: inline-block;
height: 20px;
padding: 4px 0 4px 4px;
border: 1px solid #ccc;
border-width: 1px 0 1px 1px;
border-radius: 4px 0 0 4px;
color: #555;
}
.input-right {
display: inline-block;
height: 20px;
padding: 4px 4px 4px 0;
border: 1px solid #ccc;
border-width: 1px 1px 1px 0;
border-radius: 0 4px 4px 0;
color: #555;
}
#menu button {
height: 28px;
padding: 4px;
display: inline-block;
border: 1px solid #ccc;
background: transparent;
border-radius: 4px;
}
#menu input {
height: 20px;
padding: 4px;
text-align: center;
border: 1px solid #ccc;
}
.webtreemap-symbol-light-warning {
background: #ffe8e8;
}
.webtreemap-symbol-warning {
background: #ffcccc;
}
</style>
</head>
<body>
<div id="menu">
<span class="input-left">Order by</span><select id="sortby">
<option value="size">Size</option>
<option value="age">Age</option>
</select><span class="input-right"> </span>
<button class="back-to-map">View as map</button>
<button class="back-to-list">View as list</button>
<a href="https://github.com/joeframbach/optisizely" style="float:right"><button>Fork me on Github</button></a>
<a href="?" style="float:right"><button>What is Optisizely?</button></a>
</div>
<div id="horizontal">
<div id="list-pane">
<ol id="list"></ol>
</div>
<div id="map-pane">
<div id="map">
<h1>Optimizely Sizely, Visualizely</h1>
<h3>Did you know?</h3>
<p>Optimizely bundles together <strong>all</strong> of your experiment and variation code into one big bundle, and loads it on <strong>every</strong> page on your site which uses Optimizely.</p>
<p>This is a cool visualization to show how much your Optimizely test adds to page load time.</p>
<p>Add your project id as a querystring, or check out these examples:</p>
<p><a href="?4391536040">Optimizely's optisize</a></p>
<p><a href="?24703920">Citrix's optisize</a></p>
<p><a href="?9718688">eHow's optisize</a></p>
<p><a href="?755883233">Hotwire's optisize</a></p>
<p><a href="?83458010">NerdWallet's optisize</a></p>
<p><a href="?2165650476">Spreadshirt's optisize</a></p>
<p><a href="?2281002">Treehouse's optisize</a></p>
<p><a href="?707992661">Trulia's optisize</a></p>
<p><a href="?305025425">Udemy's optisize</a></p>
<h3>Optisizely is not affiliated with Optimizely.</h3>
</div>
</div>
<div id="code">
<p class="current-variation"></p>
<textarea id="source" rows="30" cols="160"></textarea>
</div>
</div>
<script src="jquery-2.1.4.min.js"></script>
<script src="webtreemap.js"></script>
<script src="beautify.js"></script>
<script src="codemirror.js"></script>
<script src="codemirror-javascript-mode.js"></script>
<script src="optisizely.js"></script>
</body>