Created
October 18, 2011 22:26
-
-
Save niczak/1296923 to your computer and use it in GitHub Desktop.
Simple Page Scraping
This file contains 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
<!DOCTYPE html> | |
<html> | |
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Simple Page Scraping</title> | |
<meta name="description" content="Testing"> | |
<meta name="author" content="Nicholas Kreidberg"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() | |
{ | |
// Bind mouseover event | |
$("#network").mouseover(function() | |
{ | |
// Ajax call to load data from network.php | |
// and parse document looking only for #WiFi | |
$("#show").load('/Pages/network.php #WiFi'); | |
// Show the container | |
$("#show").show(); | |
}); | |
$("#wifi").mouseout(function() | |
{ | |
// When mouseout event detected hide container | |
$("#show").hide(); | |
}) | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="main" role="main"> | |
<div id="nav"> | |
<center> | |
<h2><a href="#" id="network">WiFi Info</a></h2> | |
</center> | |
</div> | |
<div id="show" style="display:none;"> | |
| |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment