-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (56 loc) · 1.92 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
<!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 rel="stylesheet" href="../theme_telefonica/css/components.telefonica.min.css">
<link rel="stylesheet" href="../icons/fonts/icons.css">
<link rel="stylesheet" href="css/bp-inspector.css" media="all">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
</head>
<body>
<div id="header-wrapper">
<header role="banner">
<h1>Breakpoint inspector</h1>
<div class="theme-selector">
<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>
<nav id="breakpoints"></nav>
<form id="bp-form">
<input id="bp-width" type="text" pattern="[0-9]*"> px
</form>
</header>
</div>
<div id="main-wrapper">
<div id="iframe-wrapper">
<iframe id="iframe" src="../theme_telefonica/index.html"></iframe>
</div>
</div>
<script src="js/jwerty.js"></script>
<script>
var breakpoints = { 'XS' : '479',
'SM' : '767',
'MD' : '991',
'LG' : '1166' }
</script>
<script src="js/bp-inspector.js"></script>
<script>
var theme = document.getElementById('themeSelector');
theme.addEventListener('change', function() {
var link = document.getElementById('iframe');
link.src = '../theme_'
+ theme.value + '/index.html';
});
</script>
</body>
</html>