PageSourceSearch

https://0hh.ru/assets/js/foru-quantity-input.js?

js 0hh.ru collected 2026-10-09 04:34:43 UTC 1,095 bytes, 1 lines download raw bytes

1angular.module("YepCom").directive("foruQuantityInput",function($timeout){return{restrict:"E",replace:!0,template:'<div class="c-foru-quantity-input"><div class="c-foru-quantity-input-minus" ng-click="changeValue($event,-1)">-</div><div class="c-foru-quantity-input-field-wrapper"><input class="c-foru-quantity-input-field" type="text" ng-model="model" ng-change="onchange(model)"></div><div class="c-foru-quantity-input-plus" ng-click="changeValue($event, 1)">+</div></div>',scope:{ngModel:"=ngModel",ngChange:"&",min:"@"},link:function(scope,element,attrs){scope.min||(scope.min=0),scope.$watch("ngModel",function(newVal,oldval){scope.model=newVal}),scope.onchange=function(model){model=model||0,(model=(model=parseInt(model,10))||0)<parseInt(scope.min,10)&&(model=parseInt(scope.min,10)),scope.ngModel=model,scope.model=model,$timeout(function(){scope.ngChange()},100)},scope.changeValue=function(e,val){e.preventDefault(),e.stopPropagation(),scope.model=scope.model+val,scope.onchange(scope.model)},scope.init=function(){scope.model=scope.ngModel},$timeout(function(){scope.init()},500)}}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.