|
@ -1,23 +1,23 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<!-- jsonhead -> hlavička pro navigaci a změnu datumu --> |
|
|
|
|
|
<div id="jsonhead"> |
|
|
|
|
|
<h1>JSON</h1> |
|
|
|
|
|
<p>Použi navigační tlačítka pro změnu datumu</p> |
|
|
|
|
|
<button class="navigace" @click="increment()">+</button> |
|
|
|
|
|
<button class="navigace" @click="resetdate()">RESET</button> |
|
|
|
|
|
<button class="navigace" @click="decrement()">-</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- jsonmain -> div pro zobrazeni hlavní části--> |
|
|
<!-- jsonmain -> div pro zobrazeni hlavní části--> |
|
|
<div id="jsonmain"> |
|
|
<div id="jsonmain"> |
|
|
<div v-for="data1 in selectDatum(selectDate(date,numberino))" :key="data1.date"> |
|
|
<div v-for="data1 in selectDatum(selectDate(date,numberino))" :key="data1.date"> |
|
|
<b>{{data1.title}}</b> - {{data1.content}} - <i>{{data1.date}}</i> <br> |
|
|
|
|
|
<img :src="getImgUrl(data1.img)" v-bind:alt="data1.img"> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="jsonTitle">{{data1.title}}</div> <br> |
|
|
|
|
|
<img class="jsonImg" :src="getImgUrl(data1.img)" v-bind:alt="data1.img"> |
|
|
|
|
|
<div class="jsonContent">{{data1.content}}</div> |
|
|
|
|
|
<div class="jsonDate">{{data1.date}}</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- jsonhead -> hlavička pro navigaci a změnu datumu--> |
|
|
|
|
|
<div id="jsonhead"> |
|
|
|
|
|
<button class="navigace" @click="decrement()">-</button> |
|
|
|
|
|
<button class="navigace" @click="resetdate()">RESET</button> |
|
|
|
|
|
<button class="navigace" @click="increment()">+</button> |
|
|
|
|
|
</div> |
|
|
<!-- DEBUG SEKCE --> |
|
|
<!-- DEBUG SEKCE --> |
|
|
<button @click="showdebug()"> DEBUG</button> |
|
|
|
|
|
|
|
|
<button @click="showdebug()" style="display:none"> DEBUG</button> |
|
|
<div id="jsondebug" style="display:none"> |
|
|
<div id="jsondebug" style="display:none"> |
|
|
|
|
|
|
|
|
<!-- Test Proměných --> |
|
|
<!-- Test Proměných --> |
|
@ -114,7 +114,33 @@ export default { |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Inspiration&family=Palette+Mosaic&family=Roboto:ital,wght@1,100&family=Titillium+Web:wght@900&display=swap'); |
|
|
|
|
|
|
|
|
h4{ |
|
|
h4{ |
|
|
color: blue; |
|
|
color: blue; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.jsonTitle{ |
|
|
|
|
|
font-size: 72px; |
|
|
|
|
|
font-family: 'Palette Mosaic', cursive; |
|
|
|
|
|
} |
|
|
|
|
|
.jsonImg{ |
|
|
|
|
|
max-height: 50vh; |
|
|
|
|
|
} |
|
|
|
|
|
.jsonContent{ |
|
|
|
|
|
font-size: 64px; |
|
|
|
|
|
font-family: 'Inspiration', cursive; |
|
|
|
|
|
} |
|
|
|
|
|
.jsonDate{ |
|
|
|
|
|
font-size: 32px; |
|
|
|
|
|
font-family: 'Roboto', sans-serif; |
|
|
|
|
|
} |
|
|
|
|
|
.navigace{ |
|
|
|
|
|
font-size: 40px; |
|
|
|
|
|
margin: 10px; |
|
|
|
|
|
padding: 20px; |
|
|
|
|
|
font-family: 'Titillium Web', sans-serif; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |