Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<head>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
<script type='text/javascript' src='script.js'></script>
</head>
<body>
<header>
<h1>
Traverse and Manipulate
</h1>
<p>
<em>Admirable objectives for a jQuery Padwan</em>
<em>Admirable objectives for a jQuery Padawan</em>
</p>
</header>

Expand Down Expand Up @@ -55,4 +56,4 @@ <h3>

</body>

</html>
</html>
23 changes: 23 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
$(document).ready(function(){
$('h1').text('uhhh, Something Cheeky?');

$('<ul><li>Get Happy</li><li>Annoying Popup</li><li>CSS</li></ul>').insertAfter($('.info-box h4'));
/* $('.info-box ul').css('text-align','center'); :( bullets dont move */

$('.sad').addClass('happy');
$('.happy').removeClass('sad');

$('#annoying-popup a').prop('href','http://www.cashcats.biz')

$('#annoying-popup').css({
'top':'40px',
'right':'0px'
});

var unorderedList = $('h3').siblings()[0];
var $unorderedList = $(unorderedList);
$($unorderedList.children()[6]).text('Brawny bullies');

$('form input').first().replaceWith('<textarea>');

});