Sha256: f531085496859b3360a099652d972121d6dcbc31134ade64d5b2a4dd33d59ce1
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
var GPE={list:function(){$('.ulist #expandlist > li').click(function(event){if(this==event.target){$(this).toggleClass('expanded');$(this).find('ul').toggle('medium');} return false;}).addClass('collapsed').find('ul').hide();$('.olist #expandlist > li').click(function(event){if(this==event.target){$(this).toggleClass('expanded');$(this).find('ol').toggle('medium');} return false;}).addClass('collapsed').find('ol').hide();$('#expandall').unbind('click').click(function(){$('.collapsed').addClass('expanded');$('.collapsed').children().show('medium');}) $('#collapseall').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(){$.fn.or=function(fallbackSelector){return this.length?this:$(fallbackSelector||'body');};GPE.list();$("a[id][audio-file]").click(function(){GPE.popuplink($(this).attr('audio-file'))});GPE.moveAudioBlock();});
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hyla-1.0.9 | lib/resources/assets/revealjs-redhat/lib/js/gpe.min.js |