Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
- <script>
- $(document).ready(() => {
- // $("p").next().hide(); //намира и скрива следващия елемент от същото ниво(в пр: div)
- // $("h2").prev().show(); //намира и показва предишния елемент от същото ниво(в пр: span)
- //$("a").first().hide(); //намира и скрива първия от тип еднакви елементи
- //$("a").last().hide(); //намира и скрива последния от тип еднакви елементи
- // $("h2").parent().addClass("border border-info m-3 p-3"); //намира и добавя клас към родителя на всеки елемент от тип
- // $("div a").each((index, e) => {
- // $(e).css("font-size", (index + 1)*10);
- // });
- // $("div a").map((index, e) => {
- // $(e).css("font-size", (index + 1)*10);
- // });
- // $("div a").each(function(index){
- // $(this).css("font-size", (index + 1)*10);
- // });
- });
- </script>
- </head>
- <body>
- <header>
- <h1>The Header</h1>
- </header>
- <aside class="widget">
- <h2>Widget 1 h2 title </h2>
- <ul>
- <li>
- <a href="#">Item 1</a>
- </li>
- <li>
- <a href="#">Item 2</a>
- </li>
- <li>
- <a href="#">Item 3</a>
- </li>
- </ul>
- </aside>
- <section>
- <p> Welcome to our web site </p>
- <div>
- <a href="#"> Link 1 </a>
- <a href="#"> Link 2 </a>
- <a href="#"> Link 3 </a>
- <a href="#"> Link 4 </a>
- <a href="#"> Link 5 </a>
- </div>
- <p> Welcome to our web site </p>
- <span> This is a placeholder span</span>
- <h2>Section h2 title here</h2>
- </section>
- </body>
- </html>
Add Comment
Please, Sign In to add comment