A small news viewer and a separated news page
Online demo here.
on Edge, Windows 10:
index.html
:
news.html
:
A small HTML snippet, you can copy-paste, or edit the code easily.
Note: When you want to open index.html
or news.html
on local browser with the directory looks like
file:///your/directory/here/index.html
, don't open in any Chromium-based browsers.
-
Kinds of news are saved in
news.json
. -
News format in
news.json
:
{
"date": <string>,
"txt": <string>
},
-
Be careful to change the name of all
*news_pad*
elements inindex.html
andnews.html
! -
RECOMMENDED: Define your elements (in
index.html
andnews.html
) after
<!-- define other elements here --->
line.
- Show events in news pad (events are scheduled in Google Calendar)