Auto-Commit: 2026-09-24 06:51:07

This commit is contained in:
Jannik committed 2026-09-24 06:51:07 +02:00
1 parent d290471140
commit 0bc62d8818
8 files changed
-31023

No files matched your search

-17
View File
@@ -1,17 +0,0 @@
const fs = require('fs');
const data = fs.readFileSync('c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/data.js', 'utf8');
const matches = [44, 46, 51, 57, 72, 73, 75, 77, 79];
matches.forEach(m => {
const idx = data.indexOf(`"${m}":`);
if (idx !== -1) {
console.log(`Asset ${m}:`, data.substring(idx, idx + 100));
} else {
const ididx = data.indexOf(`"id":${m}`);
if (ididx !== -1) {
console.log(`Asset ${m} (id):`, data.substring(ididx - 20, ididx + 100));
} else {
console.log(`Asset ${m} not found`);
}
}
});
-8
View File
@@ -1,8 +0,0 @@
const fs = require('fs');
const files = fs.readdirSync('c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/');
files.forEach(f => {
if (f.endsWith('.js')) {
const d = fs.readFileSync('c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/' + f, 'utf8');
if (d.includes('67i0eN8rNcl')) console.log(f + ' has 67i0eN8rNcl (assetId 45 MP3 file)');
}
});
-30
View File
@@ -1,30 +0,0 @@
const fs = require('fs');
const data = fs.readFileSync('c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/5eDZVsflCng.js', 'utf8');
const match = data.match(/window\.globalProvideData\('slide',\s*"(.*)"\);/s);
if (match) {
let jsonStr = match[1];
jsonStr = jsonStr.replace(/\\"/g, '"').replace(/\\\\/g, '\\');
const obj = JSON.parse(jsonStr);
// Find triggers on Layer 0 objects
if (obj.slideLayers && obj.slideLayers[0] && obj.slideLayers[0].objects) {
obj.slideLayers[0].objects.forEach(o => {
if (o.events) {
o.events.forEach(e => {
if (e.kind === 'onrelease' || e.kind === 'onclick') {
let target = "";
e.actions.forEach(a => {
if (a.kind === 'show_slidelayer') {
target = a.layerId;
}
});
if (target) {
console.log(`Object ${o.id} (${o.data?.vectorData?.altText || 'No text'}) triggers layer ${target}`);
}
}
});
}
});
}
}
-30891
View File
File diff suppressed because it is too large. Load diff
-12
View File
@@ -1,12 +0,0 @@
const fs = require('fs');
const data = fs.readFileSync('c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/5eDZVsflCng.js', 'utf8');
const match = data.match(/window\.globalProvideData\('slide',\s*"(.*)"\);/s);
if (match) {
let jsonStr = match[1];
jsonStr = jsonStr.replace(/\\"/g, '"').replace(/\\\\/g, '\\');
const obj = JSON.parse(jsonStr);
fs.writeFileSync('c:/GitHub/FW/dump.json', JSON.stringify(obj, null, 2));
console.log('Dumped to dump.json');
}
-39
View File
@@ -1,39 +0,0 @@
const fs = require('fs');
const file = process.argv[2] || 'c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/5eDZVsflCng.js';
const data = fs.readFileSync(file, 'utf8');
// The file contains `window.globalProvideData('slide', "{...}");`
// We need to carefully extract the JSON string and unescape it.
const match = data.match(/window\.globalProvideData\('slide',\s*"(.*)"\);/s);
if (match) {
let jsonStr = match[1];
// Replace \" with " and \\ with \
jsonStr = jsonStr.replace(/\\"/g, '"').replace(/\\\\/g, '\\');
try {
const obj = JSON.parse(jsonStr);
console.log('Slide:', obj.title);
if (obj.slideLayers) {
obj.slideLayers.forEach((layer, i) => {
let texts = [];
let audios = [];
if (layer.audiolib) {
audios = layer.audiolib.map(a => a.id + ' (assetId ' + a.assetId + ')');
}
if (layer.objects) {
layer.objects.forEach(o => {
if (o.data && o.data.vectorData && o.data.vectorData.altText) {
texts.push(o.data.vectorData.altText);
}
});
}
console.log(`Layer ${i} (ID: ${layer.id}):`);
console.log(` Audio: ${audios.join(', ')}`);
console.log(` Texts: ${texts.join(' | ').substring(0, 150)}`);
});
}
} catch (e) {
console.error("JSON parse error:", e.message);
console.error(jsonStr.substring(0, 500));
}
}
-13
View File
@@ -1,13 +0,0 @@
const fs = require('fs');
const files = ['paths.js', 'data.js', 'frame.js'];
const dir = 'c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/';
files.forEach(f => {
try {
const data = fs.readFileSync(dir + f, 'utf8');
const matches = data.match(/[^"']*\.mp3/g);
if (matches) {
console.log(`File: ${f}, found ${matches.length} mp3 references`);
console.log(matches.slice(0, 5));
}
} catch(e) {}
});
-13
View File
@@ -1,13 +0,0 @@
const fs = require('fs');
const path = 'c:/GitHub/FW/Trainings/WBT_ErkW_2_Aufbau_und_Ueberblick_Bedienoberflaeche/html5/data/js/5eDZVsflCng.js';
let d = fs.readFileSync(path, 'utf8');
// Find assetId 46 in the audiolib array
const regex = /\\"assetId\\":46,\\"id\\":\\"5gfNxwychHQ\\"/;
if (regex.test(d)) {
d = d.replace(regex, '\\"assetId\\":45,\\"id\\":\\"5gfNxwychHQ\\"');
fs.writeFileSync(path, d, 'utf8');
console.log('Patched 5eDZVsflCng.js assetId 46 -> 45');
} else {
console.log('Not found');
}