PageSourceSearch

https://www.kungahuset.se/webapp-resource/4.24adb06918529b4dfdacb5…/1688625963166/webapp-assets.js

js kungahuset.se collected 2026-09-27 20:55:37 UTC 2,743 bytes, 72 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'khModal|1.0.2',bundle: {"en":{"close":"Close"},"sv":{"close":"Stäng"}}});
2AppRegistry.registerModule({applicationId:'khModal|1.0.2',path:'/module/client/main',module:function(define){'use strict';function getCookie(cname) {
3  var name = cname + "=";
4  var decodedCookie = decodeURIComponent(document.cookie);
5  var ca = decodedCookie.split(';');
6
7  for (var i = 0; i < ca.length; i++) {
8    var c = ca[i];
9
10    while (c.charAt(0) == ' ') {
11      c = c.substring(1);
12    }
13
14    if (c.indexOf(name) == 0) {
15      return c.substring(name.length, c.length);
16    }
17  }
18
19  return "";
20}
21
22function checkCookie() {
23  var seenmodal = getCookie("seenmodal");
24  console.log(seenmodal);
25  return seenmodal;
26}
27
28svDocReady(function () {
29  if ($svjq(".kh-modal__rune").length > 0) {
30    $svjq('body').addClass('kh-body-overflow');
31  }
32
33  $svjq('.kh-modal__info--button-close').on('click', function () {
34    $svjq('body').removeClass('kh-body-overflow');
35    $svjq('.kh-modal__info--button-close').parents('.kh-modal__info').hide();
36    document.cookie = "seenmodal=true";
37  });
38  $svjq('.kh-modal__rune .env-button').on('click', function () {
39    document.cookie = "seenmodal=true";
40  });
41});}});
42AppRegistry.registerModule({applicationId:'khModal|1.0.2',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){
43var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
44with(obj||{}){
45__p+='<div class="kh-modal kh-modal__info '+
46((__t=( cssclass ))==null?'':_.escape(__t))+
47'">\n    <div class="kh-modal__info--overlay">\n    </div>\n\n    <div class="kh-modal__info--inner">\n    <div class="kh-modal__info--close">\n        <button class="kh-button kh-modal__info--button-close" aria-label="'+
48((__t=( i18n('close') ))==null?'':_.escape(__t))+
49' modal">\n            <span class="normal-small sv-font-white">'+
50((__t=( i18n('close') ))==null?'':_.escape(__t))+
51'</span>\n            <span class="kh-icon--close--white" aria-hidden="true"></span>\n        </button>\n    </div>\n\n    <!-- Hållare runt innehållsytan innehåll --> \n    <div class="kh-page-content">\n\n        <!-- Från innehållsyta --> \n        '+
52((__t=( htmlOutput ))==null?'':__t)+
53'\n\n    </div>\n\n    </div>\n</div>\n';
54}
55return __p;
56};});}});
57AppRegistry.registerModule({applicationId:'khModal|1.0.2',path:'/main',module:function(define){'use strict';define(function (require) {
58  'use strict';
59
60  var Component = require('Component');
61
62  var template = require('/template/main');
63
64  return Component.extend({
65    template: template,
66    className: 'khModal'
67    /*filterState: ({ message }) => ({
68      message,
69    }),*/
70
71  });
72});}});

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.