aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-13 16:31:06 -0700
committerredmatrix <git@macgirvin.com>2016-04-13 16:31:06 -0700
commit9a0b61e4afed94727679eee966afb76e1add2beb (patch)
tree76f5b8d6e29fe8ffe543c75064a5e8e2e384f10c /view
parenta8a0ca82913a923ce2a08e1cb41305b66cf35e24 (diff)
downloadvolse-hubzilla-9a0b61e4afed94727679eee966afb76e1add2beb.tar.gz
volse-hubzilla-9a0b61e4afed94727679eee966afb76e1add2beb.tar.bz2
volse-hubzilla-9a0b61e4afed94727679eee966afb76e1add2beb.zip
refactor the js detection into a checkjs class which is only enabled on demand (currently only the channel and display pages). Will probably require a bit more work to hide/disable the cover photo when js is disabled. Have not actually tested without js to discover any other potential page issues. Have only confirmed that the detection class works and redirects to set a jsdisabled cookie and reload the page with that cookie+variable set if called from the channel page.
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/head.tpl13
1 files changed, 1 insertions, 12 deletions
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index 7984723b3..9fcdf1735 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -1,27 +1,17 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<base href="{{$baseurl}}/" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable={{$user_scalable}}" />
-<noscript><meta http-equiv="refresh" content="0; url=nojs.php&redir={{$query}}"></noscript>
{{$metas}}
<!--[if IE]>
<script src="{{$baseurl}}/library/html5.js"></script>
<![endif]-->
{{$head_css}}
-
{{$js_strings}}
-
{{$head_js}}
-
<link rel="shortcut icon" href="{{$icon}}" />
-<link rel="search"
- href="{{$baseurl}}/opensearch"
- type="application/opensearchdescription+xml"
- title="{{$osearch}}" />
-
-
+<link rel="search" href="{{$baseurl}}/opensearch" type="application/opensearchdescription+xml" title="{{$osearch}}" />
<script>
-
var updateInterval = {{$update_interval}};
var localUser = {{if $local_channel}}{{$local_channel}}{{else}}false{{/if}};
var zid = {{if $zid}}'{{$zid}}'{{else}}null{{/if}};
@@ -29,7 +19,6 @@
{{if $channel_hash}}var channelHash = '{{$channel_hash}}';{{/if}}
{{if $channel_id}}var channelId = '{{$channel_id}}';{{/if}}{{* Used in e.g. autocomplete *}}
var preloadImages = {{$preload_images}};
-
</script>