PATH:
home
/
letacommog
/
letaweb
/
admin
/
modules
/
statcounter
define(['module/base','module/infobox'],function(base,infobox) { return createModuleDefinition([base,infobox], function($window,$file_manager,pageEdit_event) { this.initializeData = { title:'This is an icon box.', description:'Write a short description, that will describe the title or something informational and useful.', icon_type:'fa', icon:"fa-filter", image_type:'icon', size:30, align:'top', useEasing : true, useGrouping : true, separator : ',', decimal : '.', prefix : '', suffix : '' , from:0, to:1000, decimals:0, duration:2.5 }; this.getCounterObject = function() { return jQuery('#' + this.page_id + '_counter').data('counter'); }; this.controller = function($scope, $moduleInstance) { var counter = $moduleInstance.getCounterObject(); jQuery('#' + $moduleInstance.page_id + '_counter').bind('count_complete', function() { $scope.paused = true; }); $scope.paused = counter.paused || false; $scope.start = function() { var options = { useEasing : $scope.data.useEasing, useGrouping : $scope.data.useGrouping, separator :$scope.data.separator, decimal : $scope.data.decimal, prefix : $scope.data.prefix, suffix : $scope.data.suffix }; var w = pageEdit_event.iframe.getWindow(); var demo = new w.CountUp( $moduleInstance.page_id + '_counter', $scope.data.from, $scope.data.to, $scope.data.decimals, $scope.data.duration, options); demo.start(function() { jQuery('#' + $moduleInstance.page_id + '_counter').trigger('count_complete'); }); jQuery('#' + $moduleInstance.page_id + '_counter').data('counter', demo); } $scope.pauseResume = function() { var counter = $moduleInstance.getCounterObject(); counter.pauseResume(); } $scope.stop = function() { var counter = $moduleInstance.getCounterObject(); counter.reset(); } $scope.changeSettings = function() { } }; }) });
[+]
..
[-] frontend_view.php
[edit]
[-] backend.php
[edit]
[-] frontend_class.php
[edit]
[-] backend.js
[edit]
[-] frontend_script.php
[edit]