Skip to content

Commit

Permalink
Fixed issues/56
Browse files Browse the repository at this point in the history
  • Loading branch information
shenweiyan committed Nov 19, 2024
1 parent 432fd2b commit 30432f9
Showing 1 changed file with 18 additions and 29 deletions.
47 changes: 18 additions & 29 deletions layouts/partials/content_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,22 @@
</ul>

{{ if not (eq $.Site.Params.qweather.key "") }}
<div class="rounded-circle weather">
<div id="he-plugin-simple" style="display: contents;"></div>
<script>WIDGET = {
CONFIG: {
"modules": "01234",
"background": 5,
"tmpColor": "E4C600",
"tmpSize": 14,
"cityColor": "E4C600",
"citySize": 14,
"aqiColor": "#E4C600",
"aqiSize": 14,
"weatherIconSize": 24,
"alertIconSize": 18,
"padding": "10px 10px 10px 10px",
"shadow": "1",
"language": "auto",
"borderRadius": 5,
"fixed": "false",
"vertical": "middle",
"horizontal": "left",
"key": "{{ $.Site.Params.qweather.key }}"
}
}
</script>
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>
</div>

<div id="tp-weather-widget"></div>
<script>
(function(a,h,g,f,e,d,c,b){b=function(){d=h.createElement(g);c=h.getElementsByTagName(g)[0];d.src=e;d.charset="utf-8";d.async=1;c.parentNode.insertBefore(d,c)};a["SeniverseWeatherWidgetObject"]=f;a[f]||(a[f]=function(){(a[f].q=a[f].q||[]).push(arguments)});a[f].l=+new Date();if(a.attachEvent){a.attachEvent("onload",b)}else{a.addEventListener("load",b,false)}}(window,document,"script","SeniverseWeatherWidget","//cdn.sencdn.com/widget2/static/js/bundle.js?t="+parseInt((new Date().getTime() / 100000000).toString(),10)));
window.SeniverseWeatherWidget('show', {
flavor: "slim",
location: "WS0UW38KR4ZC",
geolocation: true,
language: "auto",
unit: "c",
theme: "auto",
token: "10c4daf3-6a05-4d21-b26f-2c0b9349ee8b",
hover: "enabled",
container: "tp-weather-widget"
})
</script>
{{ end }}
</div>

Expand All @@ -92,11 +81,11 @@
<!--li class="nav-search ml-3 ml-md-4">
<a href="javascript:" data-toggle="modal" data-target="#search-modal"><i
class="iconfont icon-search icon-2x"></i></a>
</li>
</li-->
<li class="nav-item d-md-none mobile-menu ml-3 ml-md-4">
<a href="javascript:" id="sidebar-switch" data-toggle="modal"
data-target="#sidebar"><i class="iconfont icon-classification icon-2x"></i></a>
</li-->
</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit 30432f9

Please sign in to comment.