| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Casa Lens | Casablana Test App</title> |
| 5 |
<meta charset="utf-8" /> |
| 6 |
<link href="css/default.css" rel="stylesheet" type="text/css"> |
| 7 |
<script type="text/javascript" src="/js/default.js"></script> |
| 8 |
</head> |
| 9 |
<body style="width: 60%; margin: 0 auto;"> |
| 10 |
<table> |
| 11 |
<tr> |
| 12 |
<td> |
| 13 |
<div> |
| 14 |
<img class="Logo" src="image/logo.png"> |
| 15 |
</div> |
| 16 |
</td> |
| 17 |
<td id="searchBar" style="width: 90%; vertical-align: middle; text-align: right; padding-right: 40px"> |
| 18 |
<input style="width: 80%; min-height: 30px; color: #444444;" id="location_ip" type="text" |
| 19 |
class="textclass" name="q" size="21" maxlength="120" value="Search Zip or City" onclick="ClearText()" /> |
| 20 |
<button style="width: 120px; min-height: 30px;" type="button" onclick="FetchData()" class="tftextbtn" name="q" size="21" maxlength="120">Search</button> |
| 21 |
</td> |
| 22 |
</tr> |
| 23 |
</table> |
| 24 |
<div id="defaultData"> |
| 25 |
<img style="height: 100%; width: 100%" src="/image/wall.jpg"> |
| 26 |
</div> |
| 27 |
<div id="errorData" style="display: none;"> |
| 28 |
<p style="color: #950C0C; font-size: large;">Failed to fetch the data! Please try again later.</p> |
| 29 |
<img style="height: 100%; width: 100%" src="/image/wall.jpg"> |
| 30 |
</div> |
| 31 |
<div id="cityData" style="display: none;"> |
| 32 |
<table style="width: 100%;"> |
| 33 |
<tr> |
| 34 |
<td style="width: 70%;"> |
| 35 |
<h4 style="background-color: #006092; color: #fff;">Attractions</h4> |
| 36 |
<table> |
| 37 |
<tr> |
| 38 |
<td style="width: 80%"> |
| 39 |
<center style="width: 100%; height: 100%;"> |
| 40 |
<img class="mainPic" id="mainPic1" style="width: 95%;" |
| 41 |
src="/image/wall.jpg"> |
| 42 |
</center> |
| 43 |
</td> |
| 44 |
<td style="width: 20%"> |
| 45 |
<img class="thumbnailPic" id="thumbnailPic1" src="/image/wall.jpg" style="width: 100%;"> |
| 46 |
<img class="thumbnailPic" id="thumbnailPic2" src="/image/wall.jpg" style="width: 100%;"> |
| 47 |
<img class="thumbnailPic" id="thumbnailPic3" src="/image/wall.jpg" style="width: 100%;"> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
</table> |
| 51 |
<div> |
| 52 |
<p> |
| 53 |
<a href="http://www.bing.com/">Image </a>results by |
| 54 |
<img src="image/bing-logo.jpg"> |
| 55 |
</p> |
| 56 |
</div> |
| 57 |
|
| 58 |
</td> |
| 59 |
<td style="width: 45%; height: 100%;" id="weatherData"> |
| 60 |
<h4 style="background-color: #006092; color: #fff;">Current Weather</h4> |
| 61 |
<table id="weatherTemplate" class="WeatherData" style="width: 100%; height: 100%; display: none"> |
| 62 |
<tr style="height: 100%; width: 100%;"> |
| 63 |
<td> |
| 64 |
<div class="CurrentTemperature">%wt%°F</div> |
| 65 |
<img id="weatherImg" src="%wimg%" style="float: left;"> |
| 66 |
<p>%wdesc%</p> |
| 67 |
<hr> |
| 68 |
</td> |
| 69 |
</tr> |
| 70 |
<tr style="height: 100%; width: 100%;"> |
| 71 |
<td style="vertical-align: middle; width: 100%"> |
| 72 |
<table style="width: 100%"> |
| 73 |
<tr> |
| 74 |
<td>Min. Temperature</td> |
| 75 |
<td style="text-align: right">%wtmin%°F</td> |
| 76 |
</tr> |
| 77 |
<tr> |
| 78 |
<td>Max. Temperature</td> |
| 79 |
<td style="text-align: right">%wtmax%°F</td> |
| 80 |
</tr> |
| 81 |
<tr> |
| 82 |
<td>Pressure</td> |
| 83 |
<td style="text-align: right">%wp%mb</td> |
| 84 |
</tr> |
| 85 |
</table> |
| 86 |
</td> |
| 87 |
</tr> |
| 88 |
<tr> |
| 89 |
<td> |
| 90 |
<div> |
| 91 |
<p><a href="http://openweathermap.org/">Weather </a>by OpenWeatherMap</p> |
| 92 |
<p><a href="https://developers.google.com/maps/">Postal code to location conversion </a>by Google Maps API</p> |
| 93 |
</div> |
| 94 |
</td> |
| 95 |
</tr> |
| 96 |
</table> |
| 97 |
</td> |
| 98 |
</tr> |
| 99 |
<tr> |
| 100 |
<td style="width: 60%; padding-right: 20px; padding-left: 20px;"> |
| 101 |
<div id="eventsData"> |
| 102 |
<h4 style="background-color: #006092; color: #fff;">Events around you</h4> |
| 103 |
<table id="eventsTable" style="width: 100%"> |
| 104 |
<tr id="eventTemplate" style="display: none"> |
| 105 |
<td style="margin: 10px; padding-bottom: 20px"> |
| 106 |
<div class="EventTitle wrapWords"><a href="%eventlink1%">%eventtitle%</a></div> |
| 107 |
<div class="EventDescription wrapWords" style="max-height: 200px"> |
| 108 |
%eventdescription% |
| 109 |
<a class="read-more" href="%eventlink2%" data-omni-sm="gbl_river_readmore">...</a> |
| 110 |
</div> |
| 111 |
</td> |
| 112 |
<td style="min-width: 100px">%eventvenue%</td> |
| 113 |
<td style="min-width: 100px">%eventstarttime% </td> |
| 114 |
</tr> |
| 115 |
</table> |
| 116 |
<div class="eventful-badge eventful-medium"> |
| 117 |
<img src="http://api.eventful.com/images/powered/eventful_88x31.gif" |
| 118 |
alt="Local Events, Concerts, Tickets"> |
| 119 |
<p><a href="http://eventful.com/">Events</a> by Eventful</p> |
| 120 |
</div> |
| 121 |
</div> |
| 122 |
</td> |
| 123 |
<td style="width: 40%; padding-left: 10px;"> |
| 124 |
<div id="moviesData"> |
| 125 |
<h4 style="background-color: #006092; color: #fff;">Now playing in Theaters</h4> |
| 126 |
<div id="movieTemplateToHide"> |
| 127 |
<div id="movieTemplate" style="display: none"> |
| 128 |
<table> |
| 129 |
<tr> |
| 130 |
<td> |
| 131 |
<h2 class="EventTitle">%mtitle%</h2> |
| 132 |
<p>%mtheater%</p> |
| 133 |
</td> |
| 134 |
<td rowspan="2"> |
| 135 |
<img class="thumbnailPic" id="Img1" src="%mposter%" style="width: 100%;"> |
| 136 |
</td> |
| 137 |
</tr> |
| 138 |
</table> |
| 139 |
<hr> |
| 140 |
</div> |
| 141 |
</div> |
| 142 |
<div> |
| 143 |
<p><a href="http://developer.tmsapi.com/">Movie data</a> by OnConnect TMS API services</p> |
| 144 |
<p> |
| 145 |
<a href="http://www.bing.com/">Movie poster </a>results by |
| 146 |
<img src="/image/bing-logo.jpg" alt="Movie poster results by Bing"> |
| 147 |
</p> |
| 148 |
</div> |
| 149 |
</div> |
| 150 |
</td> |
| 151 |
</tr> |
| 152 |
|
| 153 |
</table> |
| 154 |
|
| 155 |
</div> |
| 156 |
</body> |
| 157 |
</html> |