Skip to content

Instantly share code, notes, and snippets.

@abkarim
abkarim / DEMO.md
Last active January 8, 2023 18:45
Pass IP address to hidden fields in registration page

Pass ip address to hidden field in registration page

1. Create hidden field

1. Go to registration tab and click edit on registration field re-1

2. Click on add registration field re-2

3. Set type to scripted

@abkarim
abkarim / DEMO.md
Last active January 8, 2023 18:47
Pass IP address to joinnow.live's iframe tag

Demo

Copy embedded code from Embedded Widgets from webinar page on StealthSeminar

html
<div style="width: 100%; max-width: 480px; height: 900px;">
  <iframe style="width: 100%; height: 100%; border: 0;" src="https://joinnow.live/embed/s/{shortId}?layout=styled-0"></iframe>
</div>

Then add script.js files code after the embedded code with IP your big data cloud api key

@abkarim
abkarim / element-to-xpath.js
Created November 26, 2022 20:37
A javascript function to returns XPath position by an HTML element
/**
* Get absolute xPath position from dom element
* xPath position will does not contain any id, class or attribute, etc selector
* Because, Some page use random id and class. This function should ignore that kind problem, so we're not using any selector
*
* @param {Element} element element to get position
* @returns {String} xPath string
*/
function getXPath(element) {
// Selector