PageSourceSearch

https://www.uka.se/webapp-resource/2.60a161aa17d4c6c908315b72/360.…/1654246602526/webapp-assets.js

js uka.se collected 2026-10-02 03:26:06 UTC 2,699 bytes, 78 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'link-box|0.0.1',bundle: {"en":{},"sv":{}}});
2AppRegistry.registerModule({applicationId:'link-box|0.0.1',path:'/template/partials/message',module:function(define){define(function(require){var _=require('underscore');return function(obj){
3var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
4with(obj||{}){
5__p+='<h1>'+
6((__t=( message ))==null?'':__t)+
7'</h1>';
8}
9return __p;
10};});}});
11AppRegistry.registerModule({applicationId:'link-box|0.0.1',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){
12var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
13with(obj||{}){
14__p+='<div id="'+
15((__t=( appContext.getWebAppNamespace('app') ))==null?'':__t)+
16'" data-link-box class="hiq-link-box \r\n	';
17 if(isExternal) { 
18__p+=' \r\n		external \r\n	';
19 } else if(isDocument) { 
20__p+=' \r\n		document\r\n	';
21 } else { 
22__p+='\r\n		standard\r\n	';
23 } 
24__p+=' hiq-hide-in-print">\r\n	<img src="'+
25((__t=( imgUri ))==null?'':_.escape(__t))+
26'" alt="" class="hiq-link-box__image">\r\n	<a href="'+
27((__t=( link ))==null?'':_.escape(__t))+
28'" class="hiq-link-box__link">\r\n		'+
29((__t=( text ))==null?'':_.escape(__t))+
30'\r\n		';
31 if(isExternal) { 
32__p+='\r\n			<span class="show-for-sr">Länk till extern webbplats</span>\r\n		';
33 } else if(isDocument) { 
34__p+='\r\n			('+
35((__t=( documentType ))==null?'':_.escape(__t))+
36', '+
37((__t=( documentSize ))==null?'':_.escape(__t))+
38')\r\n			<span class="show-for-sr">Länk till en fil</span>\r\n		';
39 } 
40__p+='\r\n	</a>\r\n</div>';
41}
42return __p;
43};});}});
44AppRegistry.registerModule({applicationId:'link-box|0.0.1',path:'/main',module:function(define){'use strict';define(function(require) {
45	'use strict';
46 
47	var _          = require('underscore');
48	var Component  = require('Component');
49	var template   = require('/template/main');
50 
51	return Component.extend({
52 
53	   template: template,
54 
55	   filterState: function(state) {
56		  return _.extend({}, state);
57	   },
58	   templateFunctions: function() {
59			var _this = this;
60
61			return {
62				// Functions allows rendering of sub views, with optional data to be pushed into the renderer. If no data the whole state will be present
63				renderPartial: function(partialName, data) {
64					var template = require('/template/partials/' + partialName);
65					if (template) {
66						if (data) {
67							return _this.renderTemplate(template, data);
68						} else {
69							return _this.renderTemplate(template, _this.state);
70						}
71					} else {
72						return 'No partial template found';
73					}
74				}
75			}
76		}
77	});
78 });}});

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.