The best way to identify the best places to look for UFOs by shape is to be able to filter by when and where they were found, along with the testimony by the observer. Using a provided set of data in the form of a .js file, this project constructs a webpage using JavaScript, HTML, and CSS to make an aesthetically pleasing website that offers information about UFOs as well as allows the user to interactively filter the data in order to find true gems like the sighting in Paducah, Kentucky in 2010. While the dataset provided only includes about 1000 lines, the site can handle much larger datasets organized in the same format.
Using the HTML grid system, the webpage was set up to have a jumbotron across the top of the page, and using the CSS an image was applied to that container. The color theme was changed using the HTML code to a dark theme. The heading and paragraph were offset as well as the interactive filter and the table. Placeholders were left in the table to allow the user to see the format in which to enter the filter parameters. When constructing the page, fluid containers were used to allow the page to easily adjust to size changes of the page and screen:
In order to use the filters, the user need only enter a parameter. It can be filtered by Date:
Filtered by City:
Filtered by State:
Filtered by Country:
Filtered by Shape:
And filtered by multiple parameters simultaneously - this filters by Date and State:
When parameters are entered that do not provide any results, the table is returned blank:
Using HTML and CSS, the website offers the classic "Courier" font style, typically associated with the X-Files and conspiracy theorists galore. The fonts were modified slightly to add bold and italics to make the website more appealing to look at. Finally, an Easter Egg was added to the page for those randomly hovering over the header text. Most of this modification was done in the CSS style sheet, but the corresponding code in the HTML is as follows:
The following changes were made to the Jumbotron class. The data-replace was added to provide the alternative text when hovered over.
<div class='jumbotron'>
<h1><a data-replace="Deceive Inveigle Obfuscate"><span>The Truth Is Out There</span></a></h1>
</div>
The corresponding changes were made to the CSS:
- in the body, the Courier font family was applied.
body {
font-family: 'Courier New';
color: #f7f7f7;
}
- The anchors and span were adjusted for before and after the hover-event. The Courier font family was additionally applied along with the font size in the anchor within the Jumbotron.
a {
overflow: visible;
position: relative;
display: inline-block;
font-family: 'Courier', serif;
font-size: 60px;
}
a::before,
a::after {
content: '';
position: absolute;
width: 100%;
left: 0%;
}
The content: attr(data-replace) uses the replacement font to take over the header. The transform/translate ensures that the original and replacement texts do not overlap.
a::after {
content: attr(data-replace);
height: 100%;
width: 200%;
left: -50%;
top: 0;
transform-origin: 100% 100%;
transform: translate3d(200%, 0, 0);
color: #f7f7f7;
}
a:hover::before {
transform-origin: 0% 50%;
transform: scaleX(1);
}
a:hover::after{
transform: translate3d(0,0,0);
}
a span {
display: inline-block;
}
a:hover span {
transform: translate3d(-300%, 0, 0);
}
While this provides a simple-to-use interface for the user, it does have several major limitations. The current website only has data for about 2 months of sightings, but considering a much larger dataset, the limitations still exist.
-
The first major limitation is that one must know the exact city that they want to search. If the data spanned several years, it would be very difficult to discern unique events. This is already present in the current table, as there were sightings in La Mesa, Bonita, El Cajon, San Diego, National City, Spring Valley, and Lemon Grove on January 1, 2010. While this appears that there were 8 different cities where UFOs were sighted, these are all within 15 miles of one another and all describe the same phenomenon. One thing that would benefit this analysis would be a proximity to a particular location, so that the user can find all sightings within X miles of a particular location.
-
It is unclear what types of shapes are available for the user to select. A drop menu would be more appropriate for the shape parameter.
-
Who doesn't love a map? A map with weighted points for each region with UFO sightings that can change as the user filters the data would look spectacular and provide a much better user experience than a simple table.
-
I would also like to add a feature to "find the nearest UFO to my location", which would take the user's input location by city/state and find the nearest locations that have had sightings.
-
Finally, this page clearly needs the X-Files theme song playing on a loopOne of the best features of this page is that it does not feature cheesy music like a 1990s Geocities site that would likely be looping the X-Files theme song.However, what would be extremely cool is to change the Jumbotron text from "The Truth Is Out There" to "Deceive Inveigle Obfuscate" only as the user hovers over the text.Done.










