Skip to content

Instantly share code, notes, and snippets.

$(document).observe('dom:loaded', function(){
new Shodan.UI.Accordion('sh-ui-accordion-demo');
});
<div id='sh-ui-accordion-demo'>
<ul class="root">
<li>
<div class='hd'>
<h3>Item 1</h3>
</div>
<ul class='sub'>
<li>
<div class='inner'>Item 1 child 1</div>
</li>
@shodanuk
shodanuk / Shodan.UI.SlideyPanel.js
Created February 21, 2011 15:46
Example Javascript for Shodan.UI.Slidey demo
$(document).observe("dom:loaded", function(){ // wait for DOM to load
new Shodan.UI.SlideyPanel('sh-ui-slidey-demo');
});
@shodanuk
shodanuk / Shodan.UI.SlideyPanel.html
Created February 21, 2011 15:42
Example markup for Shodan.UI.Slidey demo
<div id="sh-ui-slidey-demo">
<div class="hd">
<h3>Click me!</h3>
</div>
<div class="content">
<div class="inner">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
@shodanuk
shodanuk / Pure CSS buttons
Created October 23, 2010 14:37
Nothing groundbreaking here just attractive, progressively enhanced CSS buttons. TODO: is there a way to get a gradient in Opera? Also the blur looks a bit crap in Opera. Either fix it or remove it (but only for Opera).
<style type="text/css>
p {
margin-bottom:10px
}
button {
border: 1px solid #ccc;
color: #333;
cursor: pointer;
font-size: 12px;