-
-
Notifications
You must be signed in to change notification settings - Fork 145
/
Copy paththumb.html
108 lines (101 loc) · 3.19 KB
/
thumb.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
---
permalink: /thumb/
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Test </title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0">
<link href="https://unpkg.com/@fortawesome/[email protected]/css/all.css" rel="stylesheet" />
<link href="{{ site.baseurl }}/default/bulmaswatch.min.css" id="stylesheet" rel="stylesheet" type="text/css" />
<style type="text/css">
.switcher {
position: fixed;
top: 0;
right: 0;
z-index: 5;
}
.navbar h1 {
font-weight: bold;
}
.navbar>.container,
.navbar-start,
.navbar-item {
display: flex;
}
.navbar-item {
align-items: center;
}
body.flatly .navbar-item:not(.is-active) {
color: #fff !important;
}
</style>
</head>
<body>
<section class="hero is-fullheight">
<div class="hero-head">
<nav class="navbar">
<div class="container">
<div class="navbar-start">
<h1 class="navbar-item" id="title"> Hero title </h1>
<a class="navbar-item is-active">Home</a>
<a class="navbar-item">Features</a>
</div>
</div>
</nav>
</div>
<div class="hero-body">
<div class="container has-text-centered">
<a class="button">Button</a>
<a class="button is-primary">Primary</a>
<a class="button is-info">Info</a>
<a class="button is-link">Link</a>
<br class="is-hidden-tablet">
<br class="is-hidden-tablet">
<a class="button is-success">Success</a>
<a class="button is-warning">Warning</a>
<a class="button is-danger">Danger</a>
</div>
</div>
</section>
<div class="switcher select is-hidden-mobile">
<select>
<option value="default" selected="">Default</option>
<option disabled>───</option>
{% for t in site.themes %}
<option value="{{ t.name | slugify }}">{{ loop.index }} {{ t.name }} </option>
{% endfor %}
</select>
</div>
<script crossorigin="anonymous" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" src="//code.jquery.com/jquery-3.1.1.min.js">
</script>
<script type="text/javascript">
function switchTheme(t) {
var theme = t || 'default';
$('#stylesheet').attr('href', '../' + theme + '/bulmaswatch.min.css');
var title = theme.charAt(0).toUpperCase() + theme.substring(1);
window.history.replaceState(theme, title, '?' + theme);
$('#title').text(title);
$('#subtitle').text(title);
document.title = title;
}
$(function () {
$('.switcher select').change(function (e) {
switchTheme(e.target.value);
});
if (window.location.search) {
$('.switcher select').val(window.location.search.substring(1));
$('.switcher select').trigger('change');
$('body').addClass(window.location.search.substring(1));
}
$('.modal-background, .modal-close').click(function () {
$(this).parent().removeClass('is-active');
});
$('#open-preview').on('click', function (e) {
window.top.location.href = '{{ site.baseurl }}/' + window.location.search.substring(1);
});
});
</script>
</body>
</html>