Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.
For the best experience please use the latest Chrome, Safari or Firefox browser.
CIS 115
Interactive Web Programming
Assignments
Blog 4: The Filter Bubble
The Filter Bubble (https://en.wikipedia.org/wiki/Filter_bubble) is a phenomenon on the internet where personalized algorithms present users only with information or opinions that match her or his own thoughts. Because of this, internet users can become isolated in their own little worlds, where everything they see and hear agrees with an reinforces their own ideals and belief. For this blog post, we want you to challenge yourself a bit to see exactly what others are seeing. Here's what we'd like you to do:
Write about your experiences and what you find. Make sure you reference back to the textbooks and other websites to help you explain why this is happening.
Create your own Website!
Create a webpage that has:
Core Web 2.0 Technologies
Document Object Model (DOM)
Image Source: Wikipedia
Document Object Model (DOM)
Image Source: Wikipedia
HTML - tictactoe.html
<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<h1>Play TicTacToe</h1>
<!-- table goes here -->
</body>
</html>
Table - tictactoe.html
<table>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
Styles - style.css
td {
border: 5px solid black;
width: 100px;
height: 100px;
font-size: 80px;
text-align: center;
font-family: sans;
}
Div - tictactoe.html
<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<h1>Play TicTacToe</h1>
<div id="turn">x's Turn</div>
<table>
<!-- rest of table here -->
<table>
</body>
</html>
Styles - style.css
td {
border: 5px solid black;
width: 100px;
height: 100px;
font-size: 80px;
text-align: center;
font-family: sans;
}
#turn {
font-weight: bold;
text-transform: capitalize;
text-align: center;
font-size: 16pt;
background-color: #777777;
width: 340px;
}
Borders - style.css
td:nth-child(1) {
border-left: none;
}
td:nth-child(3) {
border-right: none;
}
tr:nth-child(1) > td {
border-top: none;
}
tr:nth-child(3) > td {
border-bottom: none;
}
Brendan Eich
Image Source: Wikipedia
JavaScript (1995)
JQuery (1995)
code.jquery.com
Image Source: JQuery
Script - tictactoe.html
<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<h1>Play TicTacToe</h1>
<div id="turn">x's Turn</div>
<table>
<!-- rest of table here -->
</table>
<script src="http://code.jquery.com/..."></script>
<script src="script.js" type="text/javascript"></script>
</body>
</html>
Code - script.js
var turn = "x";
$('td').on('click', function(){
var $square = $(this);
if($square.text() == ""){
$square.text(turn);
if(turn == "x"){
turn = "o";
}else{
turn = "x";
}
$('#turn').text(turn + "'s turn");
}
});
AJAX (2005)
Extensible Markup Language (XML)
<person>
<firstName>John</firstName>
<lastName>Smith</lastName>
<age>25</age>
<address>
<city>New York</city>
<postalCode>10021</postalCode>
<state>NY</state>
<streetAddress>21 2nd Street</streetAddress>
</address>
<phoneNumbers>
<element>
<number>212 555-1234</number>
<type>home</type>
</element>
<element>
<number>646 555-4567</number>
<type>fax</type>
</element>
</phoneNumbers>
JavaScript Object Notation (JSON)
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": 10021
},
"phoneNumbers": [
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "fax",
"number": "646 555-4567"
}
]
}