Url-Shorten-Worker Pastebin Theme Guide

The original author of Url-Shorten-Worker designed it to support different themes from the start. It works by loading different index.html files.

Editor with worker.js open, the theme config option set to theme/pastebin and outlined in a red box

By default it's empty, which means it loads the default index.html from the Repo root directory.

We create a new directory under theme called pastebin, then copy an index.html into it, and make some modifications based on that.

Since this is for use as an online notepad PasteBin, the value often involves large blocks of text, so I changed it to a textarea element.

The final result is as follows,

Short link system turned into online notepad PasteBin interface with save button

========

End

Github: https://github.com/crazypeace/Url-Shorten-Worker

Demo: https://pastebin.icdyct.cloudns.asia/tieludasiliqiuweiyue 

Comments