dingtalk-ddlogin.js 707 B

123456789101112131415161718
  1. !function (window, document) {
  2. function d(a) {
  3. var e, c = document.createElement("iframe"),
  4. d = "https://login.dingtalk.com/login/qrcode.htm?goto=" + a.goto ;
  5. d += a.style ? "&style=" + encodeURIComponent(a.style) : "",
  6. d += a.href ? "&href=" + a.href : "",
  7. c.src = d,
  8. c.frameBorder = "0",
  9. c.allowTransparency = "true",
  10. c.scrolling = "no",
  11. c.width = a.width ? a.width + 'px' : "365px",
  12. c.height = a.height ? a.height + 'px' : "400px",
  13. e = document.getElementById(a.id),
  14. e.innerHTML = "",
  15. e.appendChild(c)
  16. }
  17. window.DDLogin = d
  18. }(window, document);