? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/board/tmp/install_52baa3a7f32f2/media/js/
File Upload :
Current File : /home/admin/public_html/old/board/tmp/install_52baa3a7f32f2/media/js/detail.js

// $HeadURL: https://joomgallery.org/svn/joomgallery/JG-2.0/JG/trunk/media/joomgallery/js/detail.js $
// $Id: detail.js 3839 2012-09-03 17:17:47Z chraneco $
/****************************************************************************************\
**   JoomGallery  2                                                                     **
**   By: JoomGallery::ProjectTeam                                                       **
**   Copyright (C) 2008 - 2012  JoomGallery::ProjectTeam                                **
**   Based on: JoomGallery 1.0.0 by JoomGallery::ProjectTeam                            **
**   Released under GNU GPL Public License                                              **
**   License: http://www.gnu.org/copyleft/gpl.html or have a look                       **
**   at administrator/components/com_joomgallery/LICENSE.TXT                            **
\****************************************************************************************/

// Javascript for SmilieInsert and Form Check
function joom_getcoordinates()
{
  document.nameshieldform.xvalue.value = document.getElementById('jg-movable-nametag').offsetTop;
  document.nameshieldform.yvalue.value = document.getElementById('jg-movable-nametag').offsetLeft;
  document.nameshieldform.submit();
}

function selectnametag(id, username)
{
  window.parent.document.getElementById('jg-movable-nametag').removeClass('jg_displaynone');
  window.parent.document.getElementById('jg-movable-nametag').set('text', username);
  window.parent.document.nameshieldform.userid.value = id;
  width = username.length * jg_nameshields_width;
  window.parent.document.getElementById('jg-movable-nametag').style.width = width + 'px';
  window.parent.SqueezeBox.close();
  window.parent.document.getElementById('jg-movable-nametag-icon').position({
    relativeTo: document.id('jg-movable-nametag'),
    position: 'upperRight',
    edge: 'bottomLeft'
  }).reveal();
}

function joom_validatecomment()
{
  if (document.commentform.cmttext.value == '')
  {
    alert(Joomla.JText._('COM_JOOMGALLERY_DETAIL_COMMENTS_ALERT_ENTER_COMMENT'));
  }
  else
  {
    if (document.commentform.jg_captcha_code != null
        && document.commentform.jg_captcha_code.value == '')
    {
      alert(Joomla.JText._('COM_JOOMGALLERY_DETAIL_COMMENTS_ALERT_ENTER_CODE'));
    }
    else
    {
      document.commentform.submit();
    }
  }
}

function joom_smilie(thesmile)
{
  document.commentform.cmttext.value += thesmile + ' ';
  document.commentform.cmttext.focus();
}

function joom_validatesend2friend()
{
  if ((document.send2friend.send2friendname.value == '')
      || (document.send2friend.send2friendemail.value == ''))
  {
    alert(Joomla.JText._('COM_JOOMGALLERY_DETAIL_SENDTOFRIEND_ALERT_ENTER_NAME_EMAIL'));
  }
  else
  {
    document.send2friend.submit();
  }
}

function joom_cursorchange(e)
{
  // Check active Slimbox
  active_slimbox = document.getElementById("lbOverlay");
  if (active_slimbox != null && active_slimbox.style.visibility == "visible" )
  {
    return;
  }

  // Check active Shadowbox
  active_shadowbox = document.getElementById("sb-overlay");
  if (active_shadowbox != null && active_shadowbox.style.length != 0 )
  {
    return;
  }

  var target;
  if (typeof e =='undefined')
  {
    // IE
    target = document.activeElement.type;
  }
  else
  {
    // other
    if (typeof e.explicitOriginalTarget == 'undefined')
    {
      // Opera
      target = e.target.type;
    }
    else
    {
      // Firefox
      target = e.explicitOriginalTarget.type;
    }
  }
  if (typeof target=="undefined" || target.indexOf("text") != 0)
  {
    if (navigator.appName == "Microsoft Internet Explorer")
    {
      taste = window.event.keyCode;
    }
    else
    {
      taste = e.which;
    }
    switch (taste)
    {
      case 37:
        if (document.form_jg_back_link)
        {
          window.location = document.form_jg_back_link.action;
        }
        break;
      case 39:
        if (document.form_jg_forward_link)
        {
          window.location = document.form_jg_forward_link.action;
        }
        break;
      default:
        break;
    }
  }
}

// Get vote value in case of standard voting with radio buttons
function joomGetVoteValue()
{
  return $('ratingform').getElements('input').filter(function(input)
  {
    return /radio|checkbox/.test(input.getAttribute('type')) && input.checked;
  })[0].value;
}

// Do a vote (star rating without AJAX)
function joomVote(url, imgvote)
{
  location.href = url + "&imgvote=" + imgvote;
}

// Do an AJAX vote
function joomAjaxVote(url, postdata)
{
  // Remove message div from previous vote, if any
  if($('jg_ajaxvoting_message'))
  {
    $('jg_ajaxvoting_message').dispose();
  }

  // Show spinner
  $('jg_voting').addClass('jg_spinner');

  new Request.JSON({
      url       : url,
      method    : 'post',
      data      : postdata,
      onError: function(text, error)
      {
        alert(error);
      },
      onFailure: function()
      {
        alert('Ajax Error');
      },
      onSuccess : function(response)
      {
        joomAjaxVoteResponse(response);
      },
      onError : function(text, error)
      {
        alert(error + ":\n\n" + text);
      }
  }).send();  
}

// Process the response of an AJAX vote
function joomAjaxVoteResponse(response)
{
  if(response.error == '0' && $('jg_photo_rating'))
  {
    // Refresh rating display
    $('jg_photo_rating').set('html', response.data.rating);

    // Refresh rating tooltip
    if(response.data.tooltipclass != null)
    {
      $$('.hasHintAjaxVote').each(function(el) {
        var title = el.get('title');
        if(title) {
          var parts = title.split('::', 2);
          el.store('tip:title', parts[0]);
          el.store('tip:text', parts[1]);
        }
      });

      if(response.data.tooltipclass == 'default')
      {
        var tooltips = new Tips($$('.hasHintAjaxVote'), { maxTitleChars: 50,
                                                          fixed: false
                                                        });
      }
      else
      {
        var tooltips = new Tips($$('.hasHintAjaxVote'), { maxTitleChars: 50,
                                                          fixed: false,
                                                          className: response.data.tooltipclass
                                                        });
      }
    }
  }

  $('jg_voting').removeClass('jg_spinner');

  // Show the voting result message
  if($('jg_starrating_bar'))
  {
    new Element('div', {'id': 'jg_ajaxvoting_message', 'style': 'text-align: center;'}).injectBefore($('jg_starrating_bar'));
  }
  else
  {
    new Element('div', {'id': 'jg_ajaxvoting_message'}).injectBefore($('ratingform'));
  }
  $('jg_ajaxvoting_message').set('html', response.message);
}

T1KUS90T
  root-grov@210.1.60.28:~$