PageSourceSearch

https://www.riksidrottsmuseum.se/webapp-resource/4.79373e4818474c1…/1657194166986/webapp-assets.js

js riksidrottsmuseum.se collected 2026-10-02 12:23:13 UTC 3,080 bytes, 108 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 class="hiq-link-box ';
15 if (showButton) { 
16__p+=' type-button ';
17 } else { 
18__p+=' type-normal ';
19 } 
20__p+=' ';
21 if (onBackground) { 
22__p+=' on-background ';
23 } 
24__p+='">\n\n	';
25 if (!showButton) { 
26__p+='\n		<div class="hiq-link-box__wrapper ';
27 if (!imgUri) { 
28__p+=' no-image ';
29 } 
30__p+='" data-link-box>\n	';
31 } else { 
32__p+='\n		<div class="hiq-link-box__wrapper ';
33 if (!imgUri) { 
34__p+=' no-image ';
35 } 
36__p+='">\n	';
37 } 
38__p+='\n\n		';
39 if (imgUri) { 
40__p+='\n			<div class="hiq-link-box__image-wrapper">\n				<img src="'+
41((__t=( imgUri ))==null?'':_.escape(__t))+
42'" alt="" class="hiq-link-box__image">\n			</div>\n		';
43 } 
44__p+='\n\n		'+
45((__t=( startEl ))==null?'':__t)+
46'\n			';
47 if (!showButton) { 
48__p+='\n				<a href="'+
49((__t=( link ))==null?'':_.escape(__t))+
50'">'+
51((__t=( title ))==null?'':_.escape(__t))+
52'</a>\n			';
53 } else { 
54__p+='\n				<span>'+
55((__t=( title ))==null?'':_.escape(__t))+
56'</span>\n			';
57 } 
58__p+='\n		'+
59((__t=( endEl ))==null?'':__t)+
60'\n		<p class="hiq-link-box__description">'+
61((__t=( description ))==null?'':_.escape(__t))+
62'</p>\n\n		';
63 if (showButton) { 
64__p+='\n			<a class="hiq-link-box__button" href="'+
65((__t=( link ))==null?'':_.escape(__t))+
66'">'+
67((__t=( buttonText ))==null?'':_.escape(__t))+
68'</a>\n		';
69 } 
70__p+='\n\n	</div>\n\n</div>';
71}
72return __p;
73};});}});
74AppRegistry.registerModule({applicationId:'link-box|0.0.1',path:'/main',module:function(define){'use strict';define(function(require) {
75	'use strict';
76 
77	var _          = require('underscore');
78	var Component  = require('Component');
79	var template   = require('/template/main');
80 
81	return Component.extend({
82 
83	   template: template,
84 
85	   filterState: function(state) {
86		  return _.extend({}, state);
87	   },
88	   templateFunctions: function() {
89			var _this = this;
90
91			return {
92				// Functions allows rendering of sub views, with optional data to be pushed into the renderer. If no data the whole state will be present
93				renderPartial: function(partialName, data) {
94					var template = require('/template/partials/' + partialName);
95					if (template) {
96						if (data) {
97							return _this.renderTemplate(template, data);
98						} else {
99							return _this.renderTemplate(template, _this.state);
100						}
101					} else {
102						return 'No partial template found';
103					}
104				}
105			}
106		}
107	});
108 });}});

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.