This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1. Select all the price containers | |
| const priceElements = document.querySelectorAll('.order-item-content-opt-price'); | |
| const totalPrice = Array.from(priceElements).reduce((sum, el) => { | |
| // 2. Get the combined text from all child spans (e.g., "19,46 €") | |
| let priceText = el.innerText; | |
| // 3. Clean the string: | |
| // - Replace comma with dot for calculation | |
| // - Remove the currency symbol and any non-numeric characters (except the dot) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From: Nikolai Danylchyk | |
| Date: Sun, 28 Mar 2021 18:32:05 +0200 | |
| Subject: [PATCH] updated for tb78+ | |
| --- | |
| src/chrome/backgroundscript.js | 38 +++++-- | |
| src/common/markdown-here.js | 2 +- | |
| src/common/options-iframe.js | 2 - | |
| src/common/options-store.js | 121 +---------------------- | |
| src/common/options.js | 10 -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cdk = require('@aws-cdk/core'); | |
| import iot = require('@aws-cdk/aws-iot'); | |
| import lambda = require('@aws-cdk/aws-lambda'); | |
| import greengrass = require('@aws-cdk/aws-greengrass'); | |
| import * as awssdk from 'aws-sdk'; | |
| interface GreengrassRaspberryPiStackProps extends cdk.StackProps { | |
| greengrassLambdaAlias: lambda.Alias | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface IVehicle { | |
| start(type: string): string; | |
| } | |
| interface ITrunk { | |
| openTrunk(): void | |
| } | |
| interface IWindow { | |
| openWindow(): void |