Difference between revisions of "Team:UCSC/Breakdown"
Line 333: | Line 333: | ||
@keyframes gear_2 { 100% { -webkit-transform: rotate(360deg); transform:rotate(-360deg); } } | @keyframes gear_2 { 100% { -webkit-transform: rotate(360deg); transform:rotate(-360deg); } } | ||
+ | .gear-container { | ||
+ | position: relative; | ||
+ | height: 630px; | ||
+ | } | ||
+ | .gear-node { | ||
+ | width: 180px; | ||
+ | height: 180px; | ||
+ | position: absolute; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | .gear-node .gear { | ||
+ | width: 180px; | ||
+ | height: 180px; | ||
+ | } | ||
+ | .profile-cont { | ||
+ | display: none; | ||
+ | } | ||
+ | .profile-cont.active { | ||
+ | display: block; | ||
+ | } | ||
</style> | </style> | ||
Line 392: | Line 412: | ||
<!-- team gear code --> | <!-- team gear code --> | ||
− | <div | + | <div class="container"> |
− | <div | + | <div class="row"> |
− | <div | + | <div class="col-md-6 gear-container"> |
− | + | <div class="gear-node" data-node="1" style="top: 0px; left: -2px;"><img class="gear" src="https://static.igem.org/mediawiki/2015/9/9c/UCSC_Profile_Gear.png" /></div> | |
− | <div | + | <div class="gear-node" data-node="2" style="top: 38px; left: 105px;"><img class="gear" src="https://static.igem.org/mediawiki/2015/9/9c/UCSC_Profile_Gear.png" /></div> |
− | + | <div class="gear-node" data-node="3" style="top: 55px; left: 170px;"><img class="gear" src="https://static.igem.org/mediawiki/2015/9/9c/UCSC_Profile_Gear.png" /></div> | |
− | <div | + | <div class="gear-node" data-node="4" style="top: 215px; left: 5px;"><img class="gear" src="https://static.igem.org/mediawiki/2015/9/9c/UCSC_Profile_Gear.png" /></div> |
− | + | <div class="gear-node" data-node="5" style="top: 228px; left: 15px;"><img class="gear" src="https://static.igem.org/mediawiki/2015/9/9c/UCSC_Profile_Gear.png" /></div> | |
− | <div | + | <div class="gear-node" data-node="6" style="top: 385px; left: 185px;"><img class="gear" src="https://static.igem.org/mediawiki/2015/9/9c/UCSC_Profile_Gear.png" /></div> |
− | + | <div class="gear-node" data-node="7" style="top: 630px; left: 340px;"><img class="gear" src="https://static.igem.org/mediawiki/2015/9/9c/UCSC_Profile_Gear.png" /></div> | |
− | <div | + | </div> |
− | + | <div class="col-md-6"> | |
− | <div | + | <div class="profile-cont" data-node="1"> |
− | + | test 1 | |
− | <div | + | </div> |
+ | <div class="profile-cont" data-node="2"> | ||
+ | test 2 | ||
+ | </div> | ||
+ | <div class="profile-cont" data-node="3"> | ||
+ | test 3 | ||
+ | </div> | ||
+ | <div class="profile-cont" data-node="4"> | ||
+ | test 4 | ||
+ | </div> | ||
+ | <div class="profile-cont" data-node="5"> | ||
+ | test 5 | ||
+ | </div> | ||
+ | <div class="profile-cont" data-node="6"> | ||
+ | test 6 | ||
+ | </div> | ||
+ | <div class="profile-cont" data-node="7"> | ||
+ | test 7 | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
</div> | </div> | ||
Line 451: | Line 491: | ||
</div> | </div> | ||
</body> | </body> | ||
− | + | <script> | |
+ | console.log('hi'); | ||
+ | jQuery(document).ready(function() { | ||
+ | jQuery('.gear-node').on('mouseover', function() { | ||
+ | jQuery('.profile-cont').removeClass('active'); | ||
+ | jQuery('.profile-cont[data-node="' + jQuery(this).attr('data-node') + '"]').addClass('active'); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</html> | </html> |
Revision as of 05:34, 15 September 2015
Breakdown
test 1
test 2
test 3
test 4
test 5
test 6
test 7
test 1
test 2
test 3
test 4
test 5
test 6
test 7