<commit_before>/**
 * @name      ElkArte Forum
 * @copyright ElkArte Forum contributors
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause
 *
 * This software is a derived product, based on:
 *
 * Simple Machines Forum (SMF)
 * copyright:	2011 Simple Machines (http://www.simplemachines.org)
 * license:  	BSD, See included LICENSE.TXT for terms and conditions.
 *
 * @version 1.0 Alpha
 *
 * This file contains javascript associated with the current theme
 */

$(document).ready(function() {
	// menu drop downs
	if (use_click_menu)
		$('.dropmenu, ul.quickbuttons').superfish({useClick: true, delay : 50, speed: 175, animation: {opacity:'show', height:'toggle'}});
	else
		$('.dropmenu, ul.quickbuttons').superfish({useClick: use_click_menu, delay : 300, speed: 175});

	// Smooth scroll navigation
	$('.topbottom').bind('click', function(event) {
		event.preventDefault();

		// Position to the id pagetop or pagebot
		var link = $('#page' + this.hash.substring(1)),
			link_y = link.height() + 15;

		$('html,body').animate({scrollTop:link.offset().top + link_y - $(window).height()}, 1500);
	});

	// tooltips
	$('.preview').SiteTooltip();

	// find all nested linked images and turn off the border
	$('a.bbc_link img.bbc_img').parent().css('border', '0');

	// Set a auto height so small code blocks collaspe, set a height for larger ones
	// and let resize or overflow do its thing as normal<commit_msg>! menu speed tweak, plus delay was removed from superclick  Signed-off-by:Spuds <<EMAIL>><commit_after>/**
 * @name      ElkArte Forum
 * @copyright ElkArte Forum contributors
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause
 *
 * This software is a derived product, based on:
 *
 * Simple Machines Forum (SMF)
 * copyright:	2011 Simple Machines (http://www.simplemachines.org)
 * license:  	BSD, See included LICENSE.TXT for terms and conditions.
 *
 * @version 1.0 Alpha
 *
 * This file contains javascript associated with the current theme
 */

$(document).ready(function() {
	// menu drop downs
	if (use_click_menu)
		$('.dropmenu, ul.quickbuttons').superclick({speed: 150, animation: {opacity:'show', height:'toggle'}});
 	else
		$('.dropmenu, ul.quickbuttons').superfish({delay : 300, speed: 175});

	// Smooth scroll navigation
	$('.topbottom').bind('click', function(event) {
		event.preventDefault();

		// Position to the id pagetop or pagebot
		var link = $('#page' + this.hash.substring(1)),
			link_y = link.height() + 15;

		$('html,body').animate({scrollTop:link.offset().top + link_y - $(window).height()}, 1500);
	});

	// tooltips
	$('.preview').SiteTooltip();

	// find all nested linked images and turn off the border
	$('a.bbc_link img.bbc_img').parent().css('border', '0');

	// Set a auto height so small code blocks collaspe, set a height for larger ones
	// and let resize or overflow do its thing as normal
{'fraction_non_alphanumeric': 0.15387299371946964, 'fraction_numerical': 0.017445917655268667, 'mean_word_length': 4.056437389770723, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3929113', 'n_tokens_mistral': 965, 'n_tokens_neox': 883, 'n_words': 278}