diff --git a/animations.js b/animations.js index 45b886f..c1e138b 100644 --- a/animations.js +++ b/animations.js @@ -121,10 +121,10 @@ $('#audioSource').on('mousedown touchend focusin focusout', function(e) { }); $('#audioSource3').on('mousedown touchend focusin focusout', function(e) { - var state = $('#multiselect-trigger3').data('state') || 0; + var state = $('#multiselect-trigger3').attr('data-state') || 0; if( state == 0 ) { ////open the dropdown - $('#multiselect-trigger3').data('state', '1').addClass('open').removeClass('closed'); + $('#multiselect-trigger3').attr('data-state', '1').addClass('open').removeClass('closed'); $('#multiselect-trigger3').find('.chevron').removeClass('bottom'); $('#multiselect-trigger3').parent().find('.multiselect-contents').show(); $('#multiselect-trigger3').parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();; @@ -154,17 +154,19 @@ $('#multiselect-trigger').on('mousedown touchend focusin focusout', function(e) }); // multiselect dropdowns $('#multiselect-trigger3').on('mousedown touchend focusin focusout', function(e) { - var state = $(this).data('state') || 0; + var state = $(this).attr('data-state') || 0; + if( state == 0 ) { // open the dropdown - $(this).data('state', '1').addClass('open').removeClass('closed'); + errorlog("STATE: "+state); + $(this).attr('data-state', '1').addClass('open').removeClass('closed'); $(this).find('.chevron').removeClass('bottom'); $(this).parent().find('.multiselect-contents').show(); $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();; $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show();; } else { // close the dropdown - $(this).data('state', '0').addClass('closed').removeClass('open'); + $(this).attr('data-state', '0').addClass('closed').removeClass('open'); $(this).find('.chevron').addClass('bottom'); $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide();; $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide();; diff --git a/examples/stats.html b/examples/stats.html new file mode 100644 index 0000000..bd350d4 --- /dev/null +++ b/examples/stats.html @@ -0,0 +1,264 @@ + + +
+This example will show all connections to the stream generated from this page using statistics gathered using the iFrame API.
+Click start to generate a stream using the OBS.Ninja URL shown. If you use the example URL shown, you can click here to connect to this stream as a viewer in a new window/tab, this will then show in the table below. Expired connections will be removed after a short delay.
+| Label | +Added | +Quality Limit Reason | +Resolution | +Platform | +Encoder | +User Agent | +
|---|
| + | Room Name: | -+ | |
|---|---|---|---|
| + | Password: - | + | - |
|
- - - - - | |||
| + + | + + Guests can only see the Director's video + + | + +||
| + + | ++ + Preferred Video Codec + + | +||
| + |
+
+ + + |
+