Widget:CampaignCards

From Unforgotten Realms Wiki
Revision as of 20:19, 29 August 2017 by imported>Pillowkeeper (Created page with "<div onClick="openCard(this)" class="campaignbox" id="test"> <div class="campaignbox-card"> <img class="campaignbox-image" src="https://stream.urealms.com/img/watch/s1c1.j...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
 <img class="campaignbox-image" src="https://stream.urealms.com/img/watch/s1c1.jpg" >

Season 1

Band of Thieves

Band of Thieves

<script> function openCard(card){ var height = $(card).height(); console.log(card.id) $("div#test div:not('.campaignbox-content')").fadeToggle('slow'); if(!$("div#test").hasClass("opened")){ $("div#test").animate({width: '100%', height:'300px'}); $("div#test .campaignbox-content").show('slow'); $("div#test div:not('.campaignbox-content')").hide('slow'); } else { $("div#test").animate({width: '200px', height: '184px'}); $("div#test .campaignbox-content").hide('slow'); $("div#test div:not('.campaignbox-content')").show('slow'); } $("div#test").toggleClass("opened"); } </script>

<style> .campaignbox {

 width: 200px;
 height: 184px;
 border: 3px solid white;
 border-radius: 10px;
 overflow: hidden;
 display: inline-block;
 background: rgb(33, 33, 33);

} .campaignbox-card {

   cursor: pointer;

} .campaignbox-image {

 width: 100%;
 opacity:0.85;
 margin-bottom: -5px;

} .campaignbox-text {

 padding: 0.01em 5px;
 color: white;
 text-align: center;

} .campaignbox-content {

 display: none;
 color:white;
 }


</style>