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. <link rel="stylesheet" href="{dreamer-cms:template /}assets/bootstrap/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto.css">
  8. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/Roboto%20Slab.css">
  9. <link rel="stylesheet" href="{dreamer-cms:template /}assets/css/styles.css">
  10. <link rel="stylesheet" type="text/css" href="{dreamer-cms:template /}assets/css/animate.min.css">
  11. </head>
  12. <body>
  13. {dreamer-cms:include file='loading.html'/}
  14. {dreamer-cms:include file='header.html'/}
  15. <main>
  16. <section>
  17. <div class="container">
  18. <div class="row pt-2 pt-xl-3">
  19. <a class="back-up" href="javascript:window.history.go(-1);"
  20. style="text-decoration: none;color: rgb(137, 137, 137);">
  21. 返回列表</a>
  22. </div>
  23. </div>
  24. </section>
  25. <section class="py-4 py-md-5 py-xl-8">
  26. <div class="overflow-hidden pt-2 pt-md-1 pt-xl-6" style="margin: 0 auto;padding: 0;">
  27. <div id="content" class="px-1 px-sm-2 px-md-2 px-l-3 px-xl-4">
  28. {dreamer-cms:article field="content" /}
  29. </div>
  30. </div>
  31. </section>
  32. </main>
  33. {dreamer-cms:include file='footer.html'/}
  34. <script src="{dreamer-cms:template /}assets/js/jquery.min.js"></script>
  35. <script type="text/javascript" src="{dreamer-cms:template /}assets/js/wow.min.js"></script>
  36. <script src="{dreamer-cms:template /}assets/js/main.js"></script>
  37. <script src="{dreamer-cms:template /}assets/bootstrap/js/bootstrap.min.js"></script>
  38. <script src="{dreamer-cms:template /}assets/js/bs-init.js"></script>
  39. <script>
  40. $(function () {
  41. var pArr = document.querySelectorAll("#content p")
  42. pArr.forEach(element => {
  43. element.style.width = "100%"
  44. });
  45. var imgArr = document.querySelectorAll("#content img")
  46. imgArr.forEach((i,index) => {
  47. i.style.width = "100%"
  48. i.style.height = "auto"
  49. let src = i.getAttribute("src")
  50. i.setAttribute("alt", "图片"+index)
  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>