SongShuA

SongShuA

胸中梦黄粱,手握自在心 一个充满想法的网络安全从业人员 A person with dreams in their heart and the ability to control their own destiny, who is a creative professional in the field of cybersecurity.
github

WTS Bubble Notification Plugin

A while ago, Mosquito Boss wrote a bubble notification plugin, and I thought it was fun.

So I wanted to use it on my own website, but I couldn't figure out how to extract it even after trying for a long time and hurting my eyes.

Luckily, another expert managed to extract it, so I simplified it and turned it into a Typecho plugin (due to my laziness).

Since this is my first time creating a plugin, there might be some areas where I didn't do well... but oh well.

Anyway, I might not even fix that bug.

Preview:
3075019206.gif

GitHub link: Click here

WTS#

Bubble Announcement Plugin ## ACFUN Notification Bar imitation#

The plugin is called WTS (Mosquito, Rabbit (Azimiao), Ashuo).

After enabling the plugin, a simulated ACFUN notification bar will appear on the left side when visiting the homepage of the website, and it will slide down and disappear after a certain period of time.

Most of the code comes from @Azimiao, and the core code comes from @Mosquito.

I'm just a weakling who made some minor modifications and turned it into a plugin (I didn't delete some weird code because I didn't know what it was for).

The default color is red, but you can change it by modifying lines 21, 22, and 23 in zi_message2.js. Let's talk about changing colors in the backend later.

Remember to rename the extracted folder to WTS (uppercase).

2018.9.18

I found compatibility issues with the plugin, so it is temporarily disabled on this blog.

2021.5
It's been too long, and I've forgotten what the code I wrote back then was about. I can no longer fix the issues... so I'm abandoning it. Thank you all for your support all this time.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.