Skip to content

Instantly share code, notes, and snippets.

@jejacks0n
Created January 19, 2011 19:55
Show Gist options
  • Save jejacks0n/786737 to your computer and use it in GitHub Desktop.
Save jejacks0n/786737 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
window['midas_setup_container'] = function() {
$('midas_container_selector').childElements().each(function(element) {
Event.observe(element, 'click', function(event) {
event.stop();
this.execute('insertHTML', {action:'insertHTML', value: '<div class="' + element.getAttribute('data-class') + '"><br/></div>'});
}.bind(this));
}.bind(this));
}
</script>
<div id="midas_container_selector" class="midas-select-content">
<h3 data-class="col-06">6 Column Container</h3>
<h3 data-class="col-12">12 Column Container</h3>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment