Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/app.placement/templates/.default/ |
Upload File : |
;(function(){ BX.namespace('BX.rest'); if(!!BX.rest.PlacementCarousel) { return; } BX.rest.PlacementCarousel = function(param) { BX.rest.PlacementCarousel.superclass.constructor.apply(this, arguments); if(this.param.current) { this.loaded[this.param.current] = true; } }; BX.extend(BX.rest.PlacementCarousel, BX.rest.Placement); BX.rest.PlacementCarousel.prototype.showApp = function(appId) { BX.hide(this.getAppNode(this.param.current)); BX.rest.PlacementCarousel.superclass.showApp.apply(this, arguments); BX.userOptions.save('rest', 'placement_last', this.param.placement, appId); }; BX.rest.PlacementCarousel.prototype.load = function(appId) { BX.rest.PlacementCarousel.superclass.load.apply(this, arguments); }; BX.rest.PlacementCarousel.prototype.previous = function() { var p = 0; for(var i = 0; i < this.param.list.length; i++) { if(this.param.list[i] == this.param.current) { if(i > 0) { p = this.param.list[i - 1]; } else { p = this.param.list[this.param.list.length - 1]; } break; } } this.load(p); }; BX.rest.PlacementCarousel.prototype.next = function() { var p = 0; for(var i = 0; i < this.param.list.length; i++) { if(this.param.list[i] == this.param.current) { if(i < this.param.list.length - 1) { p = this.param.list[i + 1]; } else { p = this.param.list[0]; } break; } } this.load(p); }; })();