https://github.com/capjamesg/seasonal.js

Change an emoji on your website for different seasonal events.

https://github.com/capjamesg/seasonal.js

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.7%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Change an emoji on your website for different seasonal events.

Basic Info
  • Host: GitHub
  • Owner: capjamesg
  • Language: JavaScript
  • Default Branch: main
  • Size: 34.2 KB
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 3 years ago · Last pushed over 3 years ago
Metadata Files
Readme

README.md

seasonal.js

Change an emoji on your website for different seasonal events.

Screenshot

The following screenshot shows the seasonal.js script changing the emoji on my website on a December day:

Screenshot of my website

Getting Started

First, copy the seasonal.js script to your local machine. Then, update the seasonalEmojiDict to include emojis on days that are relevant to you. A few days are added by default, such as Christmas and Pi Day. You can update the monthLongSeasonalEmojis dictionary to set rules that apply for entire months. By default, an emoji is provided for the month of October (a pumpkin for Halloween) and December (a snowflake for the winter weather).

Once you have configured seasonal.js, install it directly above the </body> tag on your website:

<script src="./path/to/seasonal.js"></script>

After configuring and installing seasonal.js, wrap all of the emojis on your website that you want to update in tags (i.e. span tags). The surrounding tag around each emoji should be given the seasonal_emoji class, like so:

<p>Good day<span class="seasonal_emoji">☕</span></p>

In this example, the coffee cup emoji (☕) will be replaced using the rules dictated in the seasonal.js script.

License

This project is released into the public domain.

Contributors

  • capjamesg

Owner

  • Name: James
  • Login: capjamesg
  • Kind: user
  • Location: Scotland
  • Company: @Roboflow

from words, wonder.

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • capjamesg (1)
Top Labels
Issue Labels
Pull Request Labels