PageSourceSearch

https://www.univ-angers.fr/plugins/cms/resources/js/AmetysFront.en.js

js univ-angers.fr collected 2026-09-24 08:51:45 UTC 1,688 bytes, 65 lines download raw bytes

1/*
2 *  Copyright 2023 Anyware Services
3 *
4 *  Licensed under the Apache License, Version 2.0 (the "License");
5 *  you may not use this file except in compliance with the License.
6 *  You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *  Unless required by applicable law or agreed to in writing, software
11 *  distributed under the License is distributed on an "AS IS" BASIS,
12 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 *  See the License for the specific language governing permissions and
14 *  limitations under the License.
15 */
16 
17AmetysFront = {
18    
19    _appParams: {},
20    
21    setAppParameter: function (name, value)
22    {
23        this._appParams[name] = value;
24    },
25    
26    CONTEXT_PATH : "",
27
28    ABSOLUTE_CONTEXT_PATH: "",
29    
30    URI_PREFIX: "",
31    
32    ABSOLUTE_URI_PREFIX: "",
33    
34    MAX_UPLOAD_SIZE: 1000000,
35    
36    getPluginDirectPrefix: function (plugin)
37    {
38        return [AmetysFront.URI_PREFIX, '_plugins', plugin].join('/');
39    },
40    
41    getAbsolutePluginDirectPrefix: function (plugin)
42    {
43        return [AmetysFront.ABSOLUTE_URI_PREFIX, '_plugins', plugin].join('/');
44    },
45    
46    getPluginResourcesPrefix: function (plugin)
47    {
48        return [AmetysFront.CONTEXT_PATH, 'plugins', plugin, 'resources'].join('/');
49    },
50    
51    getAbsolutePluginResourcesPrefix: function (plugin)
52    {
53        return [AmetysFront.ABSOLUTE_CONTEXT_PATH, 'plugins', plugin, 'resources'].join('/');
54    },
55    
56    getAppParameters: function()
57    {
58        return this._appParams;
59    },
60    
61    getAppParameter: function(name)
62    {
63        return this._appParams[name];
64    }
65}

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.