1234567891011121314151617181920212223242526272829303132333435 |
- <!-- svgstore fallback -->
- <%= javascript_tag nonce: true do -%>
-
- window.svgPolyfill = /\bEdge\/12\b|\bTrident\/[567]\b|\bVersion\/7.0 Safari\b/.test(navigator.userAgent) || (navigator.userAgent.match(/AppleWebKit\/(\d+)/) || [])[1] < 537;
- (function (doc) {
- if(!svgPolyfill)
- return
- var scripts = doc.getElementsByTagName('script')
- var script = scripts[scripts.length - 1]
- var xhr = new XMLHttpRequest()
- xhr.onload = function () {
- var div = doc.createElement('div')
- div.innerHTML = this.responseText
- div.style.cssText = 'position: absolute; clip: rect(0, 0, 0, 0); z-index: -1;'
- script.parentNode.insertBefore(div, script)
- }
- xhr.open('get', '<%= icons_url %>', true)
- xhr.send()
- })(document)
- <% end -%>
- <div id="app"></div>
- <div class="splash">
- <svg class="icon icon-logo"><use xlink:href="<%= icons_url %>#icon-logo" /></svg>
- <div class="splash-title">Loading…</div>
- </div>
|