|
@@ -54,6 +54,12 @@
|
54
|
54
|
<li><a href="http://xythobuz.de/git/">Git</a></li>
|
55
|
55
|
<li><a href="http://xythobuz.de/lastmusic">🎵</a></li>
|
56
|
56
|
<li><a href="http://xythobuz.de/printer.jpg">🔨</a></li>
|
|
57
|
+ <div class="fonts">
|
|
58
|
+ <li><span class="font-big">Text:</span></li>
|
|
59
|
+ <li><a class="dec" href="#"><span class="font-big">A</span><span class="font-small">A</span></a></li>
|
|
60
|
+ <li><a class="reset" href="#"><span class="font-big">A</span><span class="font-big">A</span></a></li>
|
|
61
|
+ <li><a class="inc" href="#"><span class="font-small">A</span><span class="font-big">A</span></a></li>
|
|
62
|
+ </div>
|
57
|
63
|
<!--%
|
58
|
64
|
tmp = [p for p in page["lang_links"].iteritems()]
|
59
|
65
|
if len(tmp) > 1:
|
|
@@ -134,6 +140,28 @@
|
134
|
140
|
print '});'
|
135
|
141
|
print '</script>'
|
136
|
142
|
%-->
|
|
143
|
+ <script type="text/javascript">
|
|
144
|
+ $(document).ready(function(){
|
|
145
|
+ var fontSize = parseInt($('body').css('font-size'), 10);
|
|
146
|
+ var initialFontSize = fontSize;
|
|
147
|
+ $('.inc').on('click', function() {
|
|
148
|
+ fontSize += 1;
|
|
149
|
+ $('body').css('font-size', fontSize + 'px');
|
|
150
|
+ })
|
|
151
|
+ $('.dec').on('click', function() {
|
|
152
|
+ if (fontSize > 1) {
|
|
153
|
+ fontSize -= 1;
|
|
154
|
+ $('body').css('font-size', fontSize + 'px');
|
|
155
|
+ }
|
|
156
|
+ })
|
|
157
|
+ $('.reset').on('click', function() {
|
|
158
|
+ if (fontSize != initialFontSize) {
|
|
159
|
+ fontSize = initialFontSize;
|
|
160
|
+ $('body').css('font-size', initialFontSize + 'px');
|
|
161
|
+ }
|
|
162
|
+ })
|
|
163
|
+ })
|
|
164
|
+ </script>
|
137
|
165
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"></script>
|
138
|
166
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.2.18/js/lightgallery-all.min.js"></script>
|
139
|
167
|
<script type="text/javascript">
|