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
| Revolutions: 1 (time = 1353270795.1) | |
| Revolutions: 2 (time = 1353270820.32) | |
| Revolutions: 3 (time = 1353275042.99) | |
| Revolutions: 4 (time = 1353275045.56) | |
| Revolutions: 5 (time = 1353275051.18) | |
| Revolutions: 6 (time = 1353275057.6) | |
| Revolutions: 7 (time = 1353275063.12) | |
| Revolutions: 1 (time = 1353275203.54) | |
| Revolutions: 2 (time = 1353275959.26) | |
| Revolutions: 3 (time = 1353275962.48) |
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
| {{ session.start_time|date:"g" }}{% with session.start_time|date:"i" as mm %}{% if mm != "00" %}{{ session.start_time|date:":i" }}{% endif %}{% endwith %}{{ session.start_time|date:"A"|lower }} |
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
| mailto:jsmith@example.com?subject=A%20Test&body=My%20idea%20is%3A%20%0A |
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
| {{ group.adverts|length|pluralize:"this,these" }} |
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 time_since($original) { | |
| // array of time period chunks | |
| $chunks = array( | |
| array(60 * 60 * 24 * 365 , 'year'), | |
| array(60 * 60 * 24 * 30 , 'month'), | |
| array(60 * 60 * 24 * 7, 'week'), | |
| array(60 * 60 * 24 , 'day'), | |
| array(60 * 60 , 'hour'), | |
| array(60 , 'minute'), | |
| ); |
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
| warning = false; | |
| window.onbeforeunload = function() { | |
| if (warning) { | |
| return 'You have made changes on this page that you have not yet confirmed. If you navigate away from this page you will loose your unsaved changes'; | |
| } | |
| } |
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
| if ((location.href.split('?')[1] || '').indexOf('print') > -1) { | |
| /* assuming all other stylesheets are on media all, this means you can use the ?print query string to preview print styles */ | |
| $('link[media=print]').attr('media', ''); | |
| } |
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
| <!--[if lte IE 6]><![if gte IE 7]><![endif]--> | |
| <!-- This is a bit mad, but code inside here is served to everything except browsers less than IE7 --> | |
| <!--[if lte IE 6]><![endif]><![endif]--> |
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 wait(millis) { | |
| var date = new Date(); | |
| var curDate = null; | |
| do { | |
| curDate = new Date(); | |
| } while(curDate-date < millis); | |
| var date = null; | |
| var curDate = null; |
NewerOlder