Sha256: 541164265f5c04ed240f465ef5c2268fadfd5a4ffa95f3877caef7fc78c36626
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
var GPE={prepareList:function(){$('#expList').find('li:has(ul)').click(function(event){if(this==event.target){$(this).toggleClass('expanded');$(this).children('ul').toggle('medium');} return false;}).addClass('collapsed').children('ul').hide();$('#expandList').unbind('click').click(function(){$('.collapsed').addClass('expanded');$('.collapsed').children().show('medium');}) $('#collapseList').unbind('click').click(function(){$('.collapsed').removeClass('expanded');$('.collapsed').children().hide('medium');})},popuplink:function(audio_file){window.open(audio_file,'audio','resizable=yes,status=no,location=no,toolbar=no,menubar=no,fullscreen=no,scrollbars=no,dependent=no,width=400,height=200');return false},moveAudioBlock:function(){$('section').each(function(){var $this=$(this);var $audio=$this.find('.audioblock');var $audioHtml=$audio.html();if($audioHtml!=null){$this.removeData($audioHtml);$audio.prependTo($this);}});}};$(document).ready(function(){GPE.prepareList();$("a[id][audio-file]").click(function(){GPE.popuplink($(this).attr('audio-file'))});GPE.moveAudioBlock();});
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyla-1.0.7 | lib/resources/assets/revealjs-redhat/lib/js/gpe.min.js |
hyla-1.0.7.pre.9 | lib/resources/assets/revealjs-redhat/lib/js/gpe.min.js |