Skip to content

Commit

Permalink
Simple but might come in handy in future
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhhames committed Oct 22, 2018
0 parents commit 4e38a33
Show file tree
Hide file tree
Showing 38 changed files with 22,774 additions and 0 deletions.
8,950 changes: 8,950 additions & 0 deletions css/bootstrap.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions css/bootstrap.min.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions css/font-awesome.min.css

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
body {
background-color: #f3f3f3;
backface-visibility: hidden;
}

.rating-star {
cursor: pointer;
font-size: 55px;
}

.rating-star:hover {
color: orange;
transition: all .5s;
animation: mymove .4s;
}

.hover-color {
color: orange;
}

.click-color {
color: orange;
}

@keyframes mymove {
0% {
/* opacity: 0; */
transform: scale(1.3, 1.3);
}
100% {
/* opacity: 1; */
transform: scale(1, 1);
}
}
Empty file added css/style.min.css
Empty file.
Binary file added font/roboto/Roboto-Bold.eot
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Light.eot
Binary file not shown.
Binary file added font/roboto/Roboto-Light.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Light.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Light.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.eot
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.eot
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.eot
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.woff2
Binary file not shown.
Binary file added fonts/FontAwesome.otf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added fonts/fontawesome-webfont.woff2
Binary file not shown.
81 changes: 81 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Foorloop Hack-ife</title>
<!-- Font Awesome -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="css/mdb.min.css" rel="stylesheet">
<!-- Your custom styles (optional) -->
<link href="css/style.css" rel="stylesheet">
<link rel="icon" href="img/favicon.png">

</head>

<body>

<div id="app-root">
<div class="justify-content-center row">
<div class="col-md-8 text-center mt-5">
<span v-for="(n,i) in 5" :class="['fa fa-star rating-star star-' +n]" @mouseover="hoverEffect(n)" @mouseleave="removeColor(n)" @click="starClicked(n)"></span>
<input type="hidden" :value="starNumber">
</div>
</div>
</div>
<!-- <div id="app-root">
<ul>
<li v-if="jhhames">
<button class="btn btn-success" v-on:click="changeToVue">Click to unvue {{jhhames}} </button>
</li>
<li v-else>
<button class="btn btn-primary" v-on:click="changeToVue">Click to vue</button>
</li>
</ul>
<form action="">
<input type="text" v-model="name">
<input type="text" v-model="details">
<p v-if="validateName" class="text-danger"> Name Cannuh be blank </p>
<button type="submit" v-on:click="doNotSubmit">Add</button>
</form>
<div class="row ">
<div class="green col-md-6" v-if="list.length">
<ul type="none">
<li class="list-item" v-for="row in list">
{{ row.name }}
</li>
</ul>
</div>
<div class="red col-md-6" v-else>
<p class="lead">
No users yet
</p>
</div>
</div>
</div>
-->

<!-- SCRIPTS -->
<!-- JQuery -->
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- VUEJS JavaScript -->
<script type="text/javascript" src="js/vue.js"></script>
<!-- APP JavaScript -->
<script type="text/javascript" src="js/app.js"></script>
</body>

</html>
62 changes: 62 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
var vue = new Vue({
el: '#app-root',
data: {
jhhames: true,
list: [],
name: '',
details: '',
starNumber: 0
},
methods: {
// changeToVue: function() {
// this.jhhames = !this.jhhames;
// },
// doNotSubmit: function(e) {
// if (this.name == '') {
// alert("Fuck you motherlover!");
// }
// this.list.push({
// name: this.name,
// details: this.details
// });

// this.name = ''
// this.details = ''
// e.preventDefault();
// },
// validateName: function() {
// if (this.name == '') {
// return true
// } else {
// return false
// }
// },
hoverEffect: function(i) {
for (let j = 1; j <= i; j++) {
$('.star-' + j).addClass('hover-color');
}
if (i < this.starNumber) {
for (let a = i + 1; a <= this.starNumber; a++) {
$('.star-' + a).removeClass('click-color')
}
}
},
removeColor: function(n) {
for (let i = 0; i <= 5; i++) {
$('.star-' + i).removeClass('hover-color');
}
},
starClicked: function(n) {
this.starNumber = n
for (let i = 0; i <= 5; i++) {
$('.star-' + i).removeClass('click-color')
}
for (let i = 0; i <= this.starNumber; i++) {
$('.star-' + i).addClass('click-color')
}
}
},
mounted() {

}
})
7 changes: 7 additions & 0 deletions js/bootstrap.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions js/jquery-3.3.1.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions js/popper.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4e38a33

Please sign in to comment.