31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
<%= render :partial => 'layouts/lightboxes' %>
|
|
<%= render :partial => 'layouts/templates' %>
|
|
<%= render :partial => 'shared/metacodeBgColors' %>
|
|
<script type="text/javascript" charset="utf-8">
|
|
<% if current_user %>
|
|
Metamaps.Active.Mapper = <%= current_user.to_json.html_safe %>
|
|
<% else %>
|
|
Metamaps.Active.Mapper = null;
|
|
<% end %>
|
|
|
|
Metamaps.Loading = {
|
|
loader: new CanvasLoader('loading'),
|
|
hide: function () {
|
|
$('#loading').hide();
|
|
},
|
|
show: function () {
|
|
$('#loading').show();
|
|
}
|
|
};
|
|
Metamaps.Loading.loader.setColor('#4fb5c0'); // default is '#000000'
|
|
Metamaps.Loading.loader.setDiameter(28); // default is 40
|
|
Metamaps.Loading.loader.setDensity(41); // default is 40
|
|
Metamaps.Loading.loader.setRange(0.9); // default is 1.3
|
|
Metamaps.Loading.loader.show(); // Hidden by default
|
|
|
|
USERVOICE.load();
|
|
</script>
|
|
<script type="text/javascript" src="<%= asset_path 'webpacked/metamaps.bundle.js' %>"></script>
|
|
<%= render :partial => 'layouts/googleanalytics' if Rails.env.production? %>
|
|
</body>
|
|
</html>
|