# streamcast/2.3.2/freemius/templates/api-connectivity-message-js.php

StreamCast – bring live radio to your site with a sleek player, version 2.3.2. 32 lines.

- Page: https://pluginprobe.com/plugins/streamcast/2.3.2/code/freemius/templates/api-connectivity-message-js.php
- Raw: https://pluginprobe.com/plugins/streamcast/2.3.2/raw/freemius/templates/api-connectivity-message-js.php
- Modified: 2025-05-17T15:03:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/streamcast/2.3.2/code/freemius/templates/api-connectivity-message-js.php#L10-L20`.

```php
<?php
    /**
     * @package   Freemius
     * @copyright Copyright (c) 2015, Freemius, Inc.
     * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
     * @since     2.5.4
     */
    if ( ! defined( 'ABSPATH' ) ) {
        exit;
    }
?>
<script type="text/javascript">
    ( function( $ ) {
        $( document ).ready(function() {
            var $parent = $( '.fs-notice, #fs_connect, .fs-modal' );

            $parent.on( 'click', '.fs-api-request-error-show-details-link', function () {
                var $error_details_container = $parent.find( '.fs-api-request-error-details' );

                $error_details_container.toggle();

                $( this ).find( 'span' ).prop( 'class',
                    $error_details_container.is( ':visible' ) ?
                        'dashicons dashicons-arrow-up-alt2' :
                        'dashicons dashicons-arrow-down-alt2'
                );

                return false;
            } );
        } );
    } )( jQuery );
</script>
```
