diff --git a/public/MBViewer/css/print.css b/public/MBViewer/css/print.css new file mode 100644 index 0000000..1991424 --- /dev/null +++ b/public/MBViewer/css/print.css @@ -0,0 +1,26 @@ +body { + background-color: white; + color: black; +} + +div.tgme_background_wrap, +div.tgme_header_right_column, +div.tgme_header_search, +div.tgme_header_info > a[name="goBack"], +.tgme_widget_message_user_photo +/*header.tgme_header*/ { + display: none; +} + +section.tgme_channel_history.js-message_history { + margin: 0; +} + +div.tgme_widget_message_author, +div.tgme_widget_message_footer, +div.tgme_widget_message_service_date_wrap, +div.tgme_widget_message_author a, +div.tgme_widget_message_footer a { + background-color: lightgray; + color: black; +} diff --git a/public/MBViewer/index.html b/public/MBViewer/index.html index d10d4e5..0d2cc6a 100644 --- a/public/MBViewer/index.html +++ b/public/MBViewer/index.html @@ -34,9 +34,10 @@ --> - - - + + + +
diff --git a/public/MBViewer/js/MBViewer.js b/public/MBViewer/js/MBViewer.js index 58d211c..919d1a8 100644 --- a/public/MBViewer/js/MBViewer.js +++ b/public/MBViewer/js/MBViewer.js @@ -15,8 +15,6 @@ // * I think we might need to handle acronicized names for users when needed? // * show, and/or sort by, posts tags/categories // * scroll to post id when loading from dataInject or RSS -// * fix XML feeds parsing on Firefox -// * allow for an HTML transformation script to be loaded (JS is unsafe) (how?) let MbState = {}; let MbApiTransformer; @@ -399,7 +397,10 @@ async function MbViewerInit () {
* Support including user-defined JS scripts from URL (data: supported) via the includeScript argument. A script must expose a MbViewerFunction(data) function to be invoked by the main application to do useful operations, and then return data by calling the MbViewerReturn(data) API function.
...I will probably need to write actual documentation about this, but for sure I will post about this on https://octospacc.altervista.org/?p=1416. -

`, time: '2024-01-27T20:00' }, { content: `

+

`, time: '2024-02-01T00:00' }, { content: `

+ Updates: +
* Include special CSS for optimized PDF/paper printing +

`, time: '2024-02-05T11:00' }, { content: `

Copyright notice: MBViewer uses code borrowed from t.me, specially modified to handle customized data visualizations in an MB-style.