Advertisement
ProjcheskiF1

Колоквиумска-Интерактивни Апликации

Nov 6th, 2016
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Kolokviumska</title>
  6. <script src="jquery/jquery-ui.css"></script>
  7.     <script src="jquery/jquery-3.1.1.js"></script>
  8.     <script src="jquery/jquery-ui.js"></script>
  9.     <style>
  10.  
  11.         #tabContainer{
  12.             display: inline-block;
  13.             vertical-align:top;
  14.  
  15.         }
  16.  
  17.         #sidebar{
  18.             display: inline-block;
  19.             vertical-align:top;
  20.             border: solid;
  21.             border-width: 1px 1px 0px 1px;
  22.             border-color: black;
  23.             width: 200px;
  24.         }
  25.  
  26.         #sidebar > button{
  27.             width:100%;
  28.             border-bottom: solid 1px black;
  29.         }
  30.  
  31.         button{
  32.             padding: 10px;
  33.             background-color: lightgray;
  34.             border: none;
  35.         }
  36.  
  37.         .side{
  38.             padding:2px;
  39.             border-bottom: solid 1px black;
  40.             background-color: whitesmoke;
  41.         }
  42.  
  43.         #tabs > button{
  44.             border-right: solid 1px black;
  45.         }
  46.  
  47.         #tabs{
  48.             width: 500px;
  49.             background-color: darkgray;
  50.             border: solid 1px black;
  51.         }
  52.  
  53.         #content{
  54.             width: 700px;
  55.             height: 700px;
  56.             padding-top:20px;
  57.             padding-bottom:20px;
  58.             background-color: cadetblue;
  59.             border: solid;
  60.             border-width: 0 1px 1px;
  61.             border-color: black;
  62.         }
  63.  
  64.         ul{
  65.             margin: 0;
  66.         }
  67.         #list2{
  68.             float: left;
  69.         }
  70.         #list1 div{
  71.             margin: 10px;
  72.  
  73.  
  74.             padding: 10px;
  75.             float: left;
  76.         }
  77.  
  78.  
  79.         #list2 div{
  80.             margin: 10px;
  81.  
  82.  
  83.             padding: 10px;
  84.             float: left;
  85.         }
  86.         #list3 div{
  87.             margin: 10px;
  88.  
  89.  
  90.             padding: 10px;
  91.             float: left;
  92.         }
  93.     </style>
  94. </head>
  95. <body>
  96.  
  97. <script>
  98.     var current = 1;
  99.     function tab(x){
  100.         if(current != x){
  101.             $("#b"+current).css({"background-color":"lightgray"});
  102.             $("#b"+x).css({"background-color":"cadetblue"});
  103.             $("#list"+current).hide();
  104.             $("#list"+x).show();
  105.             current = x;
  106.         }
  107.     }
  108.     function slide(x){
  109.         $("#side"+x).slideToggle();
  110.     }
  111.  
  112.  
  113.  
  114.  
  115.  
  116. </script>
  117.  
  118. <div id="tabContainer">
  119.     <div id="tabs" style="width: 700px">
  120.         <button id ="b1"  style="background-color: cadetblue" onclick="tab(1)">Current</button><button id ="b2" onclick="tab(2)">Achived</button><button id ="b3" onclick="tab(3)">Upcoming</button>
  121.     </div>
  122.     <div id="content">
  123.         <div id="list1">
  124.             <div id="stanford">
  125.  
  126.                 <img src="podatoci_gr1/1_ml.png" alt="machine learning class" style="width: 300px; height: 169px">
  127.                 <p>Machine learning</p>
  128.                 <p>Stanford University</p>
  129.  
  130.             </div>
  131.             <div id="duke">
  132.                 <img src="podatoci_gr1/2_brain_icon.jpg" alt="Brain and Space" style="width: 300px; height: 169px">
  133.                 <p>The Brain and Space</p>
  134.                 <p>Duke University</p>
  135.             </div>
  136.             <div id="Jonhns">
  137.                 <img src="podatoci_gr1/3_StatReason1.jpg" alt="Statistical" style="width: 240px; height: 135px">
  138.                 <p>Statistical Reasoning for Public Health 1:<br>
  139.                     Estimation, Inference, & Interpretation</p>
  140.                 <p>Jonhns Hopkings University</p>
  141.             </div>
  142.  
  143.  
  144.         </div>
  145.  
  146.         <div id="list2">
  147.             <div id="JohnsH">
  148.  
  149.                 <img src="podatoci_gr1/4_fmri1.png" alt="frmri" style="width: 300px; height: 169px">
  150.                 <p>Statistical Analysis of fMRI Data</p>
  151.                 <p>Jonhs Hopkings University</p>
  152.  
  153.             </div>
  154.             <div id="StanfordU">
  155.                 <img src="podatoci_gr1/12_.png" alt="Mining Massive Datasets" style="width: 300px; height: 169px">
  156.                 <p>Mining Massive Datasets</p>
  157.                 <p>Stanford University</p>
  158.             </div>
  159.             <div id="wahington">
  160.                 <img src="podatoci_gr1/6_cn.png" alt="computational" style="width: 300px; height: 190px">
  161.                 <p>Computational Neuroscience</p>
  162.                 <p>Washington University</p>
  163.             </div>
  164.             <div id="JohnsH2">
  165.                 <img src="podatoci_gr1/7_Rprogramming.jpg" alt="RPrograming" style="width: 300px; height: 190px;">
  166.                 <p>R Programing</p>
  167.                 <p>Johns Hopkins University</p>
  168.             </div>
  169.  
  170.  
  171.         </div>
  172.         <div id="list3">
  173.             <div id="johns3">
  174.  
  175.  
  176.             </div>
  177.  
  178.         </div>
  179.  
  180.  
  181.     </div>
  182. </div>
  183. <div id="sidebar">
  184.     <button onclick="slide(1)">Friends</button>
  185.     <div class = "side" id = "side1" style="display: none">
  186.         <ul>
  187.             <li>Partners</li>
  188.             <li>Programs</li>
  189.             <li>Developers</li>
  190.             <li>Translate</li>
  191.         </ul>
  192.     </div>
  193.     <button onclick="slide(2)">Connect</button>
  194.     <div class = "side" id = "side2" style="display: none">
  195.         <ul>
  196.             <li>Google+</li>
  197.             <li>Twitter</li>
  198.             <li>Facebook</li>
  199.             <li>Blog</li>
  200.             <li>Tech Blog</li>
  201.         </ul>
  202.     </div>
  203.     <button onclick="slide(3)">More</button>
  204.     <div class = "side" id = "side3" style="display: none;">
  205.         <ul>
  206.             <li>Terms</li>
  207.             <li>Privacy</li>
  208.             <li>Help</li>
  209.             <li>Contact</li>
  210.         </ul>
  211.  
  212.     </div>
  213. </div>
  214. <script>
  215.     $(document).ready(function(){
  216.         $("p").hover(function(){
  217.             $(this).css("background-color", "blue");
  218.         }, function(){
  219.             $(this).css("background-color", "transparent");
  220.         });
  221.     });
  222.     </script>
  223. })
  224. </body>
  225. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement