Trace JS code on a website to extract function
- Status: Closed
- Prize: $250
- Entries Received: 4
- Winner: gabrielsantos19
Contest Brief
I am looking for a skilled developer who can help me trace the JS code on a website and extract a specific function. The function I want to extract is the one that maps the seatmaps to sections.
Requirements:
- Experience in JS code tracing and extraction
- Familiarity with website source code analysis
- Proficiency in working with JS functions
Skills:
- Strong knowledge of JavaScript
- Ability to navigate and understand website source code
- Experience in function extraction
The ideal candidate for this project should have a solid understanding of JavaScript and be able to effectively trace and extract the desired function from the website's source code. The extracted function should be provided in its original JS code format.
If you load this website:
https://mpv.tickets.com/?agency=MLB_MPV&pid=9181697#/event/9181697/seatmap/
You can see a map with sections, and each section is clickable and shows you a seat map of available seats.
We need to extract the code that is responsible for mapping the sections to the seatmaps.
The mapping is done using polygons.
The seatmaps JSON data that contains the polygon data can be seen here:
var seatmaps = angular.element(document.querySelector(".seatmap-page")).scope().vm.eventData.seatmaps
The section JSON data that contains the polygon data can be seen here:
var sections = angular.element(document.querySelector(".seatmap-page")).scope().vm.eventData.sectionHash
do you think you can find the JS code that uses that data, to link which seatmaps go to which sections?
In the example, the seatmap with ID 6981 maps to the section 429 on the map.
that's because the seatmap polygons contains the section polygon (or vice-versa).
We need to extract the code responsible for checking the polygons and mapping the seatmaps to the section.
The winning entry should be a JS function that takes in the JSON data for a section and a seatmap and returns True if the section belongs to the seatmap or False if not.
This comparison needs to be done using the exact code used on the live website.
Recommended Skills
Top entries from this contest
-
farhankha4548 Pakistan
-
gabrielsantos19 Brazil
-
guschard Brazil
-
nazim203 Bangladesh
Public Clarification Board
How to get started with contests
-
Post Your Contest Quick and easy
-
Get Tons of Entries From around the world
-
Award the best entry Download the files - Easy!