PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
modules
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').unbind('count_complete'); 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); $scope.paused = false; 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() { } }; }) });
[+]
..
[-] productlist.js
[edit]
[-] facebookvideo.js
[edit]
[-] newslist.js
[edit]
[-] image.js
[edit]
[-] video.js
[edit]
[-] button.js
[edit]
[-] zone.js
[edit]
[-] text.js
[edit]
[-] newscategory.js
[edit]
[-] googlemap.js
[edit]
[-] base_structure.js
[edit]
[-] contactform.js
[edit]
[-] spacer.js
[edit]
[-] infobox.js
[edit]
[-] html.js
[edit]
[-] testmodule.js
[edit]
[-] facebookcomment.js
[edit]
[-] iframe.js
[edit]
[-] twitterfeed.js
[edit]
[-] recentnews.js
[edit]
[-] audio_player.js
[edit]
[-] slick.js
[edit]
[-] newsdetail.js
[edit]
[-] facebookpost.js
[edit]
[-] pagezone.js
[edit]
[-] panigation.js
[edit]
[-] row.js
[edit]
[-] __custom_module_template.js
[edit]
[-] carousel.js
[edit]
[-] icon.js
[edit]
[-] typedtext.js
[edit]
[-] newscomment.js
[edit]
[-] box.js
[edit]
[-] base_custom.js
[edit]
[-] wordpress.js
[edit]
[-] base.js
[edit]
[-] column.js
[edit]
[-] fancytext.js
[edit]
[-] recentproduct.js
[edit]
[-] statcounter.js
[edit]
[-] tab.js
[edit]
[-] bootstrap_slider.js
[edit]
[-] ihover.js
[edit]
[-] line.js
[edit]
[-] blogger.js
[edit]
[-] slideshow.js
[edit]
[-] title.js
[edit]
[-] facebookpage.js
[edit]
[-] share_buttons.js
[edit]
[-] facebooklike.js
[edit]
[-] infobanner.js
[edit]
[-] rssfeed.js
[edit]
[-] flash.js
[edit]
[-] countdown.js
[edit]
[-] facebooksend.js
[edit]
[-] mailchimp.js
[edit]
[-] infotable.js
[edit]
[-] navbar.js
[edit]
[-] cycleslider.js
[edit]
[-] modal.js
[edit]
[-] embed.js
[edit]
[-] alert.js
[edit]
[-] progress_bar.js
[edit]
[-] accordion.js
[edit]
[-] youtube.js
[edit]
[-] social_buttons.js
[edit]
[-] productcategory.js
[edit]
[-] menu.js
[edit]
[-] pricetable.js
[edit]
[-] productdetail.js
[edit]
[-] gallery.js
[edit]