Created
May 24, 2011 20:29
-
-
Save aslansky/989597 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
jQuery('element-identifier').plugin({ | |
option1: 'value1', | |
option2: 'value2', | |
option3: 'value3' | |
}); |
This file contains hidden or 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> | |
<div data-plugin="plugin"></div> | |
<script type="text/javascript"> | |
$('body').initPlugins(); | |
</script> | |
</body> |
This file contains hidden or 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 data-plugin="slideshow" data-width="200" data-height="300" data-image-count="10"></div> |
This file contains hidden or 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
jQuery(Element mit dem Data-Attribute).slideshow({ | |
width: 200, | |
height: 200, | |
imageCount: 10 | |
}); |
This file contains hidden or 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> | |
<div id="content"> | |
<a href="#">Neuen Inhalt laden</a> | |
</div> | |
<script type="text/javascript"> | |
jQuery('#content a').click(function () { | |
jQuery('#content').loadAndInit('neuer-content.html', function () { | |
// tue irgendwas nach dem laden | |
}); | |
}); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment