-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple but might come in handy in future
- Loading branch information
0 parents
commit 4e38a33
Showing
38 changed files
with
22,774 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
|
||
} | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.