5 <%= stylesheet_link_tag 'iD' %>
6 <!--[if !IE || gte IE 9]><!-->
7 <%= javascript_include_tag 'iD' %>
11 <div id='id-container'></div>
13 if (typeof iD == 'undefined') {
14 document.getElementById('id-container').innerHTML = 'This editor is supported ' +
15 'in Firefox, Chrome, Safari, Opera, and Internet Explorer 9 and above. ' +
16 'Please upgrade your browser or use Potlatch 2 to edit the map.';
17 document.getElementById('id-container').className = 'unsupported';
21 .imagePath("/assets/iD/img/")<%# Can't use asset_path('id/img/') in production. %>
23 <% token = @user.access_token(ID_KEY) %>
24 url: "<%= request.protocol + request.host_with_port %>",
25 oauth_consumer_key: "<%= token.client_application.key %>",
26 oauth_secret: "<%= token.client_application.secret %>",
27 oauth_token: "<%= token.token %>",
28 oauth_token_secret: "<%= token.secret %>"
31 d3.select('#id-container')