fullPage.js in HubSpot
fullPage.js in HubSpot
我想在HubSpot网站模板中实现Alvaro Trigo的fullPage.js。AFAIK,这在自定义HTML模块中是完全可能的,但它能以更模块化的方式完成吗?我曾尝试将"fullpage"id和"section"类分配给"group"answers"rich-text"模块(后者是前者的直接子模块),但fullpage似乎不会滚动到第一个"section)之外。我猜,这是因为HubSpot添加了额外的元素,"section"元素不是最终HubSpot输出中"fullpage"元素的直接子元素。有没有一种方法可以使子模块成为输出HTML中父模块的直接子模块?
您可以通过在Hubspot编码文件中以以下方式分配脚本fullpage.js来实现这一点。
<script src='{{ get_public_template_url("/path_to_your_js_in Hubspot/fullpage.js") }}'></script>
但请记住,插件的支持在很大程度上取决于您的HTML id和类。
相关文章:
- Node.js's Buffer.writeFloatBE in Javascript
- Setting default onclick behavior for <img> tag in gene
- Lucene Search in Alfresco
- grep in JQuery to C#
- write HTML in JavaScript
- jQuery setTimeOut: in for-loop
- SetTimeout and clearTimeout in Javascript
- lightbox in html 5 and javascript
- HTMLInputElement in IE7
- Mongodb$in以与数组中相同的顺序获取结果
- element.dataset in Internet Explorer
- jQuery parent() in table
- Instagram oauth flow in angularjs
- In循环的In运算符前后
- 如何使用for in循环在javascript中显示对象中的对象
- Jquery change onchange in onload
- 重构 jQuery in JS 问题
- strongloop script.js run find in before delete方法:如何同步运行异步方法
- TicTacToe minimax AI in Javascript
- fullPage.js in HubSpot