/* REFERENCE SITE LANGUAGE SPECIFIC JAVASCRIPT developer: suef requires: jQuery ========================================================================== */ $(document).ready(function(){ /* ========================================================================== Iconography ========================================================================== */ if($('.iconography').length) { var iconography = ''; var media = ''; var other = ''; var types = $('.iconography').attr('data-src').split(' '); var types_length = types.length; var mediaType = ''; for(i=0; i'+mediaType+''; } } if(type == 'm') { if(value =='available') { mediaType = 'Available on Wolfram mobile app'; } else if(value == 'unavailable') { mediaType = 'Unavailable on Wolfram mobile app'; } else if(value == 'unknown') { mediaType = 'Unknown on Wolfram mobile app'; } if(mediaType !== '') { media += ''+mediaType+''; } } if(type == 'c') { if(value =='available') { mediaType = 'Available on the cloud'; } else if(value == 'unavailable') { mediaType = 'Unavailable on the cloud'; } else if(value == 'unknown') { mediaType = 'Unknown on the cloud'; } if(mediaType !== '') { media += ''+mediaType+''; } } if(type == 'e') { if(value == 't') { other += '[Experimental]'; } } if(type == 'u') { if(value == 't') { other += 'Updatedshow changeshide changes'; } if(value !== '' && value !== 't') { other += 'Updated in '+value+''; } } if(type == 'l') { if(value == 't') { other += '
'; } } if(type == 'n') { if(value == 't') { other += 'New'; } else if ($.isNumeric(value)) { other += 'New in '+value+''; } } } if(media !== '') { iconography += ''+media+''; } iconography += other; $('.iconography').html(iconography); } $('#DetailsAndOptions').on('load change click', function(){ /* ========================================================================== Details and Options close button ========================================================================== */ $('#DetailsAndOptions .toggle').each(function(){ var hideableHeight = $(this).siblings('.hideable').height(); var sectionID = $(this).parents('section').prop('id'); if(hideableHeight > 600 && $('.toggle').hasClass('open')) { if(!$(this).siblings('.hideable').find('.hideable-close-button').length) { $(this).siblings('.hideable').append('close'); } } }); }); $('#DetailsAndOptions').on('click', '.hideable-close-button', function(){ $('#DetailsAndOptions').removeClass('open'); }); }); const descriptions = [ {"name":"Basic Examples", "text":"Summary of the most common use cases"}, {"name":"Scope", "text":"Survey of the scope of standard use cases"}, {"name":"Generalizations & Extensions", "text":"Generalized and extended use cases"}, {"name":"Options", "text":"Common values & functionality for each option"}, {"name":"Applications", "text":"Sample problems that can be solved with this function"}, {"name":"Properties & Relations", "text":"Properties of the function, and connections to other functions"}, {"name":"Possible Issues", "text":"Common pitfalls and unexpected behavior"}, {"name":"Neat Examples", "text":"Surprising or curious use cases"}, {"name":"Interactive Examples", "text":"Examples with interactive outputs"} ];