star voting system for proposals
This commit is contained in:
parent
2314d943e1
commit
834362491e
17 changed files with 157 additions and 3 deletions
BIN
app/assets/images/star-bright.png
Normal file
BIN
app/assets/images/star-bright.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
app/assets/images/star-glow.png
Normal file
BIN
app/assets/images/star-glow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1,015 B |
BIN
app/assets/images/star.png
Normal file
BIN
app/assets/images/star.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 620 B |
|
|
@ -60,6 +60,12 @@ $(function() {
|
|||
$(".comment-reply").hide();
|
||||
$(".user-details-popover").popover();
|
||||
$("#comments-div").hide();
|
||||
|
||||
$("#votes-div").hide();
|
||||
$("#votes-link").click(function(){
|
||||
$("#votes-div").toggle();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
function word_count(text, divId, maxcount) {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,23 @@
|
|||
height: 100%;
|
||||
/* The html and body elements cannot have any padding or margin. */
|
||||
}
|
||||
/* Styling for voting on proposals*/
|
||||
.myrating.bright { background-image: url(../assets/star-bright.png); }
|
||||
.myrating.glow { background-image: url(../assets/star-glow.png); }
|
||||
.othersrating.bright { background-image: url(../assets/star-bright.png); }
|
||||
.avgrating.bright { background-image: url(../assets/star-bright.png); }
|
||||
.avgrating {
|
||||
background: url(../assets/star.png) 0 0;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
display: block;
|
||||
}
|
||||
.myrating, .othersrating {
|
||||
background: url(../assets/star.png) 0 0;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* Wrapper for page content to push down footer */
|
||||
#wrap {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue