Skip to content

Instantly share code, notes, and snippets.

@Asherlc
Created August 4, 2012 00:03
Show Gist options
  • Save Asherlc/3252856 to your computer and use it in GitHub Desktop.
Save Asherlc/3252856 to your computer and use it in GitHub Desktop.
Lightbox
<script type="text/javascript">
$(document).ready(function() {
$('.fancybox').fancybox();
$("#inline").fancybox({titleShow: false}).trigger('click');
});
</script>
<style type="text/css">
.fancybox-custom .fancybox-skin {
box-shadow: 0 0 50px #222;
}
</style>
<body>
<a class="fancybox" href="#data" data-fancybox-group="gallery" id="inline" style="display:none;">Hidden</a>
<div style="display:none">
<div id="data" style="width:300px;">
<h2 style="float:left;">Text goes here.<h2>
<form action="https://wfc2.wiredforchange.com/o/8/content_item/mccaskill-donate" method="get" id="slide-contribution-form" class="clearfix" name="upsell-contribute" style="float:right;">
<input name="Amount" id="amount" class="amount" restore="25" value="25" type="text" style="width: 30px;"/>
<input type="submit" value="submit" />
</form>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment