Internal and External Assets

We have two asset hosts, one external for public services and one internal for intranet services. These are mandatory assets that every service must use to get the correct look and feel and behavior. You will also find additional assets available if your application will use our map services to display geographical data or if you are using jQuery UI widgets.

You will find that some of the mandatory assets are quite large in size. This will not be a problem for the end-user: all of our web services are using the same assets including the core web site so the end-user will in most cases already have the assets in the browser cache.

Note: For pages in your application served with the https: protocol, you must use https: to the asset host as well, otherwise the user will get a security warning.

Mandatory Assets For External Services

Tip: Double click in the code block to select the code.

<link href="https://malmo.se/assets-2.0/css/external-core.css" rel="stylesheet" type="text/css" media="all" />
<link href="https://malmo.se/assets-2.0/jquery/malmo-theme.css" rel="stylesheet" type="text/css" media="all" />
<link href="https://malmo.se/assets-2.0/css/malmo-print.css" rel="stylesheet" type="text/css" media="print" />
<!--[if lt IE 7]><link href="https://malmo.se/assets-2.0/css/malmo-ie-css-fix.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<!--[if IE 7]><link href="https://malmo.se/assets-2.0/css/malmo-ie7-css-fix.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<link rel="shortcut icon" href="https://malmo.se/assets-2.0/img/malmo-favicon.ico" type="image/x-icon" />
<script src="https://malmo.se/assets-2.0/jquery/jquery.js" type="text/javascript"></script>
<script src="https://malmo.se/assets-2.0/js/malmo.js" type="text/javascript"></script>
<script src="https://malmo.se/assets-2.0/js/external.js" type="text/javascript"></script>
<script src="https://s7.addthis.com/js/250/addthis_widget.js" type="text/javascript"></script> 

Mandatory Assets For Internal Services

<link href="https://komin.malmo.se/assets-2.0/css/internal-core.css" rel="stylesheet" type="text/css" media="all" />
<link href="https://komin.malmo.se/assets-2.0/jquery/malmo-theme.css" rel="stylesheet" type="text/css" media="all" />
<link href="https://komin.malmo.se/assets-2.0/css/malmo-print.css" rel="stylesheet" type="text/css" media="print" />
<!--[if lt IE 7]><link href="https://komin.malmo.se/assets-2.0/css/malmo-ie-css-fix.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<!--[if IE 7]><link href="https://komin.malmo.se/assets-2.0/css/malmo-ie7-css-fix.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<link rel="shortcut icon" href="https://komin.malmo.se/assets-2.0/img/malmo-favicon.ico" type="image/x-icon" />
<script src="https://komin.malmo.se/assets-2.0/jquery/jquery.js" type="text/javascript"></script>
<script src="https://komin.malmo.se/assets-2.0/js/malmo.js" type="text/javascript"></script>
<script src="https://komin.malmo.se/assets-2.0/js/internal.js" type="text/javascript"></script>

Your Own Assets

Add your own style sheet and JavaScript files below Malmö stad's in your templates.

Google Analytics

Google Analytics and other tracking code are included in the mandatory assets with The City of Malmö's unique id's. You must not include any other Google Analytics code in your own templates.

If the application is hosted on any other domain than *.malmo.se you must submit that domain name to the Central Web Group so the domain can be added to the Google Analytics tracking profile.

If your application for some reason has been approved by The Web Group to not use the common JavaScript assets, you must include the standalone Google Analytics script in your head block (not at the bottom of the page). Use the following code for external services:

<script src="https://malmo.se/assets-2.0/js/google-analytics-external.js" type="text/javascript"></script>

Use the following code for internal services:

<script src="https://komin.malmo.se/assets-2.0/js/google-analytics-internal.js" type="text/javascript"></script>

Senast ändrad: