├── .gitignore ├── README.md ├── offcampus.css ├── stops.xml ├── stops-list ├── index.php └── nbuxml.xml /.gitignore: -------------------------------------------------------------------------------- 1 | cache 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | WherethefuckRU 2 | -------------- 3 | 4 | This was some of the very first Javascript code I wrote in 2011. 5 | 6 | WherethefuckRU is a web application that helps you figure out where a certain address is relative to predefined landmarks. The application as it's written works with addresses around Rutgers University, and tells you how close an address is to bus stops. 7 | 8 | I built it because I was looking for offcampus housing and I wanted to search an address, and quickly understand its location. 9 | 10 | The live version is available at [http://wherethefuckru.vverma.net/](http://wherethefuckru.vverma.net/). 11 | -------------------------------------------------------------------------------- /offcampus.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #aaa; 3 | } 4 | 5 | #center { 6 | width: 800px; 7 | background-color: #ffffff; 8 | margin-right: auto; 9 | margin-left: auto; 10 | margin-top: 20px; 11 | margin-bottom: 20px; 12 | -moz-box-shadow: 0px 1px 1px #000; 13 | -webkit-box-shadow: 0px 1px 1px #000; 14 | box-shadow: 0px 1px 1px #000; 15 | border-radius: 10px; 16 | -moz-border-radius: 10px; 17 | border: 35px solid #fff; 18 | } 19 | 20 | h1 { 21 | font-size: 40px; 22 | letter-spacing: 1px; 23 | margin-bottom: 10px; 24 | } 25 | 26 | h1 span#red { 27 | color: #a00; 28 | } 29 | 30 | form#stop-form { 31 | padding-top: 20px; 32 | padding-left: 20px; 33 | padding-bottom: 20px; 34 | } 35 | 36 | #help-link { 37 | font-size: 12px; 38 | } 39 | 40 | #help-text { 41 | font-size: 12px; 42 | } 43 | 44 | #closest_span { 45 | text-align: center; 46 | } 47 | 48 | #copyright { 49 | text-align: center; 50 | } 51 | -------------------------------------------------------------------------------- /stops.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |'; 6 | print_r($text); 7 | echo ''; 8 | } 9 | 10 | if(file_exists('cache')) 11 | $cache = unserialize(file_get_contents('cache')); 12 | else 13 | $cache = array(); 14 | 15 | if(isset($_REQUEST['debug'])) 16 | { 17 | debug_r($_REQUEST); 18 | debug_r($cache); 19 | $debug = 1; 20 | } 21 | ?> 22 | 23 | 24 | 25 | 26 |
WherethefuckRU is a service that allows you to search an address around Rutgers, and figure out where it is relative to common bus stops. It shows you a map of walking directions from the closest bus stop. This is especially useful if you are looking for Off Campus housing.
41 || Stop | 207 |Distance | 208 |Walking Time | 209 |
|---|---|---|
| '.$stop['title']. ' | '; 254 | echo ''.$distance. ' | '; 255 | echo ''.$duration_text. ' | '; 256 | echo '