work_content.html 2.7 KB

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