lang: "en", /* "en", "de", "da" */
debug: 0, /* debug level for development: 0..2 */
+ responsive_design: false /* true, false: resize for smaller mobile devices */
pazpar2_url: "/pazpar2/search.pz2", /* URL */
service_proxy_url: "/service-proxy/", /* URL */
service_proxy_auth: "/service-proxy-auth", /* URL */
termlist_menu: true,
sort_default: "relevance",
query_width: 50,
+ responsive_design: true,
perpage_default: 20
};
</script>
<script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
<script type="text/javascript">
var timeout;
- $(window).resize( function(e) {
- if (timeout)
- clearTimeout(timeout);
- timeout = setTimeout(function () { mobile_resize() }, 100);
- });
- $(document).ready(function() { mobile_resize() });
+
+ if (mkws_config.responsive_design) {
+ $(window).resize( function(e) {
+ if (timeout)
+ clearTimeout(timeout);
+ timeout = setTimeout(function () { mobile_resize() }, 100);
+ });
+ $(document).ready(function() { mobile_resize() });
+ }
function mobile_resize () {
debug("resize width: " + $(window).height() + ", width: " + $(window).width());