1.3.5 • Published 4 years ago

hexo-electric-clock-plus v1.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

hexo-electric-clock-plus

修改自 Zfour 大佬的 hexo-electric-clock,主要解决了搜狐 API 对境外 IP 访问失效的问题。主要修改内容:

  • 将原搜狐 API:
https://pv.sohu.com/cityjson?ie=utf-8

改为通过请求 ip-api 网址获取 IP 信息:

https://ipapi.co/json/
  • 调整 CCS 样式,使得当获取到的 IP 为 IPv6 时也能正确地显示。

食用

  • 该修改后的插件已经上传自 npmjs.com,直接安装该插件即可:
npm install hexo-electric-clock-plus --save
  • 然后根据 Zfour 大佬的教程走即可。

  • 新增了一个字体选项,字体文件来源还是 Zfour 大佬的 Butterfly-clock 仓库:

electric_clock:
  font: Ringing # UnidreamLED(default),Commodore,Computerfont,Digitalsystem,Gameover,Hacked,LCD,Leddisplay,Ringing
  priority: 5
  enable: true
  enable_page: all
  layout:
    type: class
    name: sticky_layout
    index: 0
  temple_html: '<div class="card-widget card-clock"><div class="card-glass"><div class="card-background"><div class="card-content"><div id="hexo_electric_clock"><img id="card-clock-loading" src="https://cdn.jsdelivr.net/gh/hotarugali/hexo-electric-clock-plus@1.2.2/images/weather/loading.gif" style="height: 120px; width: 100%;" data-ll-status="loading" class="entered loading"></div></div></div></div></div>'
1.3.5

4 years ago

1.3.4

4 years ago

1.2.5

4 years ago

1.3.3

4 years ago

1.2.4

4 years ago

1.3.2

4 years ago

1.2.3

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago