RSS Date maker added
This commit is contained in:
parent
90f3045ca2
commit
fc94e5771f
|
@ -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', {
|
Vue.component('copyme', {
|
||||||
template: `
|
template: `
|
||||||
<section class="copyme-containter" v-on:click="copyToClipboard">
|
<section class="copyme-containter" v-on:click="copyToClipboard">
|
||||||
|
@ -87,7 +102,7 @@ Vue.component('ppbut' ,{
|
||||||
let vm = new Vue({
|
let vm = new Vue({
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
name: 'coco'
|
name: 'test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).$mount('#root')
|
}).$mount('#root')
|
||||||
|
|
|
@ -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"); ?>
|
Loading…
Reference in New Issue