| |
---|
| | var datestring = now.getFullYear() + "-" + ("0"+(now.getMonth()+1)).slice(-2) + "-" + ("0" + now.getDate()).slice(-2) + " " + ("0" + now.getHours()).slice(-2) + ":" + ("0" + now.getMinutes()).slice(-2); |
---|
| | $("span.date").html(datestring.toString()); |
---|
| | } |
---|
| | |
---|
| | $("#happyval").on("input change", function() { |
---|
| | $(".hpyno").html("[" + $("#happyval").val() + "]"); |
---|
| | }); |
---|
| | |
---|
| | removespan = function(span) { |
---|
| | span.remove(); |
---|
| | } |
---|
| | |
---|
| |
---|
| | break; |
---|
| | default: |
---|
| | $(".pretext").html( toadd ); |
---|
| | } |
---|
| | $("#tags").val(""); |
---|
| | //$("#tags").val(""); |
---|
| | //$(".pretext").html( ); |
---|
| | } |
---|
| | |
---|
| | function submitMood(){ |
---|
| |
---|
| | if(e.keyCode==13) |
---|
| | updatePretext(); |
---|
| | }); |
---|
| | |
---|
| | $("#happyval").on("input change", function() { |
---|
| | $(".hpyno").html("[" + $("#happyval").val() + "]"); |
---|
| | }); |
---|
| | |
---|
| | updateTop("pos"); |
---|
| | updateTop("neg"); |
---|
| | updateTop("con"); |
---|
| | updateLatest("pos"); |
---|
| |
---|
| | |