Nodejs,express,jade,mangodb

This is the link get base and start nodejs to create a website

http://cwbuecheler.com/web/tutorials/2013/node-express-mongo

To instal mango db in ubuntu

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

To learn a jade and see the output in html use this link

http://jade-lang.com/demo/

Monogo db Queries excution types

https://github.com/variety/variety

link to refer nodejs

1) http://blog.modulus.io/nodejs-and-express-create-rest-api
2) http://www.ibm.com/developerworks/library/wa-nodejs-polling-app/
3) https://www.udemy.com/blog/node-js-express-tutorial/
4) http://scotch.io/tutorials/javascript/scraping-the-web-with-node-js
5) http://scotch.io/tutorials/javascript/creating-a-single-page-todo-app-with-node-and-angular

Star rating css

#hide {
display:none;
}

.rating input {
position:absolute;
filter:alpha(opacity=0);
-moz-opacity:0;
-khtml-opacity:0;
opacity:0;
cursor:pointer;
width:17px;
}

.rating span {
width:24px;
height:16px;
line-height:16px;
padding:1px 22px 1px 0; /* 1px FireFox fix */
background:url(http://www.danielkeithjones.com/Articles/Web_Development/Pure_CSS_5_Star_Rating_System_with_Radios/stars.png) no-repeat -22px 0;
}

/* Change span immediately following the checked radio */

.rating input:checked + span {
background-position:-22px 0;
}

/* Reset all remaining stars back to default background.
This supersedes the above due to its ordering. */

.rating input:checked + span ~ span {
background-position:0 0;
}






Use this link To integrate in php this different from above

http://stackoverflow.com/questions/1987524/turn-a-number-into-star-rating-display-using-jquery-and-css

Hide and show a div in javascript

Show and hide div with JavaScript

function showhide()
{
var div = document.getElementById(“newpost”);
if (div.style.display !== “block”) {
div.style.display = “block”;
}
else {
div.style.display = “none”;
}
}

#newpost
{
display:none;
}

This div will be show and hide on button click

Click Me