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: ` + <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') 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 @@ +<?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"); ?> \ No newline at end of file