-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (82 loc) · 2.41 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>TEF components demo</title>
<meta name="viewport" content="width=device-width">
<link id="themeFile" rel="stylesheet" href="../theme_telefonica/css/components.telefonica.css">
<style>
header[data-columns] { padding-top: 30px; }
h1 { margin-top: 0; }
header > div { padding-top: 2px; }
code {
display: block;
overflow: hidden;
}
style {
display: block;
white-space: pre;
color: #0086B3;
border: 1px solid #cfcece;
background: #f2f2f2;
margin: 20px 0;
line-height: 25px;
overflow-y: auto;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="tc-wrapper tc-content">
<header data-columns="2 xs1">
<h1>Lists</h1>
<div>
<label>Change theme</label>
<div class="tc-dropdown" data-icon="down">
<select id="themeSelector">
<option value="telefonica">Telefónica</option>
<option value="movistar">Movistar</option>
<option value="o2">O2</option>
<option value="vivo">Vivo</option>
</select>
</div>
</div>
</header>
<h2>Default</h2>
<div class="tc-list">
<ul>
<li><a href="">List item 1</a></li>
<li>List item 2 (not clickable)</li>
<li><a href="">List item 3</a></li>
<li><a href="">List item 4</a></li>
<li><a href="">List item 5</a></li>
<li><a href="">List item 6</a></li>
</ul>
</div>
<code>
<style>
<div class="tc-list">
<ul>
<li><a href="">List item 1</a></li>
<li>List item 2 (not clickable)</li>
<li><a href="">List item 3</a></li>
<li><a href="">List item 4</a></li>
<li><a href="">List item 5</a></li>
<li><a href="">List item 6</a></li>
</ul>
</div>
</style>
</code>
</div>
<script>
var theme = document.getElementById('themeSelector');
theme.addEventListener('change', function() {
var link = document.getElementById('themeFile');
link.href = '../theme_'
+ theme.value + '/css/components.'
+ theme.value + '.css';
});
</script>
</body>
</html>