<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">;
var SEARCH_HISTORY_KEY = 'search_history';

$(function() {
  var title = $('#searchHistoryTitle').val();
  var success = 0 &lt; ($('#lastPage').length ? $('#lastPage').val() : 0);
  if (title &amp;&amp; 0 &lt; success) {
    try {
      var url = location.pathname + '?'
          + location.search.substring(location.search.indexOf('?') + 1).split('&amp;').filter(function(q) {
            return q.indexOf('page=') !== 0;
          }).reduce(function(acc, q) {
            return acc + '&amp;' + q;
          });
      var histories = store.get(getSerachHistoryKey(), []).filter(function(h) {
        return h.title != title;
      });
      histories.unshift({
        title : title,
        url : url,
        timestamp : new Date().getTime()
      });
      store.set(getSerachHistoryKey(), histories.slice(0, 100));
    } catch (e) {
    }
  }
});

var getSearchHistories = function() {
  try {
    return store.get(getSerachHistoryKey(), []);
  } catch (e) {
  }
  return [];
}

var removeSearchHistory = function(title) {
  try {
    var histories = store.get(getSerachHistoryKey(), []).filter(function(h) {
      return h.title != title;
    });
    return store.set(getSerachHistoryKey(), histories.slice(0, 100));
  } catch (e) {
  }
  return [];
};

function getSerachHistoryKey() {
  if ($('#swsCityCode').length) {
    // SWS CITYå¯¾å¿œ
    if ($('#swsCityCode').val() !=''){
      return SEARCH_HISTORY_KEY + '_' + $('#swsCityCode').val();
    }
    else {
      // æ¤œç´¢å±¥æ­´ãƒšãƒ¼ã‚¸ã«ã¯ #swsCityCodeã®å€¤ãŒãªã„ãŸã‚ã€_kobudo-footballã‚’å…¥ã‚Œã‚‹
      return SEARCH_HISTORY_KEY + '_kobudo-football';
    }
  }
  else {
    return SEARCH_HISTORY_KEY;
  }
}
</pre></body></html>