Sha256: 479e110f9bfca85b05ad69ce478e2a42f00f7d704a68d53e0886d31fbba5de35
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Docs</title> </head> <body> <script src="https://api.apiary.io/seeds/embed.js"></script> <script> var embed = new Apiary.Embed({ apiBlueprint: "<%== @api_text %>", // preferences: { // displayHttpMethods: true // }, // codeExamples: [ // Allows only Go and Swift code examples // 'go', // 'swift' // ] }); if (false) { var changed = null; var xhrChanged = new XMLHttpRequest(); var xhrData = new XMLHttpRequest(); setInterval(function() { xhrChanged.open('GET', window.location.href + "/changed", true); xhrChanged.send(); xhrChanged.onreadystatechange = function() { if (xhrChanged.readyState == 4 && xhrChanged.status == 200) { if (!changed) { changed = xhrChanged.responseText } if (changed != xhrChanged.responseText) { changed = xhrChanged.responseText xhrData.open('GET', window.location.href + "/source", true); xhrData.send(); xhrData.onreadystatechange = function() { if (xhrData.readyState == 4 && xhrData.status == 200) { embed.iframeElement.contentWindow.postMessage({"origin": embed.ORIGIN, "eventType": "anonymousPreview", "data": {"code": xhrData.responseText}}, '*'); } } } } } }, 1000); } </script> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docs_api-0.0.2 | app/views/docs_api/docs/show.html.erb |
docs_api-0.0.1 | app/views/docs_api/docs/show.html.erb |