From fc94e5771f21c7ce8f3f438ce9f8ea8b4ccd53e9 Mon Sep 17 00:00:00 2001 From: edbrz9 Date: Sun, 1 Jan 2023 21:11:16 +0100 Subject: [PATCH] RSS Date maker added --- assets/js/ed.brz9.js | 17 ++++++++++++++++- proj/RSS-date/index.php | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 proj/RSS-date/index.php diff --git a/assets/js/ed.brz9.js b/assets/js/ed.brz9.js index eb22eaa..22ee4fd 100644 --- a/assets/js/ed.brz9.js +++ b/assets/js/ed.brz9.js @@ -1,3 +1,18 @@ +Vue.component('rssdate', { + template: ` +
+

When you loaded that page, the correct pubDate string was:

+

{{ pubDate }}

+
+ `, + computed : { + pubDate () { + const date = new Date() + return date.toUTCString() + } + } +}) + Vue.component('copyme', { template: `
@@ -87,7 +102,7 @@ Vue.component('ppbut' ,{ let vm = new Vue({ data () { return { - name: 'coco' + name: 'test' } } }).$mount('#root') diff --git a/proj/RSS-date/index.php b/proj/RSS-date/index.php new file mode 100644 index 0000000..d0b9f77 --- /dev/null +++ b/proj/RSS-date/index.php @@ -0,0 +1,19 @@ + + + + + + +
+ + + +
+ + \ No newline at end of file