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
<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> |
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).observe("dom:loaded", function(){ // wait for DOM to load | |
new Shodan.UI.SlideyPanel('sh-ui-slidey-demo'); | |
}); |
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
<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> |
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).observe('dom:loaded', function(){ | |
new Shodan.UI.Accordion('sh-ui-accordion-demo'); | |
}); |
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
<div id="slideshow-demo"> | |
<img src="images/slideshow/Pensive Parakeet.jpg" alt="Slide 1" /> | |
<img src="images/slideshow/Random-Penguins-random-16779663-1024-768.jpg" alt="Slide 2" /> | |
<img src="images/slideshow/Random-Wallpapers-random-10799667-1024-768.jpg" alt="Slide 3" /> | |
<img src="images/slideshow/Random-Wallpapers-random-10799672-1024-768.jpg" alt="Slide 4" /> | |
</div> |
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).observe('dom:loaded', function(){ | |
new Shodan.UI.Slideshow('slideshow-demo'); | |
}); |
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
{ | |
"westEurope": [ | |
"AD", | |
"DE", | |
"ES", | |
"FR", | |
"IT", | |
"AT", | |
"BE", | |
"CH", |
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
/** | |
* Create cross browser transition CSS | |
* | |
* @param {Integer} duration Duration in milliseconds. | |
* @param {String} easing Easing function. Can be built-in CSS3 function or one of the provided custom functions. | |
* @param {String} prop CSS property to apply transition to. | |
*/ | |
function transitionCss(duration, easing, prop) { | |
var easingDefs = { | |
easeInCubic : 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', |
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
$('.lt-ie9 input[placeholder], .lt-ie9 textarea[placeholder]').each(function(){ | |
var $this = $(this), | |
placeholder = $this.attr('placeholder'); | |
$this.addClass('placeholder').val(placeholder); | |
$this.focus(function() { | |
$this.val(''); | |
}).blur(function() { | |
if ($this.val() === '') { |
OlderNewer