-
Notifications
You must be signed in to change notification settings - Fork 1
Like Button #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Like Button #13
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,24 +67,42 @@ <h1>Hello, world!</h1> | |
| <div class="col-md-4"> | ||
| <h2>Heading</h2> | ||
| <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> | ||
| <p><a class="btn btn-default" href="#" role="button">View details »</a></p> | ||
| <p> | ||
| <!-- jQuery Like Button --> | ||
| <a class="like btn btn-primary" role="button"> | ||
| <span class="glyphicon glyphicon-thumbs-up"></span> | ||
| <input class="qty1" name="qty1" type="text" readonly="readonly" value="0"/> | ||
| </a> | ||
| <a class="btn btn-default" href="#" role="button">View details »</a></p> | ||
| </div> | ||
| <div class="col-md-4"> | ||
| <h2>Heading</h2> | ||
| <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> | ||
| <p><a class="btn btn-default" href="#" role="button">View details »</a></p> | ||
| <p> | ||
| <!-- jQuery Like Button --> | ||
| <a class="like btn btn-primary" role="button"> | ||
| <span class="glyphicon glyphicon-thumbs-up"></span> | ||
| <input class="qty1" name="qty1" type="text" readonly="readonly" value="0"/> | ||
| </a> | ||
| <a class="btn btn-default" href="#" role="button">View details »</a></p> | ||
| </div> | ||
| <div class="col-md-4"> | ||
| <h2>Heading</h2> | ||
| <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p> | ||
| <p><a class="btn btn-default" href="#" role="button">View details »</a></p> | ||
| <p> | ||
| <!-- JavaScript Like Button --> | ||
| <a class="btn btn-primary" role="button" onclick="buttonClick()"> | ||
| <span class="glyphicon glyphicon-thumbs-up"></span> | ||
| <input id="clicks" type="text" readonly="readonly" value="0" class="counter"></input> | ||
| </a> | ||
| <a class="btn btn-default" href="#" role="button">View details »</a></p> | ||
| </div> | ||
| </div> | ||
|
|
||
| <hr> | ||
|
|
||
| <footer> | ||
| <p>© Company 2015</p> | ||
| <p>© Nifty-Club 2019</p> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with changing the footer to Nifty-Club 2019.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great eye!
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should add a "!" at the end of "Nifty-Club 2019" so it's "Nifty-Club 2019!"
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Other than that change, I say ship it! |
||
| </footer> | ||
| </div> <!-- /container --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | ||
| <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,16 @@ | ||
| ////// LIKE BUTTON //////// | ||
|
|
||
| // jQUERY | ||
|
|
||
| $(function () { | ||
| $(".like").click(function() { | ||
| var input = $(this).find('.qty1'); | ||
| input.val(parseInt(input.val())+ 1); | ||
| }); | ||
| }); | ||
|
|
||
| // JAVASCRIPT | ||
| var i = 0; | ||
| function buttonClick() { | ||
| document.getElementById('clicks').value = ++i; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with updating this to Nifty-Club 2019
(perhaps without the !)
😉