-
-
Save jhliberty/004e385850ef7a9b53e90e57279a8bc4 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/yepoyubuve
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.js" charset="utf-8"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/semantic.js"></script> | |
<style id="jsbin-css"> | |
body { | |
margin: 30px; | |
background-color: whitesmoke; | |
} | |
.ui.cards >.card { | |
width: 210px; | |
} | |
.ui.cards > .card > .content > .header:not(.ui) { | |
font-size: 1.1em; | |
font-weight: normal; | |
} | |
.ui.cards > .card .meta, | |
.ui.card .meta { | |
font-size: 0.8em; | |
} | |
#album_items { | |
display: none; | |
} | |
#album_items .ui.cards { | |
margin: 10px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="album"> | |
<div class="ui piled compact segment"> | |
<div class="floating ui red label">9</div> | |
<div class="ui card"> | |
<div class="blurring dimmable image"> | |
<div class="ui inverted dimmer"> | |
<div class="content"> | |
<div class="center"> | |
<div class="ui red button view">VIEW</div> | |
</div> | |
</div> | |
</div> | |
<img src="http://mrg.bz/IxQIgC"> | |
</div> | |
<div class="content"> | |
<div id="rate" class="ui star rating right floated" data-rating="3"></div> | |
<div class="header">Animals</div> | |
<div class="meta"> | |
<span class="date"><i class="calendar icon"></i>Created 7/27/2014</span> | |
<span class="right floated date"><i class="history icon"></i> Modified 8/4/2014</span> | |
</div> | |
<div class="description"> | |
Different animals from around the world | |
</div> | |
</div> | |
<div class="extra content" > | |
<div class="ui right labeled button" data-content="Like it!" data-variation="tiny" tabindex="0"> | |
<div class="ui red icon tiny button"> | |
<i class="thumbs outline up large icon"></i> | |
</div> | |
<a class="ui basic red left pointing label"> | |
365 | |
</a> | |
</div> | |
<div class="ui left labeled right floated button" data-content="Share it!" data-variation="tiny" tabindex="0"> | |
<a class="ui basic red right pointing label"> | |
183 | |
</a> | |
<div class="ui red icon tiny button"> | |
<i class="external share large icon"></i> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- ALBUM ITEMS --> | |
<div id="album_items"> | |
<button class="ui labeled icon button back"> | |
<i class="arrow lircle left icon"></i> | |
Back | |
</button> | |
<div class="ui cards"> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/IxQIgC"> | |
</div> | |
<div class="content"> | |
<div class="header">giraffes.jpg</div> | |
<div class="meta">263 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/khPVF7"> | |
</div> | |
<div class="content"> | |
<div class="header">zebras.jpg</div> | |
<div class="meta">284 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/dvbIRa"> | |
</div> | |
<div class="content"> | |
<div class="header">hippopotami.jpg</div> | |
<div class="meta">161 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/iBt7gI"> | |
</div> | |
<div class="content"> | |
<div class="header">elephants.jpg</div> | |
<div class="meta">230 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/k0u6U2"> | |
</div> | |
<div class="content"> | |
<div class="header">tigres.jpg</div> | |
<div class="meta">272 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/7XQcjZ"> | |
</div> | |
<div class="content"> | |
<div class="header">lions.jpg</div> | |
<div class="meta">193 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/nAnLej"> | |
</div> | |
<div class="content"> | |
<div class="header">pandas.jpg</div> | |
<div class="meta">187 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/BJkK4M"> | |
</div> | |
<div class="content"> | |
<div class="header">monkeys.jpg</div> | |
<div class="meta">213 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="image"> | |
<img src="http://mrg.bz/zX1SzA"> | |
</div> | |
<div class="content"> | |
<div class="header">ponies.jpg</div> | |
<div class="meta">235 KB</div> | |
</div> | |
<div class="ui bottom attached basic buttons"> | |
<button class="ui button"><i class="pencil icon"></i></button> | |
<button class="ui button"><i class="trash icon"></i></button> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script id="jsbin-javascript"> | |
$( document ).ready(function() { | |
$('.ui.card .image').dimmer({on: 'hover'}); | |
$('.ui.rating').rating({maxRating: 5}); | |
$('.ui.button').popup(); | |
$('.button.view').on('click', (function() { | |
$('#album').fadeOut("slow", function () { | |
$('#album_items').fadeIn("slow"); | |
}); | |
})); | |
$('.button.back').on('click', (function() { | |
$('#album_items').fadeOut("slow", function () { | |
$('#album').fadeIn("slow"); | |
}); | |
})); | |
}); | |
</script> | |
<script id="jsbin-source-css" type="text/css"> body { | |
margin: 30px; | |
background-color: whitesmoke; | |
} | |
.ui.cards >.card { | |
width: 210px; | |
} | |
.ui.cards > .card > .content > .header:not(.ui) { | |
font-size: 1.1em; | |
font-weight: normal; | |
} | |
.ui.cards > .card .meta, | |
.ui.card .meta { | |
font-size: 0.8em; | |
} | |
#album_items { | |
display: none; | |
} | |
#album_items .ui.cards { | |
margin: 10px; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript"> $( document ).ready(function() { | |
$('.ui.card .image').dimmer({on: 'hover'}); | |
$('.ui.rating').rating({maxRating: 5}); | |
$('.ui.button').popup(); | |
$('.button.view').on('click', (function() { | |
$('#album').fadeOut("slow", function () { | |
$('#album_items').fadeIn("slow"); | |
}); | |
})); | |
$('.button.back').on('click', (function() { | |
$('#album_items').fadeOut("slow", function () { | |
$('#album').fadeIn("slow"); | |
}); | |
})); | |
});</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 30px; | |
background-color: whitesmoke; | |
} | |
.ui.cards >.card { | |
width: 210px; | |
} | |
.ui.cards > .card > .content > .header:not(.ui) { | |
font-size: 1.1em; | |
font-weight: normal; | |
} | |
.ui.cards > .card .meta, | |
.ui.card .meta { | |
font-size: 0.8em; | |
} | |
#album_items { | |
display: none; | |
} | |
#album_items .ui.cards { | |
margin: 10px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( document ).ready(function() { | |
$('.ui.card .image').dimmer({on: 'hover'}); | |
$('.ui.rating').rating({maxRating: 5}); | |
$('.ui.button').popup(); | |
$('.button.view').on('click', (function() { | |
$('#album').fadeOut("slow", function () { | |
$('#album_items').fadeIn("slow"); | |
}); | |
})); | |
$('.button.back').on('click', (function() { | |
$('#album_items').fadeOut("slow", function () { | |
$('#album').fadeIn("slow"); | |
}); | |
})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment