mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-05 15:41:42 +00:00
InfoMechanism: Add $:/info/startup-timestamp
This commit is contained in:
@@ -18,6 +18,7 @@ exports.getInfoTiddlerFields = function() {
|
|||||||
// Basics
|
// Basics
|
||||||
infoTiddlerFields.push({title: "$:/info/browser", text: mapBoolean(!!$tw.browser)});
|
infoTiddlerFields.push({title: "$:/info/browser", text: mapBoolean(!!$tw.browser)});
|
||||||
infoTiddlerFields.push({title: "$:/info/node", text: mapBoolean(!!$tw.node)});
|
infoTiddlerFields.push({title: "$:/info/node", text: mapBoolean(!!$tw.node)});
|
||||||
|
infoTiddlerFields.push({title: "$:/info/startup-timestamp", text: $tw.utils.stringifyDate(new Date())});
|
||||||
if($tw.browser) {
|
if($tw.browser) {
|
||||||
// Document location
|
// Document location
|
||||||
var setLocationProperty = function(name,value) {
|
var setLocationProperty = function(name,value) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
created: 20140720164948099
|
created: 20140720164948099
|
||||||
modified: 20190307175403915
|
modified: 20200506110435897
|
||||||
tags: Mechanisms
|
tags: Mechanisms
|
||||||
title: InfoMechanism
|
title: InfoMechanism
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@@ -13,6 +13,7 @@ System tiddlers in the namespace `$:/info/` are used to expose information about
|
|||||||
! Information Tiddlers
|
! Information Tiddlers
|
||||||
|
|
||||||
|!Title |!Description |
|
|!Title |!Description |
|
||||||
|
|[[$:/info/startup-timestamp]] |<<.from-version "5.1.23">> Startup timestamp in TiddlyWiki date format |
|
||||||
|[[$:/info/browser]] |Running in the browser? ("yes" or "no") |
|
|[[$:/info/browser]] |Running in the browser? ("yes" or "no") |
|
||||||
|[[$:/info/browser/language]] |<<.from-version "5.1.20">> Language as reported by browser (note that some browsers report two character codes such as `en` while others report full codes such as `en-GB`) |
|
|[[$:/info/browser/language]] |<<.from-version "5.1.20">> Language as reported by browser (note that some browsers report two character codes such as `en` while others report full codes such as `en-GB`) |
|
||||||
|[[$:/info/browser/screen/width]] |Screen width in pixels |
|
|[[$:/info/browser/screen/width]] |Screen width in pixels |
|
||||||
|
|||||||
Reference in New Issue
Block a user