js/highcharts-master/utils/benchmark/javascript-functions.js
/* Function used with onclick (buttons).
**/
Function used with onclick (buttons).
Function used with onclick ( buttons ) .
function buttonClick(clickedId) {
		var result,
			ids = clickedId.split('_');
		if (ids[0] == 'all') {
			$.get('save-result.php', 
				{ 
					allclicked: 'yes'
				}
			);
			getScriptnames(folders[0], getScripts);
		} else if (ids[1] == 'all') {
			run = 'group';
			getScriptnames(ids[0], getScripts);
		} else {
			loadScript(ids[0]+'/'+ids[1]+'.js');
		}
		resultArr = [];
		testsRanArr = [];
		testsToRun = [];
	}
function buttonClick ( clickedId ) { var result , ids = clickedId . split ( '_' ) ; if ( ids [ 0 ] == 'all' ) { $ . get ( 'save-result.php' , { allclicked : 'yes' } ) ; getScriptnames ( folders [ 0 ] , getScripts ) ; } else if ( ids [ 1 ] == 'all' ) { run = 'group' ; getScriptnames ( ids [ 0 ] , getScripts ) ; } else { loadScript ( ids [ 0 ] + '/' + ids [ 1 ] + '.js' ) ; } resultArr = [ ] ; testsRanArr = [ ] ; testsToRun = [ ] ; }
Function used with onclick (buttons).
Function used with onclick ( buttons ) .
// [0]: group of the script to be loaded, also name of its folder. // all: Runs all scripts from all folders. // [1]: Specific or all scripts within the folder. // Stores the press of this button.