<commit_before>var classes = require('classes');
var cookie = require('cookie');
var events = require('event');

/*global document*/

module.exports = about;

function about() {
  var section, trigger;

  function check() {
    return typeof cookie('resorts-open') === 'undefined';
  }

  function close() {
    classes(section).add('hidden');
  }

  function open() {
    classes(section).remove('hidden');
  }

  section = document.querySelector('.hidden .about');
  if (!section) {<commit_msg>supress About text when in iframe<commit_after>var classes = require('classes');
var cookie = require('cookie');
var events = require('event');

/*global document, window*/

module.exports = about;

function about() {
  var section, trigger;

  function check() {
    return window.parent === window && typeof cookie('resorts-open') === 'undefined';
  }

  function close() {
    classes(section).add('hidden');
  }

  function open() {
    classes(section).remove('hidden');
  }

  section = document.querySelector('.hidden .about');
  if (!section) {
{'fraction_non_alphanumeric': 0.16889312977099236, 'fraction_numerical': 0.0, 'mean_word_length': 4.245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1971823', 'n_tokens_mistral': 303, 'n_tokens_neox': 295, 'n_words': 78}