You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.5 KiB
41 lines
1.5 KiB
<!doctype html> |
|
<html> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<title>My Learning Website</title> |
|
<link href="/styles/styles.css" rel="stylesheet" type="text/css"> |
|
<link href="/webdevelopment/styles/styles.css" rel="stylesheet" type="text/css"> |
|
<link href="../styles/samples.css" rel="stylesheet" type="text/css"> |
|
<script type="module" src="/scripts/article.js" defer></script> |
|
<script type="text/javascript" src="/jQuery/jquery-3.6.3.js"></script> |
|
|
|
<script type="text/javascript"> |
|
$("document").ready(function() { |
|
$("#content").append("<p>The page just loaded</p>"); |
|
}) |
|
|
|
// Inserting content the old way using the DOM |
|
window.addEventListener("DOMContentLoaded", function(evt) { |
|
var elem = document.getElementById("content"); |
|
var para = document.createElement("p"); |
|
var text = document.createTextNode("The page just loaded."); |
|
para.appendChild(text); |
|
elem.appendChild(para); |
|
}); |
|
</script> |
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> |
|
<!--[if lt IE 9]> |
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
|
<![endif]--> |
|
</head> |
|
<body> |
|
<h1>First jQuery Page</h1> |
|
<div id="content"> |
|
<!-- we start with an empty document --> |
|
</div> |
|
</body> |
|
</html> |