work_content.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html data-bs-theme="light" lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  6. <title>test1</title>
  7. <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
  9. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
  10. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/styles.css">
  11. <link rel="stylesheet" type="text/css" href="{dreamer-cms:template /}assets/css/animate.min.css">
  12. </head>
  13. <body>
  14. {dreamer-cms:include file='loading.html'/}
  15. {dreamer-cms:include file='header.html'/}
  16. <main>
  17. <section>
  18. <div class="container">
  19. <div class="row pt-2 pt-xl-3">
  20. <a class="back-up" href="javascript:window.history.go(-1);"
  21. style="text-decoration: none;color: rgb(137, 137, 137);">
  22. 返回列表</a>
  23. </div>
  24. </div>
  25. </section>
  26. <section class="py-4 py-md-5 py-xl-8">
  27. <div class="overflow-hidden pt-2 pt-md-1 pt-xl-6" style="margin: 0 auto;padding: 0;">
  28. <div id="content">
  29. {dreamer-cms:article field="content" /}
  30. </div>
  31. </div>
  32. </section>
  33. </main>
  34. {dreamer-cms:include file='footer.html'/}
  35. <script src="{dreamer-cms:template /}assets/js/jquery.min.js"></script>
  36. <script type="text/javascript" src="{dreamer-cms:template /}assets/js/wow.min.js"></script>
  37. <script src="{dreamer-cms:template /}assets/js/main.js"></script>
  38. <script src="{dreamer-cms:template /}assets/bootstrap/js/bootstrap.min.js"></script>
  39. <script src="{dreamer-cms:template /}assets/js/bs-init.js"></script>
  40. <script>
  41. $(function () {
  42. var pArr = document.querySelectorAll("#content p")
  43. pArr.forEach(element => {
  44. element.style.width = "100%"
  45. });
  46. var imgArr = document.querySelectorAll("#content img")
  47. imgArr.forEach(i => {
  48. i.style.width = "100%"
  49. i.style.height = "auto"
  50. let src = i.getAttribute("src")
  51. i.setAttribute("data-src", src)
  52. console.log(src)
  53. i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")
  54. });
  55. })
  56. </script>
  57. <script src="{dreamer-cms:template /}assets/js/image.js"></script>
  58. </body>
  59. </html>