|
@@ -35,13 +35,20 @@
|
|
|
<script type="text/javascript" src="{dreamer-cms:template /}assets/js/wow.min.js"></script>
|
|
|
<script src="{dreamer-cms:template /}assets/js/main.js"></script>
|
|
|
<script>
|
|
|
- $(document).ready(function () {
|
|
|
- var imgWidth = $("#contact-img").width()
|
|
|
- $("#contact .ueditor_baidumap").attr("width", imgWidth)
|
|
|
- var params = new URLSearchParams($("#contact .ueditor_baidumap").attr("src"))
|
|
|
- params.set('width', imgWidth);
|
|
|
- $("#contact .ueditor_baidumap").attr("src", decodeURIComponent(params.toString()))
|
|
|
- });
|
|
|
+ $(function () {
|
|
|
+ var pArr = document.querySelectorAll("#contact p")
|
|
|
+ pArr.forEach(element => {
|
|
|
+ element.style.width = "100%"
|
|
|
+ });
|
|
|
+ var imgArr = document.querySelectorAll("#contact img")
|
|
|
+ imgArr.forEach(i => {
|
|
|
+ i.style.width = "100%"
|
|
|
+ i.style.height = "auto"
|
|
|
+ let src = i.getAttribute("src")
|
|
|
+ i.setAttribute("data-src", src)
|
|
|
+ i.setAttribute("src", "{dreamer-cms:template /}assets/img/none.png")
|
|
|
+ });
|
|
|
+ })
|
|
|
</script>
|
|
|
<script src="{dreamer-cms:template /}assets/bootstrap/js/bootstrap.min.js"></script>
|
|
|
<script src="{dreamer-cms:template /}assets/js/bs-init.js"></script>
|