PageSourceSearch

https://www.szallodak.hu/js/szallodak/frontend/directives/convertToNumber.directive.js

js szallodak.hu collected 2026-10-02 12:36:10 UTC 608 bytes, 27 lines download raw bytes

1(function() {
2    'use strict';
3
4    angular
5        .module('app')
6        .directive('convertToNumber', convertToNumber);
7
8    /* @ngInject */
9    function convertToNumber() {
10        var directive = {
11            require: 'ngModel',
12            link: linkFunc,
13        };
14
15        return directive;
16
17        function linkFunc(scope, element, attrs, ngModel) {
18            ngModel.$parsers.push(function(val) {
19                return parseInt(val, 10);
20            });
21            
22            ngModel.$formatters.push(function(val) {
23                return '' + val;
24            });
25        }
26    }
27})();

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.