Advertisement
ProjcheskiF1

[IA] Lab vezba 2. Zadaca 1 [2016]

Oct 30th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Zadaca 1</title>
  6.     <style>
  7. button{
  8.  
  9.     width: 149px;
  10.     padding: 4px;
  11.     padding-left: 10px;
  12.     text-align: left;
  13.     margin-right: 0;
  14.     background-color: lightyellow;
  15.     border: solid;
  16.     border-color: dimgray;
  17.     border-width: 1px;
  18.     font-style: italic;
  19. }
  20. .tabs{
  21.     width: 520px;
  22.     padding: 10px;
  23.     background-color: lightskyblue;
  24.     margin-top: 0;
  25.     border: solid;
  26.     border-color: dimgray;
  27.     border-width: 0 1px 1px;
  28. }
  29.        #buttonsDiv{
  30.            width: 522px;
  31.            padding: 10px;
  32.            background-color: #ffdc2b;
  33.            border: solid;
  34.            border: dimgray;
  35.            border-width: 1px;
  36.        }
  37.  
  38.  
  39.  
  40.     </style>
  41.     <script src="jquery-3.1.1.js"></script>
  42. </head>
  43. <body>
  44. <script type="text/javascript">
  45. var momentalno=3;
  46.     function smeniTab(x){
  47.         if(momentalno!=x){
  48.             $("#bt" + x).css({
  49.                 "background-color":"palegreen",
  50.                 "font-weight": "bold"
  51.             });
  52.             $("#bt" + momentalno).css({
  53.                 "background-color":"lightyellow",
  54.                 "font-weight": "normal"
  55.  
  56.             });
  57.             $("#tab"+momentalno).hide();
  58.             $("#tab" + x).show();
  59.             momentalno=x;
  60.         }
  61.  
  62.     }
  63.  
  64.  
  65.  
  66. </script>
  67. <div id="buttonsDiv">
  68. <span style="margin-left: 30px; font-style: italic;">Costum</span>
  69. <br>
  70.     <button id="bt1" onclick="smeniTab(1)">Open start</button>
  71.     <button id="bt2" onclick="smeniTab(2)">Connect</button>
  72.     <button id="bt3" onclick="smeniTab(3)">Pin apps</button>
  73.  
  74.  
  75. </div>
  76. <div id="tab1" class="tabs">
  77.     <span>This is the Start tab</span>
  78. </div>
  79. <div id="tab2" class="tabs">
  80.     <span>This is the tab for the Connent part</span>
  81. </div>
  82. <div id="tab3" class="tabs">
  83.     <span>You can pin apps, websites, people, and folders to Start to easily get to what you see
  84.     most. Tiles and notifications show what's new so you can get important info and
  85.     updates at a glance. From Start, you don't have to bring up the charms to begin a
  86.     search-start typing to search for what you want. You can choose those results from youe
  87.     apps, files, PC settings, and Bing. To see a list of all apps on your PC from Start, slide
  88.     up from the middle of the screen or use the mouse to click the down arrow in the
  89.         bottom left corner. To pin an app to Start select the app by pressing and holding or
  90.     right clicking the tile, then tap or click Pin to Start. To costumize Start, swipe up from
  91.     the bottom edge and tap Costumize. (if you're using a mouse, right-click anywhere on
  92.         the screen and Costumize.) From here you can organize screen
  93.     however you like by moving tiles around, changing tile sizes, and naming groups of tiles.</span>
  94. </div>
  95. <script>
  96.     $("#bt3").css({
  97.         "background-color":"palegreen",
  98.         "font-weight":"bold"
  99.     });
  100.     $("#tab1").hide();
  101.     $("#tab2").hide();
  102. </script>
  103. </body>
  104. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement