| Current Path : /proc/1908984/root/proc/self/root/proc/self/root/proc/2404962/root/tmp/ |
| Current File : //proc/1908984/root/proc/self/root/proc/self/root/proc/2404962/root/tmp/phpn1pl85 |
.su-counter-number { line-height: normal; color: #444444;}
.su-counter-text { line-height: normal; color: #666666;}
.su-counter-text p { margin-bottom: 0;}
.su-counter-wrapper {padding: 20px;}
.su-counter-icon i {color: #444444;}
.su-counter-top {
text-align: center;
}
.su-counter-left .su-counter-number {
text-align: left;
}
.su-counter-left .su-counter-desc {
float: left;
margin-left: 20px;
}
.su-counter-left .su-counter-icon {
float: left;
padding-top: 5px;
}
.su-counter-right .su-counter-number {
text-align: right;
}
.su-counter-right .su-counter-desc {
float: right;
text-align: right;
margin-right: 20px;
}
.su-counter-right .su-counter-icon {
float: right;
padding-top: 5px;
}<html><body></body></html>function countUp(a,b,c,d,e,f){for(var g=0,h=["webkit","moz","ms","o"],i=0;i<h.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[h[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[h[i]+"CancelAnimationFrame"]||window[h[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a){var c=(new Date).getTime(),d=Math.max(0,16-(c-g)),e=window.setTimeout(function(){a(c+d)},d);return g=c+d,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)}),this.options=f||{useEasing:!0,useGrouping:!0,separator:",",decimal:"."},""==this.options.separator&&(this.options.useGrouping=!1),null==this.options.prefix&&(this.options.prefix=""),null==this.options.suffix&&(this.options.suffix="");var j=this;this.d="string"==typeof a?document.getElementById(a):a,this.startVal=Number(b),this.endVal=Number(c),this.countDown=this.startVal>this.endVal?!0:!1,this.startTime=null,this.timestamp=null,this.remaining=null,this.frameVal=this.startVal,this.rAF=null,this.decimals=Math.max(0,d||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*e||2e3,this.version=function(){return"1.3.1"},this.printValue=function(a){var b=isNaN(a)?"--":j.formatNumber(a);"INPUT"==j.d.tagName?this.d.value=b:this.d.innerHTML=b},this.easeOutExpo=function(a,b,c,d){return 1024*c*(-Math.pow(2,-10*a/d)+1)/1023+b},this.count=function(a){null===j.startTime&&(j.startTime=a),j.timestamp=a;var b=a-j.startTime;if(j.remaining=j.duration-b,j.options.useEasing)if(j.countDown){var c=j.easeOutExpo(b,0,j.startVal-j.endVal,j.duration);j.frameVal=j.startVal-c}else j.frameVal=j.easeOutExpo(b,j.startVal,j.endVal-j.startVal,j.duration);else if(j.countDown){var c=(j.startVal-j.endVal)*(b/j.duration);j.frameVal=j.startVal-c}else j.frameVal=j.startVal+(j.endVal-j.startVal)*(b/j.duration);j.frameVal=j.countDown?j.frameVal<j.endVal?j.endVal:j.frameVal:j.frameVal>j.endVal?j.endVal:j.frameVal,j.frameVal=Math.round(j.frameVal*j.dec)/j.dec,j.printValue(j.frameVal),b<j.duration?j.rAF=requestAnimationFrame(j.count):null!=j.callback&&j.callback()},this.start=function(a){return j.callback=a,isNaN(j.endVal)||isNaN(j.startVal)?(console.log("countUp error: startVal or endVal is not a number"),j.printValue()):j.rAF=requestAnimationFrame(j.count),!1},this.stop=function(){cancelAnimationFrame(j.rAF)},this.reset=function(){j.startTime=null,j.startVal=b,cancelAnimationFrame(j.rAF),j.printValue(j.startVal)},this.resume=function(){j.stop(),j.startTime=null,j.duration=j.remaining,j.startVal=j.frameVal,requestAnimationFrame(j.count)},this.formatNumber=function(a){a=a.toFixed(j.decimals),a+="";var b,c,d,e;if(b=a.split("."),c=b[0],d=b.length>1?j.options.decimal+b[1]:"",e=/(\d+)(\d{3})/,j.options.useGrouping)for(;e.test(c);)c=c.replace(e,"$1"+j.options.separator+"$2");return j.options.prefix+c+d+j.options.suffix},j.printValue(j.startVal)}
jQuery(document).ready(function($) {
$('.su-counter-wrapper').each(function() {
$(this).appear(function() {
var data = $(this).data(),
$id = $(this).attr('id'),
$counter = $(this).find('.su-counter-number').attr('id'),
startNum = parseFloat(data.from),
endNum = parseFloat(data.to),
Num = (jQuery(this).endNum)+' ',
speed = parseInt(data.speed),
prefix = data.prefix,
suffix = data.suffix,
sep = data.separator
dec_count = Num.split(".");
if(dec_count[1]){
dec_count = dec_count[1].length-1;
var dec = ".";
} else {
dec_count = 0;
var dec = "";
}
var grouping = true;
if(sep == "yes"){
grouping = true;
sep = ",";
} else {
grouping = false;
sep = "";
}
var settings = {
useEasing : true,
useGrouping : grouping,
separator : sep,
decimal : dec,
prefix : (prefix) ? prefix : '',
suffix : (suffix) ? suffix : ''
}
var suCounter = new countUp($counter, startNum, endNum, dec_count, speed, settings);
suCounter.start();
});
});
});<html><body></body></html><?php
/**
* @package Shortcode Ultimate
* @author BdThemes http://www.bdthemes.com
* @copyright Copyright (C) BdThemes Ltd
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
class Su_Shortcode_counter_config extends Su_Data {
function __construct() {
parent::__construct();
}
static function get_config() {
return array(
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNTER'),
'type' => 'wrap',
'group' => 'box',
'atts' => array(
'count_start' => array(
'type' => 'number',
'min' => 0,
'max' => 9999999,
'step' => 10,
'default' => 0,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_START'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_START_DESC'),
'child' => array(
'count_end' => array(
'type' => 'number',
'min' => 1,
'max' => 9999999,
'step' => 10,
'default' => 5000,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_END'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_END_DESC')
),
'counter_speed' => array(
'type' => 'number',
'min' => 1,
'max' => 100,
'step' => 1,
'default' => 5,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNTER_SPEED'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNTER_SPEED_DESC')
)
)
),
'separator' => array(
'type' => 'bool',
'default' => 'no',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SEPARATOR'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SEPARATOR_DESC')
),
'prefix' => array(
'default' => '',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PREFIX'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PREFIX_DESC'),
'child' => array(
'suffix' => array(
'default' => '',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SUFFIX'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SUFFIX_DESC')
)
)
),
'align' => array(
'type' => 'select',
'default' => 'top',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ALIGN'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ALIGN_DESC'),
'values' => array(
'top' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TOP'),
'left' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LEFT'),
'right' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_RIGHT')
)
),
'icon' => array(
'type' => 'icon',
'default' => '',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ICON'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ICON_DESC'),
'child' => array(
'icon_color' => array(
'type' => 'color',
'values' => array( ),
'default' => '#444',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ICON_COLOR'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ICON_COLOR_DESC')
)
)
),
'count_color' => array(
'type' => 'color',
'default' => '#444444',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_COLOR'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_COLOR_DESC'),
'child' => array(
'count_size' => array(
'default' => '32px',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_SIZE'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNT_SIZE_DESC')
)
)
),
'text_color' => array(
'type' => 'color',
'default' => '#666666',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TEXT_COLOR'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TEXT_COLOR_DESC'),
'child' => array(
'text_size' => array(
'default' => '14px',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNTER_TEXT_SIZE'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNTER_TEXT_SIZE_DESC')
)
)
),
'background' => array(
'type' => 'color',
'default' => '#FFFFFF',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BACKGROUND'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BACKGROUND_DESC'),
'child' => array(
'padding' => array(
'default' => '20px',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PADDING'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PADDING_DESC')
),
)
),
'border' => array(
'type' => 'border',
'default' => '0px solid #DDD',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BORDER'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BORDER_DESC')
),
'scroll_reveal' => array(
'default' => '',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL_DESC')
),
'class' => array(
'default' => '',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS_DESC')
)
),
'content' => 'counter content',
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COUNTER_DESC'),
'icon' => 'sort-numeric-asc'
);
}
}