<commit_before>import './current_location_menu.html';
import { Template } from 'meteor/templating';
import '../adventure_status_bar.js';

/**
 * Template Helpers
 */
Template.CurrentLocationMenu.helpers({});

/**
 * Template Event Handlers
 */
Template.CurrentLocationMenu.events({
  "click .btn-show-current-node"(e, instance){
    let locationContainer = $('.current-location'),
        actionsContainer  = $('.current-location-actions'),
        actionsIsVisible  = actionsContainer.css("display") != "none",
        isHidden          = locationContainer.css("display") == "none";
  
    if (isHidden && actionsIsVisible) {
      actionsContainer.slideUp(250, () => {
        locationContainer.slideDown(250);
      });
    }
    if (isHidden) {
      locationContainer.slideDown(250);
    } else {
      locationContainer.slideUp(250);
    }
  },
  "click .btn-show-current-node-actions"(e, instance){
    let locationContainer = $('.current-location'),
        actionsContainer  = $('.current-location-actions'),
        locationIsVisible = locationContainer.css("display") != "none",
        isHidden          = actionsContainer.css("display") == "none";
  
    if (isHidden && locationIsVisible) {
      locationContainer.slideUp(250, () => {
        actionsContainer.slideDown(250);
      });
    }
    if (isHidden) {
      actionsContainer.slideDown(250);
    } else {
      actionsContainer.slideUp(250);
    }
  }
});

/**
 * Template Created
 */
Template.CurrentLocationMenu.onCreated(() => {
  
});

/**
 * Template Rendered
 */
Template.CurrentLocationMenu.onRendered(() => {
  
});

/**
 * Template Destroyed
 */
Template.CurrentLocationMenu.onDestroyed(() => {
  
});<commit_msg>Updated CurrentLocationMenu to use the new AdventureContext functions for panel control<commit_after>import './current_location_menu.html';
import { Template } from 'meteor/templating';
import '../adventure_status_bar.js';

/**
 * Template Helpers
 */
Template.CurrentLocationMenu.helpers({});

/**
 * Template Event Handlers
 */
Template.CurrentLocationMenu.events({
  "click .btn-show-current-node"(e, instance){
    let context = this;
    context.showCurrentLocation(true);
  },
  "click .btn-show-current-node-actions"(e, instance){
    let context = this;
    context.showCurrentLocationActions(true);
  }
});

/**
 * Template Created
 */
Template.CurrentLocationMenu.onCreated(() => {
  
});

/**
 * Template Rendered
 */
Template.CurrentLocationMenu.onRendered(() => {
  
});

/**
 * Template Destroyed
 */
Template.CurrentLocationMenu.onDestroyed(() => {
  
});
{'fraction_non_alphanumeric': 0.1597817614964926, 'fraction_numerical': 0.009353078721745909, 'mean_word_length': 3.4411764705882355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2565333', 'n_tokens_mistral': 771, 'n_tokens_neox': 743, 'n_words': 120}