Skip to content

Instantly share code, notes, and snippets.

@oliverbth05
oliverbth05 / app.js
Last active June 5, 2018 20:44
Mobile-Friendly Navigation (Vue)
new Vue({
el:"#app",
data: {
navDrawer: false
},
methods: {
showDrawer: function(){
this.navDrawer = !this.navDrawer;
},
dismissDrawer: function(){
@oliverbth05
oliverbth05 / app.css
Created May 31, 2018 15:49
Navigation Side Drawer
*{
padding: 0;
margin: 0;
font-family: 'Lato', sans-serif;
}
/* The sidebar menu */
.sidenav {
height: 100%; /* Full-height: remove this if you want "auto" height */
width: 150px; /* Set the width of the sidebar */
position: fixed; /* Fixed Sidebar (stay in place on scroll) */
@oliverbth05
oliverbth05 / App.js
Last active May 18, 2018 19:44
Budget Managin Functionality (vue)
new Vue({
el: "#app",
data: {
entries: [],
amount :"",
date :"",
input2: "",
setBudget: 400
},
@oliverbth05
oliverbth05 / Index.html
Last active May 15, 2018 15:16
Line chart accepting JS Date object (Vue)
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
</head>
<body>
<div id = "app">
<canvas id = "lineChart"></canvas>
<div>
@oliverbth05
oliverbth05 / app.css
Last active September 9, 2022 20:39
Vuetify Responsive Toolbar with Navigation Drawer
#drawer{
background: rgba(240, 240, 240, 1);
}
@oliverbth05
oliverbth05 / app.js
Created May 14, 2018 12:59
Array Sorting Vue
new Vue({
el: "#app",
data: {
entries: [],
amount :"",
date :"",
byDate: true
},
methods: {
submit: function(){
@oliverbth05
oliverbth05 / app.css
Last active May 10, 2018 19:21
Clock and Table (Materialize + Vue)
#table {
width: 400px;
margin: auto;
text-align: center;
}
#inputForm{
width: 400px;
margin: auto;
margin-top: 50px;
@oliverbth05
oliverbth05 / app.css
Created May 9, 2018 15:01
Real-Time Bar chart with data input (Vue)
#app{
margin: auto;
width: 40%;
text-align: center;
border: 1px solid grey;
padding: 10px;
margin-top: 50px;
}
@oliverbth05
oliverbth05 / Card.css
Created May 8, 2018 15:55
CSS Card/Window (Works best with Bootstrap)
.card{
width: 300px;
margin: 10px;
border-radius: 8px;
}
.card_header{
text-align: center;
width: 100%;
background: rgb(200, 200, 260);
@oliverbth05
oliverbth05 / app.css
Created April 28, 2018 17:37
Password Generator (Vue + Semantic UI)
#text-align-center{
text-align: center;
}
#width170{
width: 170px;
}
#width70{
width: 70px;