'Added example web page with jQuery'

This commit is contained in:
Arkadiusz Hypki 2024-03-25 14:01:58 +01:00
parent dca8c79a23
commit 5dcc9edfad
2 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Parse eurojackpot web page for the numbers of the last results using jQuery.
Parse eurojackpot web page for the numbers of the last results using jQuery (https://www.lotto.pl/eurojackpot/wyniki-i-wygrane).
Write jQuery parser for the entries on arxiv (title, authors, abstract, journal, submission date) for any given paper, e.g. https://arxiv.org/abs/2403.13859

29
05_html_jQuery/web1.html Normal file
View File

@ -0,0 +1,29 @@
<html>
<head>
<script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
</head>
<body>
<article>
<header>
<h1>A heading here</h1>
<p class="abc">Posted by John Doe</p>
<p>Some additional information here</p>
</header>
<h1 id="id1">A heading here 222</h1>
<h1>A heading here 333</h1>
<p>Lorem Ipsum dolor set amet....</p>
</article>
</body>
<script type="text/javascript">
jQuery(document).ready(function($){
console.log('jQuery document loaded');
alert($('#id1').html('abababa'));
});
</script>
</html>