PageSourceSearch

https://sesric.org/common/js/app/Directives/SectionTitleDirective.js

js sesric.org collected 2026-10-02 05:17:47 UTC 1,247 bytes, 47 lines download raw bytes

1SectionTitleDirective = function(){
2
3    return {
4        restrict: 'E',
5        scope: {
6            title: '=title',
7            pagelink: '=pagelink',
8            size: '=size',
9            fontname:'@fontname',
10            colorhex: '=colorhex',
11            textunderlinestyle:'@textunderlinestyle',
12            backgroundhexcolor:'=backgroundhexcolor',
13          },
14        templateUrl: '/common/js/app/Templates/section-title.html',
15
16        link: {
17          pre: function(s, e, as) {
18                   
19          },
20    
21          post: function(scope, element, attrs) {
22            
23            if(attrs.fontname){
24              scope.fontname =attrs.fontname;
25            }
26            if(attrs.fontcode){
27              scope.colorhex =attrs.colorhex;
28            }
29            if(!scope.textunderlinestyle){
30              scope.textunderlinestyle = 'none';
31            }
32
33            if(!scope.backgroundhexcolor){
34              scope.backgroundhexcolor = 'none';
35            }
36            if(!scope.colorhex){
37              scope.colorhex = '#000000';
38            }
39            if(!scope.fontname){
40              scope.fontname = 'Roboto';
41            }
42
43          }
44        }
45      };
46
47}

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.