Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Software Company</title>
- <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- var $tabs = $(".tabs-wrapper");
- var $tabButtons = $tabs.find("button");
- var $lists = $(".tabs-content-wrapper ul");
- var $panels = $(".panel");
- function showContent(el) {
- if(el.is("button")) {
- $lists.hide();
- $tabButtons.removeClass("active");
- el.addClass("active");
- $lists.eq(el.index()).show();
- }
- }
- $tabs.on("click", function(e) {
- showContent($(e.target));
- });
- $panels.on("click", function() {
- $(this).toggleClass("active-panel");
- if($(this).hasClass("active-panel"))
- $(this).next("div").slideDown();
- else $(this).next("div").slideUp();
- });
- });
- </script>
- <style type="text/css">
- body {width: 100%;}
- button {border: none; background: transparent; outline: none;}
- ul {padding: 0; list-style: none; margin: 0;}
- .tabss {float: left; width: 560px;}
- .tabs-wrapper {box-sizing: border-box; width: 100%; background-color: #ffdc2b; border: 1px solid dimgray; border-bottom: none; float: left;}
- .tabs-wrapper span {margin-left: 30px; font-style: italic; display: block;}
- .tabs-wrapper button {cursor: pointer; width: 139.51px; padding: 5px; margin-right: 0; background-color: lightyellow; border-right: 1px solid dimgray; font-style: italic; float: left;}
- button.active { background: palegreen; font-weight: bold; }
- .tabs-wrapper button:last-child {border: none;}
- .tabs-content-wrapper {box-sizing: border-box; width: 100%; height: 200px; border: 1px solid dimgray; padding: 10px; background-color: lightskyblue; clear: both;}
- .tabs-content-wrapper ul:not(:first-child) { display: none; }
- .accordion {width: 200px; float: left; border: 1px solid #aaa; border-top: none; margin-left: 20px;}
- .accordion h1 {font-style: italic; margin-left: 5px; padding: 0;}
- .panel {background-color: lightyellow; border-top: 1px solid #aaa; padding: 5px 10px; font-style: italic; cursor: pointer;}
- .panel + div {padding: 10px; border-top: 1px solid #aaa; display: none; background: lightskyblue;}
- .active-panel {font-weight: bold; background: lightgreen;}
- </style>
- </head>
- <body>
- <div class="tabss">
- <div class="tabs-wrapper">
- <button class="active">Медицина</button>
- <button>Образование</button>
- <button>Сметководство</button>
- <button>Игри</button>
- </div>
- <div class="tabs-content-wrapper">
- <ul>
- <li>MedIm</li>
- <li>MedIA</li>
- <li>FINKI-Med</li>
- </ul>
- <ul>
- <li>FINKI-Edu</li>
- <li>Edu-Buddy</li>
- <li>FINKI-LE</li>
- <li>FINKI-Math</li>
- </ul>
- <ul>
- <li>eTax</li>
- <li>FINKI-Tax</li>
- <li>Tax-All</li>
- <li>mySalary</li>
- </ul>
- <ul>
- <li>FINKI-game</li>
- <li>Grelima</li>
- <li>Edaolith</li>
- <li>Foessa</li>
- <li>Jeroen</li>
- </ul>
- </div>
- </div>
- <div class="accordion">
- <div class="panel">Тим</div>
- <div>
- <ul>
- <li>Алберт Ајнштајн</li>
- <li>Ален Тјуринг</li>
- <li>Архимед</li>
- </ul>
- </div>
- <div class="panel">Претставништва</div>
- <div>
- <ul>
- <li>Скопје</li>
- <li>Прилеп</li>
- <li>Велес</li>
- </ul>
- </div>
- <div class="panel">Контакт</div>
- <div>
- Ул. Есенска 24/5 1000 Скопје<br>
- +38921234567<br>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment