This file contains hidden or 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
| #user.rb | |
| ... | |
| def can_submit_score?(venue) | |
| @sorted_scores = self.venue_scores.where(venue_id: venue.id).sort_by { |score| score.created_at } | |
| if !self.has_scored_venue?(venue.id) | |
| true | |
| elsif self.has_scored_venue?(venue.id) && @sorted_scores.last.created_at.to_date.yday < DateTime.now.to_date.yday | |
| true | |
| else | |
| false |
This file contains hidden or 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
| <div id="skills"> | |
| <h2 class="centered">- Skills -</h2> | |
| <div class="skill"> | |
| <img src="images/requirements.png"> | |
| <center><h3>Requirements Gathering</h3></center> | |
| </div> | |
| <div class="skill"> | |
| <img src="images/database.png"> |
This file contains hidden or 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
| ##In the HTML## | |
| <div class="skill" id="requirements"> | |
| <span id="requirements_image" onmouseover="updateRequirements()" onmouseout="defaultRequirements()"><img src="images/requirements.png"></span> | |
| <h3>Requirements</h3> | |
| </div> | |
| ##In the JS## |
This file contains hidden or 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
| ##HTML## | |
| <div class="skill" id="requirements" onmouseover="hideImage(this)" onmouseout="hideText(this)"> | |
| <img src="images/requirements.png"> | |
| <div class="hidden-text"> | |
| This is my text. | |
| </div> | |
| <h3>Requirements</h3> | |
| </div> | |
| ##CSS## |
This file contains hidden or 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
| <div class="skill" id="requirements" onmouseover="hideImage(this)" onmouseout="hideText(this)"> | |
| <img src="images/requirements.png"> | |
| <div class="hidden-text"> | |
| Clearly defined business and functional requirements are the driving factor of a successful engagement. Define scope, maintain focus, and stay on budget. | |
| </div> | |
| <h3>Requirements</h3> | |
| </div> |
This file contains hidden or 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
| .skill { | |
| width: 216px; | |
| height: 300px; | |
| display: inline-block; | |
| text-align: center; | |
| margin: 20px 10px; | |
| font-family: 'BenchNine'; | |
| font-weight: 300; | |
| letter-spacing: .25em; | |
| background-color: ; |
This file contains hidden or 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
| function hideImage(obj) | |
| { | |
| obj.getElementsByTagName('img')[0].style.display="none"; | |
| obj.getElementsByTagName('div')[0].style.display="inline-block"; | |
| } | |
| function hideText(obj) | |
| { | |
| obj.getElementsByTagName('img')[0].style.display="inline-block"; | |
| obj.getElementsByTagName('div')[0].style.display="none"; |
This file contains hidden or 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 ERB Template (in Slim) ## | |
| .tip | |
| p.tip-author #{link_to tip.user.username, tip.user} | | |
| p.tip-timestamp #{time_ago_in_words(tip.created_at)} ago | |
| p.tip-likes.pull-right #{pluralize tip.tip_likes.count, "vote"} | |
| p id="#{dom_id(tip)}" | |
| | "#{tip.text}" | |
| /= pluralize tip.tip_likes.count, "vote" |
This file contains hidden or 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
| <!--Last Updated: $Revision: 1.4 $ on $Date: 2001/02/05 18:15:00 $ --> | |
| <!-- Javascript file, containing functions used by calculations --> | |
| var range=""; | |
| var styleObj=""; | |
| var isNav4=false,isNav5=false, isIE4=false; | |
| if(navigator.appName=="Netscape") | |
| { | |
| if (navigator.appVersion < "5") | |
| { |
This file contains hidden or 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
| <!--Last Updated: $Revision: 1.4 $ on $Date: 2001/02/05 18:15:00 $ --> | |
| <!-- Javascript file, containing functions used by calculations --> | |
| //onkeypress="return numbersanddecimalsonly(event)" | |
| function numbersanddecimalsonly(e){ | |
| var unicode=e.charCode? e.charCode : e.keyCode | |
| if(!(unicode==46||unicode==48||unicode==49||unicode==50||unicode==51||unicode==52||unicode==53||unicode==54||unicode==55||unicode==56||unicode==57 ||unicode == 8 || unicode == 190 || unicode == 37 || unicode == 39)) | |
| { | |
| return false; //disable key press |