RSS Date maker added

This commit is contained in:
edbrz9 2023-01-01 21:11:16 +01:00
parent 90f3045ca2
commit fc94e5771f
2 changed files with 35 additions and 1 deletions

View File

@ -1,3 +1,18 @@
Vue.component('rssdate', {
template: `
<section class="rss-date">
<p>When you loaded that page, the correct pubDate string was:</p>
<h4>{{ pubDate }}</h4>
</section>
`,
computed : {
pubDate () {
const date = new Date()
return date.toUTCString()
}
}
})
Vue.component('copyme', {
template: `
<section class="copyme-containter" v-on:click="copyToClipboard">
@ -87,7 +102,7 @@ Vue.component('ppbut' ,{
let vm = new Vue({
data () {
return {
name: 'coco'
name: 'test'
}
}
}).$mount('#root')

19
proj/RSS-date/index.php Normal file
View File

@ -0,0 +1,19 @@
<?php $page_title = "edbrz9 - RSS date maker"; ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/assets/php/db.php"); ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/assets/php/header.php"); ?>
<nav>
<section id="left-nav">
<a href="/">
<span class="byl-icon-home"></span>
</a>
</section>
</nav>
<main id="root">
<rssdate></rssdate>
</main>
<?php include($_SERVER['DOCUMENT_ROOT']."/assets/php/footer.php"); ?>