npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pretty-schedule

v1.0.5

Published

A simple plugin allows you to create an interactive schedule with custom configurations.

Downloads

17

Readme

Pretty Schedule

This simple plugin allows you to create an interactive schedule with custom configurations.

Getting Start

Download source files and put it in your blog folder.

Then call the method in your html.

<div class="schedule"></div>
<script src="https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
<script src="path/to/pretty-schedule.js"></script>
<script>
    $(".schedule").prettySchedule();
</script>

Configuration

{
  "timespans": [
   ["0800", "0845"],
   ["0850", "0935"],
   ["0950", "1035"],
   ["1040", "1125"],
   ["1130", "1215"],
   ["1330", "1415"],
   ["1420", "1505"],
   ["1520", "1605"],
   ["1610", "1655"],
   ["1705", "1750"],
   ["1755", "1840"],
   ["1920", "2005"],
   ["2010", "2055"],
   ["2100", "2145"]
  ],
  "timespanDesc": [
   {
    "from": 0,
    "to": 1,
    "text": "第一大节"
   },
   {
    "from": 2,
    "to": 4,
    "text": "第二大节"
   },
   {
    "from": 5,
    "to": 6,
    "text": "第三大节"
   },
   {
    "from": 7,
    "to": 8,
    "text": "第四大节"
   },
   {
    "from": 9,
    "to": 10,
    "text": "第五大节"
   },
   {
    "from": 11,
    "to": 13,
    "text": "第六大节"
   },
  ],
  "weekdays": 5,
  "weekdayNames": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
  "curriculum": [
   [["0800", "0935", "课表示例1", "Sample Course1"]],
   [["0950", "1125", "课表示例2", "Sample Course2"]],
   [["1330", "1605", "课表示例3", "Sample Course3"]],
   [["1520", "1840", "课表示例4", "Sample Course4"]],
   [["1920", "2145", "课表示例3", "Sample Course3"]]
  ],
  "interval": 5,
  "start": "0800",
  "end": "2145",
  "breakVisible": false,
  "colorPool": [
   "#F4F2F3",
   "#FBE0C3",
   "#C3CBD6",
   "#FFD5AF",
   "#F6F4E8",
   "#F8EFEA",
   "#F2EBE5",
   "#FAE6B1",
   "#F8D4BA",
   "#F7F4EF",
   "#F7F1ED",
   "#F0EFF4",
   "#F2E9EB",
   "#E8ECEB"
  ]
 }